Debian Codegraph @

mitm/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for mitm 4.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
185 then :
186 as_have_required=yes
187 else $as_nop
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
204 as_found=:
205 case $as_dir in #(
206 /*)
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216 break 2
217 fi
218 fi
219 done;;
220 esac
221 as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231 CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236 if test "x$CONFIG_SHELL" != x
237 then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno
260 then :
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 printf "%s\n" "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317 return $?
318 }
319 as_nop=as_fn_nop
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else $as_nop
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else $as_nop
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418 return $?
419 }
420 as_nop=as_fn_nop
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429 as_status=$1; test $as_status -eq 0 && as_status=1
430 if test "$4"; then
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 fi
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
440 as_expr=expr
441 else
442 as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446 as_basename=basename
447 else
448 as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452 as_dirname=dirname
453 else
454 as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\/\)$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\).*/{
471 s//\1/
472 q
473 }
474 s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 sed -n '
490 p
491 /[$]LINENO/=
492 ' <$as_myself |
493 sed '
494 s/[$]LINENO.*/&-/
495 t lineno
496 b
497 :lineno
498 N
499 :loop
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501 t loop
502 s/-\n.*//
503 ' >$as_me.lineno &&
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
514 . "./$as_me.lineno"
515 # Exit status is that of the last command.
516 exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
528 xy) ECHO_C='\c';;
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
530 ECHO_T=' ';;
531 esac;;
532 *)
533 ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME='mitm'
609 PACKAGE_TARNAME='mitm'
610 PACKAGE_VERSION='4.3'
611 PACKAGE_STRING='mitm 4.3'
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 # Factoring default headers for most tests.
616 ac_includes_default="\
617 #include <stddef.h>
618 #ifdef HAVE_STDIO_H
619 # include <stdio.h>
620 #endif
621 #ifdef HAVE_STDLIB_H
622 # include <stdlib.h>
623 #endif
624 #ifdef HAVE_STRING_H
625 # include <string.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_STRINGS_H
634 # include <strings.h>
635 #endif
636 #ifdef HAVE_SYS_TYPES_H
637 # include <sys/types.h>
638 #endif
639 #ifdef HAVE_SYS_STAT_H
640 # include <sys/stat.h>
641 #endif
642 #ifdef HAVE_UNISTD_H
643 # include <unistd.h>
644 #endif"
645
646 ac_header_c_list=
647 ac_subst_vars='LTLIBOBJS
648 LIBOBJS
649 CCOPTIONS
650 host_os
651 host_vendor
652 host_cpu
653 host
654 build_os
655 build_vendor
656 build_cpu
657 build
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 INSTALL_DATA
666 INSTALL_SCRIPT
667 INSTALL_PROGRAM
668 target_alias
669 host_alias
670 build_alias
671 LIBS
672 ECHO_T
673 ECHO_N
674 ECHO_C
675 DEFS
676 mandir
677 localedir
678 libdir
679 psdir
680 pdfdir
681 dvidir
682 htmldir
683 infodir
684 docdir
685 oldincludedir
686 includedir
687 runstatedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 '
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CC
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS'
719
720
721 # Initialize some variables set by options.
722 ac_init_help=
723 ac_init_version=false
724 ac_unrecognized_opts=
725 ac_unrecognized_sep=
726 # The variables have the same names as the options, with
727 # dashes changed to underlines.
728 cache_file=/dev/null
729 exec_prefix=NONE
730 no_create=
731 no_recursion=
732 prefix=NONE
733 program_prefix=NONE
734 program_suffix=NONE
735 program_transform_name=s,x,x,
736 silent=
737 site=
738 srcdir=
739 verbose=
740 x_includes=NONE
741 x_libraries=NONE
742
743 # Installation directory options.
744 # These are left unexpanded so users can "make install exec_prefix=/foo"
745 # and all the variables that are supposed to be based on exec_prefix
746 # by default will actually change.
747 # Use braces instead of parens because sh, perl, etc. also accept them.
748 # (The list follows the same order as the GNU Coding Standards.)
749 bindir='${exec_prefix}/bin'
750 sbindir='${exec_prefix}/sbin'
751 libexecdir='${exec_prefix}/libexec'
752 datarootdir='${prefix}/share'
753 datadir='${datarootdir}'
754 sysconfdir='${prefix}/etc'
755 sharedstatedir='${prefix}/com'
756 localstatedir='${prefix}/var'
757 runstatedir='${localstatedir}/run'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
769
770 ac_prev=
771 ac_dashdash=
772 for ac_option
773 do
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
777 ac_prev=
778 continue
779 fi
780
781 case $ac_option in
782 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *=) ac_optarg= ;;
784 *) ac_optarg=yes ;;
785 esac
786
787 case $ac_dashdash$ac_option in
788 --)
789 ac_dashdash=yes ;;
790
791 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 ac_prev=bindir ;;
793 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794 bindir=$ac_optarg ;;
795
796 -build | --build | --buil | --bui | --bu)
797 ac_prev=build_alias ;;
798 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799 build_alias=$ac_optarg ;;
800
801 -cache-file | --cache-file | --cache-fil | --cache-fi \
802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803 ac_prev=cache_file ;;
804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806 cache_file=$ac_optarg ;;
807
808 --config-cache | -C)
809 cache_file=config.cache ;;
810
811 -datadir | --datadir | --datadi | --datad)
812 ac_prev=datadir ;;
813 -datadir=* | --datadir=* | --datadi=* | --datad=*)
814 datadir=$ac_optarg ;;
815
816 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817 | --dataroo | --dataro | --datar)
818 ac_prev=datarootdir ;;
819 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821 datarootdir=$ac_optarg ;;
822
823 -disable-* | --disable-*)
824 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 as_fn_error $? "invalid feature name: \`$ac_useropt'"
828 ac_useropt_orig=$ac_useropt
829 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
831 *"
832 "enable_$ac_useropt"
833 "*) ;;
834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835 ac_unrecognized_sep=', ';;
836 esac
837 eval enable_$ac_useropt=no ;;
838
839 -docdir | --docdir | --docdi | --doc | --do)
840 ac_prev=docdir ;;
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842 docdir=$ac_optarg ;;
843
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 ac_prev=dvidir ;;
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847 dvidir=$ac_optarg ;;
848
849 -enable-* | --enable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: \`$ac_useropt'"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
857 *"
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=\$ac_optarg ;;
864
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
873
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
877
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
884
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
889
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
895
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
902
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
907
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
912
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
919
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
924
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
931
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
936
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
940
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
944
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
948
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
957
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
962
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
969
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
976
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
993
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
998
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1003
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1007
1008 -runstatedir | --runstatedir | --runstatedi | --runstated \
1009 | --runstate | --runstat | --runsta | --runst | --runs \
1010 | --run | --ru | --r)
1011 ac_prev=runstatedir ;;
1012 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1013 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1014 | --run=* | --ru=* | --r=*)
1015 runstatedir=$ac_optarg ;;
1016
1017 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1018 ac_prev=sbindir ;;
1019 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1020 | --sbi=* | --sb=*)
1021 sbindir=$ac_optarg ;;
1022
1023 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1024 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1025 | --sharedst | --shareds | --shared | --share | --shar \
1026 | --sha | --sh)
1027 ac_prev=sharedstatedir ;;
1028 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1029 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1030 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1031 | --sha=* | --sh=*)
1032 sharedstatedir=$ac_optarg ;;
1033
1034 -site | --site | --sit)
1035 ac_prev=site ;;
1036 -site=* | --site=* | --sit=*)
1037 site=$ac_optarg ;;
1038
1039 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1040 ac_prev=srcdir ;;
1041 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1042 srcdir=$ac_optarg ;;
1043
1044 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1045 | --syscon | --sysco | --sysc | --sys | --sy)
1046 ac_prev=sysconfdir ;;
1047 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1048 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1049 sysconfdir=$ac_optarg ;;
1050
1051 -target | --target | --targe | --targ | --tar | --ta | --t)
1052 ac_prev=target_alias ;;
1053 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1054 target_alias=$ac_optarg ;;
1055
1056 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057 verbose=yes ;;
1058
1059 -version | --version | --versio | --versi | --vers | -V)
1060 ac_init_version=: ;;
1061
1062 -with-* | --with-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid package name: \`$ac_useropt'"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071 "with_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval with_$ac_useropt=\$ac_optarg ;;
1077
1078 -without-* | --without-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: \`$ac_useropt'"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "with_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=no ;;
1093
1094 --x)
1095 # Obsolete; use --with-x.
1096 with_x=yes ;;
1097
1098 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099 | --x-incl | --x-inc | --x-in | --x-i)
1100 ac_prev=x_includes ;;
1101 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 x_includes=$ac_optarg ;;
1104
1105 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107 ac_prev=x_libraries ;;
1108 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 x_libraries=$ac_optarg ;;
1111
1112 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1113 Try \`$0 --help' for more information"
1114 ;;
1115
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 case $ac_envvar in #(
1120 '' | [0-9]* | *[!_$as_cr_alnum]* )
1121 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1122 esac
1123 eval $ac_envvar=\$ac_optarg
1124 export $ac_envvar ;;
1125
1126 *)
1127 # FIXME: should be removed in autoconf 3.0.
1128 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1132 ;;
1133
1134 esac
1135 done
1136
1137 if test -n "$ac_prev"; then
1138 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139 as_fn_error $? "missing argument to $ac_option"
1140 fi
1141
1142 if test -n "$ac_unrecognized_opts"; then
1143 case $enable_option_checking in
1144 no) ;;
1145 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1146 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1147 esac
1148 fi
1149
1150 # Check all directory arguments for consistency.
1151 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1152 datadir sysconfdir sharedstatedir localstatedir includedir \
1153 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1154 libdir localedir mandir runstatedir
1155 do
1156 eval ac_val=\$$ac_var
1157 # Remove trailing slashes.
1158 case $ac_val in
1159 */ )
1160 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1161 eval $ac_var=\$ac_val;;
1162 esac
1163 # Be sure to have absolute directory names.
1164 case $ac_val in
1165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167 esac
1168 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1169 done
1170
1171 # There might be people who depend on the old broken behavior: `$host'
1172 # used to hold the argument of --host etc.
1173 # FIXME: To remove some day.
1174 build=$build_alias
1175 host=$host_alias
1176 target=$target_alias
1177
1178 # FIXME: To remove some day.
1179 if test "x$host_alias" != x; then
1180 if test "x$build_alias" = x; then
1181 cross_compiling=maybe
1182 elif test "x$build_alias" != "x$host_alias"; then
1183 cross_compiling=yes
1184 fi
1185 fi
1186
1187 ac_tool_prefix=
1188 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1189
1190 test "$silent" = yes && exec 6>/dev/null
1191
1192
1193 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1194 ac_ls_di=`ls -di .` &&
1195 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1196 as_fn_error $? "working directory cannot be determined"
1197 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198 as_fn_error $? "pwd does not report name of working directory"
1199
1200
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$as_myself" ||
1206 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$as_myself" : 'X\(//\)[^/]' \| \
1208 X"$as_myself" : 'X\(//\)$' \| \
1209 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1210 printf "%s\n" X"$as_myself" |
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)[^/].*/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\/\)$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\).*/{
1224 s//\1/
1225 q
1226 }
1227 s/.*/./; q'`
1228 srcdir=$ac_confdir
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 srcdir=..
1231 fi
1232 else
1233 ac_srcdir_defaulted=no
1234 fi
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1238 fi
1239 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1240 ac_abs_confdir=`(
1241 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1242 pwd)`
1243 # When building in place, set srcdir=.
1244 if test "$ac_abs_confdir" = "$ac_pwd"; then
1245 srcdir=.
1246 fi
1247 # Remove unnecessary trailing slashes from srcdir.
1248 # Double slashes in file names in object file debugging info
1249 # mess up M-x gdb in Emacs.
1250 case $srcdir in
1251 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1252 esac
1253 for ac_var in $ac_precious_vars; do
1254 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_env_${ac_var}_value=\$${ac_var}
1256 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1258 done
1259
1260 #
1261 # Report the --help message.
1262 #
1263 if test "$ac_init_help" = "long"; then
1264 # Omit some internal or obsolete options to make the list less imposing.
1265 # This message is too long to be a string in the A/UX 3.1 sh.
1266 cat <<_ACEOF
1267 \`configure' configures mitm 4.3 to adapt to many kinds of systems.
1268
1269 Usage: $0 [OPTION]... [VAR=VALUE]...
1270
1271 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1272 VAR=VALUE. See below for descriptions of some of the useful variables.
1273
1274 Defaults for the options are specified in brackets.
1275
1276 Configuration:
1277 -h, --help display this help and exit
1278 --help=short display options specific to this package
1279 --help=recursive display the short help of all the included packages
1280 -V, --version display version information and exit
1281 -q, --quiet, --silent do not print \`checking ...' messages
1282 --cache-file=FILE cache test results in FILE [disabled]
1283 -C, --config-cache alias for \`--cache-file=config.cache'
1284 -n, --no-create do not create output files
1285 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1286
1287 Installation directories:
1288 --prefix=PREFIX install architecture-independent files in PREFIX
1289 [$ac_default_prefix]
1290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291 [PREFIX]
1292
1293 By default, \`make install' will install all the files in
1294 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1295 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1296 for instance \`--prefix=\$HOME'.
1297
1298 For better control, use the options below.
1299
1300 Fine tuning of the installation directories:
1301 --bindir=DIR user executables [EPREFIX/bin]
1302 --sbindir=DIR system admin executables [EPREFIX/sbin]
1303 --libexecdir=DIR program executables [EPREFIX/libexec]
1304 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1305 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1306 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1307 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1308 --libdir=DIR object code libraries [EPREFIX/lib]
1309 --includedir=DIR C header files [PREFIX/include]
1310 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313 --infodir=DIR info documentation [DATAROOTDIR/info]
1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315 --mandir=DIR man documentation [DATAROOTDIR/man]
1316 --docdir=DIR documentation root [DATAROOTDIR/doc/mitm]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
1321 _ACEOF
1322
1323 cat <<\_ACEOF
1324
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1329 fi
1330
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of mitm 4.3:";;
1334 esac
1335 cat <<\_ACEOF
1336
1337 Some influential environment variables:
1338 CC C compiler command
1339 CFLAGS C compiler flags
1340 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1341 nonstandard directory <lib dir>
1342 LIBS libraries to pass to the linker, e.g. -l<library>
1343 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1344 you have headers in a nonstandard directory <include dir>
1345
1346 Use these variables to override the choices made by `configure' or to help
1347 it to find libraries and programs with nonstandard names/locations.
1348
1349 Report bugs to the package provider.
1350 _ACEOF
1351 ac_status=$?
1352 fi
1353
1354 if test "$ac_init_help" = "recursive"; then
1355 # If there are subdirs, report their specific --help.
1356 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1357 test -d "$ac_dir" ||
1358 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1359 continue
1360 ac_builddir=.
1361
1362 case "$ac_dir" in
1363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *)
1365 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1366 # A ".." for each directory in $ac_dir_suffix.
1367 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1368 case $ac_top_builddir_sub in
1369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1371 esac ;;
1372 esac
1373 ac_abs_top_builddir=$ac_pwd
1374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1375 # for backward compatibility:
1376 ac_top_builddir=$ac_top_build_prefix
1377
1378 case $srcdir in
1379 .) # We are building in place.
1380 ac_srcdir=.
1381 ac_top_srcdir=$ac_top_builddir_sub
1382 ac_abs_top_srcdir=$ac_pwd ;;
1383 [\\/]* | ?:[\\/]* ) # Absolute name.
1384 ac_srcdir=$srcdir$ac_dir_suffix;
1385 ac_top_srcdir=$srcdir
1386 ac_abs_top_srcdir=$srcdir ;;
1387 *) # Relative name.
1388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1389 ac_top_srcdir=$ac_top_build_prefix$srcdir
1390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1391 esac
1392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1393
1394 cd "$ac_dir" || { ac_status=$?; continue; }
1395 # Check for configure.gnu first; this name is used for a wrapper for
1396 # Metaconfig's "Configure" on case-insensitive file systems.
1397 if test -f "$ac_srcdir/configure.gnu"; then
1398 echo &&
1399 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1400 elif test -f "$ac_srcdir/configure"; then
1401 echo &&
1402 $SHELL "$ac_srcdir/configure" --help=recursive
1403 else
1404 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1405 fi || ac_status=$?
1406 cd "$ac_pwd" || { ac_status=$?; break; }
1407 done
1408 fi
1409
1410 test -n "$ac_init_help" && exit $ac_status
1411 if $ac_init_version; then
1412 cat <<\_ACEOF
1413 mitm configure 4.3
1414 generated by GNU Autoconf 2.71
1415
1416 Copyright (C) 2021 Free Software Foundation, Inc.
1417 This configure script is free software; the Free Software Foundation
1418 gives unlimited permission to copy, distribute and modify it.
1419 _ACEOF
1420 exit
1421 fi
1422
1423 ## ------------------------ ##
1424 ## Autoconf initialization. ##
1425 ## ------------------------ ##
1426
1427 # ac_fn_c_try_compile LINENO
1428 # --------------------------
1429 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1430 ac_fn_c_try_compile ()
1431 {
1432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1433 rm -f conftest.$ac_objext conftest.beam
1434 if { { ac_try="$ac_compile"
1435 case "(($ac_try" in
1436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1437 *) ac_try_echo=$ac_try;;
1438 esac
1439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1440 printf "%s\n" "$ac_try_echo"; } >&5
1441 (eval "$ac_compile") 2>conftest.err
1442 ac_status=$?
1443 if test -s conftest.err; then
1444 grep -v '^ *+' conftest.err >conftest.er1
1445 cat conftest.er1 >&5
1446 mv -f conftest.er1 conftest.err
1447 fi
1448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1449 test $ac_status = 0; } && {
1450 test -z "$ac_c_werror_flag" ||
1451 test ! -s conftest.err
1452 } && test -s conftest.$ac_objext
1453 then :
1454 ac_retval=0
1455 else $as_nop
1456 printf "%s\n" "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1458
1459 ac_retval=1
1460 fi
1461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 as_fn_set_status $ac_retval
1463
1464 } # ac_fn_c_try_compile
1465
1466 # ac_fn_c_try_link LINENO
1467 # -----------------------
1468 # Try to link conftest.$ac_ext, and return whether this succeeded.
1469 ac_fn_c_try_link ()
1470 {
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1473 if { { ac_try="$ac_link"
1474 case "(($ac_try" in
1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476 *) ac_try_echo=$ac_try;;
1477 esac
1478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479 printf "%s\n" "$ac_try_echo"; } >&5
1480 (eval "$ac_link") 2>conftest.err
1481 ac_status=$?
1482 if test -s conftest.err; then
1483 grep -v '^ *+' conftest.err >conftest.er1
1484 cat conftest.er1 >&5
1485 mv -f conftest.er1 conftest.err
1486 fi
1487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488 test $ac_status = 0; } && {
1489 test -z "$ac_c_werror_flag" ||
1490 test ! -s conftest.err
1491 } && test -s conftest$ac_exeext && {
1492 test "$cross_compiling" = yes ||
1493 test -x conftest$ac_exeext
1494 }
1495 then :
1496 ac_retval=0
1497 else $as_nop
1498 printf "%s\n" "$as_me: failed program was:" >&5
1499 sed 's/^/| /' conftest.$ac_ext >&5
1500
1501 ac_retval=1
1502 fi
1503 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1504 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1505 # interfere with the next link command; also delete a directory that is
1506 # left behind by Apple's compiler. We do this before executing the actions.
1507 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1509 as_fn_set_status $ac_retval
1510
1511 } # ac_fn_c_try_link
1512
1513 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1514 # -------------------------------------------------------
1515 # Tests whether HEADER exists and can be compiled using the include files in
1516 # INCLUDES, setting the cache variable VAR accordingly.
1517 ac_fn_c_check_header_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1521 printf %s "checking for $2... " >&6; }
1522 if eval test \${$3+y}
1523 then :
1524 printf %s "(cached) " >&6
1525 else $as_nop
1526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1527 /* end confdefs.h. */
1528 $4
1529 #include <$2>
1530 _ACEOF
1531 if ac_fn_c_try_compile "$LINENO"
1532 then :
1533 eval "$3=yes"
1534 else $as_nop
1535 eval "$3=no"
1536 fi
1537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1538 fi
1539 eval ac_res=\$$3
1540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1541 printf "%s\n" "$ac_res" >&6; }
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543
1544 } # ac_fn_c_check_header_compile
1545 ac_configure_args_raw=
1546 for ac_arg
1547 do
1548 case $ac_arg in
1549 *\'*)
1550 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1551 esac
1552 as_fn_append ac_configure_args_raw " '$ac_arg'"
1553 done
1554
1555 case $ac_configure_args_raw in
1556 *$as_nl*)
1557 ac_safe_unquote= ;;
1558 *)
1559 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1560 ac_unsafe_a="$ac_unsafe_z#~"
1561 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1562 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1563 esac
1564
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by mitm $as_me 4.3, which was
1570 generated by GNU Autoconf 2.71. Invocation command line was
1571
1572 $ $0$ac_configure_args_raw
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 case $as_dir in #(((
1606 '') as_dir=./ ;;
1607 */) ;;
1608 *) as_dir=$as_dir/ ;;
1609 esac
1610 printf "%s\n" "PATH: $as_dir"
1611 done
1612 IFS=$as_save_IFS
1613
1614 } >&5
1615
1616 cat >&5 <<_ACEOF
1617
1618
1619 ## ----------- ##
1620 ## Core tests. ##
1621 ## ----------- ##
1622
1623 _ACEOF
1624
1625
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_configure_args=
1632 ac_configure_args0=
1633 ac_configure_args1=
1634 ac_must_keep_next=false
1635 for ac_pass in 1 2
1636 do
1637 for ac_arg
1638 do
1639 case $ac_arg in
1640 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642 | -silent | --silent | --silen | --sile | --sil)
1643 continue ;;
1644 *\'*)
1645 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646 esac
1647 case $ac_pass in
1648 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1649 2)
1650 as_fn_append ac_configure_args1 " '$ac_arg'"
1651 if test $ac_must_keep_next = true; then
1652 ac_must_keep_next=false # Got value, back to normal.
1653 else
1654 case $ac_arg in
1655 *=* | --config-cache | -C | -disable-* | --disable-* \
1656 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658 | -with-* | --with-* | -without-* | --without-* | --x)
1659 case "$ac_configure_args0 " in
1660 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661 esac
1662 ;;
1663 -* ) ac_must_keep_next=true ;;
1664 esac
1665 fi
1666 as_fn_append ac_configure_args " '$ac_arg'"
1667 ;;
1668 esac
1669 done
1670 done
1671 { ac_configure_args0=; unset ac_configure_args0;}
1672 { ac_configure_args1=; unset ac_configure_args1;}
1673
1674 # When interrupted or exit'd, cleanup temporary files, and complete
1675 # config.log. We remove comments because anyway the quotes in there
1676 # would cause problems or look ugly.
1677 # WARNING: Use '\'' to represent an apostrophe within the trap.
1678 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679 trap 'exit_status=$?
1680 # Sanitize IFS.
1681 IFS=" "" $as_nl"
1682 # Save into config.log some information that might help in debugging.
1683 {
1684 echo
1685
1686 printf "%s\n" "## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##"
1689 echo
1690 # The following way of writing the cache mishandles newlines in values,
1691 (
1692 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1693 eval ac_val=\$$ac_var
1694 case $ac_val in #(
1695 *${as_nl}*)
1696 case $ac_var in #(
1697 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1698 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1699 esac
1700 case $ac_var in #(
1701 _ | IFS | as_nl) ;; #(
1702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1703 *) { eval $ac_var=; unset $ac_var;} ;;
1704 esac ;;
1705 esac
1706 done
1707 (set) 2>&1 |
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1710 sed -n \
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
1714 *)
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716 ;;
1717 esac |
1718 sort
1719 )
1720 echo
1721
1722 printf "%s\n" "## ----------------- ##
1723 ## Output variables. ##
1724 ## ----------------- ##"
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
1728 eval ac_val=\$$ac_var
1729 case $ac_val in
1730 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 esac
1732 printf "%s\n" "$ac_var='\''$ac_val'\''"
1733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 printf "%s\n" "## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##"
1740 echo
1741 for ac_var in $ac_subst_files
1742 do
1743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 printf "%s\n" "$ac_var='\''$ac_val'\''"
1748 done | sort
1749 echo
1750 fi
1751
1752 if test -s confdefs.h; then
1753 printf "%s\n" "## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##"
1756 echo
1757 cat confdefs.h
1758 echo
1759 fi
1760 test "$ac_signal" != 0 &&
1761 printf "%s\n" "$as_me: caught signal $ac_signal"
1762 printf "%s\n" "$as_me: exit $exit_status"
1763 } >&5
1764 rm -f core *.core core.conftest.* &&
1765 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766 exit $exit_status
1767 ' 0
1768 for ac_signal in 1 2 13 15; do
1769 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1770 done
1771 ac_signal=0
1772
1773 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1774 rm -f -r conftest* confdefs.h
1775
1776 printf "%s\n" "/* confdefs.h */" > confdefs.h
1777
1778 # Predefined preprocessor variables.
1779
1780 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1781
1782 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1783
1784 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1785
1786 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1787
1788 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1789
1790 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1791
1792
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer an explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 ac_site_files="$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1799 else
1800 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1801 fi
1802
1803 for ac_site_file in $ac_site_files
1804 do
1805 case $ac_site_file in #(
1806 */*) :
1807 ;; #(
1808 *) :
1809 ac_site_file=./$ac_site_file ;;
1810 esac
1811 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1813 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1814 sed 's/^/| /' "$ac_site_file" >&5
1815 . "$ac_site_file" \
1816 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1817 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1818 as_fn_error $? "failed to load site script $ac_site_file
1819 See \`config.log' for more details" "$LINENO" 5; }
1820 fi
1821 done
1822
1823 if test -r "$cache_file"; then
1824 # Some versions of bash will fail to source /dev/null (special files
1825 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1826 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1828 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1829 case $cache_file in
1830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
1832 esac
1833 fi
1834 else
1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1836 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1837 >$cache_file
1838 fi
1839
1840 # Test code for whether the C compiler supports C89 (global declarations)
1841 ac_c_conftest_c89_globals='
1842 /* Does the compiler advertise C89 conformance?
1843 Do not test the value of __STDC__, because some compilers set it to 0
1844 while being otherwise adequately conformant. */
1845 #if !defined __STDC__
1846 # error "Compiler does not advertise C89 conformance"
1847 #endif
1848
1849 #include <stddef.h>
1850 #include <stdarg.h>
1851 struct stat;
1852 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1853 struct buf { int x; };
1854 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1855 static char *e (p, i)
1856 char **p;
1857 int i;
1858 {
1859 return p[i];
1860 }
1861 static char *f (char * (*g) (char **, int), char **p, ...)
1862 {
1863 char *s;
1864 va_list v;
1865 va_start (v,p);
1866 s = g (p, va_arg (v,int));
1867 va_end (v);
1868 return s;
1869 }
1870
1871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1872 function prototypes and stuff, but not \xHH hex character constants.
1873 These do not provoke an error unfortunately, instead are silently treated
1874 as an "x". The following induces an error, until -std is added to get
1875 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1876 array size at least. It is necessary to write \x00 == 0 to get something
1877 that is true only with -std. */
1878 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1879
1880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1881 inside strings and character constants. */
1882 #define FOO(x) '\''x'\''
1883 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1884
1885 int test (int i, double x);
1886 struct s1 {int (*f) (int a);};
1887 struct s2 {int (*f) (double a);};
1888 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1889 int, int);'
1890
1891 # Test code for whether the C compiler supports C89 (body of main).
1892 ac_c_conftest_c89_main='
1893 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1894 '
1895
1896 # Test code for whether the C compiler supports C99 (global declarations)
1897 ac_c_conftest_c99_globals='
1898 // Does the compiler advertise C99 conformance?
1899 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1900 # error "Compiler does not advertise C99 conformance"
1901 #endif
1902
1903 #include <stdbool.h>
1904 extern int puts (const char *);
1905 extern int printf (const char *, ...);
1906 extern int dprintf (int, const char *, ...);
1907 extern void *malloc (size_t);
1908
1909 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1910 // dprintf is used instead of fprintf to avoid needing to declare
1911 // FILE and stderr.
1912 #define debug(...) dprintf (2, __VA_ARGS__)
1913 #define showlist(...) puts (#__VA_ARGS__)
1914 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1915 static void
1916 test_varargs_macros (void)
1917 {
1918 int x = 1234;
1919 int y = 5678;
1920 debug ("Flag");
1921 debug ("X = %d\n", x);
1922 showlist (The first, second, and third items.);
1923 report (x>y, "x is %d but y is %d", x, y);
1924 }
1925
1926 // Check long long types.
1927 #define BIG64 18446744073709551615ull
1928 #define BIG32 4294967295ul
1929 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1930 #if !BIG_OK
1931 #error "your preprocessor is broken"
1932 #endif
1933 #if BIG_OK
1934 #else
1935 #error "your preprocessor is broken"
1936 #endif
1937 static long long int bignum = -9223372036854775807LL;
1938 static unsigned long long int ubignum = BIG64;
1939
1940 struct incomplete_array
1941 {
1942 int datasize;
1943 double data[];
1944 };
1945
1946 struct named_init {
1947 int number;
1948 const wchar_t *name;
1949 double average;
1950 };
1951
1952 typedef const char *ccp;
1953
1954 static inline int
1955 test_restrict (ccp restrict text)
1956 {
1957 // See if C++-style comments work.
1958 // Iterate through items via the restricted pointer.
1959 // Also check for declarations in for loops.
1960 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1961 continue;
1962 return 0;
1963 }
1964
1965 // Check varargs and va_copy.
1966 static bool
1967 test_varargs (const char *format, ...)
1968 {
1969 va_list args;
1970 va_start (args, format);
1971 va_list args_copy;
1972 va_copy (args_copy, args);
1973
1974 const char *str = "";
1975 int number = 0;
1976 float fnumber = 0;
1977
1978 while (*format)
1979 {
1980 switch (*format++)
1981 {
1982 case '\''s'\'': // string
1983 str = va_arg (args_copy, const char *);
1984 break;
1985 case '\''d'\'': // int
1986 number = va_arg (args_copy, int);
1987 break;
1988 case '\''f'\'': // float
1989 fnumber = va_arg (args_copy, double);
1990 break;
1991 default:
1992 break;
1993 }
1994 }
1995 va_end (args_copy);
1996 va_end (args);
1997
1998 return *str && number && fnumber;
1999 }
2000 '
2001
2002 # Test code for whether the C compiler supports C99 (body of main).
2003 ac_c_conftest_c99_main='
2004 // Check bool.
2005 _Bool success = false;
2006 success |= (argc != 0);
2007
2008 // Check restrict.
2009 if (test_restrict ("String literal") == 0)
2010 success = true;
2011 char *restrict newvar = "Another string";
2012
2013 // Check varargs.
2014 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2015 test_varargs_macros ();
2016
2017 // Check flexible array members.
2018 struct incomplete_array *ia =
2019 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2020 ia->datasize = 10;
2021 for (int i = 0; i < ia->datasize; ++i)
2022 ia->data[i] = i * 1.234;
2023
2024 // Check named initializers.
2025 struct named_init ni = {
2026 .number = 34,
2027 .name = L"Test wide string",
2028 .average = 543.34343,
2029 };
2030
2031 ni.number = 58;
2032
2033 int dynamic_array[ni.number];
2034 dynamic_array[0] = argv[0][0];
2035 dynamic_array[ni.number - 1] = 543;
2036
2037 // work around unused variable warnings
2038 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2039 || dynamic_array[ni.number - 1] != 543);
2040 '
2041
2042 # Test code for whether the C compiler supports C11 (global declarations)
2043 ac_c_conftest_c11_globals='
2044 // Does the compiler advertise C11 conformance?
2045 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2046 # error "Compiler does not advertise C11 conformance"
2047 #endif
2048
2049 // Check _Alignas.
2050 char _Alignas (double) aligned_as_double;
2051 char _Alignas (0) no_special_alignment;
2052 extern char aligned_as_int;
2053 char _Alignas (0) _Alignas (int) aligned_as_int;
2054
2055 // Check _Alignof.
2056 enum
2057 {
2058 int_alignment = _Alignof (int),
2059 int_array_alignment = _Alignof (int[100]),
2060 char_alignment = _Alignof (char)
2061 };
2062 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2063
2064 // Check _Noreturn.
2065 int _Noreturn does_not_return (void) { for (;;) continue; }
2066
2067 // Check _Static_assert.
2068 struct test_static_assert
2069 {
2070 int x;
2071 _Static_assert (sizeof (int) <= sizeof (long int),
2072 "_Static_assert does not work in struct");
2073 long int y;
2074 };
2075
2076 // Check UTF-8 literals.
2077 #define u8 syntax error!
2078 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2079
2080 // Check duplicate typedefs.
2081 typedef long *long_ptr;
2082 typedef long int *long_ptr;
2083 typedef long_ptr long_ptr;
2084
2085 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2086 struct anonymous
2087 {
2088 union {
2089 struct { int i; int j; };
2090 struct { int k; long int l; } w;
2091 };
2092 int m;
2093 } v1;
2094 '
2095
2096 # Test code for whether the C compiler supports C11 (body of main).
2097 ac_c_conftest_c11_main='
2098 _Static_assert ((offsetof (struct anonymous, i)
2099 == offsetof (struct anonymous, w.k)),
2100 "Anonymous union alignment botch");
2101 v1.i = 2;
2102 v1.w.k = 5;
2103 ok |= v1.i != 5;
2104 '
2105
2106 # Test code for whether the C compiler supports C11 (complete).
2107 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2108 ${ac_c_conftest_c99_globals}
2109 ${ac_c_conftest_c11_globals}
2110
2111 int
2112 main (int argc, char **argv)
2113 {
2114 int ok = 0;
2115 ${ac_c_conftest_c89_main}
2116 ${ac_c_conftest_c99_main}
2117 ${ac_c_conftest_c11_main}
2118 return ok;
2119 }
2120 "
2121
2122 # Test code for whether the C compiler supports C99 (complete).
2123 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2124 ${ac_c_conftest_c99_globals}
2125
2126 int
2127 main (int argc, char **argv)
2128 {
2129 int ok = 0;
2130 ${ac_c_conftest_c89_main}
2131 ${ac_c_conftest_c99_main}
2132 return ok;
2133 }
2134 "
2135
2136 # Test code for whether the C compiler supports C89 (complete).
2137 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2138
2139 int
2140 main (int argc, char **argv)
2141 {
2142 int ok = 0;
2143 ${ac_c_conftest_c89_main}
2144 return ok;
2145 }
2146 "
2147
2148 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2149 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2150 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2151 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2152 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2153 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2154 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2155 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2156 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2157
2158 # Auxiliary files required by this configure script.
2159 ac_aux_files="config.guess config.sub install-sh"
2160
2161 # Locations in which to look for auxiliary files.
2162 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2163
2164 # Search for a directory containing all of the required auxiliary files,
2165 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2166 # If we don't find one directory that contains all the files we need,
2167 # we report the set of missing files from the *first* directory in
2168 # $ac_aux_dir_candidates and give up.
2169 ac_missing_aux_files=""
2170 ac_first_candidate=:
2171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 as_found=false
2174 for as_dir in $ac_aux_dir_candidates
2175 do
2176 IFS=$as_save_IFS
2177 case $as_dir in #(((
2178 '') as_dir=./ ;;
2179 */) ;;
2180 *) as_dir=$as_dir/ ;;
2181 esac
2182 as_found=:
2183
2184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2185 ac_aux_dir_found=yes
2186 ac_install_sh=
2187 for ac_aux in $ac_aux_files
2188 do
2189 # As a special case, if "install-sh" is required, that requirement
2190 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2191 # and $ac_install_sh is set appropriately for whichever one is found.
2192 if test x"$ac_aux" = x"install-sh"
2193 then
2194 if test -f "${as_dir}install-sh"; then
2195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2196 ac_install_sh="${as_dir}install-sh -c"
2197 elif test -f "${as_dir}install.sh"; then
2198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2199 ac_install_sh="${as_dir}install.sh -c"
2200 elif test -f "${as_dir}shtool"; then
2201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2202 ac_install_sh="${as_dir}shtool install -c"
2203 else
2204 ac_aux_dir_found=no
2205 if $ac_first_candidate; then
2206 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2207 else
2208 break
2209 fi
2210 fi
2211 else
2212 if test -f "${as_dir}${ac_aux}"; then
2213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2214 else
2215 ac_aux_dir_found=no
2216 if $ac_first_candidate; then
2217 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2218 else
2219 break
2220 fi
2221 fi
2222 fi
2223 done
2224 if test "$ac_aux_dir_found" = yes; then
2225 ac_aux_dir="$as_dir"
2226 break
2227 fi
2228 ac_first_candidate=false
2229
2230 as_found=false
2231 done
2232 IFS=$as_save_IFS
2233 if $as_found
2234 then :
2235
2236 else $as_nop
2237 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2238 fi
2239
2240
2241 # These three variables are undocumented and unsupported,
2242 # and are intended to be withdrawn in a future Autoconf release.
2243 # They can cause serious problems if a builder's source tree is in a directory
2244 # whose full name contains unusual characters.
2245 if test -f "${ac_aux_dir}config.guess"; then
2246 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2247 fi
2248 if test -f "${ac_aux_dir}config.sub"; then
2249 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2250 fi
2251 if test -f "$ac_aux_dir/configure"; then
2252 ac_configure="$SHELL ${ac_aux_dir}configure"
2253 fi
2254
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304 done
2305 if $ac_cache_corrupted; then
2306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2311 and start over" "$LINENO" 5
2312 fi
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325
2326
2327
2328 # Find a good install program. We prefer a C program (faster),
2329 # so one script is as good as another. But avoid the broken or
2330 # incompatible versions:
2331 # SysV /etc/install, /usr/sbin/install
2332 # SunOS /usr/etc/install
2333 # IRIX /sbin/install
2334 # AIX /bin/install
2335 # AmigaOS /C/install, which installs bootblocks on floppy discs
2336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339 # OS/2's system install, which has a completely different semantic
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 # Reject install programs that cannot install multiple files.
2342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343 printf %s "checking for a BSD-compatible install... " >&6; }
2344 if test -z "$INSTALL"; then
2345 if test ${ac_cv_path_install+y}
2346 then :
2347 printf %s "(cached) " >&6
2348 else $as_nop
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 case $as_dir in #(((
2354 '') as_dir=./ ;;
2355 */) ;;
2356 *) as_dir=$as_dir/ ;;
2357 esac
2358 # Account for fact that we put trailing slashes in our PATH walk.
2359 case $as_dir in #((
2360 ./ | /[cC]/* | \
2361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2362 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2363 /usr/ucb/* ) ;;
2364 *)
2365 # OSF1 and SCO ODT 3.0 have their own names for install.
2366 # Don't use installbsd from OSF since it installs stuff as root
2367 # by default.
2368 for ac_prog in ginstall scoinst install; do
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2371 if test $ac_prog = install &&
2372 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373 # AIX install. It has an incompatible calling convention.
2374 :
2375 elif test $ac_prog = install &&
2376 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # program-specific install script used by HP pwplus--don't use.
2378 :
2379 else
2380 rm -rf conftest.one conftest.two conftest.dir
2381 echo one > conftest.one
2382 echo two > conftest.two
2383 mkdir conftest.dir
2384 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2385 test -s conftest.one && test -s conftest.two &&
2386 test -s conftest.dir/conftest.one &&
2387 test -s conftest.dir/conftest.two
2388 then
2389 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2390 break 3
2391 fi
2392 fi
2393 fi
2394 done
2395 done
2396 ;;
2397 esac
2398
2399 done
2400 IFS=$as_save_IFS
2401
2402 rm -rf conftest.one conftest.two conftest.dir
2403
2404 fi
2405 if test ${ac_cv_path_install+y}; then
2406 INSTALL=$ac_cv_path_install
2407 else
2408 # As a last resort, use the slow shell script. Don't cache a
2409 # value for INSTALL within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the value is a relative name.
2412 INSTALL=$ac_install_sh
2413 fi
2414 fi
2415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2416 printf "%s\n" "$INSTALL" >&6; }
2417
2418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2419 # It thinks the first close brace ends the variable substitution.
2420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2421
2422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2423
2424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 printf %s "checking for $ac_word... " >&6; }
2445 if test ${ac_cv_prog_CC+y}
2446 then :
2447 printf %s "(cached) " >&6
2448 else $as_nop
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 case $as_dir in #(((
2457 '') as_dir=./ ;;
2458 */) ;;
2459 *) as_dir=$as_dir/ ;;
2460 esac
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2470
2471 fi
2472 fi
2473 CC=$ac_cv_prog_CC
2474 if test -n "$CC"; then
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2476 printf "%s\n" "$CC" >&6; }
2477 else
2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479 printf "%s\n" "no" >&6; }
2480 fi
2481
2482
2483 fi
2484 if test -z "$ac_cv_prog_CC"; then
2485 ac_ct_CC=$CC
2486 # Extract the first word of "gcc", so it can be a program name with args.
2487 set dummy gcc; ac_word=$2
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 printf %s "checking for $ac_word... " >&6; }
2490 if test ${ac_cv_prog_ac_ct_CC+y}
2491 then :
2492 printf %s "(cached) " >&6
2493 else $as_nop
2494 if test -n "$ac_ct_CC"; then
2495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500 IFS=$as_save_IFS
2501 case $as_dir in #(((
2502 '') as_dir=./ ;;
2503 */) ;;
2504 *) as_dir=$as_dir/ ;;
2505 esac
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_ac_ct_CC="gcc"
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521 printf "%s\n" "$ac_ct_CC" >&6; }
2522 else
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 printf "%s\n" "no" >&6; }
2525 fi
2526
2527 if test "x$ac_ct_CC" = x; then
2528 CC=""
2529 else
2530 case $cross_compiling:$ac_tool_warned in
2531 yes:)
2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534 ac_tool_warned=yes ;;
2535 esac
2536 CC=$ac_ct_CC
2537 fi
2538 else
2539 CC="$ac_cv_prog_CC"
2540 fi
2541
2542 if test -z "$CC"; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}cc; ac_word=$2
2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 printf %s "checking for $ac_word... " >&6; }
2548 if test ${ac_cv_prog_CC+y}
2549 then :
2550 printf %s "(cached) " >&6
2551 else $as_nop
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 case $as_dir in #(((
2560 '') as_dir=./ ;;
2561 */) ;;
2562 *) as_dir=$as_dir/ ;;
2563 esac
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_CC="${ac_tool_prefix}cc"
2567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 printf "%s\n" "$CC" >&6; }
2580 else
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 printf "%s\n" "no" >&6; }
2583 fi
2584
2585
2586 fi
2587 fi
2588 if test -z "$CC"; then
2589 # Extract the first word of "cc", so it can be a program name with args.
2590 set dummy cc; ac_word=$2
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 printf %s "checking for $ac_word... " >&6; }
2593 if test ${ac_cv_prog_CC+y}
2594 then :
2595 printf %s "(cached) " >&6
2596 else $as_nop
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 else
2600 ac_prog_rejected=no
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604 IFS=$as_save_IFS
2605 case $as_dir in #(((
2606 '') as_dir=./ ;;
2607 */) ;;
2608 *) as_dir=$as_dir/ ;;
2609 esac
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2612 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613 ac_prog_rejected=yes
2614 continue
2615 fi
2616 ac_cv_prog_CC="cc"
2617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 if test $ac_prog_rejected = yes; then
2625 # We found a bogon in the path, so make sure we never use it.
2626 set dummy $ac_cv_prog_CC
2627 shift
2628 if test $# != 0; then
2629 # We chose a different compiler from the bogus one.
2630 # However, it has the same basename, so the bogon will be chosen
2631 # first if we set CC to just the basename; use the full file name.
2632 shift
2633 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2634 fi
2635 fi
2636 fi
2637 fi
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641 printf "%s\n" "$CC" >&6; }
2642 else
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 printf "%s\n" "no" >&6; }
2645 fi
2646
2647
2648 fi
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 for ac_prog in cl.exe
2652 do
2653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 printf %s "checking for $ac_word... " >&6; }
2657 if test ${ac_cv_prog_CC+y}
2658 then :
2659 printf %s "(cached) " >&6
2660 else $as_nop
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 case $as_dir in #(((
2669 '') as_dir=./ ;;
2670 */) ;;
2671 *) as_dir=$as_dir/ ;;
2672 esac
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 CC=$ac_cv_prog_CC
2686 if test -n "$CC"; then
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688 printf "%s\n" "$CC" >&6; }
2689 else
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 printf "%s\n" "no" >&6; }
2692 fi
2693
2694
2695 test -n "$CC" && break
2696 done
2697 fi
2698 if test -z "$CC"; then
2699 ac_ct_CC=$CC
2700 for ac_prog in cl.exe
2701 do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 printf %s "checking for $ac_word... " >&6; }
2706 if test ${ac_cv_prog_ac_ct_CC+y}
2707 then :
2708 printf %s "(cached) " >&6
2709 else $as_nop
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 case $as_dir in #(((
2718 '') as_dir=./ ;;
2719 */) ;;
2720 *) as_dir=$as_dir/ ;;
2721 esac
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_ac_ct_CC="$ac_prog"
2725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735 if test -n "$ac_ct_CC"; then
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737 printf "%s\n" "$ac_ct_CC" >&6; }
2738 else
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 printf "%s\n" "no" >&6; }
2741 fi
2742
2743
2744 test -n "$ac_ct_CC" && break
2745 done
2746
2747 if test "x$ac_ct_CC" = x; then
2748 CC=""
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756 CC=$ac_ct_CC
2757 fi
2758 fi
2759
2760 fi
2761 if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}clang; ac_word=$2
2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 printf %s "checking for $ac_word... " >&6; }
2767 if test ${ac_cv_prog_CC+y}
2768 then :
2769 printf %s "(cached) " >&6
2770 else $as_nop
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 case $as_dir in #(((
2779 '') as_dir=./ ;;
2780 */) ;;
2781 *) as_dir=$as_dir/ ;;
2782 esac
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_CC="${ac_tool_prefix}clang"
2786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 CC=$ac_cv_prog_CC
2796 if test -n "$CC"; then
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 printf "%s\n" "$CC" >&6; }
2799 else
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 printf "%s\n" "no" >&6; }
2802 fi
2803
2804
2805 fi
2806 if test -z "$ac_cv_prog_CC"; then
2807 ac_ct_CC=$CC
2808 # Extract the first word of "clang", so it can be a program name with args.
2809 set dummy clang; ac_word=$2
2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 printf %s "checking for $ac_word... " >&6; }
2812 if test ${ac_cv_prog_ac_ct_CC+y}
2813 then :
2814 printf %s "(cached) " >&6
2815 else $as_nop
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 case $as_dir in #(((
2824 '') as_dir=./ ;;
2825 */) ;;
2826 *) as_dir=$as_dir/ ;;
2827 esac
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_CC="clang"
2831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 printf "%s\n" "$ac_ct_CC" >&6; }
2844 else
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 printf "%s\n" "no" >&6; }
2847 fi
2848
2849 if test "x$ac_ct_CC" = x; then
2850 CC=""
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 CC=$ac_ct_CC
2859 fi
2860 else
2861 CC="$ac_cv_prog_CC"
2862 fi
2863
2864 fi
2865
2866
2867 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error $? "no acceptable C compiler found in \$PATH
2870 See \`config.log' for more details" "$LINENO" 5; }
2871
2872 # Provide some information about the compiler.
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2874 set X $ac_compile
2875 ac_compiler=$2
2876 for ac_option in --version -v -V -qversion -version; do
2877 { { ac_try="$ac_compiler $ac_option >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 printf "%s\n" "$ac_try_echo"; } >&5
2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2885 ac_status=$?
2886 if test -s conftest.err; then
2887 sed '10a\
2888 ... rest of stderr output deleted ...
2889 10q' conftest.err >conftest.er1
2890 cat conftest.er1 >&5
2891 fi
2892 rm -f conftest.er1 conftest.err
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2895 done
2896
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2899
2900 int
2901 main (void)
2902 {
2903
2904 ;
2905 return 0;
2906 }
2907 _ACEOF
2908 ac_clean_files_save=$ac_clean_files
2909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2912 # of exeext.
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2914 printf %s "checking whether the C compiler works... " >&6; }
2915 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2916
2917 # The possible output files:
2918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2919
2920 ac_rmfiles=
2921 for ac_file in $ac_files
2922 do
2923 case $ac_file in
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2926 esac
2927 done
2928 rm -f $ac_rmfiles
2929
2930 if { { ac_try="$ac_link_default"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 printf "%s\n" "$ac_try_echo"; } >&5
2937 (eval "$ac_link_default") 2>&5
2938 ac_status=$?
2939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }
2941 then :
2942 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2943 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2944 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2945 # so that the user can short-circuit this test for compilers unknown to
2946 # Autoconf.
2947 for ac_file in $ac_files ''
2948 do
2949 test -f "$ac_file" || continue
2950 case $ac_file in
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2952 ;;
2953 [ab].out )
2954 # We found the default executable, but exeext='' is most
2955 # certainly right.
2956 break;;
2957 *.* )
2958 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2959 then :; else
2960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961 fi
2962 # We set ac_cv_exeext here because the later test for it is not
2963 # safe: cross compilers may not add the suffix if given an `-o'
2964 # argument, so we may need to know it at that point already.
2965 # Even if this section looks crufty: it has the advantage of
2966 # actually working.
2967 break;;
2968 * )
2969 break;;
2970 esac
2971 done
2972 test "$ac_cv_exeext" = no && ac_cv_exeext=
2973
2974 else $as_nop
2975 ac_file=''
2976 fi
2977 if test -z "$ac_file"
2978 then :
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 printf "%s\n" "no" >&6; }
2981 printf "%s\n" "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error 77 "C compiler cannot create executables
2987 See \`config.log' for more details" "$LINENO" 5; }
2988 else $as_nop
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 printf "%s\n" "yes" >&6; }
2991 fi
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2993 printf %s "checking for C compiler default output file name... " >&6; }
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2995 printf "%s\n" "$ac_file" >&6; }
2996 ac_exeext=$ac_cv_exeext
2997
2998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3001 printf %s "checking for suffix of executables... " >&6; }
3002 if { { ac_try="$ac_link"
3003 case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 printf "%s\n" "$ac_try_echo"; } >&5
3009 (eval "$ac_link") 2>&5
3010 ac_status=$?
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }
3013 then :
3014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3016 # work properly (i.e., refer to `conftest.exe'), while it won't with
3017 # `rm'.
3018 for ac_file in conftest.exe conftest conftest.*; do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 break;;
3024 * ) break;;
3025 esac
3026 done
3027 else $as_nop
3028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details" "$LINENO" 5; }
3032 fi
3033 rm -f conftest conftest$ac_cv_exeext
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3035 printf "%s\n" "$ac_cv_exeext" >&6; }
3036
3037 rm -f conftest.$ac_ext
3038 EXEEXT=$ac_cv_exeext
3039 ac_exeext=$EXEEXT
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3042 #include <stdio.h>
3043 int
3044 main (void)
3045 {
3046 FILE *f = fopen ("conftest.out", "w");
3047 return ferror (f) || fclose (f) != 0;
3048
3049 ;
3050 return 0;
3051 }
3052 _ACEOF
3053 ac_clean_files="$ac_clean_files conftest.out"
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3057 printf %s "checking whether we are cross compiling... " >&6; }
3058 if test "$cross_compiling" != yes; then
3059 { { ac_try="$ac_link"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 printf "%s\n" "$ac_try_echo"; } >&5
3066 (eval "$ac_link") 2>&5
3067 ac_status=$?
3068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 if { ac_try='./conftest$ac_cv_exeext'
3071 { { case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 printf "%s\n" "$ac_try_echo"; } >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; }; then
3081 cross_compiling=no
3082 else
3083 if test "$cross_compiling" = maybe; then
3084 cross_compiling=yes
3085 else
3086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error 77 "cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details" "$LINENO" 5; }
3091 fi
3092 fi
3093 fi
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3095 printf "%s\n" "$cross_compiling" >&6; }
3096
3097 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3098 ac_clean_files=$ac_clean_files_save
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3100 printf %s "checking for suffix of object files... " >&6; }
3101 if test ${ac_cv_objext+y}
3102 then :
3103 printf %s "(cached) " >&6
3104 else $as_nop
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107
3108 int
3109 main (void)
3110 {
3111
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.o conftest.obj
3117 if { { ac_try="$ac_compile"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 printf "%s\n" "$ac_try_echo"; } >&5
3124 (eval "$ac_compile") 2>&5
3125 ac_status=$?
3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }
3128 then :
3129 for ac_file in conftest.o conftest.obj conftest.*; do
3130 test -f "$ac_file" || continue;
3131 case $ac_file in
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3133 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3134 break;;
3135 esac
3136 done
3137 else $as_nop
3138 printf "%s\n" "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "cannot compute suffix of object files: cannot compile
3144 See \`config.log' for more details" "$LINENO" 5; }
3145 fi
3146 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147 fi
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3149 printf "%s\n" "$ac_cv_objext" >&6; }
3150 OBJEXT=$ac_cv_objext
3151 ac_objext=$OBJEXT
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3153 printf %s "checking whether the compiler supports GNU C... " >&6; }
3154 if test ${ac_cv_c_compiler_gnu+y}
3155 then :
3156 printf %s "(cached) " >&6
3157 else $as_nop
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160
3161 int
3162 main (void)
3163 {
3164 #ifndef __GNUC__
3165 choke me
3166 #endif
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 if ac_fn_c_try_compile "$LINENO"
3173 then :
3174 ac_compiler_gnu=yes
3175 else $as_nop
3176 ac_compiler_gnu=no
3177 fi
3178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3180
3181 fi
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3183 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185
3186 if test $ac_compiler_gnu = yes; then
3187 GCC=yes
3188 else
3189 GCC=
3190 fi
3191 ac_test_CFLAGS=${CFLAGS+y}
3192 ac_save_CFLAGS=$CFLAGS
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3194 printf %s "checking whether $CC accepts -g... " >&6; }
3195 if test ${ac_cv_prog_cc_g+y}
3196 then :
3197 printf %s "(cached) " >&6
3198 else $as_nop
3199 ac_save_c_werror_flag=$ac_c_werror_flag
3200 ac_c_werror_flag=yes
3201 ac_cv_prog_cc_g=no
3202 CFLAGS="-g"
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205
3206 int
3207 main (void)
3208 {
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 if ac_fn_c_try_compile "$LINENO"
3215 then :
3216 ac_cv_prog_cc_g=yes
3217 else $as_nop
3218 CFLAGS=""
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3221
3222 int
3223 main (void)
3224 {
3225
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"
3231 then :
3232
3233 else $as_nop
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235 CFLAGS="-g"
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3238
3239 int
3240 main (void)
3241 {
3242
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 if ac_fn_c_try_compile "$LINENO"
3248 then :
3249 ac_cv_prog_cc_g=yes
3250 fi
3251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3252 fi
3253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3254 fi
3255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3256 ac_c_werror_flag=$ac_save_c_werror_flag
3257 fi
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3259 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3260 if test $ac_test_CFLAGS; then
3261 CFLAGS=$ac_save_CFLAGS
3262 elif test $ac_cv_prog_cc_g = yes; then
3263 if test "$GCC" = yes; then
3264 CFLAGS="-g -O2"
3265 else
3266 CFLAGS="-g"
3267 fi
3268 else
3269 if test "$GCC" = yes; then
3270 CFLAGS="-O2"
3271 else
3272 CFLAGS=
3273 fi
3274 fi
3275 ac_prog_cc_stdc=no
3276 if test x$ac_prog_cc_stdc = xno
3277 then :
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3279 printf %s "checking for $CC option to enable C11 features... " >&6; }
3280 if test ${ac_cv_prog_cc_c11+y}
3281 then :
3282 printf %s "(cached) " >&6
3283 else $as_nop
3284 ac_cv_prog_cc_c11=no
3285 ac_save_CC=$CC
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3288 $ac_c_conftest_c11_program
3289 _ACEOF
3290 for ac_arg in '' -std=gnu11
3291 do
3292 CC="$ac_save_CC $ac_arg"
3293 if ac_fn_c_try_compile "$LINENO"
3294 then :
3295 ac_cv_prog_cc_c11=$ac_arg
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext conftest.beam
3298 test "x$ac_cv_prog_cc_c11" != "xno" && break
3299 done
3300 rm -f conftest.$ac_ext
3301 CC=$ac_save_CC
3302 fi
3303
3304 if test "x$ac_cv_prog_cc_c11" = xno
3305 then :
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3307 printf "%s\n" "unsupported" >&6; }
3308 else $as_nop
3309 if test "x$ac_cv_prog_cc_c11" = x
3310 then :
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3312 printf "%s\n" "none needed" >&6; }
3313 else $as_nop
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3315 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3316 CC="$CC $ac_cv_prog_cc_c11"
3317 fi
3318 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3319 ac_prog_cc_stdc=c11
3320 fi
3321 fi
3322 if test x$ac_prog_cc_stdc = xno
3323 then :
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3325 printf %s "checking for $CC option to enable C99 features... " >&6; }
3326 if test ${ac_cv_prog_cc_c99+y}
3327 then :
3328 printf %s "(cached) " >&6
3329 else $as_nop
3330 ac_cv_prog_cc_c99=no
3331 ac_save_CC=$CC
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334 $ac_c_conftest_c99_program
3335 _ACEOF
3336 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3337 do
3338 CC="$ac_save_CC $ac_arg"
3339 if ac_fn_c_try_compile "$LINENO"
3340 then :
3341 ac_cv_prog_cc_c99=$ac_arg
3342 fi
3343 rm -f core conftest.err conftest.$ac_objext conftest.beam
3344 test "x$ac_cv_prog_cc_c99" != "xno" && break
3345 done
3346 rm -f conftest.$ac_ext
3347 CC=$ac_save_CC
3348 fi
3349
3350 if test "x$ac_cv_prog_cc_c99" = xno
3351 then :
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3353 printf "%s\n" "unsupported" >&6; }
3354 else $as_nop
3355 if test "x$ac_cv_prog_cc_c99" = x
3356 then :
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3358 printf "%s\n" "none needed" >&6; }
3359 else $as_nop
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3361 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3362 CC="$CC $ac_cv_prog_cc_c99"
3363 fi
3364 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3365 ac_prog_cc_stdc=c99
3366 fi
3367 fi
3368 if test x$ac_prog_cc_stdc = xno
3369 then :
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3371 printf %s "checking for $CC option to enable C89 features... " >&6; }
3372 if test ${ac_cv_prog_cc_c89+y}
3373 then :
3374 printf %s "(cached) " >&6
3375 else $as_nop
3376 ac_cv_prog_cc_c89=no
3377 ac_save_CC=$CC
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380 $ac_c_conftest_c89_program
3381 _ACEOF
3382 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383 do
3384 CC="$ac_save_CC $ac_arg"
3385 if ac_fn_c_try_compile "$LINENO"
3386 then :
3387 ac_cv_prog_cc_c89=$ac_arg
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.beam
3390 test "x$ac_cv_prog_cc_c89" != "xno" && break
3391 done
3392 rm -f conftest.$ac_ext
3393 CC=$ac_save_CC
3394 fi
3395
3396 if test "x$ac_cv_prog_cc_c89" = xno
3397 then :
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399 printf "%s\n" "unsupported" >&6; }
3400 else $as_nop
3401 if test "x$ac_cv_prog_cc_c89" = x
3402 then :
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3404 printf "%s\n" "none needed" >&6; }
3405 else $as_nop
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3407 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3408 CC="$CC $ac_cv_prog_cc_c89"
3409 fi
3410 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3411 ac_prog_cc_stdc=c89
3412 fi
3413 fi
3414
3415 ac_ext=c
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420
3421
3422
3423
3424 # Make sure we can run config.sub.
3425 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3426 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3427
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3429 printf %s "checking build system type... " >&6; }
3430 if test ${ac_cv_build+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else $as_nop
3434 ac_build_alias=$build_alias
3435 test "x$ac_build_alias" = x &&
3436 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3437 test "x$ac_build_alias" = x &&
3438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3439 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3440 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3441
3442 fi
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3444 printf "%s\n" "$ac_cv_build" >&6; }
3445 case $ac_cv_build in
3446 *-*-*) ;;
3447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3448 esac
3449 build=$ac_cv_build
3450 ac_save_IFS=$IFS; IFS='-'
3451 set x $ac_cv_build
3452 shift
3453 build_cpu=$1
3454 build_vendor=$2
3455 shift; shift
3456 # Remember, the first character of IFS is used to create $*,
3457 # except with old shells:
3458 build_os=$*
3459 IFS=$ac_save_IFS
3460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3461
3462
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3464 printf %s "checking host system type... " >&6; }
3465 if test ${ac_cv_host+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else $as_nop
3469 if test "x$host_alias" = x; then
3470 ac_cv_host=$ac_cv_build
3471 else
3472 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3473 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3474 fi
3475
3476 fi
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3478 printf "%s\n" "$ac_cv_host" >&6; }
3479 case $ac_cv_host in
3480 *-*-*) ;;
3481 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3482 esac
3483 host=$ac_cv_host
3484 ac_save_IFS=$IFS; IFS='-'
3485 set x $ac_cv_host
3486 shift
3487 host_cpu=$1
3488 host_vendor=$2
3489 shift; shift
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3492 host_os=$*
3493 IFS=$ac_save_IFS
3494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3495
3496
3497 ansi="-std=c99 -pedantic"
3498 case "$host_os" in
3499 *cygwin*) ansi=""
3500 ;;
3501 solaris2*) CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
3502 ;;
3503 darwin*) CCOPTIONS="$CCOPTIONS -no-cpp-precomp -Wno-deprecated-declarations"
3504 ;;
3505 linux*) CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE"
3506 ;;
3507 esac
3508 if test "$GCC" = yes
3509 then # Add common gcc options, plus flags for dependency generation.
3510 CCOPTIONS="$CCOPTIONS -Wall -Wsign-compare $ansi -Wno-variadic-macros -MMD -MP"
3511 fi
3512
3513
3514
3515
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3517 printf %s "checking for library containing gethostbyname... " >&6; }
3518 if test ${ac_cv_search_gethostbyname+y}
3519 then :
3520 printf %s "(cached) " >&6
3521 else $as_nop
3522 ac_func_search_save_LIBS=$LIBS
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525
3526 /* Override any GCC internal prototype to avoid an error.
3527 Use char because int might match the return type of a GCC
3528 builtin and then its argument prototype would still apply. */
3529 char gethostbyname ();
3530 int
3531 main (void)
3532 {
3533 return gethostbyname ();
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 for ac_lib in '' nsl
3539 do
3540 if test -z "$ac_lib"; then
3541 ac_res="none required"
3542 else
3543 ac_res=-l$ac_lib
3544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3545 fi
3546 if ac_fn_c_try_link "$LINENO"
3547 then :
3548 ac_cv_search_gethostbyname=$ac_res
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3551 conftest$ac_exeext
3552 if test ${ac_cv_search_gethostbyname+y}
3553 then :
3554 break
3555 fi
3556 done
3557 if test ${ac_cv_search_gethostbyname+y}
3558 then :
3559
3560 else $as_nop
3561 ac_cv_search_gethostbyname=no
3562 fi
3563 rm conftest.$ac_ext
3564 LIBS=$ac_func_search_save_LIBS
3565 fi
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3567 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
3568 ac_res=$ac_cv_search_gethostbyname
3569 if test "$ac_res" != no
3570 then :
3571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3572
3573 fi
3574
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
3576 printf %s "checking for library containing socket... " >&6; }
3577 if test ${ac_cv_search_socket+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else $as_nop
3581 ac_func_search_save_LIBS=$LIBS
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 /* Override any GCC internal prototype to avoid an error.
3586 Use char because int might match the return type of a GCC
3587 builtin and then its argument prototype would still apply. */
3588 char socket ();
3589 int
3590 main (void)
3591 {
3592 return socket ();
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 for ac_lib in '' socket
3598 do
3599 if test -z "$ac_lib"; then
3600 ac_res="none required"
3601 else
3602 ac_res=-l$ac_lib
3603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3604 fi
3605 if ac_fn_c_try_link "$LINENO"
3606 then :
3607 ac_cv_search_socket=$ac_res
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3610 conftest$ac_exeext
3611 if test ${ac_cv_search_socket+y}
3612 then :
3613 break
3614 fi
3615 done
3616 if test ${ac_cv_search_socket+y}
3617 then :
3618
3619 else $as_nop
3620 ac_cv_search_socket=no
3621 fi
3622 rm conftest.$ac_ext
3623 LIBS=$ac_func_search_save_LIBS
3624 fi
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
3626 printf "%s\n" "$ac_cv_search_socket" >&6; }
3627 ac_res=$ac_cv_search_socket
3628 if test "$ac_res" != no
3629 then :
3630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3631
3632 fi
3633
3634
3635 ac_header= ac_cache=
3636 for ac_item in $ac_header_c_list
3637 do
3638 if test $ac_cache; then
3639 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3640 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3641 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3642 fi
3643 ac_header= ac_cache=
3644 elif test $ac_header; then
3645 ac_cache=$ac_item
3646 else
3647 ac_header=$ac_item
3648 fi
3649 done
3650
3651
3652
3653
3654
3655
3656
3657
3658 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3659 then :
3660
3661 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3662
3663 fi
3664 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
3665 if test "x$ac_cv_header_sys_select_h" = xyes
3666 then :
3667 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
3668
3669 fi
3670
3671 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
3672 if test "x$ac_cv_header_getopt_h" = xyes
3673 then :
3674 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
3675
3676 fi
3677
3678
3679 ac_config_headers="$ac_config_headers conf.h"
3680
3681
3682 ac_config_files="$ac_config_files Makefile Makefile.obj"
3683
3684 cat >confcache <<\_ACEOF
3685 # This file is a shell script that caches the results of configure
3686 # tests run on this system so they can be shared between configure
3687 # scripts and configure runs, see configure's option --config-cache.
3688 # It is not useful on other systems. If it contains results you don't
3689 # want to keep, you may remove or edit it.
3690 #
3691 # config.status only pays attention to the cache file if you give it
3692 # the --recheck option to rerun configure.
3693 #
3694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3696 # following values.
3697
3698 _ACEOF
3699
3700 # The following way of writing the cache mishandles newlines in values,
3701 # but we know of no workaround that is simple, portable, and efficient.
3702 # So, we kill variables containing newlines.
3703 # Ultrix sh set writes to stderr and can't be redirected directly,
3704 # and sets the high bit in the cache file unless we assign to the vars.
3705 (
3706 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3707 eval ac_val=\$$ac_var
3708 case $ac_val in #(
3709 *${as_nl}*)
3710 case $ac_var in #(
3711 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3712 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3713 esac
3714 case $ac_var in #(
3715 _ | IFS | as_nl) ;; #(
3716 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3717 *) { eval $ac_var=; unset $ac_var;} ;;
3718 esac ;;
3719 esac
3720 done
3721
3722 (set) 2>&1 |
3723 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3724 *${as_nl}ac_space=\ *)
3725 # `set' does not quote correctly, so add quotes: double-quote
3726 # substitution turns \\\\ into \\, and sed turns \\ into \.
3727 sed -n \
3728 "s/'/'\\\\''/g;
3729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3730 ;; #(
3731 *)
3732 # `set' quotes correctly as required by POSIX, so do not add quotes.
3733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3734 ;;
3735 esac |
3736 sort
3737 ) |
3738 sed '
3739 /^ac_cv_env_/b end
3740 t clear
3741 :clear
3742 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
3743 t end
3744 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3745 :end' >>confcache
3746 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3747 if test -w "$cache_file"; then
3748 if test "x$cache_file" != "x/dev/null"; then
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3750 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
3751 if test ! -f "$cache_file" || test -h "$cache_file"; then
3752 cat confcache >"$cache_file"
3753 else
3754 case $cache_file in #(
3755 */* | ?:*)
3756 mv -f confcache "$cache_file"$$ &&
3757 mv -f "$cache_file"$$ "$cache_file" ;; #(
3758 *)
3759 mv -f confcache "$cache_file" ;;
3760 esac
3761 fi
3762 fi
3763 else
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3765 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
3766 fi
3767 fi
3768 rm -f confcache
3769
3770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3771 # Let make expand exec_prefix.
3772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3773
3774 DEFS=-DHAVE_CONFIG_H
3775
3776 ac_libobjs=
3777 ac_ltlibobjs=
3778 U=
3779 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3780 # 1. Remove the extension, and $U if already installed.
3781 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3782 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
3783 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3784 # will be set to the directory where LIBOBJS objects are built.
3785 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3786 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3787 done
3788 LIBOBJS=$ac_libobjs
3789
3790 LTLIBOBJS=$ac_ltlibobjs
3791
3792
3793
3794 : "${CONFIG_STATUS=./config.status}"
3795 ac_write_fail=0
3796 ac_clean_files_save=$ac_clean_files
3797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3799 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
3800 as_write_fail=0
3801 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3802 #! $SHELL
3803 # Generated by $as_me.
3804 # Run this file to recreate the current configuration.
3805 # Compiler output produced by configure, useful for debugging
3806 # configure, is in config.log if it exists.
3807
3808 debug=false
3809 ac_cs_recheck=false
3810 ac_cs_silent=false
3811
3812 SHELL=\${CONFIG_SHELL-$SHELL}
3813 export SHELL
3814 _ASEOF
3815 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3816 ## -------------------- ##
3817 ## M4sh Initialization. ##
3818 ## -------------------- ##
3819
3820 # Be more Bourne compatible
3821 DUALCASE=1; export DUALCASE # for MKS sh
3822 as_nop=:
3823 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
3824 then :
3825 emulate sh
3826 NULLCMD=:
3827 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3828 # is contrary to our usage. Disable this feature.
3829 alias -g '${1+"$@"}'='"$@"'
3830 setopt NO_GLOB_SUBST
3831 else $as_nop
3832 case `(set -o) 2>/dev/null` in #(
3833 *posix*) :
3834 set -o posix ;; #(
3835 *) :
3836 ;;
3837 esac
3838 fi
3839
3840
3841
3842 # Reset variables that may have inherited troublesome values from
3843 # the environment.
3844
3845 # IFS needs to be set, to space, tab, and newline, in precisely that order.
3846 # (If _AS_PATH_WALK were called with IFS unset, it would have the
3847 # side effect of setting IFS to empty, thus disabling word splitting.)
3848 # Quoting is to prevent editors from complaining about space-tab.
3849 as_nl='
3850 '
3851 export as_nl
3852 IFS=" "" $as_nl"
3853
3854 PS1='$ '
3855 PS2='> '
3856 PS4='+ '
3857
3858 # Ensure predictable behavior from utilities with locale-dependent output.
3859 LC_ALL=C
3860 export LC_ALL
3861 LANGUAGE=C
3862 export LANGUAGE
3863
3864 # We cannot yet rely on "unset" to work, but we need these variables
3865 # to be unset--not just set to an empty or harmless value--now, to
3866 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
3867 # also avoids known problems related to "unset" and subshell syntax
3868 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
3869 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
3870 do eval test \${$as_var+y} \
3871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3872 done
3873
3874 # Ensure that fds 0, 1, and 2 are open.
3875 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
3876 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
3877 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
3878
3879 # The user is always right.
3880 if ${PATH_SEPARATOR+false} :; then
3881 PATH_SEPARATOR=:
3882 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3883 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3884 PATH_SEPARATOR=';'
3885 }
3886 fi
3887
3888
3889 # Find who we are. Look in the path if we contain no directory separator.
3890 as_myself=
3891 case $0 in #((
3892 *[\\/]* ) as_myself=$0 ;;
3893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896 IFS=$as_save_IFS
3897 case $as_dir in #(((
3898 '') as_dir=./ ;;
3899 */) ;;
3900 *) as_dir=$as_dir/ ;;
3901 esac
3902 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
3903 done
3904 IFS=$as_save_IFS
3905
3906 ;;
3907 esac
3908 # We did not find ourselves, most probably we were run as `sh COMMAND'
3909 # in which case we are not to be found in the path.
3910 if test "x$as_myself" = x; then
3911 as_myself=$0
3912 fi
3913 if test ! -f "$as_myself"; then
3914 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3915 exit 1
3916 fi
3917
3918
3919
3920 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3921 # ----------------------------------------
3922 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3923 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3924 # script with STATUS, using 1 if that was 0.
3925 as_fn_error ()
3926 {
3927 as_status=$1; test $as_status -eq 0 && as_status=1
3928 if test "$4"; then
3929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3931 fi
3932 printf "%s\n" "$as_me: error: $2" >&2
3933 as_fn_exit $as_status
3934 } # as_fn_error
3935
3936
3937
3938 # as_fn_set_status STATUS
3939 # -----------------------
3940 # Set $? to STATUS, without forking.
3941 as_fn_set_status ()
3942 {
3943 return $1
3944 } # as_fn_set_status
3945
3946 # as_fn_exit STATUS
3947 # -----------------
3948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3949 as_fn_exit ()
3950 {
3951 set +e
3952 as_fn_set_status $1
3953 exit $1
3954 } # as_fn_exit
3955
3956 # as_fn_unset VAR
3957 # ---------------
3958 # Portably unset VAR.
3959 as_fn_unset ()
3960 {
3961 { eval $1=; unset $1;}
3962 }
3963 as_unset=as_fn_unset
3964
3965 # as_fn_append VAR VALUE
3966 # ----------------------
3967 # Append the text in VALUE to the end of the definition contained in VAR. Take
3968 # advantage of any shell optimizations that allow amortized linear growth over
3969 # repeated appends, instead of the typical quadratic growth present in naive
3970 # implementations.
3971 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
3972 then :
3973 eval 'as_fn_append ()
3974 {
3975 eval $1+=\$2
3976 }'
3977 else $as_nop
3978 as_fn_append ()
3979 {
3980 eval $1=\$$1\$2
3981 }
3982 fi # as_fn_append
3983
3984 # as_fn_arith ARG...
3985 # ------------------
3986 # Perform arithmetic evaluation on the ARGs, and store the result in the
3987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3988 # must be portable across $(()) and expr.
3989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
3990 then :
3991 eval 'as_fn_arith ()
3992 {
3993 as_val=$(( $* ))
3994 }'
3995 else $as_nop
3996 as_fn_arith ()
3997 {
3998 as_val=`expr "$@" || test $? -eq 1`
3999 }
4000 fi # as_fn_arith
4001
4002
4003 if expr a : '\(a\)' >/dev/null 2>&1 &&
4004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4005 as_expr=expr
4006 else
4007 as_expr=false
4008 fi
4009
4010 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4011 as_basename=basename
4012 else
4013 as_basename=false
4014 fi
4015
4016 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4017 as_dirname=dirname
4018 else
4019 as_dirname=false
4020 fi
4021
4022 as_me=`$as_basename -- "$0" ||
4023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4024 X"$0" : 'X\(//\)$' \| \
4025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4026 printf "%s\n" X/"$0" |
4027 sed '/^.*\/\([^/][^/]*\)\/*$/{
4028 s//\1/
4029 q
4030 }
4031 /^X\/\(\/\/\)$/{
4032 s//\1/
4033 q
4034 }
4035 /^X\/\(\/\).*/{
4036 s//\1/
4037 q
4038 }
4039 s/.*/./; q'`
4040
4041 # Avoid depending upon Character Ranges.
4042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4045 as_cr_digits='0123456789'
4046 as_cr_alnum=$as_cr_Letters$as_cr_digits
4047
4048
4049 # Determine whether it's possible to make 'echo' print without a newline.
4050 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4051 # for compatibility with existing Makefiles.
4052 ECHO_C= ECHO_N= ECHO_T=
4053 case `echo -n x` in #(((((
4054 -n*)
4055 case `echo 'xy\c'` in
4056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4057 xy) ECHO_C='\c';;
4058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4059 ECHO_T=' ';;
4060 esac;;
4061 *)
4062 ECHO_N='-n';;
4063 esac
4064
4065 # For backward compatibility with old third-party macros, we provide
4066 # the shell variables $as_echo and $as_echo_n. New code should use
4067 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4068 as_echo='printf %s\n'
4069 as_echo_n='printf %s'
4070
4071 rm -f conf$$ conf$$.exe conf$$.file
4072 if test -d conf$$.dir; then
4073 rm -f conf$$.dir/conf$$.file
4074 else
4075 rm -f conf$$.dir
4076 mkdir conf$$.dir 2>/dev/null
4077 fi
4078 if (echo >conf$$.file) 2>/dev/null; then
4079 if ln -s conf$$.file conf$$ 2>/dev/null; then
4080 as_ln_s='ln -s'
4081 # ... but there are two gotchas:
4082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4084 # In both cases, we have to default to `cp -pR'.
4085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4086 as_ln_s='cp -pR'
4087 elif ln conf$$.file conf$$ 2>/dev/null; then
4088 as_ln_s=ln
4089 else
4090 as_ln_s='cp -pR'
4091 fi
4092 else
4093 as_ln_s='cp -pR'
4094 fi
4095 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4096 rmdir conf$$.dir 2>/dev/null
4097
4098
4099 # as_fn_mkdir_p
4100 # -------------
4101 # Create "$as_dir" as a directory, including parents if necessary.
4102 as_fn_mkdir_p ()
4103 {
4104
4105 case $as_dir in #(
4106 -*) as_dir=./$as_dir;;
4107 esac
4108 test -d "$as_dir" || eval $as_mkdir_p || {
4109 as_dirs=
4110 while :; do
4111 case $as_dir in #(
4112 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4113 *) as_qdir=$as_dir;;
4114 esac
4115 as_dirs="'$as_qdir' $as_dirs"
4116 as_dir=`$as_dirname -- "$as_dir" ||
4117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4118 X"$as_dir" : 'X\(//\)[^/]' \| \
4119 X"$as_dir" : 'X\(//\)$' \| \
4120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4121 printf "%s\n" X"$as_dir" |
4122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4123 s//\1/
4124 q
4125 }
4126 /^X\(\/\/\)[^/].*/{
4127 s//\1/
4128 q
4129 }
4130 /^X\(\/\/\)$/{
4131 s//\1/
4132 q
4133 }
4134 /^X\(\/\).*/{
4135 s//\1/
4136 q
4137 }
4138 s/.*/./; q'`
4139 test -d "$as_dir" && break
4140 done
4141 test -z "$as_dirs" || eval "mkdir $as_dirs"
4142 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4143
4144
4145 } # as_fn_mkdir_p
4146 if mkdir -p . 2>/dev/null; then
4147 as_mkdir_p='mkdir -p "$as_dir"'
4148 else
4149 test -d ./-p && rmdir ./-p
4150 as_mkdir_p=false
4151 fi
4152
4153
4154 # as_fn_executable_p FILE
4155 # -----------------------
4156 # Test if FILE is an executable regular file.
4157 as_fn_executable_p ()
4158 {
4159 test -f "$1" && test -x "$1"
4160 } # as_fn_executable_p
4161 as_test_x='test -x'
4162 as_executable_p=as_fn_executable_p
4163
4164 # Sed expression to map a string onto a valid CPP name.
4165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4166
4167 # Sed expression to map a string onto a valid variable name.
4168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4169
4170
4171 exec 6>&1
4172 ## ----------------------------------- ##
4173 ## Main body of $CONFIG_STATUS script. ##
4174 ## ----------------------------------- ##
4175 _ASEOF
4176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4177
4178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4179 # Save the log message, to keep $0 and so on meaningful, and to
4180 # report actual input values of CONFIG_FILES etc. instead of their
4181 # values after options handling.
4182 ac_log="
4183 This file was extended by mitm $as_me 4.3, which was
4184 generated by GNU Autoconf 2.71. Invocation command line was
4185
4186 CONFIG_FILES = $CONFIG_FILES
4187 CONFIG_HEADERS = $CONFIG_HEADERS
4188 CONFIG_LINKS = $CONFIG_LINKS
4189 CONFIG_COMMANDS = $CONFIG_COMMANDS
4190 $ $0 $@
4191
4192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4193 "
4194
4195 _ACEOF
4196
4197 case $ac_config_files in *"
4198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4199 esac
4200
4201 case $ac_config_headers in *"
4202 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4203 esac
4204
4205
4206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4207 # Files that config.status was made for.
4208 config_files="$ac_config_files"
4209 config_headers="$ac_config_headers"
4210
4211 _ACEOF
4212
4213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4214 ac_cs_usage="\
4215 \`$as_me' instantiates files and other configuration actions
4216 from templates according to the current configuration. Unless the files
4217 and actions are specified as TAGs, all are instantiated by default.
4218
4219 Usage: $0 [OPTION]... [TAG]...
4220
4221 -h, --help print this help, then exit
4222 -V, --version print version number and configuration settings, then exit
4223 --config print configuration, then exit
4224 -q, --quiet, --silent
4225 do not print progress messages
4226 -d, --debug don't remove temporary files
4227 --recheck update $as_me by reconfiguring in the same conditions
4228 --file=FILE[:TEMPLATE]
4229 instantiate the configuration file FILE
4230 --header=FILE[:TEMPLATE]
4231 instantiate the configuration header FILE
4232
4233 Configuration files:
4234 $config_files
4235
4236 Configuration headers:
4237 $config_headers
4238
4239 Report bugs to the package provider."
4240
4241 _ACEOF
4242 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4243 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
4244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4245 ac_cs_config='$ac_cs_config_escaped'
4246 ac_cs_version="\\
4247 mitm config.status 4.3
4248 configured by $0, generated by GNU Autoconf 2.71,
4249 with options \\"\$ac_cs_config\\"
4250
4251 Copyright (C) 2021 Free Software Foundation, Inc.
4252 This config.status script is free software; the Free Software Foundation
4253 gives unlimited permission to copy, distribute and modify it."
4254
4255 ac_pwd='$ac_pwd'
4256 srcdir='$srcdir'
4257 INSTALL='$INSTALL'
4258 test -n "\$AWK" || AWK=awk
4259 _ACEOF
4260
4261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4262 # The default lists apply if the user does not specify any file.
4263 ac_need_defaults=:
4264 while test $# != 0
4265 do
4266 case $1 in
4267 --*=?*)
4268 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4269 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4270 ac_shift=:
4271 ;;
4272 --*=)
4273 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4274 ac_optarg=
4275 ac_shift=:
4276 ;;
4277 *)
4278 ac_option=$1
4279 ac_optarg=$2
4280 ac_shift=shift
4281 ;;
4282 esac
4283
4284 case $ac_option in
4285 # Handling of the options.
4286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4287 ac_cs_recheck=: ;;
4288 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4289 printf "%s\n" "$ac_cs_version"; exit ;;
4290 --config | --confi | --conf | --con | --co | --c )
4291 printf "%s\n" "$ac_cs_config"; exit ;;
4292 --debug | --debu | --deb | --de | --d | -d )
4293 debug=: ;;
4294 --file | --fil | --fi | --f )
4295 $ac_shift
4296 case $ac_optarg in
4297 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4298 '') as_fn_error $? "missing file argument" ;;
4299 esac
4300 as_fn_append CONFIG_FILES " '$ac_optarg'"
4301 ac_need_defaults=false;;
4302 --header | --heade | --head | --hea )
4303 $ac_shift
4304 case $ac_optarg in
4305 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4306 esac
4307 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4308 ac_need_defaults=false;;
4309 --he | --h)
4310 # Conflict between --help and --header
4311 as_fn_error $? "ambiguous option: \`$1'
4312 Try \`$0 --help' for more information.";;
4313 --help | --hel | -h )
4314 printf "%s\n" "$ac_cs_usage"; exit ;;
4315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4316 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4317 ac_cs_silent=: ;;
4318
4319 # This is an error.
4320 -*) as_fn_error $? "unrecognized option: \`$1'
4321 Try \`$0 --help' for more information." ;;
4322
4323 *) as_fn_append ac_config_targets " $1"
4324 ac_need_defaults=false ;;
4325
4326 esac
4327 shift
4328 done
4329
4330 ac_configure_extra_args=
4331
4332 if $ac_cs_silent; then
4333 exec 6>/dev/null
4334 ac_configure_extra_args="$ac_configure_extra_args --silent"
4335 fi
4336
4337 _ACEOF
4338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4339 if \$ac_cs_recheck; then
4340 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4341 shift
4342 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
4343 CONFIG_SHELL='$SHELL'
4344 export CONFIG_SHELL
4345 exec "\$@"
4346 fi
4347
4348 _ACEOF
4349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4350 exec 5>>config.log
4351 {
4352 echo
4353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4354 ## Running $as_me. ##
4355 _ASBOX
4356 printf "%s\n" "$ac_log"
4357 } >&5
4358
4359 _ACEOF
4360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4361 _ACEOF
4362
4363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4364
4365 # Handling of arguments.
4366 for ac_config_target in $ac_config_targets
4367 do
4368 case $ac_config_target in
4369 "conf.h") CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
4370 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4371 "Makefile.obj") CONFIG_FILES="$CONFIG_FILES Makefile.obj" ;;
4372
4373 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4374 esac
4375 done
4376
4377
4378 # If the user did not use the arguments to specify the items to instantiate,
4379 # then the envvar interface is used. Set only those that are not.
4380 # We use the long form for the default assignment because of an extremely
4381 # bizarre bug on SunOS 4.1.3.
4382 if $ac_need_defaults; then
4383 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
4384 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
4385 fi
4386
4387 # Have a temporary directory for convenience. Make it in the build tree
4388 # simply because there is no reason against having it here, and in addition,
4389 # creating and moving files from /tmp can sometimes cause problems.
4390 # Hook for its removal unless debugging.
4391 # Note that there is a small window in which the directory will not be cleaned:
4392 # after its creation but before its name has been assigned to `$tmp'.
4393 $debug ||
4394 {
4395 tmp= ac_tmp=
4396 trap 'exit_status=$?
4397 : "${ac_tmp:=$tmp}"
4398 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4399 ' 0
4400 trap 'as_fn_exit 1' 1 2 13 15
4401 }
4402 # Create a (secure) tmp directory for tmp files.
4403
4404 {
4405 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4406 test -d "$tmp"
4407 } ||
4408 {
4409 tmp=./conf$$-$RANDOM
4410 (umask 077 && mkdir "$tmp")
4411 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4412 ac_tmp=$tmp
4413
4414 # Set up the scripts for CONFIG_FILES section.
4415 # No need to generate them if there are no CONFIG_FILES.
4416 # This happens for instance with `./config.status config.h'.
4417 if test -n "$CONFIG_FILES"; then
4418
4419
4420 ac_cr=`echo X | tr X '\015'`
4421 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4422 # But we know of no other shell where ac_cr would be empty at this
4423 # point, so we can use a bashism as a fallback.
4424 if test "x$ac_cr" = x; then
4425 eval ac_cr=\$\'\\r\'
4426 fi
4427 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4428 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4429 ac_cs_awk_cr='\\r'
4430 else
4431 ac_cs_awk_cr=$ac_cr
4432 fi
4433
4434 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4435 _ACEOF
4436
4437
4438 {
4439 echo "cat >conf$$subs.awk <<_ACEOF" &&
4440 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4441 echo "_ACEOF"
4442 } >conf$$subs.sh ||
4443 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4444 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4445 ac_delim='%!_!# '
4446 for ac_last_try in false false false false false :; do
4447 . ./conf$$subs.sh ||
4448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4449
4450 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4451 if test $ac_delim_n = $ac_delim_num; then
4452 break
4453 elif $ac_last_try; then
4454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4455 else
4456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4457 fi
4458 done
4459 rm -f conf$$subs.sh
4460
4461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4462 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4463 _ACEOF
4464 sed -n '
4465 h
4466 s/^/S["/; s/!.*/"]=/
4467 p
4468 g
4469 s/^[^!]*!//
4470 :repl
4471 t repl
4472 s/'"$ac_delim"'$//
4473 t delim
4474 :nl
4475 h
4476 s/\(.\{148\}\)..*/\1/
4477 t more1
4478 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4479 p
4480 n
4481 b repl
4482 :more1
4483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4484 p
4485 g
4486 s/.\{148\}//
4487 t nl
4488 :delim
4489 h
4490 s/\(.\{148\}\)..*/\1/
4491 t more2
4492 s/["\\]/\\&/g; s/^/"/; s/$/"/
4493 p
4494 b
4495 :more2
4496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4497 p
4498 g
4499 s/.\{148\}//
4500 t delim
4501 ' <conf$$subs.awk | sed '
4502 /^[^""]/{
4503 N
4504 s/\n//
4505 }
4506 ' >>$CONFIG_STATUS || ac_write_fail=1
4507 rm -f conf$$subs.awk
4508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4509 _ACAWK
4510 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4511 for (key in S) S_is_set[key] = 1
4512 FS = ""
4513
4514 }
4515 {
4516 line = $ 0
4517 nfields = split(line, field, "@")
4518 substed = 0
4519 len = length(field[1])
4520 for (i = 2; i < nfields; i++) {
4521 key = field[i]
4522 keylen = length(key)
4523 if (S_is_set[key]) {
4524 value = S[key]
4525 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4526 len += length(value) + length(field[++i])
4527 substed = 1
4528 } else
4529 len += 1 + keylen
4530 }
4531
4532 print line
4533 }
4534
4535 _ACAWK
4536 _ACEOF
4537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4538 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4539 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4540 else
4541 cat
4542 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4543 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4544 _ACEOF
4545
4546 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4547 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4548 # trailing colons and then remove the whole line if VPATH becomes empty
4549 # (actually we leave an empty line to preserve line numbers).
4550 if test "x$srcdir" = x.; then
4551 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4552 h
4553 s///
4554 s/^/:/
4555 s/[ ]*$/:/
4556 s/:\$(srcdir):/:/g
4557 s/:\${srcdir}:/:/g
4558 s/:@srcdir@:/:/g
4559 s/^:*//
4560 s/:*$//
4561 x
4562 s/\(=[ ]*\).*/\1/
4563 G
4564 s/\n//
4565 s/^[^=]*=[ ]*$//
4566 }'
4567 fi
4568
4569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4570 fi # test -n "$CONFIG_FILES"
4571
4572 # Set up the scripts for CONFIG_HEADERS section.
4573 # No need to generate them if there are no CONFIG_HEADERS.
4574 # This happens for instance with `./config.status Makefile'.
4575 if test -n "$CONFIG_HEADERS"; then
4576 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4577 BEGIN {
4578 _ACEOF
4579
4580 # Transform confdefs.h into an awk script `defines.awk', embedded as
4581 # here-document in config.status, that substitutes the proper values into
4582 # config.h.in to produce config.h.
4583
4584 # Create a delimiter string that does not exist in confdefs.h, to ease
4585 # handling of long lines.
4586 ac_delim='%!_!# '
4587 for ac_last_try in false false :; do
4588 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4589 if test -z "$ac_tt"; then
4590 break
4591 elif $ac_last_try; then
4592 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4593 else
4594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4595 fi
4596 done
4597
4598 # For the awk script, D is an array of macro values keyed by name,
4599 # likewise P contains macro parameters if any. Preserve backslash
4600 # newline sequences.
4601
4602 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4603 sed -n '
4604 s/.\{148\}/&'"$ac_delim"'/g
4605 t rset
4606 :rset
4607 s/^[ ]*#[ ]*define[ ][ ]*/ /
4608 t def
4609 d
4610 :def
4611 s/\\$//
4612 t bsnl
4613 s/["\\]/\\&/g
4614 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4615 D["\1"]=" \3"/p
4616 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4617 d
4618 :bsnl
4619 s/["\\]/\\&/g
4620 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4621 D["\1"]=" \3\\\\\\n"\\/p
4622 t cont
4623 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4624 t cont
4625 d
4626 :cont
4627 n
4628 s/.\{148\}/&'"$ac_delim"'/g
4629 t clear
4630 :clear
4631 s/\\$//
4632 t bsnlc
4633 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4634 d
4635 :bsnlc
4636 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4637 b cont
4638 ' <confdefs.h | sed '
4639 s/'"$ac_delim"'/"\\\
4640 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4641
4642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4643 for (key in D) D_is_set[key] = 1
4644 FS = ""
4645 }
4646 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4647 line = \$ 0
4648 split(line, arg, " ")
4649 if (arg[1] == "#") {
4650 defundef = arg[2]
4651 mac1 = arg[3]
4652 } else {
4653 defundef = substr(arg[1], 2)
4654 mac1 = arg[2]
4655 }
4656 split(mac1, mac2, "(") #)
4657 macro = mac2[1]
4658 prefix = substr(line, 1, index(line, defundef) - 1)
4659 if (D_is_set[macro]) {
4660 # Preserve the white space surrounding the "#".
4661 print prefix "define", macro P[macro] D[macro]
4662 next
4663 } else {
4664 # Replace #undef with comments. This is necessary, for example,
4665 # in the case of _POSIX_SOURCE, which is predefined and required
4666 # on some systems where configure will not decide to define it.
4667 if (defundef == "undef") {
4668 print "/*", prefix defundef, macro, "*/"
4669 next
4670 }
4671 }
4672 }
4673 { print }
4674 _ACAWK
4675 _ACEOF
4676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4677 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4678 fi # test -n "$CONFIG_HEADERS"
4679
4680
4681 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4682 shift
4683 for ac_tag
4684 do
4685 case $ac_tag in
4686 :[FHLC]) ac_mode=$ac_tag; continue;;
4687 esac
4688 case $ac_mode$ac_tag in
4689 :[FHL]*:*);;
4690 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4691 :[FH]-) ac_tag=-:-;;
4692 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4693 esac
4694 ac_save_IFS=$IFS
4695 IFS=:
4696 set x $ac_tag
4697 IFS=$ac_save_IFS
4698 shift
4699 ac_file=$1
4700 shift
4701
4702 case $ac_mode in
4703 :L) ac_source=$1;;
4704 :[FH])
4705 ac_file_inputs=
4706 for ac_f
4707 do
4708 case $ac_f in
4709 -) ac_f="$ac_tmp/stdin";;
4710 *) # Look for the file first in the build tree, then in the source tree
4711 # (if the path is not absolute). The absolute path cannot be DOS-style,
4712 # because $ac_f cannot contain `:'.
4713 test -f "$ac_f" ||
4714 case $ac_f in
4715 [\\/$]*) false;;
4716 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4717 esac ||
4718 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4719 esac
4720 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4721 as_fn_append ac_file_inputs " '$ac_f'"
4722 done
4723
4724 # Let's still pretend it is `configure' which instantiates (i.e., don't
4725 # use $as_me), people would be surprised to read:
4726 # /* config.h. Generated by config.status. */
4727 configure_input='Generated from '`
4728 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4729 `' by configure.'
4730 if test x"$ac_file" != x-; then
4731 configure_input="$ac_file. $configure_input"
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4733 printf "%s\n" "$as_me: creating $ac_file" >&6;}
4734 fi
4735 # Neutralize special characters interpreted by sed in replacement strings.
4736 case $configure_input in #(
4737 *\&* | *\|* | *\\* )
4738 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
4739 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4740 *) ac_sed_conf_input=$configure_input;;
4741 esac
4742
4743 case $ac_tag in
4744 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4746 esac
4747 ;;
4748 esac
4749
4750 ac_dir=`$as_dirname -- "$ac_file" ||
4751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4752 X"$ac_file" : 'X\(//\)[^/]' \| \
4753 X"$ac_file" : 'X\(//\)$' \| \
4754 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4755 printf "%s\n" X"$ac_file" |
4756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4757 s//\1/
4758 q
4759 }
4760 /^X\(\/\/\)[^/].*/{
4761 s//\1/
4762 q
4763 }
4764 /^X\(\/\/\)$/{
4765 s//\1/
4766 q
4767 }
4768 /^X\(\/\).*/{
4769 s//\1/
4770 q
4771 }
4772 s/.*/./; q'`
4773 as_dir="$ac_dir"; as_fn_mkdir_p
4774 ac_builddir=.
4775
4776 case "$ac_dir" in
4777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4778 *)
4779 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
4780 # A ".." for each directory in $ac_dir_suffix.
4781 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4782 case $ac_top_builddir_sub in
4783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4785 esac ;;
4786 esac
4787 ac_abs_top_builddir=$ac_pwd
4788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4789 # for backward compatibility:
4790 ac_top_builddir=$ac_top_build_prefix
4791
4792 case $srcdir in
4793 .) # We are building in place.
4794 ac_srcdir=.
4795 ac_top_srcdir=$ac_top_builddir_sub
4796 ac_abs_top_srcdir=$ac_pwd ;;
4797 [\\/]* | ?:[\\/]* ) # Absolute name.
4798 ac_srcdir=$srcdir$ac_dir_suffix;
4799 ac_top_srcdir=$srcdir
4800 ac_abs_top_srcdir=$srcdir ;;
4801 *) # Relative name.
4802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4803 ac_top_srcdir=$ac_top_build_prefix$srcdir
4804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4805 esac
4806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4807
4808
4809 case $ac_mode in
4810 :F)
4811 #
4812 # CONFIG_FILE
4813 #
4814
4815 case $INSTALL in
4816 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4817 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4818 esac
4819 _ACEOF
4820
4821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4822 # If the template does not know about datarootdir, expand it.
4823 # FIXME: This hack should be removed a few years after 2.60.
4824 ac_datarootdir_hack=; ac_datarootdir_seen=
4825 ac_sed_dataroot='
4826 /datarootdir/ {
4827 p
4828 q
4829 }
4830 /@datadir@/p
4831 /@docdir@/p
4832 /@infodir@/p
4833 /@localedir@/p
4834 /@mandir@/p'
4835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4836 *datarootdir*) ac_datarootdir_seen=yes;;
4837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4839 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4840 _ACEOF
4841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4842 ac_datarootdir_hack='
4843 s&@datadir@&$datadir&g
4844 s&@docdir@&$docdir&g
4845 s&@infodir@&$infodir&g
4846 s&@localedir@&$localedir&g
4847 s&@mandir@&$mandir&g
4848 s&\\\${datarootdir}&$datarootdir&g' ;;
4849 esac
4850 _ACEOF
4851
4852 # Neutralize VPATH when `$srcdir' = `.'.
4853 # Shell code in configure.ac might set extrasub.
4854 # FIXME: do we really want to maintain this feature?
4855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4856 ac_sed_extra="$ac_vpsub
4857 $extrasub
4858 _ACEOF
4859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4860 :t
4861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4862 s|@configure_input@|$ac_sed_conf_input|;t t
4863 s&@top_builddir@&$ac_top_builddir_sub&;t t
4864 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4865 s&@srcdir@&$ac_srcdir&;t t
4866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4867 s&@top_srcdir@&$ac_top_srcdir&;t t
4868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4869 s&@builddir@&$ac_builddir&;t t
4870 s&@abs_builddir@&$ac_abs_builddir&;t t
4871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4872 s&@INSTALL@&$ac_INSTALL&;t t
4873 $ac_datarootdir_hack
4874 "
4875 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4876 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4877
4878 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4879 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4881 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4883 which seems to be undefined. Please make sure it is defined" >&5
4884 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4885 which seems to be undefined. Please make sure it is defined" >&2;}
4886
4887 rm -f "$ac_tmp/stdin"
4888 case $ac_file in
4889 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4890 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4891 esac \
4892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4893 ;;
4894 :H)
4895 #
4896 # CONFIG_HEADER
4897 #
4898 if test x"$ac_file" != x-; then
4899 {
4900 printf "%s\n" "/* $configure_input */" >&1 \
4901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4902 } >"$ac_tmp/config.h" \
4903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4904 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4906 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
4907 else
4908 rm -f "$ac_file"
4909 mv "$ac_tmp/config.h" "$ac_file" \
4910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4911 fi
4912 else
4913 printf "%s\n" "/* $configure_input */" >&1 \
4914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4915 || as_fn_error $? "could not create -" "$LINENO" 5
4916 fi
4917 ;;
4918
4919
4920 esac
4921
4922 done # for ac_tag
4923
4924
4925 as_fn_exit 0
4926 _ACEOF
4927 ac_clean_files=$ac_clean_files_save
4928
4929 test $ac_write_fail = 0 ||
4930 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4931
4932
4933 # configure is writing to config.log, and then calls config.status.
4934 # config.status does its own redirection, appending to config.log.
4935 # Unfortunately, on DOS this fails, as config.log is still kept open
4936 # by configure, so config.status won't be able to write to it; its
4937 # output is simply discarded. So we exec the FD to /dev/null,
4938 # effectively closing config.log, so it can be properly (re)opened and
4939 # appended to by config.status. When coming back to configure, we
4940 # need to make the FD available again.
4941 if test "$no_create" != yes; then
4942 ac_cs_success=:
4943 ac_config_status_args=
4944 test "$silent" = yes &&
4945 ac_config_status_args="$ac_config_status_args --quiet"
4946 exec 5>/dev/null
4947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4948 exec 5>>config.log
4949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4950 # would make configure fail if this is the last instruction.
4951 $ac_cs_success || as_fn_exit 1
4952 fi
4953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4955 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4956 fi
4957
4958