Debian Codegraph @

template/configure

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