"Fossies" - the Fresh Open Source Software Archive 
Member "xtables-addons-3.13/configure" (20 Nov 2020, 444822 Bytes) of package /linux/privat/xtables-addons-3.13.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure":
3.12_vs_3.13.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xtables-addons 3.13.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
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 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='xtables-addons'
589 PACKAGE_TARNAME='xtables-addons'
590 PACKAGE_VERSION='3.13'
591 PACKAGE_STRING='xtables-addons 3.13'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 xtlibdir
636 kbuilddir
637 regular_CFLAGS
638 regular_CPPFLAGS
639 libxtables_LIBS
640 libxtables_CFLAGS
641 PKG_CONFIG_LIBDIR
642 PKG_CONFIG_PATH
643 PKG_CONFIG
644 CPP
645 LT_SYS_LIBRARY_PATH
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 EGREP
662 GREP
663 SED
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 LIBTOOL
673 ac_ct_AR
674 AR
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL
756 am__quote'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_dependency_tracking
762 enable_static
763 enable_shared
764 with_pic
765 enable_fast_install
766 with_aix_soname
767 with_gnu_ld
768 with_sysroot
769 enable_libtool_lock
770 with_kbuild
771 with_xtlibdir
772 '
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
776 CC
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
781 LT_SYS_LIBRARY_PATH
782 CPP
783 PKG_CONFIG
784 PKG_CONFIG_PATH
785 PKG_CONFIG_LIBDIR
786 libxtables_CFLAGS
787 libxtables_LIBS'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures xtables-addons 3.13 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/xtables-addons]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of xtables-addons 3.13:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
1412 --enable-static[=PKGS] build static libraries [default=no]
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --disable-libtool-lock avoid locking (might break parallel builds)
1417
1418 Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1422 both]
1423 --with-aix-soname=aix|svr4|both
1424 shared library versioning (aka "SONAME") variant to
1425 provide on AIX, [default=aix].
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1428 compiler's sysroot if not specified).
1429 --with-kbuild=PATH Path to kernel build directory
1430 [[/lib/modules/CURRENT/build]]
1431 --without-kbuild Build only userspace tools
1432 --with-xtlibdir=PATH Path where to install Xtables extensions
1433 [[autodetect]]
1434
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 LT_SYS_LIBRARY_PATH
1444 User-defined run-time library search path.
1445 CPP C preprocessor
1446 PKG_CONFIG path to pkg-config utility
1447 PKG_CONFIG_PATH
1448 directories to add to pkg-config's search path
1449 PKG_CONFIG_LIBDIR
1450 path overriding pkg-config's built-in search path
1451 libxtables_CFLAGS
1452 C compiler flags for libxtables, overriding pkg-config
1453 libxtables_LIBS
1454 linker flags for libxtables, overriding pkg-config
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to the package provider.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 xtables-addons configure 3.13
1523 generated by GNU Autoconf 2.69
1524
1525 Copyright (C) 2012 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 test -x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_link
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 eval "$3=yes"
1639 else
1640 eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1800 # the include files in INCLUDES and setting the cache variable VAR
1801 # accordingly.
1802 ac_fn_c_check_header_mongrel ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if eval \${$3+:} false; then :
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 else
1815 # Is the header compilable?
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1817 $as_echo_n "checking $2 usability... " >&6; }
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 $4
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 ac_header_compiler=yes
1825 else
1826 ac_header_compiler=no
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1830 $as_echo "$ac_header_compiler" >&6; }
1831
1832 # Is the header present?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1834 $as_echo_n "checking $2 presence... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_cpp "$LINENO"; then :
1840 ac_header_preproc=yes
1841 else
1842 ac_header_preproc=no
1843 fi
1844 rm -f conftest.err conftest.i conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1846 $as_echo "$ac_header_preproc" >&6; }
1847
1848 # So? What about this header?
1849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1850 yes:no: )
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1852 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ;;
1856 no:yes:* )
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1858 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1860 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1862 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1864 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 ;;
1868 esac
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=\$ac_header_compiler"
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 fi
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_header_mongrel
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1886
1887 It was created by xtables-addons $as_me 3.13, which was
1888 generated by GNU Autoconf 2.69. Invocation command line was
1889
1890 $ $0 $@
1891
1892 _ACEOF
1893 exec 5>>config.log
1894 {
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1899
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916
1917 _ASUNAME
1918
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 $as_echo "PATH: $as_dir"
1925 done
1926 IFS=$as_save_IFS
1927
1928 } >&5
1929
1930 cat >&5 <<_ACEOF
1931
1932
1933 ## ----------- ##
1934 ## Core tests. ##
1935 ## ----------- ##
1936
1937 _ACEOF
1938
1939
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_configure_args=
1946 ac_configure_args0=
1947 ac_configure_args1=
1948 ac_must_keep_next=false
1949 for ac_pass in 1 2
1950 do
1951 for ac_arg
1952 do
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 esac
1961 case $ac_pass in
1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 2)
1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1976 ;;
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1979 fi
1980 as_fn_append ac_configure_args " '$ac_arg'"
1981 ;;
1982 esac
1983 done
1984 done
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1987
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log. We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 $as_echo "## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##"
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
2003 (
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
2019 (set) 2>&1 |
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2022 sed -n \
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
2026 *)
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 ;;
2029 esac |
2030 sort
2031 )
2032 echo
2033
2034 $as_echo "## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##"
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 $as_echo "## ------------------- ##
2050 ## File substitutions. ##
2051 ## ------------------- ##"
2052 echo
2053 for ac_var in $ac_subst_files
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062 fi
2063
2064 if test -s confdefs.h; then
2065 $as_echo "## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##"
2068 echo
2069 cat confdefs.h
2070 echo
2071 fi
2072 test "$ac_signal" != 0 &&
2073 $as_echo "$as_me: caught signal $ac_signal"
2074 $as_echo "$as_me: exit $exit_status"
2075 } >&5
2076 rm -f core *.core core.conftest.* &&
2077 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2078 exit $exit_status
2079 ' 0
2080 for ac_signal in 1 2 13 15; do
2081 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082 done
2083 ac_signal=0
2084
2085 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2086 rm -f -r conftest* confdefs.h
2087
2088 $as_echo "/* confdefs.h */" > confdefs.h
2089
2090 # Predefined preprocessor variables.
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_NAME "$PACKAGE_NAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_STRING "$PACKAGE_STRING"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_URL "$PACKAGE_URL"
2114 _ACEOF
2115
2116
2117 # Let the site file select an alternate cache file if it wants to.
2118 # Prefer an explicitly selected file to automatically selected ones.
2119 ac_site_file1=NONE
2120 ac_site_file2=NONE
2121 if test -n "$CONFIG_SITE"; then
2122 # We do not want a PATH search for config.site.
2123 case $CONFIG_SITE in #((
2124 -*) ac_site_file1=./$CONFIG_SITE;;
2125 */*) ac_site_file1=$CONFIG_SITE;;
2126 *) ac_site_file1=./$CONFIG_SITE;;
2127 esac
2128 elif test "x$prefix" != xNONE; then
2129 ac_site_file1=$prefix/share/config.site
2130 ac_site_file2=$prefix/etc/config.site
2131 else
2132 ac_site_file1=$ac_default_prefix/share/config.site
2133 ac_site_file2=$ac_default_prefix/etc/config.site
2134 fi
2135 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 do
2137 test "x$ac_site_file" = xNONE && continue
2138 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141 sed 's/^/| /' "$ac_site_file" >&5
2142 . "$ac_site_file" \
2143 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145 as_fn_error $? "failed to load site script $ac_site_file
2146 See \`config.log' for more details" "$LINENO" 5; }
2147 fi
2148 done
2149
2150 if test -r "$cache_file"; then
2151 # Some versions of bash will fail to source /dev/null (special files
2152 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2153 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2155 $as_echo "$as_me: loading cache $cache_file" >&6;}
2156 case $cache_file in
2157 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2158 *) . "./$cache_file";;
2159 esac
2160 fi
2161 else
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2163 $as_echo "$as_me: creating cache $cache_file" >&6;}
2164 >$cache_file
2165 fi
2166
2167 # Check that the precious variables saved in the cache have kept the same
2168 # value.
2169 ac_cache_corrupted=false
2170 for ac_var in $ac_precious_vars; do
2171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2172 eval ac_new_set=\$ac_env_${ac_var}_set
2173 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2174 eval ac_new_val=\$ac_env_${ac_var}_value
2175 case $ac_old_set,$ac_new_set in
2176 set,)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,set)
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2183 ac_cache_corrupted=: ;;
2184 ,);;
2185 *)
2186 if test "x$ac_old_val" != "x$ac_new_val"; then
2187 # differences in whitespace do not lead to failure.
2188 ac_old_val_w=`echo x $ac_old_val`
2189 ac_new_val_w=`echo x $ac_new_val`
2190 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2192 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2193 ac_cache_corrupted=:
2194 else
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2196 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2197 eval $ac_var=\$ac_old_val
2198 fi
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2200 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2202 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2203 fi;;
2204 esac
2205 # Pass precious variables to config.status.
2206 if test "$ac_new_set" = set; then
2207 case $ac_new_val in
2208 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 *) ac_arg=$ac_var=$ac_new_val ;;
2210 esac
2211 case " $ac_configure_args " in
2212 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2213 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2214 esac
2215 fi
2216 done
2217 if $ac_cache_corrupted; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2221 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2222 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223 fi
2224 ## -------------------- ##
2225 ## Main body of script. ##
2226 ## -------------------- ##
2227
2228 ac_ext=c
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233
2234
2235 ac_aux_dir=
2236 for ac_dir in build-aux "$srcdir"/build-aux; do
2237 if test -f "$ac_dir/install-sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install-sh -c"
2240 break
2241 elif test -f "$ac_dir/install.sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install.sh -c"
2244 break
2245 elif test -f "$ac_dir/shtool"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/shtool install -c"
2248 break
2249 fi
2250 done
2251 if test -z "$ac_aux_dir"; then
2252 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2253 fi
2254
2255 # These three variables are undocumented and unsupported,
2256 # and are intended to be withdrawn in a future Autoconf release.
2257 # They can cause serious problems if a builder's source tree is in a directory
2258 # whose full name contains unusual characters.
2259 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2260 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2261 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2262
2263
2264 ac_config_headers="$ac_config_headers config.h"
2265
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 am__api_version='1.16'
2361
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363 $as_echo_n "checking whether build environment is sane... " >&6; }
2364 # Reject unsafe characters in $srcdir or the absolute working directory
2365 # name. Accept space and tab only in the latter.
2366 am_lf='
2367 '
2368 case `pwd` in
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371 esac
2372 case $srcdir in
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2375 esac
2376
2377 # Do 'set' in a subshell so we don't clobber the current shell's
2378 # arguments. Must try -L first in case configure is actually a
2379 # symlink; some systems play weird games with the mod time of symlinks
2380 # (eg FreeBSD returns the mod time of the symlink's containing
2381 # directory).
2382 if (
2383 am_has_slept=no
2384 for am_try in 1 2; do
2385 echo "timestamp, slept: $am_has_slept" > conftest.file
2386 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387 if test "$*" = "X"; then
2388 # -L didn't work.
2389 set X `ls -t "$srcdir/configure" conftest.file`
2390 fi
2391 if test "$*" != "X $srcdir/configure conftest.file" \
2392 && test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394 # If neither matched, then we have a broken ls. This can happen
2395 # if, for instance, CONFIG_SHELL is bash and it inherits a
2396 # broken ls alias from the environment. This has actually
2397 # happened. Such a system could not be considered "sane".
2398 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2399 alias in your environment" "$LINENO" 5
2400 fi
2401 if test "$2" = conftest.file || test $am_try -eq 2; then
2402 break
2403 fi
2404 # Just in case.
2405 sleep 1
2406 am_has_slept=yes
2407 done
2408 test "$2" = conftest.file
2409 )
2410 then
2411 # Ok.
2412 :
2413 else
2414 as_fn_error $? "newly created file is older than distributed files!
2415 Check your system clock" "$LINENO" 5
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418 $as_echo "yes" >&6; }
2419 # If we didn't sleep, we still need to ensure time stamps of config.status and
2420 # generated files are strictly newer.
2421 am_sleep_pid=
2422 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2423 ( sleep 1 ) &
2424 am_sleep_pid=$!
2425 fi
2426
2427 rm -f conftest.file
2428
2429 test "$program_prefix" != NONE &&
2430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439 # Expand $ac_aux_dir to an absolute path.
2440 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2441
2442 if test x"${MISSING+set}" != xset; then
2443 case $am_aux_dir in
2444 *\ * | *\ *)
2445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446 *)
2447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448 esac
2449 fi
2450 # Use eval to expand $SHELL
2451 if eval "$MISSING --is-lightweight"; then
2452 am_missing_run="$MISSING "
2453 else
2454 am_missing_run=
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2456 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2457 fi
2458
2459 if test x"${install_sh+set}" != xset; then
2460 case $am_aux_dir in
2461 *\ * | *\ *)
2462 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2463 *)
2464 install_sh="\${SHELL} $am_aux_dir/install-sh"
2465 esac
2466 fi
2467
2468 # Installed binaries are usually stripped using 'strip' when the user
2469 # run "make install-strip". However 'strip' might not be the right
2470 # tool to use in cross-compilation environments, therefore Automake
2471 # will honor the 'STRIP' environment variable to overrule this program.
2472 if test "$cross_compiling" != no; then
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_STRIP+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test -n "$STRIP"; then
2482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 STRIP=$ac_cv_prog_STRIP
2502 if test -n "$STRIP"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2504 $as_echo "$STRIP" >&6; }
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$ac_cv_prog_STRIP"; then
2513 ac_ct_STRIP=$STRIP
2514 # Extract the first word of "strip", so it can be a program name with args.
2515 set dummy strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$ac_ct_STRIP"; then
2522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_ac_ct_STRIP="strip"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542 if test -n "$ac_ct_STRIP"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2544 $as_echo "$ac_ct_STRIP" >&6; }
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550 if test "x$ac_ct_STRIP" = x; then
2551 STRIP=":"
2552 else
2553 case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559 STRIP=$ac_ct_STRIP
2560 fi
2561 else
2562 STRIP="$ac_cv_prog_STRIP"
2563 fi
2564
2565 fi
2566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2570 if test -z "$MKDIR_P"; then
2571 if ${ac_cv_path_mkdir+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_prog in mkdir gmkdir; do
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2582 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2583 'mkdir (GNU coreutils) '* | \
2584 'mkdir (coreutils) '* | \
2585 'mkdir (fileutils) '4.1*)
2586 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2587 break 3;;
2588 esac
2589 done
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595
2596 test -d ./--version && rmdir ./--version
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2598 MKDIR_P="$ac_cv_path_mkdir -p"
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for MKDIR_P within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 MKDIR_P="$ac_install_sh -d"
2605 fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608 $as_echo "$MKDIR_P" >&6; }
2609
2610 for ac_prog in gawk mawk nawk awk
2611 do
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613 set dummy $ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_AWK+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$AWK"; then
2620 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_AWK="$ac_prog"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633 done
2634 done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 AWK=$ac_cv_prog_AWK
2640 if test -n "$AWK"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642 $as_echo "$AWK" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649 test -n "$AWK" && break
2650 done
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654 set x ${MAKE-make}
2655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat >conftest.make <<\_ACEOF
2660 SHELL = /bin/sh
2661 all:
2662 @echo '@@@%%%=$(MAKE)=@@@%%%'
2663 _ACEOF
2664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666 *@@@%%%=?*=@@@%%%*)
2667 eval ac_cv_prog_make_${ac_make}_set=yes;;
2668 *)
2669 eval ac_cv_prog_make_${ac_make}_set=no;;
2670 esac
2671 rm -f conftest.make
2672 fi
2673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
2676 SET_MAKE=
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 SET_MAKE="MAKE=${MAKE-make}"
2681 fi
2682
2683 rm -rf .tst 2>/dev/null
2684 mkdir .tst 2>/dev/null
2685 if test -d .tst; then
2686 am__leading_dot=.
2687 else
2688 am__leading_dot=_
2689 fi
2690 rmdir .tst 2>/dev/null
2691
2692 # Check whether --enable-silent-rules was given.
2693 if test "${enable_silent_rules+set}" = set; then :
2694 enableval=$enable_silent_rules;
2695 fi
2696
2697 case $enable_silent_rules in # (((
2698 yes) AM_DEFAULT_VERBOSITY=0;;
2699 no) AM_DEFAULT_VERBOSITY=1;;
2700 *) AM_DEFAULT_VERBOSITY=1;;
2701 esac
2702 am_make=${MAKE-make}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2704 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2705 if ${am_cv_make_support_nested_variables+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if $as_echo 'TRUE=$(BAR$(V))
2709 BAR0=false
2710 BAR1=true
2711 V=1
2712 am__doit:
2713 @$(TRUE)
2714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2715 am_cv_make_support_nested_variables=yes
2716 else
2717 am_cv_make_support_nested_variables=no
2718 fi
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2721 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2722 if test $am_cv_make_support_nested_variables = yes; then
2723 AM_V='$(V)'
2724 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2725 else
2726 AM_V=$AM_DEFAULT_VERBOSITY
2727 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2728 fi
2729 AM_BACKSLASH='\'
2730
2731 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2732 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2733 # is not polluted with repeated "-I."
2734 am__isrc=' -I$(srcdir)'
2735 # test to see if srcdir already configured
2736 if test -f $srcdir/config.status; then
2737 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2738 fi
2739 fi
2740
2741 # test whether we have cygpath
2742 if test -z "$CYGPATH_W"; then
2743 if (cygpath --version) >/dev/null 2>/dev/null; then
2744 CYGPATH_W='cygpath -w'
2745 else
2746 CYGPATH_W=echo
2747 fi
2748 fi
2749
2750
2751 # Define the identity of the package.
2752 PACKAGE='xtables-addons'
2753 VERSION='3.13'
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE "$PACKAGE"
2758 _ACEOF
2759
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define VERSION "$VERSION"
2763 _ACEOF
2764
2765 # Some tools Automake needs.
2766
2767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768
2769
2770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771
2772
2773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774
2775
2776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777
2778
2779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2780
2781 # For better backward compatibility. To be removed once Automake 1.9.x
2782 # dies out for good. For more background, see:
2783 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2784 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2785 mkdir_p='$(MKDIR_P)'
2786
2787 # We need awk for the "check" target (and possibly the TAP driver). The
2788 # system "awk" is bad on some platforms.
2789 # Always define AMTAR for backward compatibility. Yes, it's still used
2790 # in the wild :-( We should find a proper way to deprecate it ...
2791 AMTAR='$${TAR-tar}'
2792
2793
2794 # We'll loop over all known methods to create a tar archive until one works.
2795 _am_tools='gnutar pax cpio none'
2796
2797 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2798
2799
2800
2801
2802
2803
2804 # POSIX will say in a future version that running "rm -f" with no argument
2805 # is OK; and we want to be able to make that assumption in our Makefile
2806 # recipes. So use an aggressive probe to check that the usage we want is
2807 # actually supported "in the wild" to an acceptable degree.
2808 # See automake bug#10828.
2809 # To make any issue more visible, cause the running configure to be aborted
2810 # by default if the 'rm' program in use doesn't match our expectations; the
2811 # user can still override this though.
2812 if rm -f && rm -fr && rm -rf; then : OK; else
2813 cat >&2 <<'END'
2814 Oops!
2815
2816 Your 'rm' program seems unable to run without file operands specified
2817 on the command line, even when the '-f' option is present. This is contrary
2818 to the behaviour of most rm programs out there, and not conforming with
2819 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2820
2821 Please tell bug-automake@gnu.org about your system, including the value
2822 of your $PATH and any error possibly output before this message. This
2823 can help us improve future automake versions.
2824
2825 END
2826 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2827 echo 'Configuration will proceed anyway, since you have set the' >&2
2828 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2829 echo >&2
2830 else
2831 cat >&2 <<'END'
2832 Aborting the configuration process, to ensure you take notice of the issue.
2833
2834 You can download and install GNU coreutils to get an 'rm' implementation
2835 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2836
2837 If you want to complete the configuration process using your problematic
2838 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2839 to "yes", and re-run configure.
2840
2841 END
2842 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2843 fi
2844 fi
2845 # Check whether --enable-silent-rules was given.
2846 if test "${enable_silent_rules+set}" = set; then :
2847 enableval=$enable_silent_rules;
2848 fi
2849
2850 case $enable_silent_rules in # (((
2851 yes) AM_DEFAULT_VERBOSITY=0;;
2852 no) AM_DEFAULT_VERBOSITY=1;;
2853 *) AM_DEFAULT_VERBOSITY=0;;
2854 esac
2855 am_make=${MAKE-make}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2857 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2858 if ${am_cv_make_support_nested_variables+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if $as_echo 'TRUE=$(BAR$(V))
2862 BAR0=false
2863 BAR1=true
2864 V=1
2865 am__doit:
2866 @$(TRUE)
2867 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2868 am_cv_make_support_nested_variables=yes
2869 else
2870 am_cv_make_support_nested_variables=no
2871 fi
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2874 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2875 if test $am_cv_make_support_nested_variables = yes; then
2876 AM_V='$(V)'
2877 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2878 else
2879 AM_V=$AM_DEFAULT_VERBOSITY
2880 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2881 fi
2882 AM_BACKSLASH='\'
2883
2884
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927
2928 fi
2929 if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "gcc", so it can be a program name with args.
2932 set dummy gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_ac_ct_CC="gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959 if test -n "$ac_ct_CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961 $as_echo "$ac_ct_CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971 yes:)
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976 CC=$ac_ct_CC
2977 fi
2978 else
2979 CC="$ac_cv_prog_CC"
2980 fi
2981
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="${ac_tool_prefix}cc"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 fi
3022 fi
3023 if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025 set dummy cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 ac_prog_rejected=no
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3044 continue
3045 fi
3046 ac_cv_prog_CC="cc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3053
3054 if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3057 shift
3058 if test $# != 0; then
3059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3062 shift
3063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064 fi
3065 fi
3066 fi
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 for ac_prog in cl.exe
3082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CC+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 test -n "$CC" && break
3121 done
3122 fi
3123 if test -z "$CC"; then
3124 ac_ct_CC=$CC
3125 for ac_prog in cl.exe
3126 do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_ac_ct_CC="$ac_prog"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163
3164 test -n "$ac_ct_CC" && break
3165 done
3166
3167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 CC=$ac_ct_CC
3177 fi
3178 fi
3179
3180 fi
3181
3182
3183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details" "$LINENO" 5; }
3187
3188 # Provide some information about the compiler.
3189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190 set X $ac_compile
3191 ac_compiler=$2
3192 for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201 ac_status=$?
3202 if test -s conftest.err; then
3203 sed '10a\
3204 ... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
3207 fi
3208 rm -f conftest.er1 conftest.err
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3211 done
3212
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3215
3216 int
3217 main ()
3218 {
3219
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3228 # of exeext.
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230 $as_echo_n "checking whether the C compiler works... " >&6; }
3231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233 # The possible output files:
3234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236 ac_rmfiles=
3237 for ac_file in $ac_files
3238 do
3239 case $ac_file in
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243 done
3244 rm -f $ac_rmfiles
3245
3246 if { { ac_try="$ac_link_default"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link_default") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3260 # so that the user can short-circuit this test for compilers unknown to
3261 # Autoconf.
3262 for ac_file in $ac_files ''
3263 do
3264 test -f "$ac_file" || continue
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 fi
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
3282 break;;
3283 * )
3284 break;;
3285 esac
3286 done
3287 test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289 else
3290 ac_file=''
3291 fi
3292 if test -z "$ac_file"; then :
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error 77 "C compiler cannot create executables
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309 $as_echo "$ac_file" >&6; }
3310 ac_exeext=$ac_cv_exeext
3311
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315 $as_echo_n "checking for suffix of executables... " >&6; }
3316 if { { ac_try="$ac_link"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 # `rm'.
3331 for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 break;;
3337 * ) break;;
3338 esac
3339 done
3340 else
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details" "$LINENO" 5; }
3345 fi
3346 rm -f conftest conftest$ac_cv_exeext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348 $as_echo "$ac_cv_exeext" >&6; }
3349
3350 rm -f conftest.$ac_ext
3351 EXEEXT=$ac_cv_exeext
3352 ac_exeext=$EXEEXT
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <stdio.h>
3356 int
3357 main ()
3358 {
3359 FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362 ;
3363 return 0;
3364 }
3365 _ACEOF
3366 ac_clean_files="$ac_clean_files conftest.out"
3367 # Check that the compiler produces executables we can run. If not, either
3368 # the compiler is broken, or we cross compile.
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370 $as_echo_n "checking whether we are cross compiling... " >&6; }
3371 if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 fi
3405 fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408 $as_echo "$cross_compiling" >&6; }
3409
3410 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413 $as_echo_n "checking for suffix of object files... " >&6; }
3414 if ${ac_cv_objext+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main ()
3422 {
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.o conftest.obj
3429 if { { ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_compile") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447 done
3448 else
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details" "$LINENO" 5; }
3456 fi
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460 $as_echo "$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3462 ac_objext=$OBJEXT
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465 if ${ac_cv_c_compiler_gnu+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474 #ifndef __GNUC__
3475 choke me
3476 #endif
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_compiler_gnu=yes
3484 else
3485 ac_compiler_gnu=no
3486 fi
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3489
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493 if test $ac_compiler_gnu = yes; then
3494 GCC=yes
3495 else
3496 GCC=
3497 fi
3498 ac_test_CFLAGS=${CFLAGS+set}
3499 ac_save_CFLAGS=$CFLAGS
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3502 if ${ac_cv_prog_cc_g+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3507 ac_cv_prog_cc_g=no
3508 CFLAGS="-g"
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_cv_prog_cc_g=yes
3522 else
3523 CFLAGS=""
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526
3527 int
3528 main ()
3529 {
3530
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536
3537 else
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542
3543 int
3544 main ()
3545 {
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_prog_cc_g=yes
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562 $as_echo "$ac_cv_prog_cc_g" >&6; }
3563 if test "$ac_test_CFLAGS" = set; then
3564 CFLAGS=$ac_save_CFLAGS
3565 elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
3567 CFLAGS="-g -O2"
3568 else
3569 CFLAGS="-g"
3570 fi
3571 else
3572 if test "$GCC" = yes; then
3573 CFLAGS="-O2"
3574 else
3575 CFLAGS=
3576 fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if ${ac_cv_prog_cc_c89+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 ac_cv_prog_cc_c89=no
3584 ac_save_CC=$CC
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdarg.h>
3588 #include <stdio.h>
3589 struct stat;
3590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3591 struct buf { int x; };
3592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3593 static char *e (p, i)
3594 char **p;
3595 int i;
3596 {
3597 return p[i];
3598 }
3599 static char *f (char * (*g) (char **, int), char **p, ...)
3600 {
3601 char *s;
3602 va_list v;
3603 va_start (v,p);
3604 s = g (p, va_arg (v,int));
3605 va_end (v);
3606 return s;
3607 }
3608
3609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3610 function prototypes and stuff, but not '\xHH' hex character constants.
3611 These don't provoke an error unfortunately, instead are silently treated
3612 as 'x'. The following induces an error, until -std is added to get
3613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3614 array size at least. It's necessary to write '\x00'==0 to get something
3615 that's true only with -std. */
3616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617
3618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3619 inside strings and character constants. */
3620 #define FOO(x) 'x'
3621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622
3623 int test (int i, double x);
3624 struct s1 {int (*f) (int a);};
3625 struct s2 {int (*f) (double a);};
3626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3627 int argc;
3628 char **argv;
3629 int
3630 main ()
3631 {
3632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 do
3640 CC="$ac_save_CC $ac_arg"
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_prog_cc_c89=$ac_arg
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext
3645 test "x$ac_cv_prog_cc_c89" != "xno" && break
3646 done
3647 rm -f conftest.$ac_ext
3648 CC=$ac_save_CC
3649
3650 fi
3651 # AC_CACHE_VAL
3652 case "x$ac_cv_prog_cc_c89" in
3653 x)
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3655 $as_echo "none needed" >&6; } ;;
3656 xno)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3658 $as_echo "unsupported" >&6; } ;;
3659 *)
3660 CC="$CC $ac_cv_prog_cc_c89"
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3663 esac
3664 if test "x$ac_cv_prog_cc_c89" != xno; then :
3665
3666 fi
3667
3668 ac_ext=c
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3680 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3681 if ${am_cv_prog_cc_c_o+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main ()
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 # Make sure it works both with $CC and with simple cc.
3696 # Following AC_PROG_CC_C_O, we do the test twice because some
3697 # compilers refuse to overwrite an existing .o file with -o,
3698 # though they will create one.
3699 am_cv_prog_cc_c_o=yes
3700 for am_i in 1 2; do
3701 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3702 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } \
3706 && test -f conftest2.$ac_objext; then
3707 : OK
3708 else
3709 am_cv_prog_cc_c_o=no
3710 break
3711 fi
3712 done
3713 rm -f core conftest*
3714 unset am_i
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3717 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3718 if test "$am_cv_prog_cc_c_o" != yes; then
3719 # Losing compiler, so override with the script.
3720 # FIXME: It is wrong to rewrite CC.
3721 # But if we don't then we get into trouble of one sort or another.
3722 # A longer-term fix would be to have automake use am__CC in this case,
3723 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3724 CC="$am_aux_dir/compile $CC"
3725 fi
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732 DEPDIR="${am__leading_dot}deps"
3733
3734 ac_config_commands="$ac_config_commands depfiles"
3735
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3737 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3738 cat > confinc.mk << 'END'
3739 am__doit:
3740 @echo this is the am__doit target >confinc.out
3741 .PHONY: am__doit
3742 END
3743 am__include="#"
3744 am__quote=
3745 # BSD make does it like this.
3746 echo '.include "confinc.mk" # ignored' > confmf.BSD
3747 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3748 echo 'include confinc.mk # ignored' > confmf.GNU
3749 _am_result=no
3750 for s in GNU BSD; do
3751 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3752 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }
3756 case $?:`cat confinc.out 2>/dev/null` in #(
3757 '0:this is the am__doit target') :
3758 case $s in #(
3759 BSD) :
3760 am__include='.include' am__quote='"' ;; #(
3761 *) :
3762 am__include='include' am__quote='' ;;
3763 esac ;; #(
3764 *) :
3765 ;;
3766 esac
3767 if test "$am__include" != "#"; then
3768 _am_result="yes ($s style)"
3769 break
3770 fi
3771 done
3772 rm -f confinc.* confmf.*
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3774 $as_echo "${_am_result}" >&6; }
3775
3776 # Check whether --enable-dependency-tracking was given.
3777 if test "${enable_dependency_tracking+set}" = set; then :
3778 enableval=$enable_dependency_tracking;
3779 fi
3780
3781 if test "x$enable_dependency_tracking" != xno; then
3782 am_depcomp="$ac_aux_dir/depcomp"
3783 AMDEPBACKSLASH='\'
3784 am__nodep='_no'
3785 fi
3786 if test "x$enable_dependency_tracking" != xno; then
3787 AMDEP_TRUE=
3788 AMDEP_FALSE='#'
3789 else
3790 AMDEP_TRUE='#'
3791 AMDEP_FALSE=
3792 fi
3793
3794
3795
3796 depcc="$CC" am_compiler_list=
3797
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3799 $as_echo_n "checking dependency style of $depcc... " >&6; }
3800 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3804 # We make a subdir and do the tests there. Otherwise we can end up
3805 # making bogus files that we don't know about and never remove. For
3806 # instance it was reported that on HP-UX the gcc test will end up
3807 # making a dummy file named 'D' -- because '-MD' means "put the output
3808 # in D".
3809 rm -rf conftest.dir
3810 mkdir conftest.dir
3811 # Copy depcomp to subdir because otherwise we won't find it if we're
3812 # using a relative directory.
3813 cp "$am_depcomp" conftest.dir
3814 cd conftest.dir
3815 # We will build objects and dependencies in a subdirectory because
3816 # it helps to detect inapplicable dependency modes. For instance
3817 # both Tru64's cc and ICC support -MD to output dependencies as a
3818 # side effect of compilation, but ICC will put the dependencies in
3819 # the current directory while Tru64 will put them in the object
3820 # directory.
3821 mkdir sub
3822
3823 am_cv_CC_dependencies_compiler_type=none
3824 if test "$am_compiler_list" = ""; then
3825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3826 fi
3827 am__universal=false
3828 case " $depcc " in #(
3829 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3830 esac
3831
3832 for depmode in $am_compiler_list; do
3833 # Setup a source with many dependencies, because some compilers
3834 # like to wrap large dependency lists on column 80 (with \), and
3835 # we should not choose a depcomp mode which is confused by this.
3836 #
3837 # We need to recreate these files for each test, as the compiler may
3838 # overwrite some of them when testing with obscure command lines.
3839 # This happens at least with the AIX C compiler.
3840 : > sub/conftest.c
3841 for i in 1 2 3 4 5 6; do
3842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3843 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3844 # Solaris 10 /bin/sh.
3845 echo '/* dummy */' > sub/conftst$i.h
3846 done
3847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3848
3849 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3850 # mode. It turns out that the SunPro C++ compiler does not properly
3851 # handle '-M -o', and we need to detect this. Also, some Intel
3852 # versions had trouble with output in subdirs.
3853 am__obj=sub/conftest.${OBJEXT-o}
3854 am__minus_obj="-o $am__obj"
3855 case $depmode in
3856 gcc)
3857 # This depmode causes a compiler race in universal mode.
3858 test "$am__universal" = false || continue
3859 ;;
3860 nosideeffect)
3861 # After this tag, mechanisms are not by side-effect, so they'll
3862 # only be used when explicitly requested.
3863 if test "x$enable_dependency_tracking" = xyes; then
3864 continue
3865 else
3866 break
3867 fi
3868 ;;
3869 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3870 # This compiler won't grok '-c -o', but also, the minuso test has
3871 # not run yet. These depmodes are late enough in the game, and
3872 # so weak that their functioning should not be impacted.
3873 am__obj=conftest.${OBJEXT-o}
3874 am__minus_obj=
3875 ;;
3876 none) break ;;
3877 esac
3878 if depmode=$depmode \
3879 source=sub/conftest.c object=$am__obj \
3880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3882 >/dev/null 2>conftest.err &&
3883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3887 # icc doesn't choke on unknown options, it will just issue warnings
3888 # or remarks (even with -Werror). So we grep stderr for any message
3889 # that says an option was ignored or not supported.
3890 # When given -MP, icc 7.0 and 7.1 complain thusly:
3891 # icc: Command line warning: ignoring option '-M'; no argument required
3892 # The diagnosis changed in icc 8.0:
3893 # icc: Command line remark: option '-MP' not supported
3894 if (grep 'ignoring option' conftest.err ||
3895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3896 am_cv_CC_dependencies_compiler_type=$depmode
3897 break
3898 fi
3899 fi
3900 done
3901
3902 cd ..
3903 rm -rf conftest.dir
3904 else
3905 am_cv_CC_dependencies_compiler_type=none
3906 fi
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3910 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3911 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3912
3913 if
3914 test "x$enable_dependency_tracking" != xno \
3915 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3916 am__fastdepCC_TRUE=
3917 am__fastdepCC_FALSE='#'
3918 else
3919 am__fastdepCC_TRUE='#'
3920 am__fastdepCC_FALSE=
3921 fi
3922
3923
3924
3925
3926 if test -n "$ac_tool_prefix"; then
3927 for ac_prog in ar lib "link -lib"
3928 do
3929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_AR+:} false; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -n "$AR"; then
3937 ac_cv_prog_AR="$AR" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950 done
3951 done
3952 IFS=$as_save_IFS
3953
3954 fi
3955 fi
3956 AR=$ac_cv_prog_AR
3957 if test -n "$AR"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3959 $as_echo "$AR" >&6; }
3960 else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 fi
3964
3965
3966 test -n "$AR" && break
3967 done
3968 fi
3969 if test -z "$AR"; then
3970 ac_ct_AR=$AR
3971 for ac_prog in ar lib "link -lib"
3972 do
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974 set dummy $ac_prog; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -n "$ac_ct_AR"; then
3981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_ac_ct_AR="$ac_prog"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994 done
3995 done
3996 IFS=$as_save_IFS
3997
3998 fi
3999 fi
4000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4001 if test -n "$ac_ct_AR"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4003 $as_echo "$ac_ct_AR" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 fi
4008
4009
4010 test -n "$ac_ct_AR" && break
4011 done
4012
4013 if test "x$ac_ct_AR" = x; then
4014 AR="false"
4015 else
4016 case $cross_compiling:$ac_tool_warned in
4017 yes:)
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4020 ac_tool_warned=yes ;;
4021 esac
4022 AR=$ac_ct_AR
4023 fi
4024 fi
4025
4026 : ${AR=ar}
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4029 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4030 if ${am_cv_ar_interface+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039 am_cv_ar_interface=ar
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042 int some_variable = 0;
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4047 (eval $am_ar_try) 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051 if test "$ac_status" -eq 0; then
4052 am_cv_ar_interface=ar
4053 else
4054 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4056 (eval $am_ar_try) 2>&5
4057 ac_status=$?
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4060 if test "$ac_status" -eq 0; then
4061 am_cv_ar_interface=lib
4062 else
4063 am_cv_ar_interface=unknown
4064 fi
4065 fi
4066 rm -f conftest.lib libconftest.a
4067
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4078 $as_echo "$am_cv_ar_interface" >&6; }
4079
4080 case $am_cv_ar_interface in
4081 ar)
4082 ;;
4083 lib)
4084 # Microsoft lib, so override with the ar-lib wrapper script.
4085 # FIXME: It is wrong to rewrite AR.
4086 # But if we don't then we get into trouble of one sort or another.
4087 # A longer-term fix would be to have automake use am__AR in this case,
4088 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4089 # similar.
4090 AR="$am_aux_dir/ar-lib $AR"
4091 ;;
4092 unknown)
4093 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4094 ;;
4095 esac
4096
4097 # Check whether --enable-static was given.
4098 if test "${enable_static+set}" = set; then :
4099 enableval=$enable_static; p=${PACKAGE-default}
4100 case $enableval in
4101 yes) enable_static=yes ;;
4102 no) enable_static=no ;;
4103 *)
4104 enable_static=no
4105 # Look at the argument we got. We use all the common list separators.
4106 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4107 for pkg in $enableval; do
4108 IFS=$lt_save_ifs
4109 if test "X$pkg" = "X$p"; then
4110 enable_static=yes
4111 fi
4112 done
4113 IFS=$lt_save_ifs
4114 ;;
4115 esac
4116 else
4117 enable_static=no
4118 fi
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128 case `pwd` in
4129 *\ * | *\ *)
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4131 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4132 esac
4133
4134
4135
4136 macro_version='2.4.6'
4137 macro_revision='2.4.6'
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151 ltmain=$ac_aux_dir/ltmain.sh
4152
4153 # Make sure we can run config.sub.
4154 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4155 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4158 $as_echo_n "checking build system type... " >&6; }
4159 if ${ac_cv_build+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_build_alias=$build_alias
4163 test "x$ac_build_alias" = x &&
4164 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4165 test "x$ac_build_alias" = x &&
4166 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4167 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4168 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4169
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4172 $as_echo "$ac_cv_build" >&6; }
4173 case $ac_cv_build in
4174 *-*-*) ;;
4175 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4176 esac
4177 build=$ac_cv_build
4178 ac_save_IFS=$IFS; IFS='-'
4179 set x $ac_cv_build
4180 shift
4181 build_cpu=$1
4182 build_vendor=$2
4183 shift; shift
4184 # Remember, the first character of IFS is used to create $*,
4185 # except with old shells:
4186 build_os=$*
4187 IFS=$ac_save_IFS
4188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4189
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4192 $as_echo_n "checking host system type... " >&6; }
4193 if ${ac_cv_host+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test "x$host_alias" = x; then
4197 ac_cv_host=$ac_cv_build
4198 else
4199 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4200 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4201 fi
4202
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4205 $as_echo "$ac_cv_host" >&6; }
4206 case $ac_cv_host in
4207 *-*-*) ;;
4208 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4209 esac
4210 host=$ac_cv_host
4211 ac_save_IFS=$IFS; IFS='-'
4212 set x $ac_cv_host
4213 shift
4214 host_cpu=$1
4215 host_vendor=$2
4216 shift; shift
4217 # Remember, the first character of IFS is used to create $*,
4218 # except with old shells:
4219 host_os=$*
4220 IFS=$ac_save_IFS
4221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4222
4223
4224 # Backslashify metacharacters that are still active within
4225 # double-quoted strings.
4226 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4227
4228 # Same as above, but do not quote variable references.
4229 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4230
4231 # Sed substitution to delay expansion of an escaped shell variable in a
4232 # double_quote_subst'ed string.
4233 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4234
4235 # Sed substitution to delay expansion of an escaped single quote.
4236 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4237
4238 # Sed substitution to avoid accidental globbing in evaled expressions
4239 no_glob_subst='s/\*/\\\*/g'
4240
4241 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4242 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4243 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4246 $as_echo_n "checking how to print strings... " >&6; }
4247 # Test print first, because it will be a builtin if present.
4248 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4249 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4250 ECHO='print -r --'
4251 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4252 ECHO='printf %s\n'
4253 else
4254 # Use this function as a fallback that always works.
4255 func_fallback_echo ()
4256 {
4257 eval 'cat <<_LTECHO_EOF
4258 $1
4259 _LTECHO_EOF'
4260 }
4261 ECHO='func_fallback_echo'
4262 fi
4263
4264 # func_echo_all arg...
4265 # Invoke $ECHO with all args, space-separated.
4266 func_echo_all ()
4267 {
4268 $ECHO ""
4269 }
4270
4271 case $ECHO in
4272 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4273 $as_echo "printf" >&6; } ;;
4274 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4275 $as_echo "print -r" >&6; } ;;
4276 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4277 $as_echo "cat" >&6; } ;;
4278 esac
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4294 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4295 if ${ac_cv_path_SED+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4299 for ac_i in 1 2 3 4 5 6 7; do
4300 ac_script="$ac_script$as_nl$ac_script"
4301 done
4302 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4303 { ac_script=; unset ac_script;}
4304 if test -z "$SED"; then
4305 ac_path_SED_found=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_prog in sed gsed; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4315 as_fn_executable_p "$ac_path_SED" || continue
4316 # Check for GNU ac_path_SED and select it if it is found.
4317 # Check for GNU $ac_path_SED
4318 case `"$ac_path_SED" --version 2>&1` in
4319 *GNU*)
4320 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4321 *)
4322 ac_count=0
4323 $as_echo_n 0123456789 >"conftest.in"
4324 while :
4325 do
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo '' >> "conftest.nl"
4330 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332 as_fn_arith $ac_count + 1 && ac_count=$as_val
4333 if test $ac_count -gt ${ac_path_SED_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_SED="$ac_path_SED"
4336 ac_path_SED_max=$ac_count
4337 fi
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4340 done
4341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342 esac
4343
4344 $ac_path_SED_found && break 3
4345 done
4346 done
4347 done
4348 IFS=$as_save_IFS
4349 if test -z "$ac_cv_path_SED"; then
4350 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4351 fi
4352 else
4353 ac_cv_path_SED=$SED
4354 fi
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4358 $as_echo "$ac_cv_path_SED" >&6; }
4359 SED="$ac_cv_path_SED"
4360 rm -f conftest.sed
4361
4362 test -z "$SED" && SED=sed
4363 Xsed="$SED -e 1s/^X//"
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4377 if ${ac_cv_path_GREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -z "$GREP"; then
4381 ac_path_GREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in grep ggrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_GREP" || continue
4392 # Check for GNU ac_path_GREP and select it if it is found.
4393 # Check for GNU $ac_path_GREP
4394 case `"$ac_path_GREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4397 *)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'GREP' >> "conftest.nl"
4406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_GREP="$ac_path_GREP"
4412 ac_path_GREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420 $ac_path_GREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_GREP"; then
4426 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 fi
4428 else
4429 ac_cv_path_GREP=$GREP
4430 fi
4431
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4434 $as_echo "$ac_cv_path_GREP" >&6; }
4435 GREP="$ac_cv_path_GREP"
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4439 $as_echo_n "checking for egrep... " >&6; }
4440 if ${ac_cv_path_EGREP+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4444 then ac_cv_path_EGREP="$GREP -E"
4445 else
4446 if test -z "$EGREP"; then
4447 ac_path_EGREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in egrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457 as_fn_executable_p "$ac_path_EGREP" || continue
4458 # Check for GNU ac_path_EGREP and select it if it is found.
4459 # Check for GNU $ac_path_EGREP
4460 case `"$ac_path_EGREP" --version 2>&1` in
4461 *GNU*)
4462 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4463 *)
4464 ac_count=0
4465 $as_echo_n 0123456789 >"conftest.in"
4466 while :
4467 do
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 $as_echo 'EGREP' >> "conftest.nl"
4472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 as_fn_arith $ac_count + 1 && ac_count=$as_val
4475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_EGREP="$ac_path_EGREP"
4478 ac_path_EGREP_max=$ac_count
4479 fi
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4482 done
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 esac
4485
4486 $ac_path_EGREP_found && break 3
4487 done
4488 done
4489 done
4490 IFS=$as_save_IFS
4491 if test -z "$ac_cv_path_EGREP"; then
4492 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493 fi
4494 else
4495 ac_cv_path_EGREP=$EGREP
4496 fi
4497
4498 fi
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4501 $as_echo "$ac_cv_path_EGREP" >&6; }
4502 EGREP="$ac_cv_path_EGREP"
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4506 $as_echo_n "checking for fgrep... " >&6; }
4507 if ${ac_cv_path_FGREP+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4511 then ac_cv_path_FGREP="$GREP -F"
4512 else
4513 if test -z "$FGREP"; then
4514 ac_path_FGREP_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in fgrep; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4524 as_fn_executable_p "$ac_path_FGREP" || continue
4525 # Check for GNU ac_path_FGREP and select it if it is found.
4526 # Check for GNU $ac_path_FGREP
4527 case `"$ac_path_FGREP" --version 2>&1` in
4528 *GNU*)
4529 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4530 *)
4531 ac_count=0
4532 $as_echo_n 0123456789 >"conftest.in"
4533 while :
4534 do
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 $as_echo 'FGREP' >> "conftest.nl"
4539 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541 as_fn_arith $ac_count + 1 && ac_count=$as_val
4542 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_FGREP="$ac_path_FGREP"
4545 ac_path_FGREP_max=$ac_count
4546 fi
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4549 done
4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 esac
4552
4553 $ac_path_FGREP_found && break 3
4554 done
4555 done
4556 done
4557 IFS=$as_save_IFS
4558 if test -z "$ac_cv_path_FGREP"; then
4559 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4560 fi
4561 else
4562 ac_cv_path_FGREP=$FGREP
4563 fi
4564
4565 fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4568 $as_echo "$ac_cv_path_FGREP" >&6; }
4569 FGREP="$ac_cv_path_FGREP"
4570
4571
4572 test -z "$GREP" && GREP=grep
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592 # Check whether --with-gnu-ld was given.
4593 if test "${with_gnu_ld+set}" = set; then :
4594 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4595 else
4596 with_gnu_ld=no
4597 fi
4598
4599 ac_prog=ld
4600 if test yes = "$GCC"; then
4601 # Check if gcc -print-prog-name=ld gives a path.
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4603 $as_echo_n "checking for ld used by $CC... " >&6; }
4604 case $host in
4605 *-*-mingw*)
4606 # gcc leaves a trailing carriage return, which upsets mingw
4607 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4608 *)
4609 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4610 esac
4611 case $ac_prog in
4612 # Accept absolute paths.
4613 [\\/]* | ?:[\\/]*)
4614 re_direlt='/[^/][^/]*/\.\./'
4615 # Canonicalize the pathname of ld
4616 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4617 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4618 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4619 done
4620 test -z "$LD" && LD=$ac_prog
4621 ;;
4622 "")
4623 # If it fails, then pretend we aren't using GCC.
4624 ac_prog=ld
4625 ;;
4626 *)
4627 # If it is relative, then search for the first ld in PATH.
4628 with_gnu_ld=unknown
4629 ;;
4630 esac
4631 elif test yes = "$with_gnu_ld"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4633 $as_echo_n "checking for GNU ld... " >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4636 $as_echo_n "checking for non-GNU ld... " >&6; }
4637 fi
4638 if ${lt_cv_path_LD+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -z "$LD"; then
4642 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4643 for ac_dir in $PATH; do
4644 IFS=$lt_save_ifs
4645 test -z "$ac_dir" && ac_dir=.
4646 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4647 lt_cv_path_LD=$ac_dir/$ac_prog
4648 # Check to see if the program is GNU ld. I'd rather use --version,
4649 # but apparently some variants of GNU ld only accept -v.
4650 # Break only if it was the GNU/non-GNU ld that we prefer.
4651 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4652 *GNU* | *'with BFD'*)
4653 test no != "$with_gnu_ld" && break
4654 ;;
4655 *)
4656 test yes != "$with_gnu_ld" && break
4657 ;;
4658 esac
4659 fi
4660 done
4661 IFS=$lt_save_ifs
4662 else
4663 lt_cv_path_LD=$LD # Let the user override the test with a path.
4664 fi
4665 fi
4666
4667 LD=$lt_cv_path_LD
4668 if test -n "$LD"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4670 $as_echo "$LD" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4677 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4678 if ${lt_cv_prog_gnu_ld+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4682 case `$LD -v 2>&1 </dev/null` in
4683 *GNU* | *'with BFD'*)
4684 lt_cv_prog_gnu_ld=yes
4685 ;;
4686 *)
4687 lt_cv_prog_gnu_ld=no
4688 ;;
4689 esac
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4692 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4693 with_gnu_ld=$lt_cv_prog_gnu_ld
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4704 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4705 if ${lt_cv_path_NM+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -n "$NM"; then
4709 # Let the user override the test.
4710 lt_cv_path_NM=$NM
4711 else
4712 lt_nm_to_check=${ac_tool_prefix}nm
4713 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4714 lt_nm_to_check="$lt_nm_to_check nm"
4715 fi
4716 for lt_tmp_nm in $lt_nm_to_check; do
4717 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4718 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4719 IFS=$lt_save_ifs
4720 test -z "$ac_dir" && ac_dir=.
4721 tmp_nm=$ac_dir/$lt_tmp_nm
4722 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4723 # Check to see if the nm accepts a BSD-compat flag.
4724 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4725 # nm: unknown option "B" ignored
4726 # Tru64's nm complains that /dev/null is an invalid object file
4727 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4728 case $build_os in
4729 mingw*) lt_bad_file=conftest.nm/nofile ;;
4730 *) lt_bad_file=/dev/null ;;
4731 esac
4732 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4733 *$lt_bad_file* | *'Invalid file or object type'*)
4734 lt_cv_path_NM="$tmp_nm -B"
4735 break 2
4736 ;;
4737 *)
4738 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4739 */dev/null*)
4740 lt_cv_path_NM="$tmp_nm -p"
4741 break 2
4742 ;;
4743 *)
4744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4745 continue # so that we can try to find one that supports BSD flags
4746 ;;
4747 esac
4748 ;;
4749 esac
4750 fi
4751 done
4752 IFS=$lt_save_ifs
4753 done
4754 : ${lt_cv_path_NM=no}
4755 fi
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4758 $as_echo "$lt_cv_path_NM" >&6; }
4759 if test no != "$lt_cv_path_NM"; then
4760 NM=$lt_cv_path_NM
4761 else
4762 # Didn't find any BSD compatible name lister, look for dumpbin.
4763 if test -n "$DUMPBIN"; then :
4764 # Let the user override the test.
4765 else
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in dumpbin "link -dump"
4768 do
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_prog_DUMPBIN+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$DUMPBIN"; then
4777 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 DUMPBIN=$ac_cv_prog_DUMPBIN
4797 if test -n "$DUMPBIN"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4799 $as_echo "$DUMPBIN" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 test -n "$DUMPBIN" && break
4807 done
4808 fi
4809 if test -z "$DUMPBIN"; then
4810 ac_ct_DUMPBIN=$DUMPBIN
4811 for ac_prog in dumpbin "link -dump"
4812 do
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814 set dummy $ac_prog; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$ac_ct_DUMPBIN"; then
4821 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4841 if test -n "$ac_ct_DUMPBIN"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4843 $as_echo "$ac_ct_DUMPBIN" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 test -n "$ac_ct_DUMPBIN" && break
4851 done
4852
4853 if test "x$ac_ct_DUMPBIN" = x; then
4854 DUMPBIN=":"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857 yes:)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4861 esac
4862 DUMPBIN=$ac_ct_DUMPBIN
4863 fi
4864 fi
4865
4866 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4867 *COFF*)
4868 DUMPBIN="$DUMPBIN -symbols -headers"
4869 ;;
4870 *)
4871 DUMPBIN=:
4872 ;;
4873 esac
4874 fi
4875
4876 if test : != "$DUMPBIN"; then
4877 NM=$DUMPBIN
4878 fi
4879 fi
4880 test -z "$NM" && NM=nm
4881
4882
4883
4884
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4888 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4889 if ${lt_cv_nm_interface+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 lt_cv_nm_interface="BSD nm"
4893 echo "int some_variable = 0;" > conftest.$ac_ext
4894 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4895 (eval "$ac_compile" 2>conftest.err)
4896 cat conftest.err >&5
4897 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4898 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4899 cat conftest.err >&5
4900 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4901 cat conftest.out >&5
4902 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4903 lt_cv_nm_interface="MS dumpbin"
4904 fi
4905 rm -f conftest*
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4908 $as_echo "$lt_cv_nm_interface" >&6; }
4909
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4911 $as_echo_n "checking whether ln -s works... " >&6; }
4912 LN_S=$as_ln_s
4913 if test "$LN_S" = "ln -s"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4915 $as_echo "yes" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4918 $as_echo "no, using $LN_S" >&6; }
4919 fi
4920
4921 # find the maximum length of command line arguments
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4923 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4924 if ${lt_cv_sys_max_cmd_len+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 i=0
4928 teststring=ABCD
4929
4930 case $build_os in
4931 msdosdjgpp*)
4932 # On DJGPP, this test can blow up pretty badly due to problems in libc
4933 # (any single argument exceeding 2000 bytes causes a buffer overrun
4934 # during glob expansion). Even if it were fixed, the result of this
4935 # check would be larger than it should be.
4936 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4937 ;;
4938
4939 gnu*)
4940 # Under GNU Hurd, this test is not required because there is
4941 # no limit to the length of command line arguments.
4942 # Libtool will interpret -1 as no limit whatsoever
4943 lt_cv_sys_max_cmd_len=-1;
4944 ;;
4945
4946 cygwin* | mingw* | cegcc*)
4947 # On Win9x/ME, this test blows up -- it succeeds, but takes
4948 # about 5 minutes as the teststring grows exponentially.
4949 # Worse, since 9x/ME are not pre-emptively multitasking,
4950 # you end up with a "frozen" computer, even though with patience
4951 # the test eventually succeeds (with a max line length of 256k).
4952 # Instead, let's just punt: use the minimum linelength reported by
4953 # all of the supported platforms: 8192 (on NT/2K/XP).
4954 lt_cv_sys_max_cmd_len=8192;
4955 ;;
4956
4957 mint*)
4958 # On MiNT this can take a long time and run out of memory.
4959 lt_cv_sys_max_cmd_len=8192;
4960 ;;
4961
4962 amigaos*)
4963 # On AmigaOS with pdksh, this test takes hours, literally.
4964 # So we just punt and use a minimum line length of 8192.
4965 lt_cv_sys_max_cmd_len=8192;
4966 ;;
4967
4968 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4969 # This has been around since 386BSD, at least. Likely further.
4970 if test -x /sbin/sysctl; then
4971 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4972 elif test -x /usr/sbin/sysctl; then
4973 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4974 else
4975 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4976 fi
4977 # And add a safety zone
4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4980 ;;
4981
4982 interix*)
4983 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4984 lt_cv_sys_max_cmd_len=196608
4985 ;;
4986
4987 os2*)
4988 # The test takes a long time on OS/2.
4989 lt_cv_sys_max_cmd_len=8192
4990 ;;
4991
4992 osf*)
4993 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4994 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4995 # nice to cause kernel panics so lets avoid the loop below.
4996 # First set a reasonable default.
4997 lt_cv_sys_max_cmd_len=16384
4998 #
4999 if test -x /sbin/sysconfig; then
5000 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5001 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5002 esac
5003 fi
5004 ;;
5005 sco3.2v5*)
5006 lt_cv_sys_max_cmd_len=102400
5007 ;;
5008 sysv5* | sco5v6* | sysv4.2uw2*)
5009 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5010 if test -n "$kargmax"; then
5011 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5012 else
5013 lt_cv_sys_max_cmd_len=32768
5014 fi
5015 ;;
5016 *)
5017 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5018 if test -n "$lt_cv_sys_max_cmd_len" && \
5019 test undefined != "$lt_cv_sys_max_cmd_len"; then
5020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5022 else
5023 # Make teststring a little bigger before we do anything with it.
5024 # a 1K string should be a reasonable start.
5025 for i in 1 2 3 4 5 6 7 8; do
5026 teststring=$teststring$teststring
5027 done
5028 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5029 # If test is not a shell built-in, we'll probably end up computing a
5030 # maximum length that is only half of the actual maximum length, but
5031 # we can't tell.
5032 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5033 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5034 test 17 != "$i" # 1/2 MB should be enough
5035 do
5036 i=`expr $i + 1`
5037 teststring=$teststring$teststring
5038 done
5039 # Only check the string length outside the loop.
5040 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5041 teststring=
5042 # Add a significant safety factor because C++ compilers can tack on
5043 # massive amounts of additional arguments before passing them to the
5044 # linker. It appears as though 1/2 is a usable value.
5045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5046 fi
5047 ;;
5048 esac
5049
5050 fi
5051
5052 if test -n "$lt_cv_sys_max_cmd_len"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5054 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5057 $as_echo "none" >&6; }
5058 fi
5059 max_cmd_len=$lt_cv_sys_max_cmd_len
5060
5061
5062
5063
5064
5065
5066 : ${CP="cp -f"}
5067 : ${MV="mv -f"}
5068 : ${RM="rm -f"}
5069
5070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5071 lt_unset=unset
5072 else
5073 lt_unset=false
5074 fi
5075
5076
5077
5078
5079
5080 # test EBCDIC or ASCII
5081 case `echo X|tr X '\101'` in
5082 A) # ASCII based system
5083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5084 lt_SP2NL='tr \040 \012'
5085 lt_NL2SP='tr \015\012 \040\040'
5086 ;;
5087 *) # EBCDIC based system
5088 lt_SP2NL='tr \100 \n'
5089 lt_NL2SP='tr \r\n \100\100'
5090 ;;
5091 esac
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5102 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5103 if ${lt_cv_to_host_file_cmd+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 case $host in
5107 *-*-mingw* )
5108 case $build in
5109 *-*-mingw* ) # actually msys
5110 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5111 ;;
5112 *-*-cygwin* )
5113 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5114 ;;
5115 * ) # otherwise, assume *nix
5116 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5117 ;;
5118 esac
5119 ;;
5120 *-*-cygwin* )
5121 case $build in
5122 *-*-mingw* ) # actually msys
5123 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5124 ;;
5125 *-*-cygwin* )
5126 lt_cv_to_host_file_cmd=func_convert_file_noop
5127 ;;
5128 * ) # otherwise, assume *nix
5129 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5130 ;;
5131 esac
5132 ;;
5133 * ) # unhandled hosts (and "normal" native builds)
5134 lt_cv_to_host_file_cmd=func_convert_file_noop
5135 ;;
5136 esac
5137
5138 fi
5139
5140 to_host_file_cmd=$lt_cv_to_host_file_cmd
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5142 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5149 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5150 if ${lt_cv_to_tool_file_cmd+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 #assume ordinary cross tools, or native build.
5154 lt_cv_to_tool_file_cmd=func_convert_file_noop
5155 case $host in
5156 *-*-mingw* )
5157 case $build in
5158 *-*-mingw* ) # actually msys
5159 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5160 ;;
5161 esac
5162 ;;
5163 esac
5164
5165 fi
5166
5167 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5169 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5170
5171
5172
5173
5174
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5177 if ${lt_cv_ld_reload_flag+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 lt_cv_ld_reload_flag='-r'
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5184 reload_flag=$lt_cv_ld_reload_flag
5185 case $reload_flag in
5186 "" | " "*) ;;
5187 *) reload_flag=" $reload_flag" ;;
5188 esac
5189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5190 case $host_os in
5191 cygwin* | mingw* | pw32* | cegcc*)
5192 if test yes != "$GCC"; then
5193 reload_cmds=false
5194 fi
5195 ;;
5196 darwin*)
5197 if test yes = "$GCC"; then
5198 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5199 else
5200 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5201 fi
5202 ;;
5203 esac
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213 if test -n "$ac_tool_prefix"; then
5214 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5215 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_OBJDUMP+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$OBJDUMP"; then
5222 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5234 fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 OBJDUMP=$ac_cv_prog_OBJDUMP
5242 if test -n "$OBJDUMP"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5244 $as_echo "$OBJDUMP" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250
5251 fi
5252 if test -z "$ac_cv_prog_OBJDUMP"; then
5253 ac_ct_OBJDUMP=$OBJDUMP
5254 # Extract the first word of "objdump", so it can be a program name with args.
5255 set dummy objdump; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$ac_ct_OBJDUMP"; then
5262 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5278
5279 fi
5280 fi
5281 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5282 if test -n "$ac_ct_OBJDUMP"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5284 $as_echo "$ac_ct_OBJDUMP" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290 if test "x$ac_ct_OBJDUMP" = x; then
5291 OBJDUMP="false"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 OBJDUMP=$ac_ct_OBJDUMP
5300 fi
5301 else
5302 OBJDUMP="$ac_cv_prog_OBJDUMP"
5303 fi
5304
5305 test -z "$OBJDUMP" && OBJDUMP=objdump
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5316 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5317 if ${lt_cv_deplibs_check_method+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 lt_cv_file_magic_cmd='$MAGIC_CMD'
5321 lt_cv_file_magic_test_file=
5322 lt_cv_deplibs_check_method='unknown'
5323 # Need to set the preceding variable on all platforms that support
5324 # interlibrary dependencies.
5325 # 'none' -- dependencies not supported.
5326 # 'unknown' -- same as none, but documents that we really don't know.
5327 # 'pass_all' -- all dependencies passed with no checks.
5328 # 'test_compile' -- check by making test program.
5329 # 'file_magic [[regex]]' -- check by looking for files in library path
5330 # that responds to the $file_magic_cmd with a given extended regex.
5331 # If you have 'file' or equivalent on your system and you're not sure
5332 # whether 'pass_all' will *always* work, you probably want this one.
5333
5334 case $host_os in
5335 aix[4-9]*)
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
5338
5339 beos*)
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
5342
5343 bsdi[45]*)
5344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5345 lt_cv_file_magic_cmd='/usr/bin/file -L'
5346 lt_cv_file_magic_test_file=/shlib/libc.so
5347 ;;
5348
5349 cygwin*)
5350 # func_win32_libid is a shell function defined in ltmain.sh
5351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5352 lt_cv_file_magic_cmd='func_win32_libid'
5353 ;;
5354
5355 mingw* | pw32*)
5356 # Base MSYS/MinGW do not provide the 'file' command needed by
5357 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5358 # unless we find 'file', for example because we are cross-compiling.
5359 if ( file / ) >/dev/null 2>&1; then
5360 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5361 lt_cv_file_magic_cmd='func_win32_libid'
5362 else
5363 # Keep this pattern in sync with the one in func_win32_libid.
5364 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5365 lt_cv_file_magic_cmd='$OBJDUMP -f'
5366 fi
5367 ;;
5368
5369 cegcc*)
5370 # use the weaker test based on 'objdump'. See mingw*.
5371 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5372 lt_cv_file_magic_cmd='$OBJDUMP -f'
5373 ;;
5374
5375 darwin* | rhapsody*)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378
5379 freebsd* | dragonfly*)
5380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5381 case $host_cpu in
5382 i*86 )
5383 # Not sure whether the presence of OpenBSD here was a mistake.
5384 # Let's accept both of them until this is cleared up.
5385 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5386 lt_cv_file_magic_cmd=/usr/bin/file
5387 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5388 ;;
5389 esac
5390 else
5391 lt_cv_deplibs_check_method=pass_all
5392 fi
5393 ;;
5394
5395 haiku*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398
5399 hpux10.20* | hpux11*)
5400 lt_cv_file_magic_cmd=/usr/bin/file
5401 case $host_cpu in
5402 ia64*)
5403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5405 ;;
5406 hppa*64*)
5407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5408 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5409 ;;
5410 *)
5411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5412 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5413 ;;
5414 esac
5415 ;;
5416
5417 interix[3-9]*)
5418 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5420 ;;
5421
5422 irix5* | irix6* | nonstopux*)
5423 case $LD in
5424 *-32|*"-32 ") libmagic=32-bit;;
5425 *-n32|*"-n32 ") libmagic=N32;;
5426 *-64|*"-64 ") libmagic=64-bit;;
5427 *) libmagic=never-match;;
5428 esac
5429 lt_cv_deplibs_check_method=pass_all
5430 ;;
5431
5432 # This must be glibc/ELF.
5433 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5434 lt_cv_deplibs_check_method=pass_all
5435 ;;
5436
5437 netbsd*)
5438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5440 else
5441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5442 fi
5443 ;;
5444
5445 newos6*)
5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5447 lt_cv_file_magic_cmd=/usr/bin/file
5448 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5449 ;;
5450
5451 *nto* | *qnx*)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454
5455 openbsd* | bitrig*)
5456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5458 else
5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5460 fi
5461 ;;
5462
5463 osf3* | osf4* | osf5*)
5464 lt_cv_deplibs_check_method=pass_all
5465 ;;
5466
5467 rdos*)
5468 lt_cv_deplibs_check_method=pass_all
5469 ;;
5470
5471 solaris*)
5472 lt_cv_deplibs_check_method=pass_all
5473 ;;
5474
5475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479 sysv4 | sysv4.3*)
5480 case $host_vendor in
5481 motorola)
5482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5484 ;;
5485 ncr)
5486 lt_cv_deplibs_check_method=pass_all
5487 ;;
5488 sequent)
5489 lt_cv_file_magic_cmd='/bin/file'
5490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5491 ;;
5492 sni)
5493 lt_cv_file_magic_cmd='/bin/file'
5494 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5495 lt_cv_file_magic_test_file=/lib/libc.so
5496 ;;
5497 siemens)
5498 lt_cv_deplibs_check_method=pass_all
5499 ;;
5500 pc)
5501 lt_cv_deplibs_check_method=pass_all
5502 ;;
5503 esac
5504 ;;
5505
5506 tpf*)
5507 lt_cv_deplibs_check_method=pass_all
5508 ;;
5509 os2*)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512 esac
5513
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5516 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5517
5518 file_magic_glob=
5519 want_nocaseglob=no
5520 if test "$build" = "$host"; then
5521 case $host_os in
5522 mingw* | pw32*)
5523 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5524 want_nocaseglob=yes
5525 else
5526 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5527 fi
5528 ;;
5529 esac
5530 fi
5531
5532 file_magic_cmd=$lt_cv_file_magic_cmd
5533 deplibs_check_method=$lt_cv_deplibs_check_method
5534 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_DLLTOOL+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$DLLTOOL"; then
5566 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 DLLTOOL=$ac_cv_prog_DLLTOOL
5586 if test -n "$DLLTOOL"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5588 $as_echo "$DLLTOOL" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594
5595 fi
5596 if test -z "$ac_cv_prog_DLLTOOL"; then
5597 ac_ct_DLLTOOL=$DLLTOOL
5598 # Extract the first word of "dlltool", so it can be a program name with args.
5599 set dummy dlltool; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$ac_ct_DLLTOOL"; then
5606 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5626 if test -n "$ac_ct_DLLTOOL"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5628 $as_echo "$ac_ct_DLLTOOL" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634 if test "x$ac_ct_DLLTOOL" = x; then
5635 DLLTOOL="false"