Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for arping 2.29.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and [email protected]
274 $0: about your system, including any error possibly output
275 $0: before this message. Then install a modern shell, or
276 $0: manually run the script under such a shell if you do
277 $0: have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='arping'
606 PACKAGE_TARNAME='arping'
607 PACKAGE_VERSION='2.29'
608 PACKAGE_STRING='arping 2.29'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL=''
611
612 ac_unique_file="src/arping.c"
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_subst_vars='am__EXEEXT_FALSE
646 am__EXEEXT_TRUE
647 LTLIBOBJS
648 HAVE_CLOCK_MONOTONIC_FALSE
649 HAVE_CLOCK_MONOTONIC_TRUE
650 LIBOBJS
651 EGREP
652 GREP
653 am__fastdepCC_FALSE
654 am__fastdepCC_TRUE
655 CCDEPMODE
656 am__nodep
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__include
661 DEPDIR
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
668 CC
669 MAINT
670 MAINTAINER_MODE_FALSE
671 MAINTAINER_MODE_TRUE
672 am__xargs_n
673 am__rm_f_notfound
674 AM_BACKSLASH
675 AM_DEFAULT_VERBOSITY
676 AM_DEFAULT_V
677 AM_V
678 CSCOPE
679 ETAGS
680 CTAGS
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
686 AWK
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_os
705 target_vendor
706 target_cpu
707 target
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 runstatedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL
755 am__quote'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_silent_rules
760 enable_maintainer_mode
761 enable_dependency_tracking
762 enable_seccomp
763 enable_hardened
764 enable_warnings
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 runstatedir='${localstatedir}/run'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
824
825 ac_prev=
826 ac_dashdash=
827 for ac_option
828 do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
834 fi
835
836 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 case $ac_dashdash$ac_option in
843 --)
844 ac_dashdash=yes ;;
845
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
850
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
855
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
862
863 --config-cache | -C)
864 cache_file=config.cache ;;
865
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
870
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
877
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: '$ac_useropt'"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
893
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
898
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
903
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: '$ac_useropt'"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=\$ac_optarg ;;
919
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
928
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
932
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
939
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
944
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
950
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
957
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
962
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
967
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
974
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
979
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
986
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
991
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
995
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
999
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1003
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1012
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1017
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1024
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1031
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1048
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1053
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1058
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1062
1063 -runstatedir | --runstatedir | --runstatedi | --runstated \
1064 | --runstate | --runstat | --runsta | --runst | --runs \
1065 | --run | --ru | --r)
1066 ac_prev=runstatedir ;;
1067 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1068 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1069 | --run=* | --ru=* | --r=*)
1070 runstatedir=$ac_optarg ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: '$ac_useropt'"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1132
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: '$ac_useropt'"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
1167 -*) as_fn_error $? "unrecognized option: '$ac_option'
1168 Try '$0 --help' for more information"
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
1183 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 ;;
1188
1189 esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error $? "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir runstatedir
1210 do
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: '$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 printf "%s\n" X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1286 fi
1287 else
1288 ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 'configure' configures arping 2.29 to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print 'checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for '--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or '..']
1341
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1347
1348 By default, 'make install' will install all the files in
1349 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than '$ac_default_prefix' using '--prefix',
1351 for instance '--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/arping]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 --target=TARGET configure for building compilers for TARGET [HOST]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of arping 2.29:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-silent-rules less verbose build output (undo: "make V=1")
1403 --disable-silent-rules verbose build output (undo: "make V=0")
1404 --enable-maintainer-mode
1405 enable make rules and dependencies not useful (and
1406 sometimes confusing) to the casual installer
1407 --enable-dependency-tracking
1408 do not reject slow dependency extractors
1409 --disable-dependency-tracking
1410 speeds up one-time build
1411 Enable seccomp priv drops by default (-z to turn on, -Z for off)
1412 --enable-hardened Enable security build options
1413 --enable-warnings Enable build warnings
1414
1415 Some influential environment variables:
1416 CC C compiler command
1417 CFLAGS C compiler flags
1418 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1419 nonstandard directory <lib dir>
1420 LIBS libraries to pass to the linker, e.g. -l<library>
1421 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1422 you have headers in a nonstandard directory <include dir>
1423
1424 Use these variables to override the choices made by 'configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1426
1427 Report bugs to <[email protected]>.
1428 _ACEOF
1429 ac_status=$?
1430 fi
1431
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1439
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *)
1443 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1455
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for configure.gnu first; this name is used for a wrapper for
1474 # Metaconfig's "Configure" on case-insensitive file systems.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1486 fi
1487
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 arping configure 2.29
1492 generated by GNU Autoconf 2.72
1493
1494 Copyright (C) 2023 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1499 fi
1500
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1504
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext conftest.beam
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 printf "%s\n" "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext
1531 then :
1532 ac_retval=0
1533 else case e in #(
1534 e) printf "%s\n" "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1536
1537 ac_retval=1 ;;
1538 esac
1539 fi
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status $ac_retval
1542
1543 } # ac_fn_c_try_compile
1544
1545 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1546 # -------------------------------------------------------
1547 # Tests whether HEADER exists and can be compiled using the include files in
1548 # INCLUDES, setting the cache variable VAR accordingly.
1549 ac_fn_c_check_header_compile ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553 printf %s "checking for $2... " >&6; }
1554 if eval test \${$3+y}
1555 then :
1556 printf %s "(cached) " >&6
1557 else case e in #(
1558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559 /* end confdefs.h. */
1560 $4
1561 #include <$2>
1562 _ACEOF
1563 if ac_fn_c_try_compile "$LINENO"
1564 then :
1565 eval "$3=yes"
1566 else case e in #(
1567 e) eval "$3=no" ;;
1568 esac
1569 fi
1570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1571 esac
1572 fi
1573 eval ac_res=\$$3
1574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1575 printf "%s\n" "$ac_res" >&6; }
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577
1578 } # ac_fn_c_check_header_compile
1579
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_link ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 printf "%s\n" "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 test -x conftest$ac_exeext
1608 }
1609 then :
1610 ac_retval=0
1611 else case e in #(
1612 e) printf "%s\n" "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1 ;;
1616 esac
1617 fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_find_uintX_t LINENO BITS VAR
1629 # ------------------------------------
1630 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1631 # accordingly.
1632 ac_fn_c_find_uintX_t ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1636 printf %s "checking for uint$2_t... " >&6; }
1637 if eval test \${$3+y}
1638 then :
1639 printf %s "(cached) " >&6
1640 else case e in #(
1641 e) eval "$3=no"
1642 # Order is important - never check a type that is potentially smaller
1643 # than half of the expected target width.
1644 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1645 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $ac_includes_default
1649 int
1650 main (void)
1651 {
1652 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1653 test_array [0] = 0;
1654 return test_array [0];
1655
1656 ;
1657 return 0;
1658 }
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"
1661 then :
1662 case $ac_type in #(
1663 uint$2_t) :
1664 eval "$3=yes" ;; #(
1665 *) :
1666 eval "$3=\$ac_type" ;;
1667 esac
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1670 if eval test \"x\$"$3"\" = x"no"
1671 then :
1672
1673 else case e in #(
1674 e) break ;;
1675 esac
1676 fi
1677 done ;;
1678 esac
1679 fi
1680 eval ac_res=\$$3
1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 printf "%s\n" "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_find_uintX_t
1686
1687 # ac_fn_c_check_func LINENO FUNC VAR
1688 # ----------------------------------
1689 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1690 ac_fn_c_check_func ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 printf %s "checking for $2... " >&6; }
1695 if eval test \${$3+y}
1696 then :
1697 printf %s "(cached) " >&6
1698 else case e in #(
1699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1703 #define $2 innocuous_$2
1704
1705 /* System header to define __stub macros and hopefully few prototypes,
1706 which can conflict with char $2 (void); below. */
1707
1708 #include <limits.h>
1709 #undef $2
1710
1711 /* Override any GCC internal prototype to avoid an error.
1712 Use char because int might match the return type of a GCC
1713 builtin and then its argument prototype would still apply. */
1714 #ifdef __cplusplus
1715 extern "C"
1716 #endif
1717 char $2 (void);
1718 /* The GNU C library defines this for functions which it implements
1719 to always fail with ENOSYS. Some functions are actually named
1720 something starting with __ and the normal name is an alias. */
1721 #if defined __stub_$2 || defined __stub___$2
1722 choke me
1723 #endif
1724
1725 int
1726 main (void)
1727 {
1728 return $2 ();
1729 ;
1730 return 0;
1731 }
1732 _ACEOF
1733 if ac_fn_c_try_link "$LINENO"
1734 then :
1735 eval "$3=yes"
1736 else case e in #(
1737 e) eval "$3=no" ;;
1738 esac
1739 fi
1740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1741 conftest$ac_exeext conftest.$ac_ext ;;
1742 esac
1743 fi
1744 eval ac_res=\$$3
1745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 printf "%s\n" "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_func
1750
1751 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1752 # ------------------------------------------------------------------
1753 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1754 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1755 ac_fn_check_decl ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 as_decl_name=`echo $2|sed 's/ *(.*//'`
1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1760 printf %s "checking whether $as_decl_name is declared... " >&6; }
1761 if eval test \${$3+y}
1762 then :
1763 printf %s "(cached) " >&6
1764 else case e in #(
1765 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1766 eval ac_save_FLAGS=\$$6
1767 as_fn_append $6 " $5"
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $4
1771 int
1772 main (void)
1773 {
1774 #ifndef $as_decl_name
1775 #ifdef __cplusplus
1776 (void) $as_decl_use;
1777 #else
1778 (void) $as_decl_name;
1779 #endif
1780 #endif
1781
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"
1787 then :
1788 eval "$3=yes"
1789 else case e in #(
1790 e) eval "$3=no" ;;
1791 esac
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1794 eval $6=\$ac_save_FLAGS
1795 ;;
1796 esac
1797 fi
1798 eval ac_res=\$$3
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 printf "%s\n" "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_check_decl
1804 ac_configure_args_raw=
1805 for ac_arg
1806 do
1807 case $ac_arg in
1808 *\'*)
1809 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 as_fn_append ac_configure_args_raw " '$ac_arg'"
1812 done
1813
1814 case $ac_configure_args_raw in
1815 *$as_nl*)
1816 ac_safe_unquote= ;;
1817 *)
1818 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1819 ac_unsafe_a="$ac_unsafe_z#~"
1820 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1821 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1822 esac
1823
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1827
1828 It was created by arping $as_me 2.29, which was
1829 generated by GNU Autoconf 2.72. Invocation command line was
1830
1831 $ $0$ac_configure_args_raw
1832
1833 _ACEOF
1834 exec 5>>config.log
1835 {
1836 cat <<_ASUNAME
1837 ## --------- ##
1838 ## Platform. ##
1839 ## --------- ##
1840
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849
1850 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1851 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1854 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1855 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1856 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1857
1858 _ASUNAME
1859
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 case $as_dir in #(((
1865 '') as_dir=./ ;;
1866 */) ;;
1867 *) as_dir=$as_dir/ ;;
1868 esac
1869 printf "%s\n" "PATH: $as_dir"
1870 done
1871 IFS=$as_save_IFS
1872
1873 } >&5
1874
1875 cat >&5 <<_ACEOF
1876
1877
1878 ## ----------- ##
1879 ## Core tests. ##
1880 ## ----------- ##
1881
1882 _ACEOF
1883
1884
1885 # Keep a trace of the command line.
1886 # Strip out --no-create and --no-recursion so they do not pile up.
1887 # Strip out --silent because we don't want to record it for future runs.
1888 # Also quote any args containing shell meta-characters.
1889 # Make two passes to allow for proper duplicate-argument suppression.
1890 ac_configure_args=
1891 ac_configure_args0=
1892 ac_configure_args1=
1893 ac_must_keep_next=false
1894 for ac_pass in 1 2
1895 do
1896 for ac_arg
1897 do
1898 case $ac_arg in
1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901 | -silent | --silent | --silen | --sile | --sil)
1902 continue ;;
1903 *\'*)
1904 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 esac
1906 case $ac_pass in
1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1908 2)
1909 as_fn_append ac_configure_args1 " '$ac_arg'"
1910 if test $ac_must_keep_next = true; then
1911 ac_must_keep_next=false # Got value, back to normal.
1912 else
1913 case $ac_arg in
1914 *=* | --config-cache | -C | -disable-* | --disable-* \
1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917 | -with-* | --with-* | -without-* | --without-* | --x)
1918 case "$ac_configure_args0 " in
1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920 esac
1921 ;;
1922 -* ) ac_must_keep_next=true ;;
1923 esac
1924 fi
1925 as_fn_append ac_configure_args " '$ac_arg'"
1926 ;;
1927 esac
1928 done
1929 done
1930 { ac_configure_args0=; unset ac_configure_args0;}
1931 { ac_configure_args1=; unset ac_configure_args1;}
1932
1933 # When interrupted or exit'd, cleanup temporary files, and complete
1934 # config.log. We remove comments because anyway the quotes in there
1935 # would cause problems or look ugly.
1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938 trap 'exit_status=$?
1939 # Sanitize IFS.
1940 IFS=" "" $as_nl"
1941 # Save into config.log some information that might help in debugging.
1942 {
1943 echo
1944
1945 printf "%s\n" "## ---------------- ##
1946 ## Cache variables. ##
1947 ## ---------------- ##"
1948 echo
1949 # The following way of writing the cache mishandles newlines in values,
1950 (
1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in #(
1954 *${as_nl}*)
1955 case $ac_var in #(
1956 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958 esac
1959 case $ac_var in #(
1960 _ | IFS | as_nl) ;; #(
1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962 *) { eval $ac_var=; unset $ac_var;} ;;
1963 esac ;;
1964 esac
1965 done
1966 (set) 2>&1 |
1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968 *${as_nl}ac_space=\ *)
1969 sed -n \
1970 "s/'\''/'\''\\\\'\'''\''/g;
1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972 ;; #(
1973 *)
1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975 ;;
1976 esac |
1977 sort
1978 )
1979 echo
1980
1981 printf "%s\n" "## ----------------- ##
1982 ## Output variables. ##
1983 ## ----------------- ##"
1984 echo
1985 for ac_var in $ac_subst_vars
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 printf "%s\n" "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1994
1995 if test -n "$ac_subst_files"; then
1996 printf "%s\n" "## ------------------- ##
1997 ## File substitutions. ##
1998 ## ------------------- ##"
1999 echo
2000 for ac_var in $ac_subst_files
2001 do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in
2004 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005 esac
2006 printf "%s\n" "$ac_var='\''$ac_val'\''"
2007 done | sort
2008 echo
2009 fi
2010
2011 if test -s confdefs.h; then
2012 printf "%s\n" "## ----------- ##
2013 ## confdefs.h. ##
2014 ## ----------- ##"
2015 echo
2016 cat confdefs.h
2017 echo
2018 fi
2019 test "$ac_signal" != 0 &&
2020 printf "%s\n" "$as_me: caught signal $ac_signal"
2021 printf "%s\n" "$as_me: exit $exit_status"
2022 } >&5
2023 rm -f core *.core core.conftest.* &&
2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025 exit $exit_status
2026 ' 0
2027 for ac_signal in 1 2 13 15; do
2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029 done
2030 ac_signal=0
2031
2032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033 rm -f -r conftest* confdefs.h
2034
2035 printf "%s\n" "/* confdefs.h */" > confdefs.h
2036
2037 # Predefined preprocessor variables.
2038
2039 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2040
2041 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2042
2043 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2044
2045 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2046
2047 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2048
2049 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2050
2051
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2054 if test -n "$CONFIG_SITE"; then
2055 ac_site_files="$CONFIG_SITE"
2056 elif test "x$prefix" != xNONE; then
2057 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2058 else
2059 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2060 fi
2061
2062 for ac_site_file in $ac_site_files
2063 do
2064 case $ac_site_file in #(
2065 */*) :
2066 ;; #(
2067 *) :
2068 ac_site_file=./$ac_site_file ;;
2069 esac
2070 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2072 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2073 sed 's/^/| /' "$ac_site_file" >&5
2074 . "$ac_site_file" \
2075 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2076 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2077 as_fn_error $? "failed to load site script $ac_site_file
2078 See 'config.log' for more details" "$LINENO" 5; }
2079 fi
2080 done
2081
2082 if test -r "$cache_file"; then
2083 # Some versions of bash will fail to source /dev/null (special files
2084 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2085 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2088 case $cache_file in
2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
2091 esac
2092 fi
2093 else
2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2096 >$cache_file
2097 fi
2098
2099 # Test code for whether the C compiler supports C89 (global declarations)
2100 ac_c_conftest_c89_globals='
2101 /* Does the compiler advertise C89 conformance?
2102 Do not test the value of __STDC__, because some compilers set it to 0
2103 while being otherwise adequately conformant. */
2104 #if !defined __STDC__
2105 # error "Compiler does not advertise C89 conformance"
2106 #endif
2107
2108 #include <stddef.h>
2109 #include <stdarg.h>
2110 struct stat;
2111 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2112 struct buf { int x; };
2113 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (char **p, int i)
2115 {
2116 return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120 char *s;
2121 va_list v;
2122 va_start (v,p);
2123 s = g (p, va_arg (v,int));
2124 va_end (v);
2125 return s;
2126 }
2127
2128 /* C89 style stringification. */
2129 #define noexpand_stringify(a) #a
2130 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2131
2132 /* C89 style token pasting. Exercises some of the corner cases that
2133 e.g. old MSVC gets wrong, but not very hard. */
2134 #define noexpand_concat(a,b) a##b
2135 #define expand_concat(a,b) noexpand_concat(a,b)
2136 extern int vA;
2137 extern int vbee;
2138 #define aye A
2139 #define bee B
2140 int *pvA = &expand_concat(v,aye);
2141 int *pvbee = &noexpand_concat(v,bee);
2142
2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2144 function prototypes and stuff, but not \xHH hex character constants.
2145 These do not provoke an error unfortunately, instead are silently treated
2146 as an "x". The following induces an error, until -std is added to get
2147 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2148 array size at least. It is necessary to write \x00 == 0 to get something
2149 that is true only with -std. */
2150 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2151
2152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2153 inside strings and character constants. */
2154 #define FOO(x) '\''x'\''
2155 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2156
2157 int test (int i, double x);
2158 struct s1 {int (*f) (int a);};
2159 struct s2 {int (*f) (double a);};
2160 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2161 int, int);'
2162
2163 # Test code for whether the C compiler supports C89 (body of main).
2164 ac_c_conftest_c89_main='
2165 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2166 '
2167
2168 # Test code for whether the C compiler supports C99 (global declarations)
2169 ac_c_conftest_c99_globals='
2170 /* Does the compiler advertise C99 conformance? */
2171 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2172 # error "Compiler does not advertise C99 conformance"
2173 #endif
2174
2175 // See if C++-style comments work.
2176
2177 #include <stdbool.h>
2178 extern int puts (const char *);
2179 extern int printf (const char *, ...);
2180 extern int dprintf (int, const char *, ...);
2181 extern void *malloc (size_t);
2182 extern void free (void *);
2183
2184 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2185 // dprintf is used instead of fprintf to avoid needing to declare
2186 // FILE and stderr.
2187 #define debug(...) dprintf (2, __VA_ARGS__)
2188 #define showlist(...) puts (#__VA_ARGS__)
2189 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2190 static void
2191 test_varargs_macros (void)
2192 {
2193 int x = 1234;
2194 int y = 5678;
2195 debug ("Flag");
2196 debug ("X = %d\n", x);
2197 showlist (The first, second, and third items.);
2198 report (x>y, "x is %d but y is %d", x, y);
2199 }
2200
2201 // Check long long types.
2202 #define BIG64 18446744073709551615ull
2203 #define BIG32 4294967295ul
2204 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2205 #if !BIG_OK
2206 #error "your preprocessor is broken"
2207 #endif
2208 #if BIG_OK
2209 #else
2210 #error "your preprocessor is broken"
2211 #endif
2212 static long long int bignum = -9223372036854775807LL;
2213 static unsigned long long int ubignum = BIG64;
2214
2215 struct incomplete_array
2216 {
2217 int datasize;
2218 double data[];
2219 };
2220
2221 struct named_init {
2222 int number;
2223 const wchar_t *name;
2224 double average;
2225 };
2226
2227 typedef const char *ccp;
2228
2229 static inline int
2230 test_restrict (ccp restrict text)
2231 {
2232 // Iterate through items via the restricted pointer.
2233 // Also check for declarations in for loops.
2234 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2235 continue;
2236 return 0;
2237 }
2238
2239 // Check varargs and va_copy.
2240 static bool
2241 test_varargs (const char *format, ...)
2242 {
2243 va_list args;
2244 va_start (args, format);
2245 va_list args_copy;
2246 va_copy (args_copy, args);
2247
2248 const char *str = "";
2249 int number = 0;
2250 float fnumber = 0;
2251
2252 while (*format)
2253 {
2254 switch (*format++)
2255 {
2256 case '\''s'\'': // string
2257 str = va_arg (args_copy, const char *);
2258 break;
2259 case '\''d'\'': // int
2260 number = va_arg (args_copy, int);
2261 break;
2262 case '\''f'\'': // float
2263 fnumber = va_arg (args_copy, double);
2264 break;
2265 default:
2266 break;
2267 }
2268 }
2269 va_end (args_copy);
2270 va_end (args);
2271
2272 return *str && number && fnumber;
2273 }
2274 '
2275
2276 # Test code for whether the C compiler supports C99 (body of main).
2277 ac_c_conftest_c99_main='
2278 // Check bool.
2279 _Bool success = false;
2280 success |= (argc != 0);
2281
2282 // Check restrict.
2283 if (test_restrict ("String literal") == 0)
2284 success = true;
2285 char *restrict newvar = "Another string";
2286
2287 // Check varargs.
2288 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2289 test_varargs_macros ();
2290
2291 // Check flexible array members.
2292 struct incomplete_array *ia =
2293 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2294 ia->datasize = 10;
2295 for (int i = 0; i < ia->datasize; ++i)
2296 ia->data[i] = i * 1.234;
2297 // Work around memory leak warnings.
2298 free (ia);
2299
2300 // Check named initializers.
2301 struct named_init ni = {
2302 .number = 34,
2303 .name = L"Test wide string",
2304 .average = 543.34343,
2305 };
2306
2307 ni.number = 58;
2308
2309 int dynamic_array[ni.number];
2310 dynamic_array[0] = argv[0][0];
2311 dynamic_array[ni.number - 1] = 543;
2312
2313 // work around unused variable warnings
2314 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2315 || dynamic_array[ni.number - 1] != 543);
2316 '
2317
2318 # Test code for whether the C compiler supports C11 (global declarations)
2319 ac_c_conftest_c11_globals='
2320 /* Does the compiler advertise C11 conformance? */
2321 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2322 # error "Compiler does not advertise C11 conformance"
2323 #endif
2324
2325 // Check _Alignas.
2326 char _Alignas (double) aligned_as_double;
2327 char _Alignas (0) no_special_alignment;
2328 extern char aligned_as_int;
2329 char _Alignas (0) _Alignas (int) aligned_as_int;
2330
2331 // Check _Alignof.
2332 enum
2333 {
2334 int_alignment = _Alignof (int),
2335 int_array_alignment = _Alignof (int[100]),
2336 char_alignment = _Alignof (char)
2337 };
2338 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2339
2340 // Check _Noreturn.
2341 int _Noreturn does_not_return (void) { for (;;) continue; }
2342
2343 // Check _Static_assert.
2344 struct test_static_assert
2345 {
2346 int x;
2347 _Static_assert (sizeof (int) <= sizeof (long int),
2348 "_Static_assert does not work in struct");
2349 long int y;
2350 };
2351
2352 // Check UTF-8 literals.
2353 #define u8 syntax error!
2354 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2355
2356 // Check duplicate typedefs.
2357 typedef long *long_ptr;
2358 typedef long int *long_ptr;
2359 typedef long_ptr long_ptr;
2360
2361 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2362 struct anonymous
2363 {
2364 union {
2365 struct { int i; int j; };
2366 struct { int k; long int l; } w;
2367 };
2368 int m;
2369 } v1;
2370 '
2371
2372 # Test code for whether the C compiler supports C11 (body of main).
2373 ac_c_conftest_c11_main='
2374 _Static_assert ((offsetof (struct anonymous, i)
2375 == offsetof (struct anonymous, w.k)),
2376 "Anonymous union alignment botch");
2377 v1.i = 2;
2378 v1.w.k = 5;
2379 ok |= v1.i != 5;
2380 '
2381
2382 # Test code for whether the C compiler supports C11 (complete).
2383 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2384 ${ac_c_conftest_c99_globals}
2385 ${ac_c_conftest_c11_globals}
2386
2387 int
2388 main (int argc, char **argv)
2389 {
2390 int ok = 0;
2391 ${ac_c_conftest_c89_main}
2392 ${ac_c_conftest_c99_main}
2393 ${ac_c_conftest_c11_main}
2394 return ok;
2395 }
2396 "
2397
2398 # Test code for whether the C compiler supports C99 (complete).
2399 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2400 ${ac_c_conftest_c99_globals}
2401
2402 int
2403 main (int argc, char **argv)
2404 {
2405 int ok = 0;
2406 ${ac_c_conftest_c89_main}
2407 ${ac_c_conftest_c99_main}
2408 return ok;
2409 }
2410 "
2411
2412 # Test code for whether the C compiler supports C89 (complete).
2413 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2414
2415 int
2416 main (int argc, char **argv)
2417 {
2418 int ok = 0;
2419 ${ac_c_conftest_c89_main}
2420 return ok;
2421 }
2422 "
2423
2424 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2425 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2426 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2427 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2428 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2429 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2430 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2431 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2432 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2433 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2434 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
2435 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2436
2437 # Auxiliary files required by this configure script.
2438 ac_aux_files="compile missing install-sh config.guess config.sub"
2439
2440 # Locations in which to look for auxiliary files.
2441 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2442
2443 # Search for a directory containing all of the required auxiliary files,
2444 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2445 # If we don't find one directory that contains all the files we need,
2446 # we report the set of missing files from the *first* directory in
2447 # $ac_aux_dir_candidates and give up.
2448 ac_missing_aux_files=""
2449 ac_first_candidate=:
2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 as_found=false
2453 for as_dir in $ac_aux_dir_candidates
2454 do
2455 IFS=$as_save_IFS
2456 case $as_dir in #(((
2457 '') as_dir=./ ;;
2458 */) ;;
2459 *) as_dir=$as_dir/ ;;
2460 esac
2461 as_found=:
2462
2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2464 ac_aux_dir_found=yes
2465 ac_install_sh=
2466 for ac_aux in $ac_aux_files
2467 do
2468 # As a special case, if "install-sh" is required, that requirement
2469 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2470 # and $ac_install_sh is set appropriately for whichever one is found.
2471 if test x"$ac_aux" = x"install-sh"
2472 then
2473 if test -f "${as_dir}install-sh"; then
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2475 ac_install_sh="${as_dir}install-sh -c"
2476 elif test -f "${as_dir}install.sh"; then
2477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2478 ac_install_sh="${as_dir}install.sh -c"
2479 elif test -f "${as_dir}shtool"; then
2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2481 ac_install_sh="${as_dir}shtool install -c"
2482 else
2483 ac_aux_dir_found=no
2484 if $ac_first_candidate; then
2485 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2486 else
2487 break
2488 fi
2489 fi
2490 else
2491 if test -f "${as_dir}${ac_aux}"; then
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2493 else
2494 ac_aux_dir_found=no
2495 if $ac_first_candidate; then
2496 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2497 else
2498 break
2499 fi
2500 fi
2501 fi
2502 done
2503 if test "$ac_aux_dir_found" = yes; then
2504 ac_aux_dir="$as_dir"
2505 break
2506 fi
2507 ac_first_candidate=false
2508
2509 as_found=false
2510 done
2511 IFS=$as_save_IFS
2512 if $as_found
2513 then :
2514
2515 else case e in #(
2516 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2517 esac
2518 fi
2519
2520
2521 # These three variables are undocumented and unsupported,
2522 # and are intended to be withdrawn in a future Autoconf release.
2523 # They can cause serious problems if a builder's source tree is in a directory
2524 # whose full name contains unusual characters.
2525 if test -f "${ac_aux_dir}config.guess"; then
2526 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2527 fi
2528 if test -f "${ac_aux_dir}config.sub"; then
2529 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2530 fi
2531 if test -f "$ac_aux_dir/configure"; then
2532 ac_configure="$SHELL ${ac_aux_dir}configure"
2533 fi
2534
2535 # Check that the precious variables saved in the cache have kept the same
2536 # value.
2537 ac_cache_corrupted=false
2538 for ac_var in $ac_precious_vars; do
2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540 eval ac_new_set=\$ac_env_${ac_var}_set
2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542 eval ac_new_val=\$ac_env_${ac_var}_value
2543 case $ac_old_set,$ac_new_set in
2544 set,)
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2546 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2548 ,set)
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2550 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,);;
2553 *)
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
2555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w=`echo x $ac_old_val`
2557 ac_new_val_w=`echo x $ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2560 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2561 ac_cache_corrupted=:
2562 else
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2564 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\$ac_old_val
2566 fi
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2568 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2570 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2571 fi;;
2572 esac
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2575 case $ac_new_val in
2576 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577 *) ac_arg=$ac_var=$ac_new_val ;;
2578 esac
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582 esac
2583 fi
2584 done
2585 if $ac_cache_corrupted; then
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2587 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2590 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2591 and start over" "$LINENO" 5
2592 fi
2593 ## -------------------- ##
2594 ## Main body of script. ##
2595 ## -------------------- ##
2596
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603
2604
2605
2606
2607 # Make sure we can run config.sub.
2608 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2609 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2610
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2612 printf %s "checking build system type... " >&6; }
2613 if test ${ac_cv_build+y}
2614 then :
2615 printf %s "(cached) " >&6
2616 else case e in #(
2617 e) ac_build_alias=$build_alias
2618 test "x$ac_build_alias" = x &&
2619 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2620 test "x$ac_build_alias" = x &&
2621 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2622 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2623 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2624 ;;
2625 esac
2626 fi
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2628 printf "%s\n" "$ac_cv_build" >&6; }
2629 case $ac_cv_build in
2630 *-*-*) ;;
2631 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2632 esac
2633 build=$ac_cv_build
2634 ac_save_IFS=$IFS; IFS='-'
2635 set x $ac_cv_build
2636 shift
2637 build_cpu=$1
2638 build_vendor=$2
2639 shift; shift
2640 # Remember, the first character of IFS is used to create $*,
2641 # except with old shells:
2642 build_os=$*
2643 IFS=$ac_save_IFS
2644 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2645
2646
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2648 printf %s "checking host system type... " >&6; }
2649 if test ${ac_cv_host+y}
2650 then :
2651 printf %s "(cached) " >&6
2652 else case e in #(
2653 e) if test "x$host_alias" = x; then
2654 ac_cv_host=$ac_cv_build
2655 else
2656 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2657 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2658 fi
2659 ;;
2660 esac
2661 fi
2662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2663 printf "%s\n" "$ac_cv_host" >&6; }
2664 case $ac_cv_host in
2665 *-*-*) ;;
2666 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2667 esac
2668 host=$ac_cv_host
2669 ac_save_IFS=$IFS; IFS='-'
2670 set x $ac_cv_host
2671 shift
2672 host_cpu=$1
2673 host_vendor=$2
2674 shift; shift
2675 # Remember, the first character of IFS is used to create $*,
2676 # except with old shells:
2677 host_os=$*
2678 IFS=$ac_save_IFS
2679 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2680
2681
2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2683 printf %s "checking target system type... " >&6; }
2684 if test ${ac_cv_target+y}
2685 then :
2686 printf %s "(cached) " >&6
2687 else case e in #(
2688 e) if test "x$target_alias" = x; then
2689 ac_cv_target=$ac_cv_host
2690 else
2691 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2692 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2693 fi
2694 ;;
2695 esac
2696 fi
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2698 printf "%s\n" "$ac_cv_target" >&6; }
2699 case $ac_cv_target in
2700 *-*-*) ;;
2701 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2702 esac
2703 target=$ac_cv_target
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_target
2706 shift
2707 target_cpu=$1
2708 target_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 target_os=$*
2713 IFS=$ac_save_IFS
2714 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2715
2716
2717 # The aliases save the names the user supplied, while $host etc.
2718 # will get canonicalized.
2719 test -n "$target_alias" &&
2720 test "$program_prefix$program_suffix$program_transform_name" = \
2721 NONENONEs,x,x, &&
2722 program_prefix=${target_alias}-
2723
2724
2725 am__api_version='1.17'
2726
2727
2728 # Find a good install program. We prefer a C program (faster),
2729 # so one script is as good as another. But avoid the broken or
2730 # incompatible versions:
2731 # SysV /etc/install, /usr/sbin/install
2732 # SunOS /usr/etc/install
2733 # IRIX /sbin/install
2734 # AIX /bin/install
2735 # AmigaOS /C/install, which installs bootblocks on floppy discs
2736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2739 # OS/2's system install, which has a completely different semantic
2740 # ./install, which can be erroneously created by make from ./install.sh.
2741 # Reject install programs that cannot install multiple files.
2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2743 printf %s "checking for a BSD-compatible install... " >&6; }
2744 if test -z "$INSTALL"; then
2745 if test ${ac_cv_path_install+y}
2746 then :
2747 printf %s "(cached) " >&6
2748 else case e in #(
2749 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 case $as_dir in #(((
2754 '') as_dir=./ ;;
2755 */) ;;
2756 *) as_dir=$as_dir/ ;;
2757 esac
2758 # Account for fact that we put trailing slashes in our PATH walk.
2759 case $as_dir in #((
2760 ./ | /[cC]/* | \
2761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2762 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2763 /usr/ucb/* ) ;;
2764 *)
2765 # OSF1 and SCO ODT 3.0 have their own names for install.
2766 # Don't use installbsd from OSF since it installs stuff as root
2767 # by default.
2768 for ac_prog in ginstall scoinst install; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2771 if test $ac_prog = install &&
2772 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2773 # AIX install. It has an incompatible calling convention.
2774 :
2775 elif test $ac_prog = install &&
2776 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # program-specific install script used by HP pwplus--don't use.
2778 :
2779 else
2780 rm -rf conftest.one conftest.two conftest.dir
2781 echo one > conftest.one
2782 echo two > conftest.two
2783 mkdir conftest.dir
2784 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2785 test -s conftest.one && test -s conftest.two &&
2786 test -s conftest.dir/conftest.one &&
2787 test -s conftest.dir/conftest.two
2788 then
2789 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2790 break 3
2791 fi
2792 fi
2793 fi
2794 done
2795 done
2796 ;;
2797 esac
2798
2799 done
2800 IFS=$as_save_IFS
2801
2802 rm -rf conftest.one conftest.two conftest.dir
2803 ;;
2804 esac
2805 fi
2806 if test ${ac_cv_path_install+y}; then
2807 INSTALL=$ac_cv_path_install
2808 else
2809 # As a last resort, use the slow shell script. Don't cache a
2810 # value for INSTALL within a source directory, because that will
2811 # break other packages using the cache if that directory is
2812 # removed, or if the value is a relative name.
2813 INSTALL=$ac_install_sh
2814 fi
2815 fi
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2817 printf "%s\n" "$INSTALL" >&6; }
2818
2819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2820 # It thinks the first close brace ends the variable substitution.
2821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2822
2823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2824
2825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2826
2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2828 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2829 if test ${am_cv_sleep_fractional_seconds+y}
2830 then :
2831 printf %s "(cached) " >&6
2832 else case e in #(
2833 e) if sleep 0.001 2>/dev/null
2834 then :
2835 am_cv_sleep_fractional_seconds=yes
2836 else case e in #(
2837 e) am_cv_sleep_fractional_seconds=no ;;
2838 esac
2839 fi
2840 ;;
2841 esac
2842 fi
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2844 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2845
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2847 printf %s "checking filesystem timestamp resolution... " >&6; }
2848 if test ${am_cv_filesystem_timestamp_resolution+y}
2849 then :
2850 printf %s "(cached) " >&6
2851 else case e in #(
2852 e) # Default to the worst case.
2853 am_cv_filesystem_timestamp_resolution=2
2854
2855 # Only try to go finer than 1 sec if sleep can do it.
2856 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2857 # - 1 sec is not much of a win compared to 2 sec, and
2858 # - it takes 2 seconds to perform the test whether 1 sec works.
2859 #
2860 # Instead, just use the default 2s on platforms that have 1s resolution,
2861 # accept the extra 1s delay when using $sleep in the Automake tests, in
2862 # exchange for not incurring the 2s delay for running the test for all
2863 # packages.
2864 #
2865 am_try_resolutions=
2866 if test "$am_cv_sleep_fractional_seconds" = yes; then
2867 # Even a millisecond often causes a bunch of false positives,
2868 # so just try a hundredth of a second. The time saved between .001 and
2869 # .01 is not terribly consequential.
2870 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2871 fi
2872
2873 # In order to catch current-generation FAT out, we must *modify* files
2874 # that already exist; the *creation* timestamp is finer. Use names
2875 # that make ls -t sort them differently when they have equal
2876 # timestamps than when they have distinct timestamps, keeping
2877 # in mind that ls -t prints the *newest* file first.
2878 rm -f conftest.ts?
2879 : > conftest.ts1
2880 : > conftest.ts2
2881 : > conftest.ts3
2882
2883 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2884 # clobber the current shell's arguments. (Outer-level square brackets
2885 # are removed by m4; they're present so that m4 does not expand
2886 # <dollar><star>; be careful, easy to get confused.)
2887 if (
2888 set X `ls -t conftest.ts[12]` &&
2889 {
2890 test "$*" != "X conftest.ts1 conftest.ts2" ||
2891 test "$*" != "X conftest.ts2 conftest.ts1";
2892 }
2893 ); then :; else
2894 # If neither matched, then we have a broken ls. This can happen
2895 # if, for instance, CONFIG_SHELL is bash and it inherits a
2896 # broken ls alias from the environment. This has actually
2897 # happened. Such a system could not be considered "sane".
2898 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2900 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2901 as_fn_error $? "ls -t produces unexpected output.
2902 Make sure there is not a broken ls alias in your environment.
2903 See 'config.log' for more details" "$LINENO" 5; }
2904 fi
2905
2906 for am_try_res in $am_try_resolutions; do
2907 # Any one fine-grained sleep might happen to cross the boundary
2908 # between two values of a coarser actual resolution, but if we do
2909 # two fine-grained sleeps in a row, at least one of them will fall
2910 # entirely within a coarse interval.
2911 echo alpha > conftest.ts1
2912 sleep $am_try_res
2913 echo beta > conftest.ts2
2914 sleep $am_try_res
2915 echo gamma > conftest.ts3
2916
2917 # We assume that 'ls -t' will make use of high-resolution
2918 # timestamps if the operating system supports them at all.
2919 if (set X `ls -t conftest.ts?` &&
2920 test "$2" = conftest.ts3 &&
2921 test "$3" = conftest.ts2 &&
2922 test "$4" = conftest.ts1); then
2923 #
2924 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2925 # because we don't need to test make.
2926 make_ok=true
2927 if test $am_try_res != 1; then
2928 # But if we've succeeded so far with a subsecond resolution, we
2929 # have one more thing to check: make. It can happen that
2930 # everything else supports the subsecond mtimes, but make doesn't;
2931 # notably on macOS, which ships make 3.81 from 2006 (the last one
2932 # released under GPLv2). https://bugs.gnu.org/68808
2933 #
2934 # We test $MAKE if it is defined in the environment, else "make".
2935 # It might get overridden later, but our hope is that in practice
2936 # it does not matter: it is the system "make" which is (by far)
2937 # the most likely to be broken, whereas if the user overrides it,
2938 # probably they did so with a better, or at least not worse, make.
2939 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2940 #
2941 # Create a Makefile (real tab character here):
2942 rm -f conftest.mk
2943 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2944 echo ' touch conftest.ts2' >>conftest.mk
2945 #
2946 # Now, running
2947 # touch conftest.ts1; touch conftest.ts2; make
2948 # should touch ts1 because ts2 is newer. This could happen by luck,
2949 # but most often, it will fail if make's support is insufficient. So
2950 # test for several consecutive successes.
2951 #
2952 # (We reuse conftest.ts[12] because we still want to modify existing
2953 # files, not create new ones, per above.)
2954 n=0
2955 make=${MAKE-make}
2956 until test $n -eq 3; do
2957 echo one > conftest.ts1
2958 sleep $am_try_res
2959 echo two > conftest.ts2 # ts2 should now be newer than ts1
2960 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2961 make_ok=false
2962 break # out of $n loop
2963 fi
2964 n=`expr $n + 1`
2965 done
2966 fi
2967 #
2968 if $make_ok; then
2969 # Everything we know to check worked out, so call this resolution good.
2970 am_cv_filesystem_timestamp_resolution=$am_try_res
2971 break # out of $am_try_res loop
2972 fi
2973 # Otherwise, we'll go on to check the next resolution.
2974 fi
2975 done
2976 rm -f conftest.ts?
2977 # (end _am_filesystem_timestamp_resolution)
2978 ;;
2979 esac
2980 fi
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2982 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2983
2984 # This check should not be cached, as it may vary across builds of
2985 # different projects.
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2987 printf %s "checking whether build environment is sane... " >&6; }
2988 # Reject unsafe characters in $srcdir or the absolute working directory
2989 # name. Accept space and tab only in the latter.
2990 am_lf='
2991 '
2992 case `pwd` in
2993 *[\\\"\#\$\&\'\`$am_lf]*)
2994 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2995 esac
2996 case $srcdir in
2997 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2998 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2999 esac
3000
3001 # Do 'set' in a subshell so we don't clobber the current shell's
3002 # arguments. Must try -L first in case configure is actually a
3003 # symlink; some systems play weird games with the mod time of symlinks
3004 # (eg FreeBSD returns the mod time of the symlink's containing
3005 # directory).
3006 am_build_env_is_sane=no
3007 am_has_slept=no
3008 rm -f conftest.file
3009 for am_try in 1 2; do
3010 echo "timestamp, slept: $am_has_slept" > conftest.file
3011 if (
3012 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3013 if test "$*" = "X"; then
3014 # -L didn't work.
3015 set X `ls -t "$srcdir/configure" conftest.file`
3016 fi
3017 test "$2" = conftest.file
3018 ); then
3019 am_build_env_is_sane=yes
3020 break
3021 fi
3022 # Just in case.
3023 sleep "$am_cv_filesystem_timestamp_resolution"
3024 am_has_slept=yes
3025 done
3026
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3028 printf "%s\n" "$am_build_env_is_sane" >&6; }
3029 if test "$am_build_env_is_sane" = no; then
3030 as_fn_error $? "newly created file is older than distributed files!
3031 Check your system clock" "$LINENO" 5
3032 fi
3033
3034 # If we didn't sleep, we still need to ensure time stamps of config.status and
3035 # generated files are strictly newer.
3036 am_sleep_pid=
3037 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3038 then :
3039
3040 else case e in #(
3041 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3042 am_sleep_pid=$!
3043 ;;
3044 esac
3045 fi
3046
3047 rm -f conftest.file
3048
3049 test "$program_prefix" != NONE &&
3050 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3051 # Use a double $ so make ignores it.
3052 test "$program_suffix" != NONE &&
3053 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3054 # Double any \ or $.
3055 # By default was 's,x,x', remove it if useless.
3056 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3057 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3058
3059
3060 # Expand $ac_aux_dir to an absolute path.
3061 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3062
3063
3064 if test x"${MISSING+set}" != xset; then
3065 MISSING="\${SHELL} '$am_aux_dir/missing'"
3066 fi
3067 # Use eval to expand $SHELL
3068 if eval "$MISSING --is-lightweight"; then
3069 am_missing_run="$MISSING "
3070 else
3071 am_missing_run=
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3073 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3074 fi
3075
3076 if test x"${install_sh+set}" != xset; then
3077 case $am_aux_dir in
3078 *\ * | *\ *)
3079 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3080 *)
3081 install_sh="\${SHELL} $am_aux_dir/install-sh"
3082 esac
3083 fi
3084
3085 # Installed binaries are usually stripped using 'strip' when the user
3086 # run "make install-strip". However 'strip' might not be the right
3087 # tool to use in cross-compilation environments, therefore Automake
3088 # will honor the 'STRIP' environment variable to overrule this program.
3089 if test "$cross_compiling" != no; then
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}strip; ac_word=$2
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 printf %s "checking for $ac_word... " >&6; }
3095 if test ${ac_cv_prog_STRIP+y}
3096 then :
3097 printf %s "(cached) " >&6
3098 else case e in #(
3099 e) if test -n "$STRIP"; then
3100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 case $as_dir in #(((
3107 '') as_dir=./ ;;
3108 */) ;;
3109 *) as_dir=$as_dir/ ;;
3110 esac
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi ;;
3122 esac
3123 fi
3124 STRIP=$ac_cv_prog_STRIP
3125 if test -n "$STRIP"; then
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3127 printf "%s\n" "$STRIP" >&6; }
3128 else
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 printf "%s\n" "no" >&6; }
3131 fi
3132
3133
3134 fi
3135 if test -z "$ac_cv_prog_STRIP"; then
3136 ac_ct_STRIP=$STRIP
3137 # Extract the first word of "strip", so it can be a program name with args.
3138 set dummy strip; ac_word=$2
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 printf %s "checking for $ac_word... " >&6; }
3141 if test ${ac_cv_prog_ac_ct_STRIP+y}
3142 then :
3143 printf %s "(cached) " >&6
3144 else case e in #(
3145 e) if test -n "$ac_ct_STRIP"; then
3146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 case $as_dir in #(((
3153 '') as_dir=./ ;;
3154 */) ;;
3155 *) as_dir=$as_dir/ ;;
3156 esac
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_ac_ct_STRIP="strip"
3160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163 done
3164 done
3165 IFS=$as_save_IFS
3166
3167 fi ;;
3168 esac
3169 fi
3170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3171 if test -n "$ac_ct_STRIP"; then
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3173 printf "%s\n" "$ac_ct_STRIP" >&6; }
3174 else
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 printf "%s\n" "no" >&6; }
3177 fi
3178
3179 if test "x$ac_ct_STRIP" = x; then
3180 STRIP=":"
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 STRIP=$ac_ct_STRIP
3189 fi
3190 else
3191 STRIP="$ac_cv_prog_STRIP"
3192 fi
3193
3194 fi
3195 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3196
3197
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3199 printf %s "checking for a race-free mkdir -p... " >&6; }
3200 if test -z "$MKDIR_P"; then
3201 if test ${ac_cv_path_mkdir+y}
3202 then :
3203 printf %s "(cached) " >&6
3204 else case e in #(
3205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3207 do
3208 IFS=$as_save_IFS
3209 case $as_dir in #(((
3210 '') as_dir=./ ;;
3211 */) ;;
3212 *) as_dir=$as_dir/ ;;
3213 esac
3214 for ac_prog in mkdir gmkdir; do
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3217 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3218 'mkdir ('*'coreutils) '* | \
3219 *'BusyBox '* | \
3220 'mkdir (fileutils) '4.1*)
3221 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3222 break 3;;
3223 esac
3224 done
3225 done
3226 done
3227 IFS=$as_save_IFS
3228 ;;
3229 esac
3230 fi
3231
3232 test -d ./--version && rmdir ./--version
3233 if test ${ac_cv_path_mkdir+y}; then
3234 MKDIR_P="$ac_cv_path_mkdir -p"
3235 else
3236 # As a last resort, use plain mkdir -p,
3237 # in the hope it doesn't have the bugs of ancient mkdir.
3238 MKDIR_P='mkdir -p'
3239 fi
3240 fi
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3242 printf "%s\n" "$MKDIR_P" >&6; }
3243
3244 for ac_prog in gawk mawk nawk awk
3245 do
3246 # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 set dummy $ac_prog; ac_word=$2
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 printf %s "checking for $ac_word... " >&6; }
3250 if test ${ac_cv_prog_AWK+y}
3251 then :
3252 printf %s "(cached) " >&6
3253 else case e in #(
3254 e) if test -n "$AWK"; then
3255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260 IFS=$as_save_IFS
3261 case $as_dir in #(((
3262 '') as_dir=./ ;;
3263 */) ;;
3264 *) as_dir=$as_dir/ ;;
3265 esac
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_AWK="$ac_prog"
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi ;;
3277 esac
3278 fi
3279 AWK=$ac_cv_prog_AWK
3280 if test -n "$AWK"; then
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3282 printf "%s\n" "$AWK" >&6; }
3283 else
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 printf "%s\n" "no" >&6; }
3286 fi
3287
3288
3289 test -n "$AWK" && break
3290 done
3291
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3293 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3294 set x ${MAKE-make}
3295 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3296 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3297 then :
3298 printf %s "(cached) " >&6
3299 else case e in #(
3300 e) cat >conftest.make <<\_ACEOF
3301 SHELL = /bin/sh
3302 all:
3303 @echo '@@@%%%=$(MAKE)=@@@%%%'
3304 _ACEOF
3305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3307 *@@@%%%=?*=@@@%%%*)
3308 eval ac_cv_prog_make_${ac_make}_set=yes;;
3309 *)
3310 eval ac_cv_prog_make_${ac_make}_set=no;;
3311 esac
3312 rm -f conftest.make ;;
3313 esac
3314 fi
3315 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 printf "%s\n" "yes" >&6; }
3318 SET_MAKE=
3319 else
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 printf "%s\n" "no" >&6; }
3322 SET_MAKE="MAKE=${MAKE-make}"
3323 fi
3324
3325 rm -rf .tst 2>/dev/null
3326 mkdir .tst 2>/dev/null
3327 if test -d .tst; then
3328 am__leading_dot=.
3329 else
3330 am__leading_dot=_
3331 fi
3332 rmdir .tst 2>/dev/null
3333
3334 AM_DEFAULT_VERBOSITY=1
3335 # Check whether --enable-silent-rules was given.
3336 if test ${enable_silent_rules+y}
3337 then :
3338 enableval=$enable_silent_rules;
3339 fi
3340
3341 am_make=${MAKE-make}
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3343 printf %s "checking whether $am_make supports nested variables... " >&6; }
3344 if test ${am_cv_make_support_nested_variables+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else case e in #(
3348 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3349 BAR0=false
3350 BAR1=true
3351 V=1
3352 am__doit:
3353 @$(TRUE)
3354 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3355 am_cv_make_support_nested_variables=yes
3356 else
3357 am_cv_make_support_nested_variables=no
3358 fi ;;
3359 esac
3360 fi
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3362 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3363 AM_BACKSLASH='\'
3364
3365 am__rm_f_notfound=
3366 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3367 then :
3368
3369 else case e in #(
3370 e) am__rm_f_notfound='""' ;;
3371 esac
3372 fi
3373
3374
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3376 printf %s "checking xargs -n works... " >&6; }
3377 if test ${am_cv_xargs_n_works+y}
3378 then :
3379 printf %s "(cached) " >&6
3380 else case e in #(
3381 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3382 3"
3383 then :
3384 am_cv_xargs_n_works=yes
3385 else case e in #(
3386 e) am_cv_xargs_n_works=no ;;
3387 esac
3388 fi ;;
3389 esac
3390 fi
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3392 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3393 if test "$am_cv_xargs_n_works" = yes
3394 then :
3395 am__xargs_n='xargs -n'
3396 else case e in #(
3397 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3398 ;;
3399 esac
3400 fi
3401
3402 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3403 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3404 # is not polluted with repeated "-I."
3405 am__isrc=' -I$(srcdir)'
3406 # test to see if srcdir already configured
3407 if test -f $srcdir/config.status; then
3408 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3409 fi
3410 fi
3411
3412 # test whether we have cygpath
3413 if test -z "$CYGPATH_W"; then
3414 if (cygpath --version) >/dev/null 2>/dev/null; then
3415 CYGPATH_W='cygpath -w'
3416 else
3417 CYGPATH_W=echo
3418 fi
3419 fi
3420
3421
3422 # Define the identity of the package.
3423 PACKAGE='arping'
3424 VERSION='2.29'
3425
3426
3427 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3428
3429
3430 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3431
3432 # Some tools Automake needs.
3433
3434 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3435
3436
3437 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3438
3439
3440 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3441
3442
3443 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3444
3445
3446 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3447
3448 # For better backward compatibility. To be removed once Automake 1.9.x
3449 # dies out for good. For more background, see:
3450 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3451 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3452 mkdir_p='$(MKDIR_P)'
3453
3454 # We need awk for the "check" target (and possibly the TAP driver). The
3455 # system "awk" is bad on some platforms.
3456 # Always define AMTAR for backward compatibility. Yes, it's still used
3457 # in the wild :-( We should find a proper way to deprecate it ...
3458 AMTAR='$${TAR-tar}'
3459
3460
3461 # We'll loop over all known methods to create a tar archive until one works.
3462 _am_tools='gnutar pax cpio none'
3463
3464 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3465
3466
3467
3468
3469
3470 # Variables for tags utilities; see am/tags.am
3471 if test -z "$CTAGS"; then
3472 CTAGS=ctags
3473 fi
3474
3475 if test -z "$ETAGS"; then
3476 ETAGS=etags
3477 fi
3478
3479 if test -z "$CSCOPE"; then
3480 CSCOPE=cscope
3481 fi
3482
3483
3484
3485
3486
3487
3488
3489
3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3491 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3492 # Check whether --enable-maintainer-mode was given.
3493 if test ${enable_maintainer_mode+y}
3494 then :
3495 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3496 else case e in #(
3497 e) USE_MAINTAINER_MODE=no ;;
3498 esac
3499 fi
3500
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3502 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3503 if test $USE_MAINTAINER_MODE = yes; then
3504 MAINTAINER_MODE_TRUE=
3505 MAINTAINER_MODE_FALSE='#'
3506 else
3507 MAINTAINER_MODE_TRUE='#'
3508 MAINTAINER_MODE_FALSE=
3509 fi
3510
3511 MAINT=$MAINTAINER_MODE_TRUE
3512
3513
3514 ac_config_headers="$ac_config_headers config.h"
3515
3516
3517
3518 # Checks for programs.
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 if test -n "$ac_tool_prefix"; then
3534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3535 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 printf %s "checking for $ac_word... " >&6; }
3538 if test ${ac_cv_prog_CC+y}
3539 then :
3540 printf %s "(cached) " >&6
3541 else case e in #(
3542 e) if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 case $as_dir in #(((
3550 '') as_dir=./ ;;
3551 */) ;;
3552 *) as_dir=$as_dir/ ;;
3553 esac
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi ;;
3565 esac
3566 fi
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 printf "%s\n" "$CC" >&6; }
3571 else
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 printf "%s\n" "no" >&6; }
3574 fi
3575
3576
3577 fi
3578 if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581 set dummy gcc; ac_word=$2
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 printf %s "checking for $ac_word... " >&6; }
3584 if test ${ac_cv_prog_ac_ct_CC+y}
3585 then :
3586 printf %s "(cached) " >&6
3587 else case e in #(
3588 e) if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 case $as_dir in #(((
3596 '') as_dir=./ ;;
3597 */) ;;
3598 *) as_dir=$as_dir/ ;;
3599 esac
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_ac_ct_CC="gcc"
3603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi ;;
3611 esac
3612 fi
3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614 if test -n "$ac_ct_CC"; then
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3616 printf "%s\n" "$ac_ct_CC" >&6; }
3617 else
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 printf "%s\n" "no" >&6; }
3620 fi
3621
3622 if test "x$ac_ct_CC" = x; then
3623 CC=""
3624 else
3625 case $cross_compiling:$ac_tool_warned in
3626 yes:)
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3629 ac_tool_warned=yes ;;
3630 esac
3631 CC=$ac_ct_CC
3632 fi
3633 else
3634 CC="$ac_cv_prog_CC"
3635 fi
3636
3637 if test -z "$CC"; then
3638 if test -n "$ac_tool_prefix"; then
3639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3640 set dummy ${ac_tool_prefix}cc; ac_word=$2
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 printf %s "checking for $ac_word... " >&6; }
3643 if test ${ac_cv_prog_CC+y}
3644 then :
3645 printf %s "(cached) " >&6
3646 else case e in #(
3647 e) if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653 IFS=$as_save_IFS
3654 case $as_dir in #(((
3655 '') as_dir=./ ;;
3656 */) ;;
3657 *) as_dir=$as_dir/ ;;
3658 esac
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665 done
3666 done
3667 IFS=$as_save_IFS
3668
3669 fi ;;
3670 esac
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 printf "%s\n" "$CC" >&6; }
3676 else
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 printf "%s\n" "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 fi
3684 if test -z "$CC"; then
3685 # Extract the first word of "cc", so it can be a program name with args.
3686 set dummy cc; ac_word=$2
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 printf %s "checking for $ac_word... " >&6; }
3689 if test ${ac_cv_prog_CC+y}
3690 then :
3691 printf %s "(cached) " >&6
3692 else case e in #(
3693 e) if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 ac_prog_rejected=no
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 case $as_dir in #(((
3702 '') as_dir=./ ;;
3703 */) ;;
3704 *) as_dir=$as_dir/ ;;
3705 esac
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3708 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3709 ac_prog_rejected=yes
3710 continue
3711 fi
3712 ac_cv_prog_CC="cc"
3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 if test $ac_prog_rejected = yes; then
3721 # We found a bogon in the path, so make sure we never use it.
3722 set dummy $ac_cv_prog_CC
3723 shift
3724 if test $# != 0; then
3725 # We chose a different compiler from the bogus one.
3726 # However, it has the same basename, so the bogon will be chosen
3727 # first if we set CC to just the basename; use the full file name.
3728 shift
3729 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3730 fi
3731 fi
3732 fi ;;
3733 esac
3734 fi
3735 CC=$ac_cv_prog_CC
3736 if test -n "$CC"; then
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3738 printf "%s\n" "$CC" >&6; }
3739 else
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 printf "%s\n" "no" >&6; }
3742 fi
3743
3744
3745 fi
3746 if test -z "$CC"; then
3747 if test -n "$ac_tool_prefix"; then
3748 for ac_prog in cl.exe
3749 do
3750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 printf %s "checking for $ac_word... " >&6; }
3754 if test ${ac_cv_prog_CC+y}
3755 then :
3756 printf %s "(cached) " >&6
3757 else case e in #(
3758 e) if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 case $as_dir in #(((
3766 '') as_dir=./ ;;
3767 */) ;;
3768 *) as_dir=$as_dir/ ;;
3769 esac
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi ;;
3781 esac
3782 fi
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 printf "%s\n" "$CC" >&6; }
3787 else
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 printf "%s\n" "no" >&6; }
3790 fi
3791
3792
3793 test -n "$CC" && break
3794 done
3795 fi
3796 if test -z "$CC"; then
3797 ac_ct_CC=$CC
3798 for ac_prog in cl.exe
3799 do
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_ac_ct_CC+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else case e in #(
3808 e) if test -n "$ac_ct_CC"; then
3809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814 IFS=$as_save_IFS
3815 case $as_dir in #(((
3816 '') as_dir=./ ;;
3817 */) ;;
3818 *) as_dir=$as_dir/ ;;
3819 esac
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_CC="$ac_prog"
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826 done
3827 done
3828 IFS=$as_save_IFS
3829
3830 fi ;;
3831 esac
3832 fi
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 printf "%s\n" "$ac_ct_CC" >&6; }
3837 else
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3840 fi
3841
3842
3843 test -n "$ac_ct_CC" && break
3844 done
3845
3846 if test "x$ac_ct_CC" = x; then
3847 CC=""
3848 else
3849 case $cross_compiling:$ac_tool_warned in
3850 yes:)
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3854 esac
3855 CC=$ac_ct_CC
3856 fi
3857 fi
3858
3859 fi
3860 if test -z "$CC"; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}clang; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_prog_CC+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else case e in #(
3870 e) if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 case $as_dir in #(((
3878 '') as_dir=./ ;;
3879 */) ;;
3880 *) as_dir=$as_dir/ ;;
3881 esac
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_CC="${ac_tool_prefix}clang"
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi ;;
3893 esac
3894 fi
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 printf "%s\n" "$CC" >&6; }
3899 else
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 printf "%s\n" "no" >&6; }
3902 fi
3903
3904
3905 fi
3906 if test -z "$ac_cv_prog_CC"; then
3907 ac_ct_CC=$CC
3908 # Extract the first word of "clang", so it can be a program name with args.
3909 set dummy clang; ac_word=$2
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 printf %s "checking for $ac_word... " >&6; }
3912 if test ${ac_cv_prog_ac_ct_CC+y}
3913 then :
3914 printf %s "(cached) " >&6
3915 else case e in #(
3916 e) if test -n "$ac_ct_CC"; then
3917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922 IFS=$as_save_IFS
3923 case $as_dir in #(((
3924 '') as_dir=./ ;;
3925 */) ;;
3926 *) as_dir=$as_dir/ ;;
3927 esac
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_ac_ct_CC="clang"
3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934 done
3935 done
3936 IFS=$as_save_IFS
3937
3938 fi ;;
3939 esac
3940 fi
3941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 printf "%s\n" "$ac_ct_CC" >&6; }
3945 else
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 printf "%s\n" "no" >&6; }
3948 fi
3949
3950 if test "x$ac_ct_CC" = x; then
3951 CC=""
3952 else
3953 case $cross_compiling:$ac_tool_warned in
3954 yes:)
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959 CC=$ac_ct_CC
3960 fi
3961 else
3962 CC="$ac_cv_prog_CC"
3963 fi
3964
3965 fi
3966
3967
3968 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3969 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3970 as_fn_error $? "no acceptable C compiler found in \$PATH
3971 See 'config.log' for more details" "$LINENO" 5; }
3972
3973 # Provide some information about the compiler.
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3975 set X $ac_compile
3976 ac_compiler=$2
3977 for ac_option in --version -v -V -qversion -version; do
3978 { { ac_try="$ac_compiler $ac_option >&5"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 printf "%s\n" "$ac_try_echo"; } >&5
3985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3986 ac_status=$?
3987 if test -s conftest.err; then
3988 sed '10a\
3989 ... rest of stderr output deleted ...
3990 10q' conftest.err >conftest.er1
3991 cat conftest.er1 >&5
3992 fi
3993 rm -f conftest.er1 conftest.err
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996 done
3997
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000
4001 int
4002 main (void)
4003 {
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 ac_clean_files_save=$ac_clean_files
4010 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4011 # Try to create an executable without -o first, disregard a.out.
4012 # It will help us diagnose broken compilers, and finding out an intuition
4013 # of exeext.
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4015 printf %s "checking whether the C compiler works... " >&6; }
4016 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4017
4018 # The possible output files:
4019 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4020
4021 ac_rmfiles=
4022 for ac_file in $ac_files
4023 do
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4027 esac
4028 done
4029 rm -f $ac_rmfiles
4030
4031 if { { ac_try="$ac_link_default"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 printf "%s\n" "$ac_try_echo"; } >&5
4038 (eval "$ac_link_default") 2>&5
4039 ac_status=$?
4040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4042 then :
4043 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4044 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4046 # so that the user can short-circuit this test for compilers unknown to
4047 # Autoconf.
4048 for ac_file in $ac_files ''
4049 do
4050 test -f "$ac_file" || continue
4051 case $ac_file in
4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4053 ;;
4054 [ab].out )
4055 # We found the default executable, but exeext='' is most
4056 # certainly right.
4057 break;;
4058 *.* )
4059 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4060 then :; else
4061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062 fi
4063 # We set ac_cv_exeext here because the later test for it is not
4064 # safe: cross compilers may not add the suffix if given an '-o'
4065 # argument, so we may need to know it at that point already.
4066 # Even if this section looks crufty: it has the advantage of
4067 # actually working.
4068 break;;
4069 * )
4070 break;;
4071 esac
4072 done
4073 test "$ac_cv_exeext" = no && ac_cv_exeext=
4074
4075 else case e in #(
4076 e) ac_file='' ;;
4077 esac
4078 fi
4079 if test -z "$ac_file"
4080 then :
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 printf "%s\n" "no" >&6; }
4083 printf "%s\n" "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4087 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4088 as_fn_error 77 "C compiler cannot create executables
4089 See 'config.log' for more details" "$LINENO" 5; }
4090 else case e in #(
4091 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 printf "%s\n" "yes" >&6; } ;;
4093 esac
4094 fi
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4096 printf %s "checking for C compiler default output file name... " >&6; }
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4098 printf "%s\n" "$ac_file" >&6; }
4099 ac_exeext=$ac_cv_exeext
4100
4101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4102 ac_clean_files=$ac_clean_files_save
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4104 printf %s "checking for suffix of executables... " >&6; }
4105 if { { ac_try="$ac_link"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4111 printf "%s\n" "$ac_try_echo"; } >&5
4112 (eval "$ac_link") 2>&5
4113 ac_status=$?
4114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4116 then :
4117 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4118 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4119 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4120 # 'rm'.
4121 for ac_file in conftest.exe conftest conftest.*; do
4122 test -f "$ac_file" || continue
4123 case $ac_file in
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 break;;
4127 * ) break;;
4128 esac
4129 done
4130 else case e in #(
4131 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4132 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4133 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4134 See 'config.log' for more details" "$LINENO" 5; } ;;
4135 esac
4136 fi
4137 rm -f conftest conftest$ac_cv_exeext
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4139 printf "%s\n" "$ac_cv_exeext" >&6; }
4140
4141 rm -f conftest.$ac_ext
4142 EXEEXT=$ac_cv_exeext
4143 ac_exeext=$EXEEXT
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #include <stdio.h>
4147 int
4148 main (void)
4149 {
4150 FILE *f = fopen ("conftest.out", "w");
4151 if (!f)
4152 return 1;
4153 return ferror (f) || fclose (f) != 0;
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 ac_clean_files="$ac_clean_files conftest.out"
4160 # Check that the compiler produces executables we can run. If not, either
4161 # the compiler is broken, or we cross compile.
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4163 printf %s "checking whether we are cross compiling... " >&6; }
4164 if test "$cross_compiling" != yes; then
4165 { { ac_try="$ac_link"
4166 case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169 esac
4170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171 printf "%s\n" "$ac_try_echo"; } >&5
4172 (eval "$ac_link") 2>&5
4173 ac_status=$?
4174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175 test $ac_status = 0; }
4176 if { ac_try='./conftest$ac_cv_exeext'
4177 { { case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 printf "%s\n" "$ac_try_echo"; } >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }; }; then
4187 cross_compiling=no
4188 else
4189 if test "$cross_compiling" = maybe; then
4190 cross_compiling=yes
4191 else
4192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4193 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4194 as_fn_error 77 "cannot run C compiled programs.
4195 If you meant to cross compile, use '--host'.
4196 See 'config.log' for more details" "$LINENO" 5; }
4197 fi
4198 fi
4199 fi
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4201 printf "%s\n" "$cross_compiling" >&6; }
4202
4203 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4204 conftest.o conftest.obj conftest.out
4205 ac_clean_files=$ac_clean_files_save
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4207 printf %s "checking for suffix of object files... " >&6; }
4208 if test ${ac_cv_objext+y}
4209 then :
4210 printf %s "(cached) " >&6
4211 else case e in #(
4212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214
4215 int
4216 main (void)
4217 {
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.o conftest.obj
4224 if { { ac_try="$ac_compile"
4225 case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228 esac
4229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230 printf "%s\n" "$ac_try_echo"; } >&5
4231 (eval "$ac_compile") 2>&5
4232 ac_status=$?
4233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; }
4235 then :
4236 for ac_file in conftest.o conftest.obj conftest.*; do
4237 test -f "$ac_file" || continue;
4238 case $ac_file in
4239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4240 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4241 break;;
4242 esac
4243 done
4244 else case e in #(
4245 e) printf "%s\n" "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4249 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4250 as_fn_error $? "cannot compute suffix of object files: cannot compile
4251 See 'config.log' for more details" "$LINENO" 5; } ;;
4252 esac
4253 fi
4254 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4255 esac
4256 fi
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4258 printf "%s\n" "$ac_cv_objext" >&6; }
4259 OBJEXT=$ac_cv_objext
4260 ac_objext=$OBJEXT
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4262 printf %s "checking whether the compiler supports GNU C... " >&6; }
4263 if test ${ac_cv_c_compiler_gnu+y}
4264 then :
4265 printf %s "(cached) " >&6
4266 else case e in #(
4267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269
4270 int
4271 main (void)
4272 {
4273 #ifndef __GNUC__
4274 choke me
4275 #endif
4276
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_c_try_compile "$LINENO"
4282 then :
4283 ac_compiler_gnu=yes
4284 else case e in #(
4285 e) ac_compiler_gnu=no ;;
4286 esac
4287 fi
4288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4290 ;;
4291 esac
4292 fi
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4294 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
4297 if test $ac_compiler_gnu = yes; then
4298 GCC=yes
4299 else
4300 GCC=
4301 fi
4302 ac_test_CFLAGS=${CFLAGS+y}
4303 ac_save_CFLAGS=$CFLAGS
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4305 printf %s "checking whether $CC accepts -g... " >&6; }
4306 if test ${ac_cv_prog_cc_g+y}
4307 then :
4308 printf %s "(cached) " >&6
4309 else case e in #(
4310 e) ac_save_c_werror_flag=$ac_c_werror_flag
4311 ac_c_werror_flag=yes
4312 ac_cv_prog_cc_g=no
4313 CFLAGS="-g"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main (void)
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"
4326 then :
4327 ac_cv_prog_cc_g=yes
4328 else case e in #(
4329 e) CFLAGS=""
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332
4333 int
4334 main (void)
4335 {
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"
4342 then :
4343
4344 else case e in #(
4345 e) ac_c_werror_flag=$ac_save_c_werror_flag
4346 CFLAGS="-g"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349
4350 int
4351 main (void)
4352 {
4353
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"
4359 then :
4360 ac_cv_prog_cc_g=yes
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4363 esac
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4366 esac
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4369 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4370 esac
4371 fi
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4373 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4374 if test $ac_test_CFLAGS; then
4375 CFLAGS=$ac_save_CFLAGS
4376 elif test $ac_cv_prog_cc_g = yes; then
4377 if test "$GCC" = yes; then
4378 CFLAGS="-g -O2"
4379 else
4380 CFLAGS="-g"
4381 fi
4382 else
4383 if test "$GCC" = yes; then
4384 CFLAGS="-O2"
4385 else
4386 CFLAGS=
4387 fi
4388 fi
4389 ac_prog_cc_stdc=no
4390 if test x$ac_prog_cc_stdc = xno
4391 then :
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4393 printf %s "checking for $CC option to enable C11 features... " >&6; }
4394 if test ${ac_cv_prog_cc_c11+y}
4395 then :
4396 printf %s "(cached) " >&6
4397 else case e in #(
4398 e) ac_cv_prog_cc_c11=no
4399 ac_save_CC=$CC
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 $ac_c_conftest_c11_program
4403 _ACEOF
4404 for ac_arg in '' -std=gnu11
4405 do
4406 CC="$ac_save_CC $ac_arg"
4407 if ac_fn_c_try_compile "$LINENO"
4408 then :
4409 ac_cv_prog_cc_c11=$ac_arg
4410 fi
4411 rm -f core conftest.err conftest.$ac_objext conftest.beam
4412 test "x$ac_cv_prog_cc_c11" != "xno" && break
4413 done
4414 rm -f conftest.$ac_ext
4415 CC=$ac_save_CC ;;
4416 esac
4417 fi
4418
4419 if test "x$ac_cv_prog_cc_c11" = xno
4420 then :
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4422 printf "%s\n" "unsupported" >&6; }
4423 else case e in #(
4424 e) if test "x$ac_cv_prog_cc_c11" = x
4425 then :
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4427 printf "%s\n" "none needed" >&6; }
4428 else case e in #(
4429 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4430 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4431 CC="$CC $ac_cv_prog_cc_c11" ;;
4432 esac
4433 fi
4434 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4435 ac_prog_cc_stdc=c11 ;;
4436 esac
4437 fi
4438 fi
4439 if test x$ac_prog_cc_stdc = xno
4440 then :
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4442 printf %s "checking for $CC option to enable C99 features... " >&6; }
4443 if test ${ac_cv_prog_cc_c99+y}
4444 then :
4445 printf %s "(cached) " >&6
4446 else case e in #(
4447 e) ac_cv_prog_cc_c99=no
4448 ac_save_CC=$CC
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 $ac_c_conftest_c99_program
4452 _ACEOF
4453 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4454 do
4455 CC="$ac_save_CC $ac_arg"
4456 if ac_fn_c_try_compile "$LINENO"
4457 then :
4458 ac_cv_prog_cc_c99=$ac_arg
4459 fi
4460 rm -f core conftest.err conftest.$ac_objext conftest.beam
4461 test "x$ac_cv_prog_cc_c99" != "xno" && break
4462 done
4463 rm -f conftest.$ac_ext
4464 CC=$ac_save_CC ;;
4465 esac
4466 fi
4467
4468 if test "x$ac_cv_prog_cc_c99" = xno
4469 then :
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4471 printf "%s\n" "unsupported" >&6; }
4472 else case e in #(
4473 e) if test "x$ac_cv_prog_cc_c99" = x
4474 then :
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4476 printf "%s\n" "none needed" >&6; }
4477 else case e in #(
4478 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4479 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4480 CC="$CC $ac_cv_prog_cc_c99" ;;
4481 esac
4482 fi
4483 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4484 ac_prog_cc_stdc=c99 ;;
4485 esac
4486 fi
4487 fi
4488 if test x$ac_prog_cc_stdc = xno
4489 then :
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4491 printf %s "checking for $CC option to enable C89 features... " >&6; }
4492 if test ${ac_cv_prog_cc_c89+y}
4493 then :
4494 printf %s "(cached) " >&6
4495 else case e in #(
4496 e) ac_cv_prog_cc_c89=no
4497 ac_save_CC=$CC
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 $ac_c_conftest_c89_program
4501 _ACEOF
4502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4503 do
4504 CC="$ac_save_CC $ac_arg"
4505 if ac_fn_c_try_compile "$LINENO"
4506 then :
4507 ac_cv_prog_cc_c89=$ac_arg
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam
4510 test "x$ac_cv_prog_cc_c89" != "xno" && break
4511 done
4512 rm -f conftest.$ac_ext
4513 CC=$ac_save_CC ;;
4514 esac
4515 fi
4516
4517 if test "x$ac_cv_prog_cc_c89" = xno
4518 then :
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4520 printf "%s\n" "unsupported" >&6; }
4521 else case e in #(
4522 e) if test "x$ac_cv_prog_cc_c89" = x
4523 then :
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4525 printf "%s\n" "none needed" >&6; }
4526 else case e in #(
4527 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4528 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4529 CC="$CC $ac_cv_prog_cc_c89" ;;
4530 esac
4531 fi
4532 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4533 ac_prog_cc_stdc=c89 ;;
4534 esac
4535 fi
4536 fi
4537
4538 ac_ext=c
4539 ac_cpp='$CPP $CPPFLAGS'
4540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543
4544
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4551 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4552 if test ${am_cv_prog_cc_c_o+y}
4553 then :
4554 printf %s "(cached) " >&6
4555 else case e in #(
4556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558
4559 int
4560 main (void)
4561 {
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 # Make sure it works both with $CC and with simple cc.
4568 # Following AC_PROG_CC_C_O, we do the test twice because some
4569 # compilers refuse to overwrite an existing .o file with -o,
4570 # though they will create one.
4571 am_cv_prog_cc_c_o=yes
4572 for am_i in 1 2; do
4573 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4574 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } \
4578 && test -f conftest2.$ac_objext; then
4579 : OK
4580 else
4581 am_cv_prog_cc_c_o=no
4582 break
4583 fi
4584 done
4585 rm -f core conftest*
4586 unset am_i ;;
4587 esac
4588 fi
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4590 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4591 if test "$am_cv_prog_cc_c_o" != yes; then
4592 # Losing compiler, so override with the script.
4593 # FIXME: It is wrong to rewrite CC.
4594 # But if we don't then we get into trouble of one sort or another.
4595 # A longer-term fix would be to have automake use am__CC in this case,
4596 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4597 CC="$am_aux_dir/compile $CC"
4598 fi
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605 DEPDIR="${am__leading_dot}deps"
4606
4607 ac_config_commands="$ac_config_commands depfiles"
4608
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4610 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4611 cat > confinc.mk << 'END'
4612 am__doit:
4613 @echo this is the am__doit target >confinc.out
4614 .PHONY: am__doit
4615 END
4616 am__include="#"
4617 am__quote=
4618 # BSD make does it like this.
4619 echo '.include "confinc.mk" # ignored' > confmf.BSD
4620 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4621 echo 'include confinc.mk # ignored' > confmf.GNU
4622 _am_result=no
4623 for s in GNU BSD; do
4624 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4625 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }
4629 case $?:`cat confinc.out 2>/dev/null` in #(
4630 '0:this is the am__doit target') :
4631 case $s in #(
4632 BSD) :
4633 am__include='.include' am__quote='"' ;; #(
4634 *) :
4635 am__include='include' am__quote='' ;;
4636 esac ;; #(
4637 *) :
4638 ;;
4639 esac
4640 if test "$am__include" != "#"; then
4641 _am_result="yes ($s style)"
4642 break
4643 fi
4644 done
4645 rm -f confinc.* confmf.*
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4647 printf "%s\n" "${_am_result}" >&6; }
4648
4649 # Check whether --enable-dependency-tracking was given.
4650 if test ${enable_dependency_tracking+y}
4651 then :
4652 enableval=$enable_dependency_tracking;
4653 fi
4654
4655 if test "x$enable_dependency_tracking" != xno; then
4656 am_depcomp="$ac_aux_dir/depcomp"
4657 AMDEPBACKSLASH='\'
4658 am__nodep='_no'
4659 fi
4660 if test "x$enable_dependency_tracking" != xno; then
4661 AMDEP_TRUE=
4662 AMDEP_FALSE='#'
4663 else
4664 AMDEP_TRUE='#'
4665 AMDEP_FALSE=
4666 fi
4667
4668
4669
4670 depcc="$CC" am_compiler_list=
4671
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4673 printf %s "checking dependency style of $depcc... " >&6; }
4674 if test ${am_cv_CC_dependencies_compiler_type+y}
4675 then :
4676 printf %s "(cached) " >&6
4677 else case e in #(
4678 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4679 # We make a subdir and do the tests there. Otherwise we can end up
4680 # making bogus files that we don't know about and never remove. For
4681 # instance it was reported that on HP-UX the gcc test will end up
4682 # making a dummy file named 'D' -- because '-MD' means "put the output
4683 # in D".
4684 rm -rf conftest.dir
4685 mkdir conftest.dir
4686 # Copy depcomp to subdir because otherwise we won't find it if we're
4687 # using a relative directory.
4688 cp "$am_depcomp" conftest.dir
4689 cd conftest.dir
4690 # We will build objects and dependencies in a subdirectory because
4691 # it helps to detect inapplicable dependency modes. For instance
4692 # both Tru64's cc and ICC support -MD to output dependencies as a
4693 # side effect of compilation, but ICC will put the dependencies in
4694 # the current directory while Tru64 will put them in the object
4695 # directory.
4696 mkdir sub
4697
4698 am_cv_CC_dependencies_compiler_type=none
4699 if test "$am_compiler_list" = ""; then
4700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4701 fi
4702 am__universal=false
4703 case " $depcc " in #(
4704 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4705 esac
4706
4707 for depmode in $am_compiler_list; do
4708 # Setup a source with many dependencies, because some compilers
4709 # like to wrap large dependency lists on column 80 (with \), and
4710 # we should not choose a depcomp mode which is confused by this.
4711 #
4712 # We need to recreate these files for each test, as the compiler may
4713 # overwrite some of them when testing with obscure command lines.
4714 # This happens at least with the AIX C compiler.
4715 : > sub/conftest.c
4716 for i in 1 2 3 4 5 6; do
4717 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4718 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4719 # Solaris 10 /bin/sh.
4720 echo '/* dummy */' > sub/conftst$i.h
4721 done
4722 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4723
4724 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4725 # mode. It turns out that the SunPro C++ compiler does not properly
4726 # handle '-M -o', and we need to detect this. Also, some Intel
4727 # versions had trouble with output in subdirs.
4728 am__obj=sub/conftest.${OBJEXT-o}
4729 am__minus_obj="-o $am__obj"
4730 case $depmode in
4731 gcc)
4732 # This depmode causes a compiler race in universal mode.
4733 test "$am__universal" = false || continue
4734 ;;
4735 nosideeffect)
4736 # After this tag, mechanisms are not by side-effect, so they'll
4737 # only be used when explicitly requested.
4738 if test "x$enable_dependency_tracking" = xyes; then
4739 continue
4740 else
4741 break
4742 fi
4743 ;;
4744 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4745 # This compiler won't grok '-c -o', but also, the minuso test has
4746 # not run yet. These depmodes are late enough in the game, and
4747 # so weak that their functioning should not be impacted.
4748 am__obj=conftest.${OBJEXT-o}
4749 am__minus_obj=
4750 ;;
4751 none) break ;;
4752 esac
4753 if depmode=$depmode \
4754 source=sub/conftest.c object=$am__obj \
4755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4756 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4757 >/dev/null 2>conftest.err &&
4758 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4760 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4762 # icc doesn't choke on unknown options, it will just issue warnings
4763 # or remarks (even with -Werror). So we grep stderr for any message
4764 # that says an option was ignored or not supported.
4765 # When given -MP, icc 7.0 and 7.1 complain thus:
4766 # icc: Command line warning: ignoring option '-M'; no argument required
4767 # The diagnosis changed in icc 8.0:
4768 # icc: Command line remark: option '-MP' not supported
4769 if (grep 'ignoring option' conftest.err ||
4770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4771 am_cv_CC_dependencies_compiler_type=$depmode
4772 break
4773 fi
4774 fi
4775 done
4776
4777 cd ..
4778 rm -rf conftest.dir
4779 else
4780 am_cv_CC_dependencies_compiler_type=none
4781 fi
4782 ;;
4783 esac
4784 fi
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4786 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4787 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4788
4789 if
4790 test "x$enable_dependency_tracking" != xno \
4791 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4792 am__fastdepCC_TRUE=
4793 am__fastdepCC_FALSE='#'
4794 else
4795 am__fastdepCC_TRUE='#'
4796 am__fastdepCC_FALSE=
4797 fi
4798
4799
4800
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4802 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4803 set x ${MAKE-make}
4804 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4805 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4806 then :
4807 printf %s "(cached) " >&6
4808 else case e in #(
4809 e) cat >conftest.make <<\_ACEOF
4810 SHELL = /bin/sh
4811 all:
4812 @echo '@@@%%%=$(MAKE)=@@@%%%'
4813 _ACEOF
4814 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4815 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4816 *@@@%%%=?*=@@@%%%*)
4817 eval ac_cv_prog_make_${ac_make}_set=yes;;
4818 *)
4819 eval ac_cv_prog_make_${ac_make}_set=no;;
4820 esac
4821 rm -f conftest.make ;;
4822 esac
4823 fi
4824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826 printf "%s\n" "yes" >&6; }
4827 SET_MAKE=
4828 else
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 printf "%s\n" "no" >&6; }
4831 SET_MAKE="MAKE=${MAKE-make}"
4832 fi
4833
4834
4835 # Required to define __USE_MISC, which in turn typedefs uint, which
4836 # is used by libnet headers.
4837 # This "just works" until running GCC with -std=c99, where uint is
4838 # no longer defined by default.
4839 CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE=1"
4840
4841
4842
4843
4844
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -std=c99" >&5
4846 printf %s "checking compiler option -std=c99... " >&6; }
4847 OLD_CFLAGS="$CFLAGS"
4848 CFLAGS="$CFLAGS -std=c99"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851
4852 int
4853 main (void)
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"
4861 then :
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863 printf "%s\n" "yes" >&6; }
4864 else case e in #(
4865 e)
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 printf "%s\n" "no" >&6; }
4868 CFLAGS="$OLD_CFLAGS"
4869 ;;
4870 esac
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4873
4874
4875 # Checks for header files.
4876 ac_header= ac_cache=
4877 for ac_item in $ac_header_c_list
4878 do
4879 if test $ac_cache; then
4880 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4881 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4882 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4883 fi
4884 ac_header= ac_cache=
4885 elif test $ac_header; then
4886 ac_cache=$ac_item
4887 else
4888 ac_header=$ac_item
4889 fi
4890 done
4891
4892
4893
4894
4895
4896
4897
4898
4899 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4900 then :
4901
4902 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4903
4904 fi
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4906 printf %s "checking for grep that handles long lines and -e... " >&6; }
4907 if test ${ac_cv_path_GREP+y}
4908 then :
4909 printf %s "(cached) " >&6
4910 else case e in #(
4911 e) if test -z "$GREP"; then
4912 ac_path_GREP_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4916 do
4917 IFS=$as_save_IFS
4918 case $as_dir in #(((
4919 '') as_dir=./ ;;
4920 */) ;;
4921 *) as_dir=$as_dir/ ;;
4922 esac
4923 for ac_prog in grep ggrep
4924 do
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4927 as_fn_executable_p "$ac_path_GREP" || continue
4928 # Check for GNU ac_path_GREP and select it if it is found.
4929 # Check for GNU $ac_path_GREP
4930 case `"$ac_path_GREP" --version 2>&1` in #(
4931 *GNU*)
4932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4933 #(
4934 *)
4935 ac_count=0
4936 printf %s 0123456789 >"conftest.in"
4937 while :
4938 do
4939 cat "conftest.in" "conftest.in" >"conftest.tmp"
4940 mv "conftest.tmp" "conftest.in"
4941 cp "conftest.in" "conftest.nl"
4942 printf "%s\n" 'GREP' >> "conftest.nl"
4943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4945 as_fn_arith $ac_count + 1 && ac_count=$as_val
4946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4947 # Best one so far, save it but keep looking for a better one
4948 ac_cv_path_GREP="$ac_path_GREP"
4949 ac_path_GREP_max=$ac_count
4950 fi
4951 # 10*(2^10) chars as input seems more than enough
4952 test $ac_count -gt 10 && break
4953 done
4954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4955 esac
4956
4957 $ac_path_GREP_found && break 3
4958 done
4959 done
4960 done
4961 IFS=$as_save_IFS
4962 if test -z "$ac_cv_path_GREP"; then
4963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4964 fi
4965 else
4966 ac_cv_path_GREP=$GREP
4967 fi
4968 ;;
4969 esac
4970 fi
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4972 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4973 GREP="$ac_cv_path_GREP"
4974
4975
4976 # Autoupdate added the next two lines to ensure that your configure
4977 # script's behavior did not change. They are probably safe to remove.
4978
4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4980 printf %s "checking for egrep... " >&6; }
4981 if test ${ac_cv_path_EGREP+y}
4982 then :
4983 printf %s "(cached) " >&6
4984 else case e in #(
4985 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4986 then ac_cv_path_EGREP="$GREP -E"
4987 else
4988 if test -z "$EGREP"; then
4989 ac_path_EGREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 do
4994 IFS=$as_save_IFS
4995 case $as_dir in #(((
4996 '') as_dir=./ ;;
4997 */) ;;
4998 *) as_dir=$as_dir/ ;;
4999 esac
5000 for ac_prog in egrep
5001 do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_EGREP" || continue
5005 # Check for GNU ac_path_EGREP and select it if it is found.
5006 # Check for GNU $ac_path_EGREP
5007 case `"$ac_path_EGREP" --version 2>&1` in #(
5008 *GNU*)
5009 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5010 #(
5011 *)
5012 ac_count=0
5013 printf %s 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 printf "%s\n" 'EGREP' >> "conftest.nl"
5020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_EGREP="$ac_path_EGREP"
5026 ac_path_EGREP_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_EGREP_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_EGREP"; then
5040 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_EGREP=$EGREP
5044 fi
5045
5046 fi ;;
5047 esac
5048 fi
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5050 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5051 EGREP="$ac_cv_path_EGREP"
5052
5053 EGREP_TRADITIONAL=$EGREP
5054 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5055
5056
5057 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
5058 if test "x$ac_cv_header_arpa_inet_h" = xyes
5059 then :
5060 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
5061
5062 fi
5063 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5064 if test "x$ac_cv_header_getopt_h" = xyes
5065 then :
5066 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
5067
5068 fi
5069 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5070 if test "x$ac_cv_header_netinet_in_h" = xyes
5071 then :
5072 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
5073
5074 fi
5075 ac_fn_c_check_header_compile "$LINENO" "seccomp.h" "ac_cv_header_seccomp_h" "$ac_includes_default"
5076 if test "x$ac_cv_header_seccomp_h" = xyes
5077 then :
5078 printf "%s\n" "#define HAVE_SECCOMP_H 1" >>confdefs.h
5079
5080 fi
5081 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5082 if test "x$ac_cv_header_stdlib_h" = xyes
5083 then :
5084 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5085
5086 fi
5087 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5088 if test "x$ac_cv_header_sys_socket_h" = xyes
5089 then :
5090 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
5091
5092 fi
5093 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
5094 if test "x$ac_cv_header_time_h" = xyes
5095 then :
5096 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
5097
5098 fi
5099 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
5100 if test "x$ac_cv_header_grp_h" = xyes
5101 then :
5102 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
5103
5104 fi
5105 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5106 if test "x$ac_cv_header_sys_time_h" = xyes
5107 then :
5108 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5109
5110 fi
5111 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5112 if test "x$ac_cv_header_sys_types_h" = xyes
5113 then :
5114 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
5115
5116 fi
5117 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5118 if test "x$ac_cv_header_sys_param_h" = xyes
5119 then :
5120 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5121
5122 fi
5123 ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5124 if test "x$ac_cv_header_sys_capability_h" = xyes
5125 then :
5126 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
5127
5128 fi
5129 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5130 if test "x$ac_cv_header_stdint_h" = xyes
5131 then :
5132 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
5133
5134 fi
5135 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5136 if test "x$ac_cv_header_stddef_h" = xyes
5137 then :
5138 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
5139
5140 fi
5141 ac_fn_c_check_header_compile "$LINENO" "libnet.h" "ac_cv_header_libnet_h" "$ac_includes_default"
5142 if test "x$ac_cv_header_libnet_h" = xyes
5143 then :
5144 printf "%s\n" "#define HAVE_LIBNET_H 1" >>confdefs.h
5145
5146 fi
5147 ac_fn_c_check_header_compile "$LINENO" "win32/libnet.h" "ac_cv_header_win32_libnet_h" "$ac_includes_default"
5148 if test "x$ac_cv_header_win32_libnet_h" = xyes
5149 then :
5150 printf "%s\n" "#define HAVE_WIN32_LIBNET_H 1" >>confdefs.h
5151
5152 fi
5153 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
5154 if test "x$ac_cv_header_sys_random_h" = xyes
5155 then :
5156 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
5157
5158 fi
5159 ac_fn_c_check_header_compile "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5160 if test "x$ac_cv_header_net_bpf_h" = xyes
5161 then :
5162 printf "%s\n" "#define HAVE_NET_BPF_H 1" >>confdefs.h
5163
5164 fi
5165 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
5166 if test "x$ac_cv_header_pwd_h" = xyes
5167 then :
5168 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
5169
5170 fi
5171 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5172 if test "x$ac_cv_header_unistd_h" = xyes
5173 then :
5174 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5175
5176 fi
5177 ac_fn_c_check_header_compile "$LINENO" "linux/landlock.h" "ac_cv_header_linux_landlock_h" "$ac_includes_default"
5178 if test "x$ac_cv_header_linux_landlock_h" = xyes
5179 then :
5180 printf "%s\n" "#define HAVE_LINUX_LANDLOCK_H 1" >>confdefs.h
5181
5182 fi
5183 ac_fn_c_check_header_compile "$LINENO" "linux/prctl.h" "ac_cv_header_linux_prctl_h" "$ac_includes_default"
5184 if test "x$ac_cv_header_linux_prctl_h" = xyes
5185 then :
5186 printf "%s\n" "#define HAVE_LINUX_PRCTL_H 1" >>confdefs.h
5187
5188 fi
5189 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
5190 if test "x$ac_cv_header_sys_prctl_h" = xyes
5191 then :
5192 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
5193
5194 fi
5195 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
5196 if test "x$ac_cv_header_sys_syscall_h" = xyes
5197 then :
5198 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
5199
5200 fi
5201
5202
5203 # Checks for libraries.
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
5205 printf %s "checking for sqrt in -lm... " >&6; }
5206 if test ${ac_cv_lib_m_sqrt+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else case e in #(
5210 e) ac_check_lib_save_LIBS=$LIBS
5211 LIBS="-lm $LIBS"
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214
5215 /* Override any GCC internal prototype to avoid an error.
5216 Use char because int might match the return type of a GCC
5217 builtin and then its argument prototype would still apply.
5218 The 'extern "C"' is for builds by C++ compilers;
5219 although this is not generally supported in C code supporting it here
5220 has little cost and some practical benefit (sr 110532). */
5221 #ifdef __cplusplus
5222 extern "C"
5223 #endif
5224 char sqrt (void);
5225 int
5226 main (void)
5227 {
5228 return sqrt ();
5229 ;
5230 return 0;
5231 }
5232 _ACEOF
5233 if ac_fn_c_try_link "$LINENO"
5234 then :
5235 ac_cv_lib_m_sqrt=yes
5236 else case e in #(
5237 e) ac_cv_lib_m_sqrt=no ;;
5238 esac
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5241 conftest$ac_exeext conftest.$ac_ext
5242 LIBS=$ac_check_lib_save_LIBS ;;
5243 esac
5244 fi
5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
5246 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
5247 if test "x$ac_cv_lib_m_sqrt" = xyes
5248 then :
5249 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
5250
5251 LIBS="-lm $LIBS"
5252
5253 fi
5254
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5256 printf %s "checking for socket in -lsocket... " >&6; }
5257 if test ${ac_cv_lib_socket_socket+y}
5258 then :
5259 printf %s "(cached) " >&6
5260 else case e in #(
5261 e) ac_check_lib_save_LIBS=$LIBS
5262 LIBS="-lsocket $LIBS"
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265
5266 /* Override any GCC internal prototype to avoid an error.
5267 Use char because int might match the return type of a GCC
5268 builtin and then its argument prototype would still apply.
5269 The 'extern "C"' is for builds by C++ compilers;
5270 although this is not generally supported in C code supporting it here
5271 has little cost and some practical benefit (sr 110532). */
5272 #ifdef __cplusplus
5273 extern "C"
5274 #endif
5275 char socket (void);
5276 int
5277 main (void)
5278 {
5279 return socket ();
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_link "$LINENO"
5285 then :
5286 ac_cv_lib_socket_socket=yes
5287 else case e in #(
5288 e) ac_cv_lib_socket_socket=no ;;
5289 esac
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS ;;
5294 esac
5295 fi
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5297 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
5298 if test "x$ac_cv_lib_socket_socket" = xyes
5299 then :
5300 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
5301
5302 LIBS="-lsocket $LIBS"
5303
5304 fi
5305
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5307 printf %s "checking for gethostbyname in -lnsl... " >&6; }
5308 if test ${ac_cv_lib_nsl_gethostbyname+y}
5309 then :
5310 printf %s "(cached) " >&6
5311 else case e in #(
5312 e) ac_check_lib_save_LIBS=$LIBS
5313 LIBS="-lnsl $LIBS"
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316
5317 /* Override any GCC internal prototype to avoid an error.
5318 Use char because int might match the return type of a GCC
5319 builtin and then its argument prototype would still apply.
5320 The 'extern "C"' is for builds by C++ compilers;
5321 although this is not generally supported in C code supporting it here
5322 has little cost and some practical benefit (sr 110532). */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 char gethostbyname (void);
5327 int
5328 main (void)
5329 {
5330 return gethostbyname ();
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 if ac_fn_c_try_link "$LINENO"
5336 then :
5337 ac_cv_lib_nsl_gethostbyname=yes
5338 else case e in #(
5339 e) ac_cv_lib_nsl_gethostbyname=no ;;
5340 esac
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5343 conftest$ac_exeext conftest.$ac_ext
5344 LIBS=$ac_check_lib_save_LIBS ;;
5345 esac
5346 fi
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5348 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
5349 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
5350 then :
5351 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
5352
5353 LIBS="-lnsl $LIBS"
5354
5355 fi
5356
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
5358 printf %s "checking for cap_init in -lcap... " >&6; }
5359 if test ${ac_cv_lib_cap_cap_init+y}
5360 then :
5361 printf %s "(cached) " >&6
5362 else case e in #(
5363 e) ac_check_lib_save_LIBS=$LIBS
5364 LIBS="-lcap $LIBS"
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367
5368 /* Override any GCC internal prototype to avoid an error.
5369 Use char because int might match the return type of a GCC
5370 builtin and then its argument prototype would still apply.
5371 The 'extern "C"' is for builds by C++ compilers;
5372 although this is not generally supported in C code supporting it here
5373 has little cost and some practical benefit (sr 110532). */
5374 #ifdef __cplusplus
5375 extern "C"
5376 #endif
5377 char cap_init (void);
5378 int
5379 main (void)
5380 {
5381 return cap_init ();
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_link "$LINENO"
5387 then :
5388 ac_cv_lib_cap_cap_init=yes
5389 else case e in #(
5390 e) ac_cv_lib_cap_cap_init=no ;;
5391 esac
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5394 conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS ;;
5396 esac
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
5399 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
5400 if test "x$ac_cv_lib_cap_cap_init" = xyes
5401 then :
5402 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
5403
5404 LIBS="-lcap $LIBS"
5405
5406 fi
5407
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
5409 printf %s "checking for seccomp_init in -lseccomp... " >&6; }
5410 if test ${ac_cv_lib_seccomp_seccomp_init+y}
5411 then :
5412 printf %s "(cached) " >&6
5413 else case e in #(
5414 e) ac_check_lib_save_LIBS=$LIBS
5415 LIBS="-lseccomp $LIBS"
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418
5419 /* Override any GCC internal prototype to avoid an error.
5420 Use char because int might match the return type of a GCC
5421 builtin and then its argument prototype would still apply.
5422 The 'extern "C"' is for builds by C++ compilers;
5423 although this is not generally supported in C code supporting it here
5424 has little cost and some practical benefit (sr 110532). */
5425 #ifdef __cplusplus
5426 extern "C"
5427 #endif
5428 char seccomp_init (void);
5429 int
5430 main (void)
5431 {
5432 return seccomp_init ();
5433 ;
5434 return 0;
5435 }
5436 _ACEOF
5437 if ac_fn_c_try_link "$LINENO"
5438 then :
5439 ac_cv_lib_seccomp_seccomp_init=yes
5440 else case e in #(
5441 e) ac_cv_lib_seccomp_seccomp_init=no ;;
5442 esac
5443 fi
5444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5445 conftest$ac_exeext conftest.$ac_ext
5446 LIBS=$ac_check_lib_save_LIBS ;;
5447 esac
5448 fi
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
5450 printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
5451 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
5452 then :
5453 printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
5454
5455 LIBS="-lseccomp $LIBS"
5456
5457 fi
5458
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5460 printf %s "checking for clock_gettime in -lrt... " >&6; }
5461 if test ${ac_cv_lib_rt_clock_gettime+y}
5462 then :
5463 printf %s "(cached) " >&6
5464 else case e in #(
5465 e) ac_check_lib_save_LIBS=$LIBS
5466 LIBS="-lrt $LIBS"
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469
5470 /* Override any GCC internal prototype to avoid an error.
5471 Use char because int might match the return type of a GCC
5472 builtin and then its argument prototype would still apply.
5473 The 'extern "C"' is for builds by C++ compilers;
5474 although this is not generally supported in C code supporting it here
5475 has little cost and some practical benefit (sr 110532). */
5476 #ifdef __cplusplus
5477 extern "C"
5478 #endif
5479 char clock_gettime (void);
5480 int
5481 main (void)
5482 {
5483 return clock_gettime ();
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_link "$LINENO"
5489 then :
5490 ac_cv_lib_rt_clock_gettime=yes
5491 else case e in #(
5492 e) ac_cv_lib_rt_clock_gettime=no ;;
5493 esac
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5496 conftest$ac_exeext conftest.$ac_ext
5497 LIBS=$ac_check_lib_save_LIBS ;;
5498 esac
5499 fi
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5501 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
5502 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
5503 then :
5504 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5505
5506 LIBS="-lrt $LIBS"
5507
5508 fi
5509
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnet_name_resolve in -lnet" >&5
5511 printf %s "checking for libnet_name_resolve in -lnet... " >&6; }
5512 if test ${ac_cv_lib_net_libnet_name_resolve+y}
5513 then :
5514 printf %s "(cached) " >&6
5515 else case e in #(
5516 e) ac_check_lib_save_LIBS=$LIBS
5517 LIBS="-lnet $LIBS"
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520
5521 /* Override any GCC internal prototype to avoid an error.
5522 Use char because int might match the return type of a GCC
5523 builtin and then its argument prototype would still apply.
5524 The 'extern "C"' is for builds by C++ compilers;
5525 although this is not generally supported in C code supporting it here
5526 has little cost and some practical benefit (sr 110532). */
5527 #ifdef __cplusplus
5528 extern "C"
5529 #endif
5530 char libnet_name_resolve (void);
5531 int
5532 main (void)
5533 {
5534 return libnet_name_resolve ();
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 if ac_fn_c_try_link "$LINENO"
5540 then :
5541 ac_cv_lib_net_libnet_name_resolve=yes
5542 else case e in #(
5543 e) ac_cv_lib_net_libnet_name_resolve=no ;;
5544 esac
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547 conftest$ac_exeext conftest.$ac_ext
5548 LIBS=$ac_check_lib_save_LIBS ;;
5549 esac
5550 fi
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_libnet_name_resolve" >&5
5552 printf "%s\n" "$ac_cv_lib_net_libnet_name_resolve" >&6; }
5553 if test "x$ac_cv_lib_net_libnet_name_resolve" = xyes
5554 then :
5555 as_fn_error $? "libnet 1.0.x found. Arping 2.x requires libnet 1.1 or newer" "$LINENO" 5
5556 fi
5557
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnet_init in -lnet" >&5
5559 printf %s "checking for libnet_init in -lnet... " >&6; }
5560 if test ${ac_cv_lib_net_libnet_init+y}
5561 then :
5562 printf %s "(cached) " >&6
5563 else case e in #(
5564 e) ac_check_lib_save_LIBS=$LIBS
5565 LIBS="-lnet $LIBS"
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568
5569 /* Override any GCC internal prototype to avoid an error.
5570 Use char because int might match the return type of a GCC
5571 builtin and then its argument prototype would still apply.
5572 The 'extern "C"' is for builds by C++ compilers;
5573 although this is not generally supported in C code supporting it here
5574 has little cost and some practical benefit (sr 110532). */
5575 #ifdef __cplusplus
5576 extern "C"
5577 #endif
5578 char libnet_init (void);
5579 int
5580 main (void)
5581 {
5582 return libnet_init ();
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_link "$LINENO"
5588 then :
5589 ac_cv_lib_net_libnet_init=yes
5590 else case e in #(
5591 e) ac_cv_lib_net_libnet_init=no ;;
5592 esac
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5595 conftest$ac_exeext conftest.$ac_ext
5596 LIBS=$ac_check_lib_save_LIBS ;;
5597 esac
5598 fi
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_libnet_init" >&5
5600 printf "%s\n" "$ac_cv_lib_net_libnet_init" >&6; }
5601 if test "x$ac_cv_lib_net_libnet_init" = xyes
5602 then :
5603 printf "%s\n" "#define HAVE_LIBNET 1" >>confdefs.h
5604
5605 LIBS="-lnet $LIBS"
5606
5607 else case e in #(
5608 e) as_fn_error $? "libnet 1.1.x not found" "$LINENO" 5 ;;
5609 esac
5610 fi
5611
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
5613 printf %s "checking for pcap_open_live in -lpcap... " >&6; }
5614 if test ${ac_cv_lib_pcap_pcap_open_live+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else case e in #(
5618 e) ac_check_lib_save_LIBS=$LIBS
5619 LIBS="-lpcap $LIBS"
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622
5623 /* Override any GCC internal prototype to avoid an error.
5624 Use char because int might match the return type of a GCC
5625 builtin and then its argument prototype would still apply.
5626 The 'extern "C"' is for builds by C++ compilers;
5627 although this is not generally supported in C code supporting it here
5628 has little cost and some practical benefit (sr 110532). */
5629 #ifdef __cplusplus
5630 extern "C"
5631 #endif
5632 char pcap_open_live (void);
5633 int
5634 main (void)
5635 {
5636 return pcap_open_live ();
5637 ;
5638 return 0;
5639 }
5640 _ACEOF
5641 if ac_fn_c_try_link "$LINENO"
5642 then :
5643 ac_cv_lib_pcap_pcap_open_live=yes
5644 else case e in #(
5645 e) ac_cv_lib_pcap_pcap_open_live=no ;;
5646 esac
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5649 conftest$ac_exeext conftest.$ac_ext
5650 LIBS=$ac_check_lib_save_LIBS ;;
5651 esac
5652 fi
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
5654 printf "%s\n" "$ac_cv_lib_pcap_pcap_open_live" >&6; }
5655 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes
5656 then :
5657 printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h
5658
5659 LIBS="-lpcap $LIBS"
5660
5661 else case e in #(
5662 e) as_fn_error $? "libpcap not found" "$LINENO" 5 ;;
5663 esac
5664 fi
5665
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5667 printf %s "checking for library containing clock_gettime... " >&6; }
5668 if test ${ac_cv_search_clock_gettime+y}
5669 then :
5670 printf %s "(cached) " >&6
5671 else case e in #(
5672 e) ac_func_search_save_LIBS=$LIBS
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675
5676 /* Override any GCC internal prototype to avoid an error.
5677 Use char because int might match the return type of a GCC
5678 builtin and then its argument prototype would still apply.
5679 The 'extern "C"' is for builds by C++ compilers;
5680 although this is not generally supported in C code supporting it here
5681 has little cost and some practical benefit (sr 110532). */
5682 #ifdef __cplusplus
5683 extern "C"
5684 #endif
5685 char clock_gettime (void);
5686 int
5687 main (void)
5688 {
5689 return clock_gettime ();
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 for ac_lib in '' rt
5695 do
5696 if test -z "$ac_lib"; then
5697 ac_res="none required"
5698 else
5699 ac_res=-l$ac_lib
5700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5701 fi
5702 if ac_fn_c_try_link "$LINENO"
5703 then :
5704 ac_cv_search_clock_gettime=$ac_res
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5707 conftest$ac_exeext
5708 if test ${ac_cv_search_clock_gettime+y}
5709 then :
5710 break
5711 fi
5712 done
5713 if test ${ac_cv_search_clock_gettime+y}
5714 then :
5715
5716 else case e in #(
5717 e) ac_cv_search_clock_gettime=no ;;
5718 esac
5719 fi
5720 rm conftest.$ac_ext
5721 LIBS=$ac_func_search_save_LIBS ;;
5722 esac
5723 fi
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5725 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
5726 ac_res=$ac_cv_search_clock_gettime
5727 if test "$ac_res" != no
5728 then :
5729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5730
5731 fi
5732
5733
5734 # Check whether --enable-seccomp was given.
5735 if test ${enable_seccomp+y}
5736 then :
5737 enableval=$enable_seccomp;
5738 if test x"$enableval" = x"yes"; then
5739 if test "$ac_cv_lib_seccomp_seccomp_init" = "no"; then
5740 as_fn_error $? "--enable-seccomp given but seccomp libraries not present" "$LINENO" 5
5741 fi
5742
5743 printf "%s\n" "#define DEFAULT_SECCOMP 1" >>confdefs.h
5744
5745 else
5746
5747 printf "%s\n" "#define DEFAULT_SECCOMP 0" >>confdefs.h
5748
5749 fi
5750
5751 else case e in #(
5752 e)
5753
5754 printf "%s\n" "#define DEFAULT_SECCOMP 0" >>confdefs.h
5755
5756 ;;
5757 esac
5758 fi
5759
5760
5761 # Libnet include file is not optional
5762 if test ! x$ac_cv_header_libnet_h = xyes; then
5763 as_fn_error $? "Can't find libnet.h. See INSTALL file for where to get Libnet" "$LINENO" 5
5764 fi
5765
5766 # Workaround for Android apparently having the headers, and having the library
5767 # function, but not having the declaration in sys/random.h and
5768 # sys/capabilities.h.
5769 # See issue #49 and #57.
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system actually has cap_init" >&5
5771 printf %s "checking if system actually has cap_init... " >&6; }
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include<sys/capability.h>
5775 int
5776 main (void)
5777 {
5778 cap_t t = cap_init();
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_link "$LINENO"
5785 then :
5786
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5788 printf "%s\n" "yes" >&6; }
5789
5790 printf "%s\n" "#define ACTUALLY_HAS_CAP_INIT 1" >>confdefs.h
5791
5792
5793 else case e in #(
5794 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 printf "%s\n" "no" >&6; }
5796 ;;
5797 esac
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5800 conftest$ac_exeext conftest.$ac_ext
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system actually has getrandom" >&5
5802 printf %s "checking if system actually has getrandom... " >&6; }
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include<sys/random.h>
5806 int
5807 main (void)
5808 {
5809 ssize_t n = getrandom((void*)0, 16, 0)
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"
5816 then :
5817
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5819 printf "%s\n" "yes" >&6; }
5820
5821 printf "%s\n" "#define ACTUALLY_HAS_GETRANDOM 1" >>confdefs.h
5822
5823
5824 else case e in #(
5825 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 printf "%s\n" "no" >&6; }
5827 ;;
5828 esac
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5831 conftest$ac_exeext conftest.$ac_ext
5832
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system has landlock" >&5
5834 printf %s "checking if system has landlock... " >&6; }
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837
5838 #define _GNU_SOURCE
5839 #include<linux/landlock.h>
5840 #include<sys/syscall.h>
5841 #include<unistd.h>
5842
5843 int
5844 main (void)
5845 {
5846 syscall(SYS_landlock_create_ruleset, 0, 0, 0);
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_link "$LINENO"
5853 then :
5854
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5856 printf "%s\n" "yes" >&6; }
5857
5858 printf "%s\n" "#define HAS_LANDLOCK 1" >>confdefs.h
5859
5860
5861 else case e in #(
5862 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 printf "%s\n" "no" >&6; }
5864 ;;
5865 esac
5866 fi
5867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5868 conftest$ac_exeext conftest.$ac_ext
5869
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if NO_NEW_PRIVS exists" >&5
5871 printf %s "checking if NO_NEW_PRIVS exists... " >&6; }
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874
5875 #define _GNU_SOURCE
5876 #include<linux/prctl.h>
5877 #include<sys/prctl.h>
5878
5879 int
5880 main (void)
5881 {
5882 prctl(PR_SET_NO_NEW_PRIVS, 1L, 0L, 0L, 0L);
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_link "$LINENO"
5889 then :
5890
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5892 printf "%s\n" "yes" >&6; }
5893
5894 printf "%s\n" "#define HAS_NO_NEW_PRIVS 1" >>confdefs.h
5895
5896
5897 else case e in #(
5898 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 printf "%s\n" "no" >&6; }
5900 ;;
5901 esac
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5904 conftest$ac_exeext conftest.$ac_ext
5905
5906 # Checks for typedefs, structures, and compiler characteristics.
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5908 printf %s "checking for an ANSI C-conforming const... " >&6; }
5909 if test ${ac_cv_c_const+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else case e in #(
5913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915
5916 int
5917 main (void)
5918 {
5919
5920 #ifndef __cplusplus
5921 /* Ultrix mips cc rejects this sort of thing. */
5922 typedef int charset[2];
5923 const charset cs = { 0, 0 };
5924 /* SunOS 4.1.1 cc rejects this. */
5925 char const *const *pcpcc;
5926 char **ppc;
5927 /* NEC SVR4.0.2 mips cc rejects this. */
5928 struct point {int x, y;};
5929 static struct point const zero = {0,0};
5930 /* IBM XL C 1.02.0.0 rejects this.
5931 It does not let you subtract one const X* pointer from another in
5932 an arm of an if-expression whose if-part is not a constant
5933 expression */
5934 const char *g = "string";
5935 pcpcc = &g + (g ? g-g : 0);
5936 /* HPUX 7.0 cc rejects these. */
5937 ++pcpcc;
5938 ppc = (char**) pcpcc;
5939 pcpcc = (char const *const *) ppc;
5940 { /* SCO 3.2v4 cc rejects this sort of thing. */
5941 char tx;
5942 char *t = &tx;
5943 char const *s = 0 ? (char *) 0 : (char const *) 0;
5944
5945 *t++ = 0;
5946 if (s) return 0;
5947 }
5948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5949 int x[] = {25, 17};
5950 const int *foo = &x[0];
5951 ++foo;
5952 }
5953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5954 typedef const int *iptr;
5955 iptr p = 0;
5956 ++p;
5957 }
5958 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5960 struct s { int j; const int *ap[3]; } bx;
5961 struct s *b = &bx; b->j = 5;
5962 }
5963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5964 const int foo = 10;
5965 if (!foo) return 0;
5966 }
5967 return !cs[0] && !zero.x;
5968 #endif
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 if ac_fn_c_try_compile "$LINENO"
5975 then :
5976 ac_cv_c_const=yes
5977 else case e in #(
5978 e) ac_cv_c_const=no ;;
5979 esac
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5982 esac
5983 fi
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5985 printf "%s\n" "$ac_cv_c_const" >&6; }
5986 if test $ac_cv_c_const = no; then
5987
5988 printf "%s\n" "#define const /**/" >>confdefs.h
5989
5990 fi
5991
5992
5993
5994 # Obsolete code to be removed.
5995 if test $ac_cv_header_sys_time_h = yes; then
5996
5997 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5998
5999 fi
6000 # End of obsolete code.
6001
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6003 printf %s "checking for working volatile... " >&6; }
6004 if test ${ac_cv_c_volatile+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else case e in #(
6008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010
6011 int
6012 main (void)
6013 {
6014
6015 volatile int x;
6016 int * volatile y = (int *) 0;
6017 return !x && !y;
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"
6023 then :
6024 ac_cv_c_volatile=yes
6025 else case e in #(
6026 e) ac_cv_c_volatile=no ;;
6027 esac
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6030 esac
6031 fi
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6033 printf "%s\n" "$ac_cv_c_volatile" >&6; }
6034 if test $ac_cv_c_volatile = no; then
6035
6036 printf "%s\n" "#define volatile /**/" >>confdefs.h
6037
6038 fi
6039
6040 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6041 case $ac_cv_c_uint8_t in #(
6042 no|yes) ;; #(
6043 *)
6044
6045 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
6046
6047
6048 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
6049 ;;
6050 esac
6051
6052 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6053 case $ac_cv_c_uint16_t in #(
6054 no|yes) ;; #(
6055 *)
6056
6057
6058 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
6059 ;;
6060 esac
6061
6062 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6063 case $ac_cv_c_uint32_t in #(
6064 no|yes) ;; #(
6065 *)
6066
6067 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
6068
6069
6070 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
6071 ;;
6072 esac
6073
6074 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6075 case $ac_cv_c_uint64_t in #(
6076 no|yes) ;; #(
6077 *)
6078
6079 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
6080
6081
6082 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
6083 ;;
6084 esac
6085
6086
6087 # Checks for library functions.
6088
6089
6090
6091
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6093 printf %s "checking types of arguments for select... " >&6; }
6094 if test ${ac_cv_func_select_args+y}
6095 then :
6096 printf %s "(cached) " >&6
6097 else case e in #(
6098 e) ac_cv_func_select_args='int,int *,struct timeval *'
6099 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6100 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6101 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 $ac_includes_default
6105 #ifdef HAVE_SYS_SELECT_H
6106 # include <sys/select.h>
6107 #endif
6108 #ifdef HAVE_SYS_SOCKET_H
6109 # include <sys/socket.h>
6110 #endif
6111
6112 int
6113 main (void)
6114 {
6115 extern int select ($ac_arg1,
6116 $ac_arg234, $ac_arg234, $ac_arg234,
6117 $ac_arg5);
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"
6123 then :
6124 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6127 done
6128 done
6129 done
6130 ;;
6131 esac
6132 fi
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
6134 printf "%s\n" "$ac_cv_func_select_args" >&6; }
6135 ac_save_IFS=$IFS; IFS=','
6136 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6137 IFS=$ac_save_IFS
6138 shift
6139
6140 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
6141
6142
6143 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
6144
6145
6146 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
6147
6148 rm -rf conftest*
6149
6150 if test ${ac_cv_func_setvbuf_reversed+y}
6151 then :
6152 printf %s "(cached) " >&6
6153 else case e in #(
6154 e) ac_cv_func_setvbuf_reversed=no ;;
6155 esac
6156 fi
6157
6158
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6160 printf %s "checking return type of signal handlers... " >&6; }
6161 if test ${ac_cv_type_signal+y}
6162 then :
6163 printf %s "(cached) " >&6
6164 else case e in #(
6165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #include <sys/types.h>
6168 #include <signal.h>
6169
6170 int
6171 main (void)
6172 {
6173 return *(signal (0, 0)) (0) == 1;
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 if ac_fn_c_try_compile "$LINENO"
6179 then :
6180 ac_cv_type_signal=int
6181 else case e in #(
6182 e) ac_cv_type_signal=void ;;
6183 esac
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6186 esac
6187 fi
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6189 printf "%s\n" "$ac_cv_type_signal" >&6; }
6190
6191 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
6192
6193
6194 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6195 if test "x$ac_cv_func_gettimeofday" = xyes
6196 then :
6197 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
6198
6199 fi
6200 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
6201 if test "x$ac_cv_func_memset" = xyes
6202 then :
6203 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
6204
6205 fi
6206 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
6207 if test "x$ac_cv_func_select" = xyes
6208 then :
6209 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
6210
6211 fi
6212 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
6213 if test "x$ac_cv_func_strchr" = xyes
6214 then :
6215 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
6216
6217 fi
6218 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
6219 if test "x$ac_cv_func_strdup" = xyes
6220 then :
6221 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
6222
6223 fi
6224 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6225 if test "x$ac_cv_func_strerror" = xyes
6226 then :
6227 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
6228
6229 fi
6230 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
6231 if test "x$ac_cv_func_strstr" = xyes
6232 then :
6233 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
6234
6235 fi
6236 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6237 if test "x$ac_cv_func_getifaddrs" = xyes
6238 then :
6239 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
6240
6241 fi
6242 ac_fn_c_check_func "$LINENO" "cap_init" "ac_cv_func_cap_init"
6243 if test "x$ac_cv_func_cap_init" = xyes
6244 then :
6245 printf "%s\n" "#define HAVE_CAP_INIT 1" >>confdefs.h
6246
6247 fi
6248 ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create"
6249 if test "x$ac_cv_func_pcap_create" = xyes
6250 then :
6251 printf "%s\n" "#define HAVE_PCAP_CREATE 1" >>confdefs.h
6252
6253 fi
6254 ac_fn_c_check_func "$LINENO" "pcap_list_tstamp_types" "ac_cv_func_pcap_list_tstamp_types"
6255 if test "x$ac_cv_func_pcap_list_tstamp_types" = xyes
6256 then :
6257 printf "%s\n" "#define HAVE_PCAP_LIST_TSTAMP_TYPES 1" >>confdefs.h
6258
6259 fi
6260 ac_fn_c_check_func "$LINENO" "pcap_set_immediate_mode" "ac_cv_func_pcap_set_immediate_mode"
6261 if test "x$ac_cv_func_pcap_set_immediate_mode" = xyes
6262 then :
6263 printf "%s\n" "#define HAVE_PCAP_SET_IMMEDIATE_MODE 1" >>confdefs.h
6264
6265 fi
6266 ac_fn_c_check_func "$LINENO" "pledge" "ac_cv_func_pledge"
6267 if test "x$ac_cv_func_pledge" = xyes
6268 then :
6269 printf "%s\n" "#define HAVE_PLEDGE 1" >>confdefs.h
6270
6271 fi
6272 ac_fn_c_check_func "$LINENO" "unveil" "ac_cv_func_unveil"
6273 if test "x$ac_cv_func_unveil" = xyes
6274 then :
6275 printf "%s\n" "#define HAVE_UNVEIL 1" >>confdefs.h
6276
6277 fi
6278 ac_fn_c_check_func "$LINENO" "pcap_findalldevs" "ac_cv_func_pcap_findalldevs"
6279 if test "x$ac_cv_func_pcap_findalldevs" = xyes
6280 then :
6281 printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS 1" >>confdefs.h
6282
6283 fi
6284 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
6285 if test "x$ac_cv_func_getrandom" = xyes
6286 then :
6287 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
6288
6289 fi
6290 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
6291 if test "x$ac_cv_func_strtoll" = xyes
6292 then :
6293 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
6294
6295 fi
6296
6297
6298 if test x$ac_cv_func_getifaddrs = xyes; then
6299 case " $LIBOBJS " in
6300 *" findif_getifaddrs.$ac_objext "* ) ;;
6301 *) LIBOBJS="$LIBOBJS findif_getifaddrs.$ac_objext"
6302 ;;
6303 esac
6304
6305 else
6306 case "$target_os" in
6307 *linux*)
6308 case " $LIBOBJS " in
6309 *" findif_linux.$ac_objext "* ) ;;
6310 *) LIBOBJS="$LIBOBJS findif_linux.$ac_objext"
6311 ;;
6312 esac
6313
6314 ;;
6315 *freebsd*|*openbsd*|*darwin*)
6316 case " $LIBOBJS " in
6317 *" findif_sysctl.$ac_objext "* ) ;;
6318 *) LIBOBJS="$LIBOBJS findif_sysctl.$ac_objext"
6319 ;;
6320 esac
6321
6322 ;;
6323 *solaris*)
6324 case " $LIBOBJS " in
6325 *" findif_bsdroute.$ac_objext "* ) ;;
6326 *) LIBOBJS="$LIBOBJS findif_bsdroute.$ac_objext"
6327 ;;
6328 esac
6329
6330 ;;
6331 *)
6332 case " $LIBOBJS " in
6333 *" findif_other.$ac_objext "* ) ;;
6334 *) LIBOBJS="$LIBOBJS findif_other.$ac_objext"
6335 ;;
6336 esac
6337
6338 ;;
6339 esac
6340 fi
6341
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnet_init signature has const" >&5
6343 printf %s "checking for libnet_init signature has const... " >&6; }
6344 if test ${ac_cv_have_libnet_init_const+y}
6345 then :
6346 printf %s "(cached) " >&6
6347 else case e in #(
6348 e)
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 #include<libnet.h>
6352 int
6353 main (void)
6354 {
6355 libnet_t*libnet_init(int a,const char* b,char* c);
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"
6361 then :
6362 ac_cv_have_libnet_init_const="yes"
6363 else case e in #(
6364 e) ac_cv_have_libnet_init_const="no" ;;
6365 esac
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6368 conftest$ac_exeext conftest.$ac_ext
6369 ;;
6370 esac
6371 fi
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libnet_init_const" >&5
6373 printf "%s\n" "$ac_cv_have_libnet_init_const" >&6; }
6374 if test x$ac_cv_have_libnet_init_const = xyes; then
6375
6376 printf "%s\n" "#define HAVE_LIBNET_INIT_CONST 1" >>confdefs.h
6377
6378 fi
6379
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnet_name2addr4 signature has const" >&5
6381 printf %s "checking for libnet_name2addr4 signature has const... " >&6; }
6382 if test ${ac_cv_have_libnet_name2addr4_const+y}
6383 then :
6384 printf %s "(cached) " >&6
6385 else case e in #(
6386 e)
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include<libnet.h>
6390 int
6391 main (void)
6392 {
6393 uint32_t libnet_name2addr4(libnet_t*a, const char* b,uint8_t c);
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 if ac_fn_c_try_link "$LINENO"
6399 then :
6400 ac_cv_have_libnet_name2addr4_const="yes"
6401 else case e in #(
6402 e) ac_cv_have_libnet_name2addr4_const="no" ;;
6403 esac
6404 fi
6405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6406 conftest$ac_exeext conftest.$ac_ext
6407 ;;
6408 esac
6409 fi
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libnet_name2addr4_const" >&5
6411 printf "%s\n" "$ac_cv_have_libnet_name2addr4_const" >&6; }
6412 if test x$ac_cv_have_libnet_name2addr4_const = xyes; then
6413
6414 printf "%s\n" "#define HAVE_LIBNET_NAME2ADDR4_CONST 1" >>confdefs.h
6415
6416 fi
6417
6418
6419 # check for CLOCK_MONOTONIC
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6421 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
6422 if test ${ac_cv_c_undeclared_builtin_options+y}
6423 then :
6424 printf %s "(cached) " >&6
6425 else case e in #(
6426 e) ac_save_CFLAGS=$CFLAGS
6427 ac_cv_c_undeclared_builtin_options='cannot detect'
6428 for ac_arg in '' -fno-builtin; do
6429 CFLAGS="$ac_save_CFLAGS $ac_arg"
6430 # This test program should *not* compile successfully.
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433
6434 int
6435 main (void)
6436 {
6437 (void) strchr;
6438 ;
6439 return 0;
6440 }
6441 _ACEOF
6442 if ac_fn_c_try_compile "$LINENO"
6443 then :
6444
6445 else case e in #(
6446 e) # This test program should compile successfully.
6447 # No library function is consistently available on
6448 # freestanding implementations, so test against a dummy
6449 # declaration. Include always-available headers on the
6450 # off chance that they somehow elicit warnings.
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <float.h>
6454 #include <limits.h>
6455 #include <stdarg.h>
6456 #include <stddef.h>
6457 extern void ac_decl (int, char *);
6458
6459 int
6460 main (void)
6461 {
6462 (void) ac_decl (0, (char *) 0);
6463 (void) ac_decl;
6464
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"
6470 then :
6471 if test x"$ac_arg" = x
6472 then :
6473 ac_cv_c_undeclared_builtin_options='none needed'
6474 else case e in #(
6475 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
6476 esac
6477 fi
6478 break
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6481 esac
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6484 done
6485 CFLAGS=$ac_save_CFLAGS
6486 ;;
6487 esac
6488 fi
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6490 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6491 case $ac_cv_c_undeclared_builtin_options in #(
6492 'cannot detect') :
6493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6494 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6495 as_fn_error $? "cannot make $CC report undeclared builtins
6496 See 'config.log' for more details" "$LINENO" 5; } ;; #(
6497 'none needed') :
6498 ac_c_undeclared_builtin_options='' ;; #(
6499 *) :
6500 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6501 esac
6502
6503 ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "
6504 #include <time.h>
6505 #include <sys/time.h>
6506
6507
6508 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6509 if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes
6510 then :
6511
6512 fi
6513 if test x$ac_cv_have_decl_CLOCK_MONOTONIC = xyes; then
6514 HAVE_CLOCK_MONOTONIC_TRUE=
6515 HAVE_CLOCK_MONOTONIC_FALSE='#'
6516 else
6517 HAVE_CLOCK_MONOTONIC_TRUE='#'
6518 HAVE_CLOCK_MONOTONIC_FALSE=
6519 fi
6520
6521 if test x$ac_cv_have_decl_CLOCK_MONOTONIC = xyes; then
6522
6523 printf "%s\n" "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6524
6525 fi
6526
6527 # Check whether --enable-hardened was given.
6528 if test ${enable_hardened+y}
6529 then :
6530 enableval=$enable_hardened;
6531
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -fstack-clash-protection" >&5
6533 printf %s "checking compiler option -fstack-clash-protection... " >&6; }
6534 OLD_CFLAGS="$CFLAGS"
6535 CFLAGS="$CFLAGS -fstack-clash-protection"
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538
6539 int
6540 main (void)
6541 {
6542
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"
6548 then :
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550 printf "%s\n" "yes" >&6; }
6551 else case e in #(
6552 e)
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 printf "%s\n" "no" >&6; }
6555 CFLAGS="$OLD_CFLAGS"
6556 ;;
6557 esac
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6560
6561
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -fstack-protector-strong" >&5
6563 printf %s "checking compiler option -fstack-protector-strong... " >&6; }
6564 OLD_CFLAGS="$CFLAGS"
6565 CFLAGS="$CFLAGS -fstack-protector-strong"
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568
6569 int
6570 main (void)
6571 {
6572
6573 ;
6574 return 0;
6575 }
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"
6578 then :
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6580 printf "%s\n" "yes" >&6; }
6581 else case e in #(
6582 e)
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 printf "%s\n" "no" >&6; }
6585 CFLAGS="$OLD_CFLAGS"
6586 ;;
6587 esac
6588 fi
6589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6590
6591
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -mbranch-protection=standard" >&5
6593 printf %s "checking compiler option -mbranch-protection=standard... " >&6; }
6594 OLD_CFLAGS="$CFLAGS"
6595 CFLAGS="$CFLAGS -mbranch-protection=standard"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598
6599 int
6600 main (void)
6601 {
6602
6603 ;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"
6608 then :
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6610 printf "%s\n" "yes" >&6; }
6611 else case e in #(
6612 e)
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 printf "%s\n" "no" >&6; }
6615 CFLAGS="$OLD_CFLAGS"
6616 ;;
6617 esac
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6620
6621
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -fcf-protection=full" >&5
6623 printf %s "checking compiler option -fcf-protection=full... " >&6; }
6624 OLD_CFLAGS="$CFLAGS"
6625 CFLAGS="$CFLAGS -fcf-protection=full"
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628
6629 int
6630 main (void)
6631 {
6632
6633 ;
6634 return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"
6638 then :
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6640 printf "%s\n" "yes" >&6; }
6641 else case e in #(
6642 e)
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 printf "%s\n" "no" >&6; }
6645 CFLAGS="$OLD_CFLAGS"
6646 ;;
6647 esac
6648 fi
6649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6650
6651
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -fstrict-flex-arrays=3" >&5
6653 printf %s "checking compiler option -fstrict-flex-arrays=3... " >&6; }
6654 OLD_CFLAGS="$CFLAGS"
6655 CFLAGS="$CFLAGS -fstrict-flex-arrays=3"
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658
6659 int
6660 main (void)
6661 {
6662
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"
6668 then :
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6670 printf "%s\n" "yes" >&6; }
6671 else case e in #(
6672 e)
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 printf "%s\n" "no" >&6; }
6675 CFLAGS="$OLD_CFLAGS"
6676 ;;
6677 esac
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6680
6681
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -fPIE -pie" >&5
6683 printf %s "checking compiler option -fPIE -pie... " >&6; }
6684 OLD_CFLAGS="$CFLAGS"
6685 CFLAGS="$CFLAGS -fPIE -pie"
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688
6689 int
6690 main (void)
6691 {
6692
6693 ;
6694 return 0;
6695 }
6696 _ACEOF
6697 if ac_fn_c_try_compile "$LINENO"
6698 then :
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6700 printf "%s\n" "yes" >&6; }
6701 else case e in #(
6702 e)
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 printf "%s\n" "no" >&6; }
6705 CFLAGS="$OLD_CFLAGS"
6706 ;;
6707 esac
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6710
6711
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wl,-z,nodlopen" >&5
6713 printf %s "checking compiler option -Wl,-z,nodlopen... " >&6; }
6714 OLD_CFLAGS="$CFLAGS"
6715 CFLAGS="$CFLAGS -Wl,-z,nodlopen"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718
6719 int
6720 main (void)
6721 {
6722
6723 ;
6724 return 0;
6725 }
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"
6728 then :
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6730 printf "%s\n" "yes" >&6; }
6731 else case e in #(
6732 e)
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 printf "%s\n" "no" >&6; }
6735 CFLAGS="$OLD_CFLAGS"
6736 ;;
6737 esac
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6740
6741
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wl,-z,noexecstack" >&5
6743 printf %s "checking compiler option -Wl,-z,noexecstack... " >&6; }
6744 OLD_CFLAGS="$CFLAGS"
6745 CFLAGS="$CFLAGS -Wl,-z,noexecstack"
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748
6749 int
6750 main (void)
6751 {
6752
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"
6758 then :
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6760 printf "%s\n" "yes" >&6; }
6761 else case e in #(
6762 e)
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 printf "%s\n" "no" >&6; }
6765 CFLAGS="$OLD_CFLAGS"
6766 ;;
6767 esac
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6770
6771
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wl,-z,relro" >&5
6773 printf %s "checking compiler option -Wl,-z,relro... " >&6; }
6774 OLD_CFLAGS="$CFLAGS"
6775 CFLAGS="$CFLAGS -Wl,-z,relro"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778
6779 int
6780 main (void)
6781 {
6782
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 if ac_fn_c_try_compile "$LINENO"
6788 then :
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6790 printf "%s\n" "yes" >&6; }
6791 else case e in #(
6792 e)
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 printf "%s\n" "no" >&6; }
6795 CFLAGS="$OLD_CFLAGS"
6796 ;;
6797 esac
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6800
6801
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wl,-z,noexecheap" >&5
6803 printf %s "checking compiler option -Wl,-z,noexecheap... " >&6; }
6804 OLD_CFLAGS="$CFLAGS"
6805 CFLAGS="$CFLAGS -Wl,-z,noexecheap"
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808
6809 int
6810 main (void)
6811 {
6812
6813 ;
6814 return 0;
6815 }
6816 _ACEOF
6817 if ac_fn_c_try_compile "$LINENO"
6818 then :
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6820 printf "%s\n" "yes" >&6; }
6821 else case e in #(
6822 e)
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 printf "%s\n" "no" >&6; }
6825 CFLAGS="$OLD_CFLAGS"
6826 ;;
6827 esac
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6830
6831
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wl,-z,now" >&5
6833 printf %s "checking compiler option -Wl,-z,now... " >&6; }
6834 OLD_CFLAGS="$CFLAGS"
6835 CFLAGS="$CFLAGS -Wl,-z,now"
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838
6839 int
6840 main (void)
6841 {
6842
6843 ;
6844 return 0;
6845 }
6846 _ACEOF
6847 if ac_fn_c_try_compile "$LINENO"
6848 then :
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6850 printf "%s\n" "yes" >&6; }
6851 else case e in #(
6852 e)
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 printf "%s\n" "no" >&6; }
6855 CFLAGS="$OLD_CFLAGS"
6856 ;;
6857 esac
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6860
6861
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -fstack-protector-all" >&5
6863 printf %s "checking compiler option -fstack-protector-all... " >&6; }
6864 OLD_CFLAGS="$CFLAGS"
6865 CFLAGS="$CFLAGS -fstack-protector-all"
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868
6869 int
6870 main (void)
6871 {
6872
6873 ;
6874 return 0;
6875 }
6876 _ACEOF
6877 if ac_fn_c_try_compile "$LINENO"
6878 then :
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6880 printf "%s\n" "yes" >&6; }
6881 else case e in #(
6882 e)
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 printf "%s\n" "no" >&6; }
6885 CFLAGS="$OLD_CFLAGS"
6886 ;;
6887 esac
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6890
6891
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option --param ssp-buffer-size=1" >&5
6893 printf %s "checking compiler option --param ssp-buffer-size=1... " >&6; }
6894 OLD_CFLAGS="$CFLAGS"
6895 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898
6899 int
6900 main (void)
6901 {
6902
6903 ;
6904 return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_compile "$LINENO"
6908 then :
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6910 printf "%s\n" "yes" >&6; }
6911 else case e in #(
6912 e)
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 printf "%s\n" "no" >&6; }
6915 CFLAGS="$OLD_CFLAGS"
6916 ;;
6917 esac
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6920
6921
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -U _FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" >&5
6923 printf %s "checking compiler option -U _FORTIFY_SOURCE -D_FORTIFY_SOURCE=3... " >&6; }
6924 OLD_CFLAGS="$CFLAGS"
6925 CFLAGS="$CFLAGS -U _FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928
6929 int
6930 main (void)
6931 {
6932
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_compile "$LINENO"
6938 then :
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6940 printf "%s\n" "yes" >&6; }
6941 else case e in #(
6942 e)
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 printf "%s\n" "no" >&6; }
6945 CFLAGS="$OLD_CFLAGS"
6946 ;;
6947 esac
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6950
6951
6952 fi
6953
6954 # Check whether --enable-warnings was given.
6955 if test ${enable_warnings+y}
6956 then :
6957 enableval=$enable_warnings;
6958
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wall" >&5
6960 printf %s "checking compiler option -Wall... " >&6; }
6961 OLD_CFLAGS="$CFLAGS"
6962 CFLAGS="$CFLAGS -Wall"
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965
6966 int
6967 main (void)
6968 {
6969
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_compile "$LINENO"
6975 then :
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977 printf "%s\n" "yes" >&6; }
6978 else case e in #(
6979 e)
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 printf "%s\n" "no" >&6; }
6982 CFLAGS="$OLD_CFLAGS"
6983 ;;
6984 esac
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6987
6988
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wextra" >&5
6990 printf %s "checking compiler option -Wextra... " >&6; }
6991 OLD_CFLAGS="$CFLAGS"
6992 CFLAGS="$CFLAGS -Wextra"
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995
6996 int
6997 main (void)
6998 {
6999
7000 ;
7001 return 0;
7002 }
7003 _ACEOF
7004 if ac_fn_c_try_compile "$LINENO"
7005 then :
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7007 printf "%s\n" "yes" >&6; }
7008 else case e in #(
7009 e)
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 printf "%s\n" "no" >&6; }
7012 CFLAGS="$OLD_CFLAGS"
7013 ;;
7014 esac
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7017
7018
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wpedantic" >&5
7020 printf %s "checking compiler option -Wpedantic... " >&6; }
7021 OLD_CFLAGS="$CFLAGS"
7022 CFLAGS="$CFLAGS -Wpedantic"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025
7026 int
7027 main (void)
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_compile "$LINENO"
7035 then :
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7037 printf "%s\n" "yes" >&6; }
7038 else case e in #(
7039 e)
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 printf "%s\n" "no" >&6; }
7042 CFLAGS="$OLD_CFLAGS"
7043 ;;
7044 esac
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7047
7048
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wstack-protector" >&5
7050 printf %s "checking compiler option -Wstack-protector... " >&6; }
7051 OLD_CFLAGS="$CFLAGS"
7052 CFLAGS="$CFLAGS -Wstack-protector"
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055
7056 int
7057 main (void)
7058 {
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_compile "$LINENO"
7065 then :
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7067 printf "%s\n" "yes" >&6; }
7068 else case e in #(
7069 e)
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 printf "%s\n" "no" >&6; }
7072 CFLAGS="$OLD_CFLAGS"
7073 ;;
7074 esac
7075 fi
7076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7077
7078
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wformat" >&5
7080 printf %s "checking compiler option -Wformat... " >&6; }
7081 OLD_CFLAGS="$CFLAGS"
7082 CFLAGS="$CFLAGS -Wformat"
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085
7086 int
7087 main (void)
7088 {
7089
7090 ;
7091 return 0;
7092 }
7093 _ACEOF
7094 if ac_fn_c_try_compile "$LINENO"
7095 then :
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7097 printf "%s\n" "yes" >&6; }
7098 else case e in #(
7099 e)
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 printf "%s\n" "no" >&6; }
7102 CFLAGS="$OLD_CFLAGS"
7103 ;;
7104 esac
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107
7108
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wformat-security" >&5
7110 printf %s "checking compiler option -Wformat-security... " >&6; }
7111 OLD_CFLAGS="$CFLAGS"
7112 CFLAGS="$CFLAGS -Wformat-security"
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115
7116 int
7117 main (void)
7118 {
7119
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"
7125 then :
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127 printf "%s\n" "yes" >&6; }
7128 else case e in #(
7129 e)
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 printf "%s\n" "no" >&6; }
7132 CFLAGS="$OLD_CFLAGS"
7133 ;;
7134 esac
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7137
7138
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wformat-y2k" >&5
7140 printf %s "checking compiler option -Wformat-y2k... " >&6; }
7141 OLD_CFLAGS="$CFLAGS"
7142 CFLAGS="$CFLAGS -Wformat-y2k"
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145
7146 int
7147 main (void)
7148 {
7149
7150 ;
7151 return 0;
7152 }
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"
7155 then :
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7157 printf "%s\n" "yes" >&6; }
7158 else case e in #(
7159 e)
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 printf "%s\n" "no" >&6; }
7162 CFLAGS="$OLD_CFLAGS"
7163 ;;
7164 esac
7165 fi
7166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7167
7168
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Werror=format-security" >&5
7170 printf %s "checking compiler option -Werror=format-security... " >&6; }
7171 OLD_CFLAGS="$CFLAGS"
7172 CFLAGS="$CFLAGS -Werror=format-security"
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175
7176 int
7177 main (void)
7178 {
7179
7180 ;
7181 return 0;
7182 }
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"
7185 then :
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7187 printf "%s\n" "yes" >&6; }
7188 else case e in #(
7189 e)
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 printf "%s\n" "no" >&6; }
7192 CFLAGS="$OLD_CFLAGS"
7193 ;;
7194 esac
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7197
7198
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wconversion" >&5
7200 printf %s "checking compiler option -Wconversion... " >&6; }
7201 OLD_CFLAGS="$CFLAGS"
7202 CFLAGS="$CFLAGS -Wconversion"
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205
7206 int
7207 main (void)
7208 {
7209
7210 ;
7211 return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"
7215 then :
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7217 printf "%s\n" "yes" >&6; }
7218 else case e in #(
7219 e)
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 printf "%s\n" "no" >&6; }
7222 CFLAGS="$OLD_CFLAGS"
7223 ;;
7224 esac
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7227
7228
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wsign-conversion" >&5
7230 printf %s "checking compiler option -Wsign-conversion... " >&6; }
7231 OLD_CFLAGS="$CFLAGS"
7232 CFLAGS="$CFLAGS -Wsign-conversion"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235
7236 int
7237 main (void)
7238 {
7239
7240 ;
7241 return 0;
7242 }
7243 _ACEOF
7244 if ac_fn_c_try_compile "$LINENO"
7245 then :
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7247 printf "%s\n" "yes" >&6; }
7248 else case e in #(
7249 e)
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 printf "%s\n" "no" >&6; }
7252 CFLAGS="$OLD_CFLAGS"
7253 ;;
7254 esac
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7257
7258
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wimplicit-fallthrough" >&5
7260 printf %s "checking compiler option -Wimplicit-fallthrough... " >&6; }
7261 OLD_CFLAGS="$CFLAGS"
7262 CFLAGS="$CFLAGS -Wimplicit-fallthrough"
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265
7266 int
7267 main (void)
7268 {
7269
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"
7275 then :
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277 printf "%s\n" "yes" >&6; }
7278 else case e in #(
7279 e)
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 printf "%s\n" "no" >&6; }
7282 CFLAGS="$OLD_CFLAGS"
7283 ;;
7284 esac
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7287
7288
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler option -Wtrampolines" >&5
7290 printf %s "checking compiler option -Wtrampolines... " >&6; }
7291 OLD_CFLAGS="$CFLAGS"
7292 CFLAGS="$CFLAGS -Wtrampolines"
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295
7296 int
7297 main (void)
7298 {
7299
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 if ac_fn_c_try_compile "$LINENO"
7305 then :
7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7307 printf "%s\n" "yes" >&6; }
7308 else case e in #(
7309 e)
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 printf "%s\n" "no" >&6; }
7312 CFLAGS="$OLD_CFLAGS"
7313 ;;
7314 esac
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7317
7318
7319 fi
7320
7321
7322
7323
7324 ac_config_files="$ac_config_files Makefile"
7325
7326 ac_config_files="$ac_config_files src/Makefile"
7327
7328 ac_config_files="$ac_config_files doc/Makefile"
7329
7330 cat >confcache <<\_ACEOF
7331 # This file is a shell script that caches the results of configure
7332 # tests run on this system so they can be shared between configure
7333 # scripts and configure runs, see configure's option --config-cache.
7334 # It is not useful on other systems. If it contains results you don't
7335 # want to keep, you may remove or edit it.
7336 #
7337 # config.status only pays attention to the cache file if you give it
7338 # the --recheck option to rerun configure.
7339 #
7340 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7341 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
7342 # following values.
7343
7344 _ACEOF
7345
7346 # The following way of writing the cache mishandles newlines in values,
7347 # but we know of no workaround that is simple, portable, and efficient.
7348 # So, we kill variables containing newlines.
7349 # Ultrix sh set writes to stderr and can't be redirected directly,
7350 # and sets the high bit in the cache file unless we assign to the vars.
7351 (
7352 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7353 eval ac_val=\$$ac_var
7354 case $ac_val in #(
7355 *${as_nl}*)
7356 case $ac_var in #(
7357 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7358 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7359 esac
7360 case $ac_var in #(
7361 _ | IFS | as_nl) ;; #(
7362 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7363 *) { eval $ac_var=; unset $ac_var;} ;;
7364 esac ;;
7365 esac
7366 done
7367
7368 (set) 2>&1 |
7369 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7370 *${as_nl}ac_space=\ *)
7371 # 'set' does not quote correctly, so add quotes: double-quote
7372 # substitution turns \\\\ into \\, and sed turns \\ into \.
7373 sed -n \
7374 "s/'/'\\\\''/g;
7375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7376 ;; #(
7377 *)
7378 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7380 ;;
7381 esac |
7382 sort
7383 ) |
7384 sed '
7385 /^ac_cv_env_/b end
7386 t clear
7387 :clear
7388 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7389 t end
7390 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7391 :end' >>confcache
7392 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7393 if test -w "$cache_file"; then
7394 if test "x$cache_file" != "x/dev/null"; then
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7396 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7397 if test ! -f "$cache_file" || test -h "$cache_file"; then
7398 cat confcache >"$cache_file"
7399 else
7400 case $cache_file in #(
7401 */* | ?:*)
7402 mv -f confcache "$cache_file"$$ &&
7403 mv -f "$cache_file"$$ "$cache_file" ;; #(
7404 *)
7405 mv -f confcache "$cache_file" ;;
7406 esac
7407 fi
7408 fi
7409 else
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7411 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7412 fi
7413 fi
7414 rm -f confcache
7415
7416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7417 # Let make expand exec_prefix.
7418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7419
7420 DEFS=-DHAVE_CONFIG_H
7421
7422 ac_libobjs=
7423 ac_ltlibobjs=
7424 U=
7425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7426 # 1. Remove the extension, and $U if already installed.
7427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7428 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7430 # will be set to the directory where LIBOBJS objects are built.
7431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7433 done
7434 LIBOBJS=$ac_libobjs
7435
7436 LTLIBOBJS=$ac_ltlibobjs
7437
7438
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7440 printf %s "checking that generated files are newer than configure... " >&6; }
7441 if test -n "$am_sleep_pid"; then
7442 # Hide warnings about reused PIDs.
7443 wait $am_sleep_pid 2>/dev/null
7444 fi
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7446 printf "%s\n" "done" >&6; }
7447 case $enable_silent_rules in # (((
7448 yes) AM_DEFAULT_VERBOSITY=0;;
7449 no) AM_DEFAULT_VERBOSITY=1;;
7450 esac
7451 if test $am_cv_make_support_nested_variables = yes; then
7452 AM_V='$(V)'
7453 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
7454 else
7455 AM_V=$AM_DEFAULT_VERBOSITY
7456 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
7457 fi
7458
7459 if test -n "$EXEEXT"; then
7460 am__EXEEXT_TRUE=
7461 am__EXEEXT_FALSE='#'
7462 else
7463 am__EXEEXT_TRUE='#'
7464 am__EXEEXT_FALSE=
7465 fi
7466
7467 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7468 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7470 fi
7471 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7472 as_fn_error $? "conditional \"AMDEP\" was never defined.
7473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7474 fi
7475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7476 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7478 fi
7479 if test -z "${HAVE_CLOCK_MONOTONIC_TRUE}" && test -z "${HAVE_CLOCK_MONOTONIC_FALSE}"; then
7480 as_fn_error $? "conditional \"HAVE_CLOCK_MONOTONIC\" was never defined.
7481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7482 fi
7483
7484 : "${CONFIG_STATUS=./config.status}"
7485 ac_write_fail=0
7486 ac_clean_files_save=$ac_clean_files
7487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7489 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7490 as_write_fail=0
7491 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7492 #! $SHELL
7493 # Generated by $as_me.
7494 # Run this file to recreate the current configuration.
7495 # Compiler output produced by configure, useful for debugging
7496 # configure, is in config.log if it exists.
7497
7498 debug=false
7499 ac_cs_recheck=false
7500 ac_cs_silent=false
7501
7502 SHELL=\${CONFIG_SHELL-$SHELL}
7503 export SHELL
7504 _ASEOF
7505 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7506 ## -------------------- ##
7507 ## M4sh Initialization. ##
7508 ## -------------------- ##
7509
7510 # Be more Bourne compatible
7511 DUALCASE=1; export DUALCASE # for MKS sh
7512 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7513 then :
7514 emulate sh
7515 NULLCMD=:
7516 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7517 # is contrary to our usage. Disable this feature.
7518 alias -g '${1+"$@"}'='"$@"'
7519 setopt NO_GLOB_SUBST
7520 else case e in #(
7521 e) case `(set -o) 2>/dev/null` in #(
7522 *posix*) :
7523 set -o posix ;; #(
7524 *) :
7525 ;;
7526 esac ;;
7527 esac
7528 fi
7529
7530
7531
7532 # Reset variables that may have inherited troublesome values from
7533 # the environment.
7534
7535 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7536 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7537 # side effect of setting IFS to empty, thus disabling word splitting.)
7538 # Quoting is to prevent editors from complaining about space-tab.
7539 as_nl='
7540 '
7541 export as_nl
7542 IFS=" "" $as_nl"
7543
7544 PS1='$ '
7545 PS2='> '
7546 PS4='+ '
7547
7548 # Ensure predictable behavior from utilities with locale-dependent output.
7549 LC_ALL=C
7550 export LC_ALL
7551 LANGUAGE=C
7552 export LANGUAGE
7553
7554 # We cannot yet rely on "unset" to work, but we need these variables
7555 # to be unset--not just set to an empty or harmless value--now, to
7556 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7557 # also avoids known problems related to "unset" and subshell syntax
7558 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7559 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7560 do eval test \${$as_var+y} \
7561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7562 done
7563
7564 # Ensure that fds 0, 1, and 2 are open.
7565 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7566 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7567 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7568
7569 # The user is always right.
7570 if ${PATH_SEPARATOR+false} :; then
7571 PATH_SEPARATOR=:
7572 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7573 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7574 PATH_SEPARATOR=';'
7575 }
7576 fi
7577
7578
7579 # Find who we are. Look in the path if we contain no directory separator.
7580 as_myself=
7581 case $0 in #((
7582 *[\\/]* ) as_myself=$0 ;;
7583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586 IFS=$as_save_IFS
7587 case $as_dir in #(((
7588 '') as_dir=./ ;;
7589 */) ;;
7590 *) as_dir=$as_dir/ ;;
7591 esac
7592 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7593 done
7594 IFS=$as_save_IFS
7595
7596 ;;
7597 esac
7598 # We did not find ourselves, most probably we were run as 'sh COMMAND'
7599 # in which case we are not to be found in the path.
7600 if test "x$as_myself" = x; then
7601 as_myself=$0
7602 fi
7603 if test ! -f "$as_myself"; then
7604 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7605 exit 1
7606 fi
7607
7608
7609
7610 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7611 # ----------------------------------------
7612 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7613 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7614 # script with STATUS, using 1 if that was 0.
7615 as_fn_error ()
7616 {
7617 as_status=$1; test $as_status -eq 0 && as_status=1
7618 if test "$4"; then
7619 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7621 fi
7622 printf "%s\n" "$as_me: error: $2" >&2
7623 as_fn_exit $as_status
7624 } # as_fn_error
7625
7626
7627 # as_fn_set_status STATUS
7628 # -----------------------
7629 # Set $? to STATUS, without forking.
7630 as_fn_set_status ()
7631 {
7632 return $1
7633 } # as_fn_set_status
7634
7635 # as_fn_exit STATUS
7636 # -----------------
7637 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7638 as_fn_exit ()
7639 {
7640 set +e
7641 as_fn_set_status $1
7642 exit $1
7643 } # as_fn_exit
7644
7645 # as_fn_unset VAR
7646 # ---------------
7647 # Portably unset VAR.
7648 as_fn_unset ()
7649 {
7650 { eval $1=; unset $1;}
7651 }
7652 as_unset=as_fn_unset
7653
7654 # as_fn_append VAR VALUE
7655 # ----------------------
7656 # Append the text in VALUE to the end of the definition contained in VAR. Take
7657 # advantage of any shell optimizations that allow amortized linear growth over
7658 # repeated appends, instead of the typical quadratic growth present in naive
7659 # implementations.
7660 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7661 then :
7662 eval 'as_fn_append ()
7663 {
7664 eval $1+=\$2
7665 }'
7666 else case e in #(
7667 e) as_fn_append ()
7668 {
7669 eval $1=\$$1\$2
7670 } ;;
7671 esac
7672 fi # as_fn_append
7673
7674 # as_fn_arith ARG...
7675 # ------------------
7676 # Perform arithmetic evaluation on the ARGs, and store the result in the
7677 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7678 # must be portable across $(()) and expr.
7679 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7680 then :
7681 eval 'as_fn_arith ()
7682 {
7683 as_val=$(( $* ))
7684 }'
7685 else case e in #(
7686 e) as_fn_arith ()
7687 {
7688 as_val=`expr "$@" || test $? -eq 1`
7689 } ;;
7690 esac
7691 fi # as_fn_arith
7692
7693
7694 if expr a : '\(a\)' >/dev/null 2>&1 &&
7695 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7696 as_expr=expr
7697 else
7698 as_expr=false
7699 fi
7700
7701 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7702 as_basename=basename
7703 else
7704 as_basename=false
7705 fi
7706
7707 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7708 as_dirname=dirname
7709 else
7710 as_dirname=false
7711 fi
7712
7713 as_me=`$as_basename -- "$0" ||
7714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7715 X"$0" : 'X\(//\)$' \| \
7716 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7717 printf "%s\n" X/"$0" |
7718 sed '/^.*\/\([^/][^/]*\)\/*$/{
7719 s//\1/
7720 q
7721 }
7722 /^X\/\(\/\/\)$/{
7723 s//\1/
7724 q
7725 }
7726 /^X\/\(\/\).*/{
7727 s//\1/
7728 q
7729 }
7730 s/.*/./; q'`
7731
7732 # Avoid depending upon Character Ranges.
7733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7736 as_cr_digits='0123456789'
7737 as_cr_alnum=$as_cr_Letters$as_cr_digits
7738
7739
7740 # Determine whether it's possible to make 'echo' print without a newline.
7741 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7742 # for compatibility with existing Makefiles.
7743 ECHO_C= ECHO_N= ECHO_T=
7744 case `echo -n x` in #(((((
7745 -n*)
7746 case `echo 'xy\c'` in
7747 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7748 xy) ECHO_C='\c';;
7749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7750 ECHO_T=' ';;
7751 esac;;
7752 *)
7753 ECHO_N='-n';;
7754 esac
7755
7756 # For backward compatibility with old third-party macros, we provide
7757 # the shell variables $as_echo and $as_echo_n. New code should use
7758 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7759 as_echo='printf %s\n'
7760 as_echo_n='printf %s'
7761
7762 rm -f conf$$ conf$$.exe conf$$.file
7763 if test -d conf$$.dir; then
7764 rm -f conf$$.dir/conf$$.file
7765 else
7766 rm -f conf$$.dir
7767 mkdir conf$$.dir 2>/dev/null
7768 fi
7769 if (echo >conf$$.file) 2>/dev/null; then
7770 if ln -s conf$$.file conf$$ 2>/dev/null; then
7771 as_ln_s='ln -s'
7772 # ... but there are two gotchas:
7773 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
7774 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
7775 # In both cases, we have to default to 'cp -pR'.
7776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7777 as_ln_s='cp -pR'
7778 elif ln conf$$.file conf$$ 2>/dev/null; then
7779 as_ln_s=ln
7780 else
7781 as_ln_s='cp -pR'
7782 fi
7783 else
7784 as_ln_s='cp -pR'
7785 fi
7786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7787 rmdir conf$$.dir 2>/dev/null
7788
7789
7790 # as_fn_mkdir_p
7791 # -------------
7792 # Create "$as_dir" as a directory, including parents if necessary.
7793 as_fn_mkdir_p ()
7794 {
7795
7796 case $as_dir in #(
7797 -*) as_dir=./$as_dir;;
7798 esac
7799 test -d "$as_dir" || eval $as_mkdir_p || {
7800 as_dirs=
7801 while :; do
7802 case $as_dir in #(
7803 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7804 *) as_qdir=$as_dir;;
7805 esac
7806 as_dirs="'$as_qdir' $as_dirs"
7807 as_dir=`$as_dirname -- "$as_dir" ||
7808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7809 X"$as_dir" : 'X\(//\)[^/]' \| \
7810 X"$as_dir" : 'X\(//\)$' \| \
7811 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7812 printf "%s\n" X"$as_dir" |
7813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7814 s//\1/
7815 q
7816 }
7817 /^X\(\/\/\)[^/].*/{
7818 s//\1/
7819 q
7820 }
7821 /^X\(\/\/\)$/{
7822 s//\1/
7823 q
7824 }
7825 /^X\(\/\).*/{
7826 s//\1/
7827 q
7828 }
7829 s/.*/./; q'`
7830 test -d "$as_dir" && break
7831 done
7832 test -z "$as_dirs" || eval "mkdir $as_dirs"
7833 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7834
7835
7836 } # as_fn_mkdir_p
7837 if mkdir -p . 2>/dev/null; then
7838 as_mkdir_p='mkdir -p "$as_dir"'
7839 else
7840 test -d ./-p && rmdir ./-p
7841 as_mkdir_p=false
7842 fi
7843
7844
7845 # as_fn_executable_p FILE
7846 # -----------------------
7847 # Test if FILE is an executable regular file.
7848 as_fn_executable_p ()
7849 {
7850 test -f "$1" && test -x "$1"
7851 } # as_fn_executable_p
7852 as_test_x='test -x'
7853 as_executable_p=as_fn_executable_p
7854
7855 # Sed expression to map a string onto a valid CPP name.
7856 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7857 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
7858
7859 # Sed expression to map a string onto a valid variable name.
7860 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7861 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
7862
7863
7864 exec 6>&1
7865 ## ----------------------------------- ##
7866 ## Main body of $CONFIG_STATUS script. ##
7867 ## ----------------------------------- ##
7868 _ASEOF
7869 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7870
7871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7872 # Save the log message, to keep $0 and so on meaningful, and to
7873 # report actual input values of CONFIG_FILES etc. instead of their
7874 # values after options handling.
7875 ac_log="
7876 This file was extended by arping $as_me 2.29, which was
7877 generated by GNU Autoconf 2.72. Invocation command line was
7878
7879 CONFIG_FILES = $CONFIG_FILES
7880 CONFIG_HEADERS = $CONFIG_HEADERS
7881 CONFIG_LINKS = $CONFIG_LINKS
7882 CONFIG_COMMANDS = $CONFIG_COMMANDS
7883 $ $0 $@
7884
7885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7886 "
7887
7888 _ACEOF
7889
7890 case $ac_config_files in *"
7891 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7892 esac
7893
7894 case $ac_config_headers in *"
7895 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7896 esac
7897
7898
7899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7900 # Files that config.status was made for.
7901 config_files="$ac_config_files"
7902 config_headers="$ac_config_headers"
7903 config_commands="$ac_config_commands"
7904
7905 _ACEOF
7906
7907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7908 ac_cs_usage="\
7909 '$as_me' instantiates files and other configuration actions
7910 from templates according to the current configuration. Unless the files
7911 and actions are specified as TAGs, all are instantiated by default.
7912
7913 Usage: $0 [OPTION]... [TAG]...
7914
7915 -h, --help print this help, then exit
7916 -V, --version print version number and configuration settings, then exit
7917 --config print configuration, then exit
7918 -q, --quiet, --silent
7919 do not print progress messages
7920 -d, --debug don't remove temporary files
7921 --recheck update $as_me by reconfiguring in the same conditions
7922 --file=FILE[:TEMPLATE]
7923 instantiate the configuration file FILE
7924 --header=FILE[:TEMPLATE]
7925 instantiate the configuration header FILE
7926
7927 Configuration files:
7928 $config_files
7929
7930 Configuration headers:
7931 $config_headers
7932
7933 Configuration commands:
7934 $config_commands
7935
7936 Report bugs to <[email protected]>."
7937
7938 _ACEOF
7939 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7940 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7942 ac_cs_config='$ac_cs_config_escaped'
7943 ac_cs_version="\\
7944 arping config.status 2.29
7945 configured by $0, generated by GNU Autoconf 2.72,
7946 with options \\"\$ac_cs_config\\"
7947
7948 Copyright (C) 2023 Free Software Foundation, Inc.
7949 This config.status script is free software; the Free Software Foundation
7950 gives unlimited permission to copy, distribute and modify it."
7951
7952 ac_pwd='$ac_pwd'
7953 srcdir='$srcdir'
7954 INSTALL='$INSTALL'
7955 MKDIR_P='$MKDIR_P'
7956 AWK='$AWK'
7957 test -n "\$AWK" || AWK=awk
7958 _ACEOF
7959
7960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7961 # The default lists apply if the user does not specify any file.
7962 ac_need_defaults=:
7963 while test $# != 0
7964 do
7965 case $1 in
7966 --*=?*)
7967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7969 ac_shift=:
7970 ;;
7971 --*=)
7972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7973 ac_optarg=
7974 ac_shift=:
7975 ;;
7976 *)
7977 ac_option=$1
7978 ac_optarg=$2
7979 ac_shift=shift
7980 ;;
7981 esac
7982
7983 case $ac_option in
7984 # Handling of the options.
7985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7986 ac_cs_recheck=: ;;
7987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7988 printf "%s\n" "$ac_cs_version"; exit ;;
7989 --config | --confi | --conf | --con | --co | --c )
7990 printf "%s\n" "$ac_cs_config"; exit ;;
7991 --debug | --debu | --deb | --de | --d | -d )
7992 debug=: ;;
7993 --file | --fil | --fi | --f )
7994 $ac_shift
7995 case $ac_optarg in
7996 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7997 '') as_fn_error $? "missing file argument" ;;
7998 esac
7999 as_fn_append CONFIG_FILES " '$ac_optarg'"
8000 ac_need_defaults=false;;
8001 --header | --heade | --head | --hea )
8002 $ac_shift
8003 case $ac_optarg in
8004 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8005 esac
8006 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8007 ac_need_defaults=false;;
8008 --he | --h)
8009 # Conflict between --help and --header
8010 as_fn_error $? "ambiguous option: '$1'
8011 Try '$0 --help' for more information.";;
8012 --help | --hel | -h )
8013 printf "%s\n" "$ac_cs_usage"; exit ;;
8014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8016 ac_cs_silent=: ;;
8017
8018 # This is an error.
8019 -*) as_fn_error $? "unrecognized option: '$1'
8020 Try '$0 --help' for more information." ;;
8021
8022 *) as_fn_append ac_config_targets " $1"
8023 ac_need_defaults=false ;;
8024
8025 esac
8026 shift
8027 done
8028
8029 ac_configure_extra_args=
8030
8031 if $ac_cs_silent; then
8032 exec 6>/dev/null
8033 ac_configure_extra_args="$ac_configure_extra_args --silent"
8034 fi
8035
8036 _ACEOF
8037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8038 if \$ac_cs_recheck; then
8039 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8040 shift
8041 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8042 CONFIG_SHELL='$SHELL'
8043 export CONFIG_SHELL
8044 exec "\$@"
8045 fi
8046
8047 _ACEOF
8048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8049 exec 5>>config.log
8050 {
8051 echo
8052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8053 ## Running $as_me. ##
8054 _ASBOX
8055 printf "%s\n" "$ac_log"
8056 } >&5
8057
8058 _ACEOF
8059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8060 #
8061 # INIT-COMMANDS
8062 #
8063 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8064
8065 _ACEOF
8066
8067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8068
8069 # Handling of arguments.
8070 for ac_config_target in $ac_config_targets
8071 do
8072 case $ac_config_target in
8073 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8074 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8076 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8077 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8078
8079 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8080 esac
8081 done
8082
8083
8084 # If the user did not use the arguments to specify the items to instantiate,
8085 # then the envvar interface is used. Set only those that are not.
8086 # We use the long form for the default assignment because of an extremely
8087 # bizarre bug on SunOS 4.1.3.
8088 if $ac_need_defaults; then
8089 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8090 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8091 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
8092 fi
8093
8094 # Have a temporary directory for convenience. Make it in the build tree
8095 # simply because there is no reason against having it here, and in addition,
8096 # creating and moving files from /tmp can sometimes cause problems.
8097 # Hook for its removal unless debugging.
8098 # Note that there is a small window in which the directory will not be cleaned:
8099 # after its creation but before its name has been assigned to '$tmp'.
8100 $debug ||
8101 {
8102 tmp= ac_tmp=
8103 trap 'exit_status=$?
8104 : "${ac_tmp:=$tmp}"
8105 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8106 ' 0
8107 trap 'as_fn_exit 1' 1 2 13 15
8108 }
8109 # Create a (secure) tmp directory for tmp files.
8110
8111 {
8112 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8113 test -d "$tmp"
8114 } ||
8115 {
8116 tmp=./conf$$-$RANDOM
8117 (umask 077 && mkdir "$tmp")
8118 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8119 ac_tmp=$tmp
8120
8121 # Set up the scripts for CONFIG_FILES section.
8122 # No need to generate them if there are no CONFIG_FILES.
8123 # This happens for instance with './config.status config.h'.
8124 if test -n "$CONFIG_FILES"; then
8125
8126
8127 ac_cr=`echo X | tr X '\015'`
8128 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8129 # But we know of no other shell where ac_cr would be empty at this
8130 # point, so we can use a bashism as a fallback.
8131 if test "x$ac_cr" = x; then
8132 eval ac_cr=\$\'\\r\'
8133 fi
8134 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8135 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8136 ac_cs_awk_cr='\\r'
8137 else
8138 ac_cs_awk_cr=$ac_cr
8139 fi
8140
8141 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8142 _ACEOF
8143
8144
8145 {
8146 echo "cat >conf$$subs.awk <<_ACEOF" &&
8147 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8148 echo "_ACEOF"
8149 } >conf$$subs.sh ||
8150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8151 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8152 ac_delim='%!_!# '
8153 for ac_last_try in false false false false false :; do
8154 . ./conf$$subs.sh ||
8155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8156
8157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8158 if test $ac_delim_n = $ac_delim_num; then
8159 break
8160 elif $ac_last_try; then
8161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8162 else
8163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8164 fi
8165 done
8166 rm -f conf$$subs.sh
8167
8168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8169 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8170 _ACEOF
8171 sed -n '
8172 h
8173 s/^/S["/; s/!.*/"]=/
8174 p
8175 g
8176 s/^[^!]*!//
8177 :repl
8178 t repl
8179 s/'"$ac_delim"'$//
8180 t delim
8181 :nl
8182 h
8183 s/\(.\{148\}\)..*/\1/
8184 t more1
8185 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8186 p
8187 n
8188 b repl
8189 :more1
8190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8191 p
8192 g
8193 s/.\{148\}//
8194 t nl
8195 :delim
8196 h
8197 s/\(.\{148\}\)..*/\1/
8198 t more2
8199 s/["\\]/\\&/g; s/^/"/; s/$/"/
8200 p
8201 b
8202 :more2
8203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8204 p
8205 g
8206 s/.\{148\}//
8207 t delim
8208 ' <conf$$subs.awk | sed '
8209 /^[^""]/{
8210 N
8211 s/\n//
8212 }
8213 ' >>$CONFIG_STATUS || ac_write_fail=1
8214 rm -f conf$$subs.awk
8215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8216 _ACAWK
8217 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8218 for (key in S) S_is_set[key] = 1
8219 FS = ""
8220
8221 }
8222 {
8223 line = $ 0
8224 nfields = split(line, field, "@")
8225 substed = 0
8226 len = length(field[1])
8227 for (i = 2; i < nfields; i++) {
8228 key = field[i]
8229 keylen = length(key)
8230 if (S_is_set[key]) {
8231 value = S[key]
8232 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8233 len += length(value) + length(field[++i])
8234 substed = 1
8235 } else
8236 len += 1 + keylen
8237 }
8238
8239 print line
8240 }
8241
8242 _ACAWK
8243 _ACEOF
8244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8245 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8246 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8247 else
8248 cat
8249 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8250 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8251 _ACEOF
8252
8253 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8254 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8255 # trailing colons and then remove the whole line if VPATH becomes empty
8256 # (actually we leave an empty line to preserve line numbers).
8257 if test "x$srcdir" = x.; then
8258 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8259 h
8260 s///
8261 s/^/:/
8262 s/[ ]*$/:/
8263 s/:\$(srcdir):/:/g
8264 s/:\${srcdir}:/:/g
8265 s/:@srcdir@:/:/g
8266 s/^:*//
8267 s/:*$//
8268 x
8269 s/\(=[ ]*\).*/\1/
8270 G
8271 s/\n//
8272 s/^[^=]*=[ ]*$//
8273 }'
8274 fi
8275
8276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8277 fi # test -n "$CONFIG_FILES"
8278
8279 # Set up the scripts for CONFIG_HEADERS section.
8280 # No need to generate them if there are no CONFIG_HEADERS.
8281 # This happens for instance with './config.status Makefile'.
8282 if test -n "$CONFIG_HEADERS"; then
8283 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8284 BEGIN {
8285 _ACEOF
8286
8287 # Transform confdefs.h into an awk script 'defines.awk', embedded as
8288 # here-document in config.status, that substitutes the proper values into
8289 # config.h.in to produce config.h.
8290
8291 # Create a delimiter string that does not exist in confdefs.h, to ease
8292 # handling of long lines.
8293 ac_delim='%!_!# '
8294 for ac_last_try in false false :; do
8295 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8296 if test -z "$ac_tt"; then
8297 break
8298 elif $ac_last_try; then
8299 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8300 else
8301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8302 fi
8303 done
8304
8305 # For the awk script, D is an array of macro values keyed by name,
8306 # likewise P contains macro parameters if any. Preserve backslash
8307 # newline sequences.
8308
8309 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8310 sed -n '
8311 s/.\{148\}/&'"$ac_delim"'/g
8312 t rset
8313 :rset
8314 s/^[ ]*#[ ]*define[ ][ ]*/ /
8315 t def
8316 d
8317 :def
8318 s/\\$//
8319 t bsnl
8320 s/["\\]/\\&/g
8321 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8322 D["\1"]=" \3"/p
8323 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8324 d
8325 :bsnl
8326 s/["\\]/\\&/g
8327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8328 D["\1"]=" \3\\\\\\n"\\/p
8329 t cont
8330 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8331 t cont
8332 d
8333 :cont
8334 n
8335 s/.\{148\}/&'"$ac_delim"'/g
8336 t clear
8337 :clear
8338 s/\\$//
8339 t bsnlc
8340 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8341 d
8342 :bsnlc
8343 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8344 b cont
8345 ' <confdefs.h | sed '
8346 s/'"$ac_delim"'/"\\\
8347 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8348
8349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8350 for (key in D) D_is_set[key] = 1
8351 FS = ""
8352 }
8353 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8354 line = \$ 0
8355 split(line, arg, " ")
8356 if (arg[1] == "#") {
8357 defundef = arg[2]
8358 mac1 = arg[3]
8359 } else {
8360 defundef = substr(arg[1], 2)
8361 mac1 = arg[2]
8362 }
8363 split(mac1, mac2, "(") #)
8364 macro = mac2[1]
8365 prefix = substr(line, 1, index(line, defundef) - 1)
8366 if (D_is_set[macro]) {
8367 # Preserve the white space surrounding the "#".
8368 print prefix "define", macro P[macro] D[macro]
8369 next
8370 } else {
8371 # Replace #undef with comments. This is necessary, for example,
8372 # in the case of _POSIX_SOURCE, which is predefined and required
8373 # on some systems where configure will not decide to define it.
8374 if (defundef == "undef") {
8375 print "/*", prefix defundef, macro, "*/"
8376 next
8377 }
8378 }
8379 }
8380 { print }
8381 _ACAWK
8382 _ACEOF
8383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8384 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8385 fi # test -n "$CONFIG_HEADERS"
8386
8387
8388 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8389 shift
8390 for ac_tag
8391 do
8392 case $ac_tag in
8393 :[FHLC]) ac_mode=$ac_tag; continue;;
8394 esac
8395 case $ac_mode$ac_tag in
8396 :[FHL]*:*);;
8397 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8398 :[FH]-) ac_tag=-:-;;
8399 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8400 esac
8401 ac_save_IFS=$IFS
8402 IFS=:
8403 set x $ac_tag
8404 IFS=$ac_save_IFS
8405 shift
8406 ac_file=$1
8407 shift
8408
8409 case $ac_mode in
8410 :L) ac_source=$1;;
8411 :[FH])
8412 ac_file_inputs=
8413 for ac_f
8414 do
8415 case $ac_f in
8416 -) ac_f="$ac_tmp/stdin";;
8417 *) # Look for the file first in the build tree, then in the source tree
8418 # (if the path is not absolute). The absolute path cannot be DOS-style,
8419 # because $ac_f cannot contain ':'.
8420 test -f "$ac_f" ||
8421 case $ac_f in
8422 [\\/$]*) false;;
8423 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8424 esac ||
8425 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8426 esac
8427 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8428 as_fn_append ac_file_inputs " '$ac_f'"
8429 done
8430
8431 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8432 # use $as_me), people would be surprised to read:
8433 # /* config.h. Generated by config.status. */
8434 configure_input='Generated from '`
8435 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8436 `' by configure.'
8437 if test x"$ac_file" != x-; then
8438 configure_input="$ac_file. $configure_input"
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8440 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8441 fi
8442 # Neutralize special characters interpreted by sed in replacement strings.
8443 case $configure_input in #(
8444 *\&* | *\|* | *\\* )
8445 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8446 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8447 *) ac_sed_conf_input=$configure_input;;
8448 esac
8449
8450 case $ac_tag in
8451 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8453 esac
8454 ;;
8455 esac
8456
8457 ac_dir=`$as_dirname -- "$ac_file" ||
8458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8459 X"$ac_file" : 'X\(//\)[^/]' \| \
8460 X"$ac_file" : 'X\(//\)$' \| \
8461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8462 printf "%s\n" X"$ac_file" |
8463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8464 s//\1/
8465 q
8466 }
8467 /^X\(\/\/\)[^/].*/{
8468 s//\1/
8469 q
8470 }
8471 /^X\(\/\/\)$/{
8472 s//\1/
8473 q
8474 }
8475 /^X\(\/\).*/{
8476 s//\1/
8477 q
8478 }
8479 s/.*/./; q'`
8480 as_dir="$ac_dir"; as_fn_mkdir_p
8481 ac_builddir=.
8482
8483 case "$ac_dir" in
8484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8485 *)
8486 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8487 # A ".." for each directory in $ac_dir_suffix.
8488 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8489 case $ac_top_builddir_sub in
8490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8492 esac ;;
8493 esac
8494 ac_abs_top_builddir=$ac_pwd
8495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8496 # for backward compatibility:
8497 ac_top_builddir=$ac_top_build_prefix
8498
8499 case $srcdir in
8500 .) # We are building in place.
8501 ac_srcdir=.
8502 ac_top_srcdir=$ac_top_builddir_sub
8503 ac_abs_top_srcdir=$ac_pwd ;;
8504 [\\/]* | ?:[\\/]* ) # Absolute name.
8505 ac_srcdir=$srcdir$ac_dir_suffix;
8506 ac_top_srcdir=$srcdir
8507 ac_abs_top_srcdir=$srcdir ;;
8508 *) # Relative name.
8509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8510 ac_top_srcdir=$ac_top_build_prefix$srcdir
8511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8512 esac
8513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8514
8515
8516 case $ac_mode in
8517 :F)
8518 #
8519 # CONFIG_FILE
8520 #
8521
8522 case $INSTALL in
8523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8525 esac
8526 ac_MKDIR_P=$MKDIR_P
8527 case $MKDIR_P in
8528 [\\/$]* | ?:[\\/]* ) ;;
8529 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8530 esac
8531 _ACEOF
8532
8533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8534 # If the template does not know about datarootdir, expand it.
8535 # FIXME: This hack should be removed a few years after 2.60.
8536 ac_datarootdir_hack=; ac_datarootdir_seen=
8537 ac_sed_dataroot='
8538 /datarootdir/ {
8539 p
8540 q
8541 }
8542 /@datadir@/p
8543 /@docdir@/p
8544 /@infodir@/p
8545 /@localedir@/p
8546 /@mandir@/p'
8547 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8548 *datarootdir*) ac_datarootdir_seen=yes;;
8549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8551 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8552 _ACEOF
8553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8554 ac_datarootdir_hack='
8555 s&@datadir@&$datadir&g
8556 s&@docdir@&$docdir&g
8557 s&@infodir@&$infodir&g
8558 s&@localedir@&$localedir&g
8559 s&@mandir@&$mandir&g
8560 s&\\\${datarootdir}&$datarootdir&g' ;;
8561 esac
8562 _ACEOF
8563
8564 # Neutralize VPATH when '$srcdir' = '.'.
8565 # Shell code in configure.ac might set extrasub.
8566 # FIXME: do we really want to maintain this feature?
8567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8568 ac_sed_extra="$ac_vpsub
8569 $extrasub
8570 _ACEOF
8571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8572 :t
8573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8574 s|@configure_input@|$ac_sed_conf_input|;t t
8575 s&@top_builddir@&$ac_top_builddir_sub&;t t
8576 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8577 s&@srcdir@&$ac_srcdir&;t t
8578 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8579 s&@top_srcdir@&$ac_top_srcdir&;t t
8580 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8581 s&@builddir@&$ac_builddir&;t t
8582 s&@abs_builddir@&$ac_abs_builddir&;t t
8583 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8584 s&@INSTALL@&$ac_INSTALL&;t t
8585 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8586 $ac_datarootdir_hack
8587 "
8588 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8589 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8590
8591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8592 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8594 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8596 which seems to be undefined. Please make sure it is defined" >&5
8597 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8598 which seems to be undefined. Please make sure it is defined" >&2;}
8599
8600 rm -f "$ac_tmp/stdin"
8601 case $ac_file in
8602 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8603 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8604 esac \
8605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8606 ;;
8607 :H)
8608 #
8609 # CONFIG_HEADER
8610 #
8611 if test x"$ac_file" != x-; then
8612 {
8613 printf "%s\n" "/* $configure_input */" >&1 \
8614 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8615 } >"$ac_tmp/config.h" \
8616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8617 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8619 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8620 else
8621 rm -f "$ac_file"
8622 mv "$ac_tmp/config.h" "$ac_file" \
8623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8624 fi
8625 else
8626 printf "%s\n" "/* $configure_input */" >&1 \
8627 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8628 || as_fn_error $? "could not create -" "$LINENO" 5
8629 fi
8630 # Compute "$ac_file"'s index in $config_headers.
8631 _am_arg="$ac_file"
8632 _am_stamp_count=1
8633 for _am_header in $config_headers :; do
8634 case $_am_header in
8635 $_am_arg | $_am_arg:* )
8636 break ;;
8637 * )
8638 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8639 esac
8640 done
8641 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8642 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8643 X"$_am_arg" : 'X\(//\)[^/]' \| \
8644 X"$_am_arg" : 'X\(//\)$' \| \
8645 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8646 printf "%s\n" X"$_am_arg" |
8647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8648 s//\1/
8649 q
8650 }
8651 /^X\(\/\/\)[^/].*/{
8652 s//\1/
8653 q
8654 }
8655 /^X\(\/\/\)$/{
8656 s//\1/
8657 q
8658 }
8659 /^X\(\/\).*/{
8660 s//\1/
8661 q
8662 }
8663 s/.*/./; q'`/stamp-h$_am_stamp_count
8664 ;;
8665
8666 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8667 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
8668 ;;
8669 esac
8670
8671
8672 case $ac_file$ac_mode in
8673 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8674 # Older Autoconf quotes --file arguments for eval, but not when files
8675 # are listed without --file. Let's play safe and only enable the eval
8676 # if we detect the quoting.
8677 # TODO: see whether this extra hack can be removed once we start
8678 # requiring Autoconf 2.70 or later.
8679 case $CONFIG_FILES in #(
8680 *\'*) :
8681 eval set x "$CONFIG_FILES" ;; #(
8682 *) :
8683 set x $CONFIG_FILES ;; #(
8684 *) :
8685 ;;
8686 esac
8687 shift
8688 # Used to flag and report bootstrapping failures.
8689 am_rc=0
8690 for am_mf
8691 do
8692 # Strip MF so we end up with the name of the file.
8693 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
8694 # Check whether this is an Automake generated Makefile which includes
8695 # dependency-tracking related rules and includes.
8696 # Grep'ing the whole file directly is not great: AIX grep has a line
8697 # limit of 2048, but all sed's we know have understand at least 4000.
8698 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8699 || continue
8700 am_dirpart=`$as_dirname -- "$am_mf" ||
8701 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8702 X"$am_mf" : 'X\(//\)[^/]' \| \
8703 X"$am_mf" : 'X\(//\)$' \| \
8704 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8705 printf "%s\n" X"$am_mf" |
8706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8707 s//\1/
8708 q
8709 }
8710 /^X\(\/\/\)[^/].*/{
8711 s//\1/
8712 q
8713 }
8714 /^X\(\/\/\)$/{
8715 s//\1/
8716 q
8717 }
8718 /^X\(\/\).*/{
8719 s//\1/
8720 q
8721 }
8722 s/.*/./; q'`
8723 am_filepart=`$as_basename -- "$am_mf" ||
8724 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8725 X"$am_mf" : 'X\(//\)$' \| \
8726 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8727 printf "%s\n" X/"$am_mf" |
8728 sed '/^.*\/\([^/][^/]*\)\/*$/{
8729 s//\1/
8730 q
8731 }
8732 /^X\/\(\/\/\)$/{
8733 s//\1/
8734 q
8735 }
8736 /^X\/\(\/\).*/{
8737 s//\1/
8738 q
8739 }
8740 s/.*/./; q'`
8741 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8742 && sed -e '/# am--include-marker/d' "$am_filepart" \
8743 | $MAKE -f - am--depfiles" >&5
8744 (cd "$am_dirpart" \
8745 && sed -e '/# am--include-marker/d' "$am_filepart" \
8746 | $MAKE -f - am--depfiles) >&5 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } || am_rc=$?
8750 done
8751 if test $am_rc -ne 0; then
8752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8753 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8754 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8755 for automatic dependency tracking. If GNU make was not used, consider
8756 re-running the configure script with MAKE=\"gmake\" (or whatever is
8757 necessary). You can also try re-running configure with the
8758 '--disable-dependency-tracking' option to at least be able to build
8759 the package (albeit without support for automatic dependency tracking).
8760 See 'config.log' for more details" "$LINENO" 5; }
8761 fi
8762 { am_dirpart=; unset am_dirpart;}
8763 { am_filepart=; unset am_filepart;}
8764 { am_mf=; unset am_mf;}
8765 { am_rc=; unset am_rc;}
8766 rm -f conftest-deps.mk
8767 }
8768 ;;
8769
8770 esac
8771 done # for ac_tag
8772
8773
8774 as_fn_exit 0
8775 _ACEOF
8776 ac_clean_files=$ac_clean_files_save
8777
8778 test $ac_write_fail = 0 ||
8779 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8780
8781
8782 # configure is writing to config.log, and then calls config.status.
8783 # config.status does its own redirection, appending to config.log.
8784 # Unfortunately, on DOS this fails, as config.log is still kept open
8785 # by configure, so config.status won't be able to write to it; its
8786 # output is simply discarded. So we exec the FD to /dev/null,
8787 # effectively closing config.log, so it can be properly (re)opened and
8788 # appended to by config.status. When coming back to configure, we
8789 # need to make the FD available again.
8790 if test "$no_create" != yes; then
8791 ac_cs_success=:
8792 ac_config_status_args=
8793 test "$silent" = yes &&
8794 ac_config_status_args="$ac_config_status_args --quiet"
8795 exec 5>/dev/null
8796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8797 exec 5>>config.log
8798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8799 # would make configure fail if this is the last instruction.
8800 $ac_cs_success || as_fn_exit 1
8801 fi
8802 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8804 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8805 fi
8806
8807
8808 echo "
8809 $PACKAGE_NAME version $PACKAGE_VERSION
8810 Prefix.........: $prefix
8811 Debug Build....: $debug
8812 C Compiler.....: $CC $CFLAGS $CPPFLAGS
8813 Linker.........: $LD $LDFLAGS $LIBS
8814 "
8815