Debian Codegraph @

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