Debian Codegraph @

mingw-w64-tools/genidl/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for mingw-w64-genidl 1.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell [email protected] and
273 $0: [email protected] about your
274 $0: system, including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543 fi
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
563
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='mingw-w64-genidl'
605 PACKAGE_TARNAME='mingw-w64-genidl'
606 PACKAGE_VERSION='1.0'
607 PACKAGE_STRING='mingw-w64-genidl 1.0'
608 PACKAGE_BUGREPORT='[email protected]'
609 PACKAGE_URL=''
610
611 ac_unique_file="src/genidl.c"
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_c_list=
644 ac_subst_vars='am__EXEEXT_FALSE
645 am__EXEEXT_TRUE
646 LTLIBOBJS
647 LIBOBJS
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 am__nodep
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 MAINT
673 MAINTAINER_MODE_FALSE
674 MAINTAINER_MODE_TRUE
675 AM_BACKSLASH
676 AM_DEFAULT_VERBOSITY
677 AM_DEFAULT_V
678 AM_V
679 CSCOPE
680 ETAGS
681 CTAGS
682 am__untar
683 am__tar
684 AMTAR
685 am__leading_dot
686 SET_MAKE
687 AWK
688 mkdir_p
689 MKDIR_P
690 INSTALL_STRIP_PROGRAM
691 STRIP
692 install_sh
693 MAKEINFO
694 AUTOHEADER
695 AUTOMAKE
696 AUTOCONF
697 ACLOCAL
698 VERSION
699 PACKAGE
700 CYGPATH_W
701 am__isrc
702 INSTALL_DATA
703 INSTALL_SCRIPT
704 INSTALL_PROGRAM
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 runstatedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL
744 am__quote'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 enable_silent_rules
749 enable_maintainer_mode
750 enable_dependency_tracking
751 '
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CC
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 runstatedir='${localstatedir}/run'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *=) ac_optarg= ;;
825 *) ac_optarg=yes ;;
826 esac
827
828 case $ac_dashdash$ac_option in
829 --)
830 ac_dashdash=yes ;;
831
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
836
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
841
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
848
849 --config-cache | -C)
850 cache_file=config.cache ;;
851
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
856
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
863
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: '$ac_useropt'"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
879
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
884
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
889
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: '$ac_useropt'"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=\$ac_optarg ;;
905
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
914
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
918
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
925
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
930
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
936
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
943
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
948
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
953
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
960
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
965
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
972
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
977
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
981
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
985
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
989
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
998
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1003
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1010
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1017
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1034
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1039
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1044
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1048
1049 -runstatedir | --runstatedir | --runstatedi | --runstated \
1050 | --runstate | --runstat | --runsta | --runst | --runs \
1051 | --run | --ru | --r)
1052 ac_prev=runstatedir ;;
1053 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1054 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1055 | --run=* | --ru=* | --r=*)
1056 runstatedir=$ac_optarg ;;
1057
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1063
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1074
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1079
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1084
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1091
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1096
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1099
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1102
1103 -with-* | --with-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: '$ac_useropt'"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1118
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: '$ac_useropt'"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1134
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1138
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1145
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1152
1153 -*) as_fn_error $? "unrecognized option: '$ac_option'
1154 Try '$0 --help' for more information"
1155 ;;
1156
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1163 esac
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1166
1167 *)
1168 # FIXME: should be removed in autoconf 3.0.
1169 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 ;;
1174
1175 esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir runstatedir
1196 do
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: '$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $? "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 printf "%s\n" X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273 else
1274 ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 'configure' configures mingw-w64-genidl 1.0 to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print 'checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for '--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or '..']
1327
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334 By default, 'make install' will install all the files in
1335 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than '$ac_default_prefix' using '--prefix',
1337 for instance '--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root
1358 [DATAROOTDIR/doc/mingw-w64-genidl]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1364
1365 cat <<\_ACEOF
1366
1367 Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1371
1372 System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of mingw-w64-genidl 1.0:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-silent-rules less verbose build output (undo: "make V=1")
1389 --disable-silent-rules verbose build output (undo: "make V=0")
1390 --enable-maintainer-mode
1391 enable make rules and dependencies not useful (and
1392 sometimes confusing) to the casual installer
1393 --enable-dependency-tracking
1394 do not reject slow dependency extractors
1395 --disable-dependency-tracking
1396 speeds up one-time build
1397
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406
1407 Use these variables to override the choices made by 'configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1409
1410 Report bugs to <[email protected]>.
1411 _ACEOF
1412 ac_status=$?
1413 fi
1414
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" ||
1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 continue
1421 ac_builddir=.
1422
1423 case "$ac_dir" in
1424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *)
1426 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1427 # A ".." for each directory in $ac_dir_suffix.
1428 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429 case $ac_top_builddir_sub in
1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 esac ;;
1433 esac
1434 ac_abs_top_builddir=$ac_pwd
1435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir=$ac_top_build_prefix
1438
1439 case $srcdir in
1440 .) # We are building in place.
1441 ac_srcdir=.
1442 ac_top_srcdir=$ac_top_builddir_sub
1443 ac_abs_top_srcdir=$ac_pwd ;;
1444 [\\/]* | ?:[\\/]* ) # Absolute name.
1445 ac_srcdir=$srcdir$ac_dir_suffix;
1446 ac_top_srcdir=$srcdir
1447 ac_abs_top_srcdir=$srcdir ;;
1448 *) # Relative name.
1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450 ac_top_srcdir=$ac_top_build_prefix$srcdir
1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 esac
1453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454
1455 cd "$ac_dir" || { ac_status=$?; continue; }
1456 # Check for configure.gnu first; this name is used for a wrapper for
1457 # Metaconfig's "Configure" on case-insensitive file systems.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1464 else
1465 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 fi || ac_status=$?
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1468 done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473 cat <<\_ACEOF
1474 mingw-w64-genidl configure 1.0
1475 generated by GNU Autoconf 2.72
1476
1477 Copyright (C) 2023 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1480 _ACEOF
1481 exit
1482 fi
1483
1484 ## ------------------------ ##
1485 ## Autoconf initialization. ##
1486 ## ------------------------ ##
1487
1488 # ac_fn_c_try_compile LINENO
1489 # --------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_c_try_compile ()
1492 {
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 rm -f conftest.$ac_objext conftest.beam
1495 if { { ac_try="$ac_compile"
1496 case "(($ac_try" in
1497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1499 esac
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 printf "%s\n" "$ac_try_echo"; } >&5
1502 (eval "$ac_compile") 2>conftest.err
1503 ac_status=$?
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1508 fi
1509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } && {
1511 test -z "$ac_c_werror_flag" ||
1512 test ! -s conftest.err
1513 } && test -s conftest.$ac_objext
1514 then :
1515 ac_retval=0
1516 else case e in #(
1517 e) printf "%s\n" "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1519
1520 ac_retval=1 ;;
1521 esac
1522 fi
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1525
1526 } # ac_fn_c_try_compile
1527
1528 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1529 # -------------------------------------------------------
1530 # Tests whether HEADER exists and can be compiled using the include files in
1531 # INCLUDES, setting the cache variable VAR accordingly.
1532 ac_fn_c_check_header_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1536 printf %s "checking for $2... " >&6; }
1537 if eval test \${$3+y}
1538 then :
1539 printf %s "(cached) " >&6
1540 else case e in #(
1541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1542 /* end confdefs.h. */
1543 $4
1544 #include <$2>
1545 _ACEOF
1546 if ac_fn_c_try_compile "$LINENO"
1547 then :
1548 eval "$3=yes"
1549 else case e in #(
1550 e) eval "$3=no" ;;
1551 esac
1552 fi
1553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1554 esac
1555 fi
1556 eval ac_res=\$$3
1557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1558 printf "%s\n" "$ac_res" >&6; }
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560
1561 } # ac_fn_c_check_header_compile
1562
1563 # ac_fn_c_find_intX_t LINENO BITS VAR
1564 # -----------------------------------
1565 # Finds a signed integer type with width BITS, setting cache variable VAR
1566 # accordingly.
1567 ac_fn_c_find_intX_t ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1571 printf %s "checking for int$2_t... " >&6; }
1572 if eval test \${$3+y}
1573 then :
1574 printf %s "(cached) " >&6
1575 else case e in #(
1576 e) eval "$3=no"
1577 # Order is important - never check a type that is potentially smaller
1578 # than half of the expected target width.
1579 for ac_type in int$2_t 'int' 'long int' \
1580 'long long int' 'short int' 'signed char'; do
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1583 $ac_includes_default
1584 enum { N = $2 / 2 - 1 };
1585 int
1586 main (void)
1587 {
1588 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1589 test_array [0] = 0;
1590 return test_array [0];
1591
1592 ;
1593 return 0;
1594 }
1595 _ACEOF
1596 if ac_fn_c_try_compile "$LINENO"
1597 then :
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1600 $ac_includes_default
1601 enum { N = $2 / 2 - 1 };
1602 int
1603 main (void)
1604 {
1605 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1606 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1607 test_array [0] = 0;
1608 return test_array [0];
1609
1610 ;
1611 return 0;
1612 }
1613 _ACEOF
1614 if ac_fn_c_try_compile "$LINENO"
1615 then :
1616
1617 else case e in #(
1618 e) case $ac_type in #(
1619 int$2_t) :
1620 eval "$3=yes" ;; #(
1621 *) :
1622 eval "$3=\$ac_type" ;;
1623 esac ;;
1624 esac
1625 fi
1626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1629 if eval test \"x\$"$3"\" = x"no"
1630 then :
1631
1632 else case e in #(
1633 e) break ;;
1634 esac
1635 fi
1636 done ;;
1637 esac
1638 fi
1639 eval ac_res=\$$3
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 printf "%s\n" "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_find_intX_t
1645
1646 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1647 # -------------------------------------------
1648 # Tests whether TYPE exists after having included INCLUDES, setting cache
1649 # variable VAR accordingly.
1650 ac_fn_c_check_type ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 printf %s "checking for $2... " >&6; }
1655 if eval test \${$3+y}
1656 then :
1657 printf %s "(cached) " >&6
1658 else case e in #(
1659 e) eval "$3=no"
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 int
1664 main (void)
1665 {
1666 if (sizeof ($2))
1667 return 0;
1668 ;
1669 return 0;
1670 }
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"
1673 then :
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 $4
1677 int
1678 main (void)
1679 {
1680 if (sizeof (($2)))
1681 return 0;
1682 ;
1683 return 0;
1684 }
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"
1687 then :
1688
1689 else case e in #(
1690 e) eval "$3=yes" ;;
1691 esac
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1696 esac
1697 fi
1698 eval ac_res=\$$3
1699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 printf "%s\n" "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703 } # ac_fn_c_check_type
1704
1705 # ac_fn_c_find_uintX_t LINENO BITS VAR
1706 # ------------------------------------
1707 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1708 # accordingly.
1709 ac_fn_c_find_uintX_t ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1713 printf %s "checking for uint$2_t... " >&6; }
1714 if eval test \${$3+y}
1715 then :
1716 printf %s "(cached) " >&6
1717 else case e in #(
1718 e) eval "$3=no"
1719 # Order is important - never check a type that is potentially smaller
1720 # than half of the expected target width.
1721 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1722 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $ac_includes_default
1726 int
1727 main (void)
1728 {
1729 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1730 test_array [0] = 0;
1731 return test_array [0];
1732
1733 ;
1734 return 0;
1735 }
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"
1738 then :
1739 case $ac_type in #(
1740 uint$2_t) :
1741 eval "$3=yes" ;; #(
1742 *) :
1743 eval "$3=\$ac_type" ;;
1744 esac
1745 fi
1746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1747 if eval test \"x\$"$3"\" = x"no"
1748 then :
1749
1750 else case e in #(
1751 e) break ;;
1752 esac
1753 fi
1754 done ;;
1755 esac
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_find_uintX_t
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 printf "%s\n" "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 test -x conftest$ac_exeext
1792 }
1793 then :
1794 ac_retval=0
1795 else case e in #(
1796 e) printf "%s\n" "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1 ;;
1800 esac
1801 fi
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_link
1811
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 printf %s "checking for $2... " >&6; }
1820 if eval test \${$3+y}
1821 then :
1822 printf %s "(cached) " >&6
1823 else case e in #(
1824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (void); below. */
1832
1833 #include <limits.h>
1834 #undef $2
1835
1836 /* Override any GCC internal prototype to avoid an error.
1837 Use char because int might match the return type of a GCC
1838 builtin and then its argument prototype would still apply. */
1839 #ifdef __cplusplus
1840 extern "C"
1841 #endif
1842 char $2 (void);
1843 /* The GNU C library defines this for functions which it implements
1844 to always fail with ENOSYS. Some functions are actually named
1845 something starting with __ and the normal name is an alias. */
1846 #if defined __stub_$2 || defined __stub___$2
1847 choke me
1848 #endif
1849
1850 int
1851 main (void)
1852 {
1853 return $2 ();
1854 ;
1855 return 0;
1856 }
1857 _ACEOF
1858 if ac_fn_c_try_link "$LINENO"
1859 then :
1860 eval "$3=yes"
1861 else case e in #(
1862 e) eval "$3=no" ;;
1863 esac
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1866 conftest$ac_exeext conftest.$ac_ext ;;
1867 esac
1868 fi
1869 eval ac_res=\$$3
1870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 printf "%s\n" "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_func
1875 ac_configure_args_raw=
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 *\'*)
1880 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 esac
1882 as_fn_append ac_configure_args_raw " '$ac_arg'"
1883 done
1884
1885 case $ac_configure_args_raw in
1886 *$as_nl*)
1887 ac_safe_unquote= ;;
1888 *)
1889 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1890 ac_unsafe_a="$ac_unsafe_z#~"
1891 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1892 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1893 esac
1894
1895 cat >config.log <<_ACEOF
1896 This file contains any messages produced by compilers while
1897 running configure, to aid debugging if configure makes a mistake.
1898
1899 It was created by mingw-w64-genidl $as_me 1.0, which was
1900 generated by GNU Autoconf 2.72. Invocation command line was
1901
1902 $ $0$ac_configure_args_raw
1903
1904 _ACEOF
1905 exec 5>>config.log
1906 {
1907 cat <<_ASUNAME
1908 ## --------- ##
1909 ## Platform. ##
1910 ## --------- ##
1911
1912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1920
1921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928
1929 _ASUNAME
1930
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934 IFS=$as_save_IFS
1935 case $as_dir in #(((
1936 '') as_dir=./ ;;
1937 */) ;;
1938 *) as_dir=$as_dir/ ;;
1939 esac
1940 printf "%s\n" "PATH: $as_dir"
1941 done
1942 IFS=$as_save_IFS
1943
1944 } >&5
1945
1946 cat >&5 <<_ACEOF
1947
1948
1949 ## ----------- ##
1950 ## Core tests. ##
1951 ## ----------- ##
1952
1953 _ACEOF
1954
1955
1956 # Keep a trace of the command line.
1957 # Strip out --no-create and --no-recursion so they do not pile up.
1958 # Strip out --silent because we don't want to record it for future runs.
1959 # Also quote any args containing shell meta-characters.
1960 # Make two passes to allow for proper duplicate-argument suppression.
1961 ac_configure_args=
1962 ac_configure_args0=
1963 ac_configure_args1=
1964 ac_must_keep_next=false
1965 for ac_pass in 1 2
1966 do
1967 for ac_arg
1968 do
1969 case $ac_arg in
1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972 | -silent | --silent | --silen | --sile | --sil)
1973 continue ;;
1974 *\'*)
1975 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 esac
1977 case $ac_pass in
1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979 2)
1980 as_fn_append ac_configure_args1 " '$ac_arg'"
1981 if test $ac_must_keep_next = true; then
1982 ac_must_keep_next=false # Got value, back to normal.
1983 else
1984 case $ac_arg in
1985 *=* | --config-cache | -C | -disable-* | --disable-* \
1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988 | -with-* | --with-* | -without-* | --without-* | --x)
1989 case "$ac_configure_args0 " in
1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991 esac
1992 ;;
1993 -* ) ac_must_keep_next=true ;;
1994 esac
1995 fi
1996 as_fn_append ac_configure_args " '$ac_arg'"
1997 ;;
1998 esac
1999 done
2000 done
2001 { ac_configure_args0=; unset ac_configure_args0;}
2002 { ac_configure_args1=; unset ac_configure_args1;}
2003
2004 # When interrupted or exit'd, cleanup temporary files, and complete
2005 # config.log. We remove comments because anyway the quotes in there
2006 # would cause problems or look ugly.
2007 # WARNING: Use '\'' to represent an apostrophe within the trap.
2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009 trap 'exit_status=$?
2010 # Sanitize IFS.
2011 IFS=" "" $as_nl"
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 printf "%s\n" "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021 (
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049 )
2050 echo
2051
2052 printf "%s\n" "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 printf "%s\n" "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 printf "%s\n" "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 printf "%s\n" "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
2083 printf "%s\n" "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 printf "%s\n" "$as_me: caught signal $ac_signal"
2092 printf "%s\n" "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097 ' 0
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2102
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2105
2106 printf "%s\n" "/* confdefs.h */" > confdefs.h
2107
2108 # Predefined preprocessor variables.
2109
2110 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2111
2112 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2113
2114 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2115
2116 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2117
2118 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2119
2120 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_files="$CONFIG_SITE"
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2129 else
2130 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2131 fi
2132
2133 for ac_site_file in $ac_site_files
2134 do
2135 case $ac_site_file in #(
2136 */*) :
2137 ;; #(
2138 *) :
2139 ac_site_file=./$ac_site_file ;;
2140 esac
2141 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2145 . "$ac_site_file" \
2146 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2147 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2148 as_fn_error $? "failed to load site script $ac_site_file
2149 See 'config.log' for more details" "$LINENO" 5; }
2150 fi
2151 done
2152
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special files
2155 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2159 case $cache_file in
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2162 esac
2163 fi
2164 else
2165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2167 >$cache_file
2168 fi
2169
2170 # Test code for whether the C compiler supports C89 (global declarations)
2171 ac_c_conftest_c89_globals='
2172 /* Does the compiler advertise C89 conformance?
2173 Do not test the value of __STDC__, because some compilers set it to 0
2174 while being otherwise adequately conformant. */
2175 #if !defined __STDC__
2176 # error "Compiler does not advertise C89 conformance"
2177 #endif
2178
2179 #include <stddef.h>
2180 #include <stdarg.h>
2181 struct stat;
2182 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2183 struct buf { int x; };
2184 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2185 static char *e (char **p, int i)
2186 {
2187 return p[i];
2188 }
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2190 {
2191 char *s;
2192 va_list v;
2193 va_start (v,p);
2194 s = g (p, va_arg (v,int));
2195 va_end (v);
2196 return s;
2197 }
2198
2199 /* C89 style stringification. */
2200 #define noexpand_stringify(a) #a
2201 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2202
2203 /* C89 style token pasting. Exercises some of the corner cases that
2204 e.g. old MSVC gets wrong, but not very hard. */
2205 #define noexpand_concat(a,b) a##b
2206 #define expand_concat(a,b) noexpand_concat(a,b)
2207 extern int vA;
2208 extern int vbee;
2209 #define aye A
2210 #define bee B
2211 int *pvA = &expand_concat(v,aye);
2212 int *pvbee = &noexpand_concat(v,bee);
2213
2214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2215 function prototypes and stuff, but not \xHH hex character constants.
2216 These do not provoke an error unfortunately, instead are silently treated
2217 as an "x". The following induces an error, until -std is added to get
2218 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2219 array size at least. It is necessary to write \x00 == 0 to get something
2220 that is true only with -std. */
2221 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2222
2223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2224 inside strings and character constants. */
2225 #define FOO(x) '\''x'\''
2226 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2227
2228 int test (int i, double x);
2229 struct s1 {int (*f) (int a);};
2230 struct s2 {int (*f) (double a);};
2231 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2232 int, int);'
2233
2234 # Test code for whether the C compiler supports C89 (body of main).
2235 ac_c_conftest_c89_main='
2236 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2237 '
2238
2239 # Test code for whether the C compiler supports C99 (global declarations)
2240 ac_c_conftest_c99_globals='
2241 /* Does the compiler advertise C99 conformance? */
2242 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2243 # error "Compiler does not advertise C99 conformance"
2244 #endif
2245
2246 // See if C++-style comments work.
2247
2248 #include <stdbool.h>
2249 extern int puts (const char *);
2250 extern int printf (const char *, ...);
2251 extern int dprintf (int, const char *, ...);
2252 extern void *malloc (size_t);
2253 extern void free (void *);
2254
2255 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2256 // dprintf is used instead of fprintf to avoid needing to declare
2257 // FILE and stderr.
2258 #define debug(...) dprintf (2, __VA_ARGS__)
2259 #define showlist(...) puts (#__VA_ARGS__)
2260 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2261 static void
2262 test_varargs_macros (void)
2263 {
2264 int x = 1234;
2265 int y = 5678;
2266 debug ("Flag");
2267 debug ("X = %d\n", x);
2268 showlist (The first, second, and third items.);
2269 report (x>y, "x is %d but y is %d", x, y);
2270 }
2271
2272 // Check long long types.
2273 #define BIG64 18446744073709551615ull
2274 #define BIG32 4294967295ul
2275 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2276 #if !BIG_OK
2277 #error "your preprocessor is broken"
2278 #endif
2279 #if BIG_OK
2280 #else
2281 #error "your preprocessor is broken"
2282 #endif
2283 static long long int bignum = -9223372036854775807LL;
2284 static unsigned long long int ubignum = BIG64;
2285
2286 struct incomplete_array
2287 {
2288 int datasize;
2289 double data[];
2290 };
2291
2292 struct named_init {
2293 int number;
2294 const wchar_t *name;
2295 double average;
2296 };
2297
2298 typedef const char *ccp;
2299
2300 static inline int
2301 test_restrict (ccp restrict text)
2302 {
2303 // Iterate through items via the restricted pointer.
2304 // Also check for declarations in for loops.
2305 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2306 continue;
2307 return 0;
2308 }
2309
2310 // Check varargs and va_copy.
2311 static bool
2312 test_varargs (const char *format, ...)
2313 {
2314 va_list args;
2315 va_start (args, format);
2316 va_list args_copy;
2317 va_copy (args_copy, args);
2318
2319 const char *str = "";
2320 int number = 0;
2321 float fnumber = 0;
2322
2323 while (*format)
2324 {
2325 switch (*format++)
2326 {
2327 case '\''s'\'': // string
2328 str = va_arg (args_copy, const char *);
2329 break;
2330 case '\''d'\'': // int
2331 number = va_arg (args_copy, int);
2332 break;
2333 case '\''f'\'': // float
2334 fnumber = va_arg (args_copy, double);
2335 break;
2336 default:
2337 break;
2338 }
2339 }
2340 va_end (args_copy);
2341 va_end (args);
2342
2343 return *str && number && fnumber;
2344 }
2345 '
2346
2347 # Test code for whether the C compiler supports C99 (body of main).
2348 ac_c_conftest_c99_main='
2349 // Check bool.
2350 _Bool success = false;
2351 success |= (argc != 0);
2352
2353 // Check restrict.
2354 if (test_restrict ("String literal") == 0)
2355 success = true;
2356 char *restrict newvar = "Another string";
2357
2358 // Check varargs.
2359 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2360 test_varargs_macros ();
2361
2362 // Check flexible array members.
2363 struct incomplete_array *ia =
2364 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2365 ia->datasize = 10;
2366 for (int i = 0; i < ia->datasize; ++i)
2367 ia->data[i] = i * 1.234;
2368 // Work around memory leak warnings.
2369 free (ia);
2370
2371 // Check named initializers.
2372 struct named_init ni = {
2373 .number = 34,
2374 .name = L"Test wide string",
2375 .average = 543.34343,
2376 };
2377
2378 ni.number = 58;
2379
2380 int dynamic_array[ni.number];
2381 dynamic_array[0] = argv[0][0];
2382 dynamic_array[ni.number - 1] = 543;
2383
2384 // work around unused variable warnings
2385 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2386 || dynamic_array[ni.number - 1] != 543);
2387 '
2388
2389 # Test code for whether the C compiler supports C11 (global declarations)
2390 ac_c_conftest_c11_globals='
2391 /* Does the compiler advertise C11 conformance? */
2392 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2393 # error "Compiler does not advertise C11 conformance"
2394 #endif
2395
2396 // Check _Alignas.
2397 char _Alignas (double) aligned_as_double;
2398 char _Alignas (0) no_special_alignment;
2399 extern char aligned_as_int;
2400 char _Alignas (0) _Alignas (int) aligned_as_int;
2401
2402 // Check _Alignof.
2403 enum
2404 {
2405 int_alignment = _Alignof (int),
2406 int_array_alignment = _Alignof (int[100]),
2407 char_alignment = _Alignof (char)
2408 };
2409 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2410
2411 // Check _Noreturn.
2412 int _Noreturn does_not_return (void) { for (;;) continue; }
2413
2414 // Check _Static_assert.
2415 struct test_static_assert
2416 {
2417 int x;
2418 _Static_assert (sizeof (int) <= sizeof (long int),
2419 "_Static_assert does not work in struct");
2420 long int y;
2421 };
2422
2423 // Check UTF-8 literals.
2424 #define u8 syntax error!
2425 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2426
2427 // Check duplicate typedefs.
2428 typedef long *long_ptr;
2429 typedef long int *long_ptr;
2430 typedef long_ptr long_ptr;
2431
2432 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2433 struct anonymous
2434 {
2435 union {
2436 struct { int i; int j; };
2437 struct { int k; long int l; } w;
2438 };
2439 int m;
2440 } v1;
2441 '
2442
2443 # Test code for whether the C compiler supports C11 (body of main).
2444 ac_c_conftest_c11_main='
2445 _Static_assert ((offsetof (struct anonymous, i)
2446 == offsetof (struct anonymous, w.k)),
2447 "Anonymous union alignment botch");
2448 v1.i = 2;
2449 v1.w.k = 5;
2450 ok |= v1.i != 5;
2451 '
2452
2453 # Test code for whether the C compiler supports C11 (complete).
2454 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2455 ${ac_c_conftest_c99_globals}
2456 ${ac_c_conftest_c11_globals}
2457
2458 int
2459 main (int argc, char **argv)
2460 {
2461 int ok = 0;
2462 ${ac_c_conftest_c89_main}
2463 ${ac_c_conftest_c99_main}
2464 ${ac_c_conftest_c11_main}
2465 return ok;
2466 }
2467 "
2468
2469 # Test code for whether the C compiler supports C99 (complete).
2470 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2471 ${ac_c_conftest_c99_globals}
2472
2473 int
2474 main (int argc, char **argv)
2475 {
2476 int ok = 0;
2477 ${ac_c_conftest_c89_main}
2478 ${ac_c_conftest_c99_main}
2479 return ok;
2480 }
2481 "
2482
2483 # Test code for whether the C compiler supports C89 (complete).
2484 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2485
2486 int
2487 main (int argc, char **argv)
2488 {
2489 int ok = 0;
2490 ${ac_c_conftest_c89_main}
2491 return ok;
2492 }
2493 "
2494
2495 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2496 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2497 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2498 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2499 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2500 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2501 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2502 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2503 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2504
2505 # Auxiliary files required by this configure script.
2506 ac_aux_files="compile config.guess config.sub missing install-sh"
2507
2508 # Locations in which to look for auxiliary files.
2509 ac_aux_dir_candidates="${srcdir}/build-aux"
2510
2511 # Search for a directory containing all of the required auxiliary files,
2512 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2513 # If we don't find one directory that contains all the files we need,
2514 # we report the set of missing files from the *first* directory in
2515 # $ac_aux_dir_candidates and give up.
2516 ac_missing_aux_files=""
2517 ac_first_candidate=:
2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 as_found=false
2521 for as_dir in $ac_aux_dir_candidates
2522 do
2523 IFS=$as_save_IFS
2524 case $as_dir in #(((
2525 '') as_dir=./ ;;
2526 */) ;;
2527 *) as_dir=$as_dir/ ;;
2528 esac
2529 as_found=:
2530
2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2532 ac_aux_dir_found=yes
2533 ac_install_sh=
2534 for ac_aux in $ac_aux_files
2535 do
2536 # As a special case, if "install-sh" is required, that requirement
2537 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2538 # and $ac_install_sh is set appropriately for whichever one is found.
2539 if test x"$ac_aux" = x"install-sh"
2540 then
2541 if test -f "${as_dir}install-sh"; then
2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2543 ac_install_sh="${as_dir}install-sh -c"
2544 elif test -f "${as_dir}install.sh"; then
2545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2546 ac_install_sh="${as_dir}install.sh -c"
2547 elif test -f "${as_dir}shtool"; then
2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2549 ac_install_sh="${as_dir}shtool install -c"
2550 else
2551 ac_aux_dir_found=no
2552 if $ac_first_candidate; then
2553 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2554 else
2555 break
2556 fi
2557 fi
2558 else
2559 if test -f "${as_dir}${ac_aux}"; then
2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2561 else
2562 ac_aux_dir_found=no
2563 if $ac_first_candidate; then
2564 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2565 else
2566 break
2567 fi
2568 fi
2569 fi
2570 done
2571 if test "$ac_aux_dir_found" = yes; then
2572 ac_aux_dir="$as_dir"
2573 break
2574 fi
2575 ac_first_candidate=false
2576
2577 as_found=false
2578 done
2579 IFS=$as_save_IFS
2580 if $as_found
2581 then :
2582
2583 else case e in #(
2584 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2585 esac
2586 fi
2587
2588
2589 # These three variables are undocumented and unsupported,
2590 # and are intended to be withdrawn in a future Autoconf release.
2591 # They can cause serious problems if a builder's source tree is in a directory
2592 # whose full name contains unusual characters.
2593 if test -f "${ac_aux_dir}config.guess"; then
2594 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2595 fi
2596 if test -f "${ac_aux_dir}config.sub"; then
2597 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2598 fi
2599 if test -f "$ac_aux_dir/configure"; then
2600 ac_configure="$SHELL ${ac_aux_dir}configure"
2601 fi
2602
2603 # Check that the precious variables saved in the cache have kept the same
2604 # value.
2605 ac_cache_corrupted=false
2606 for ac_var in $ac_precious_vars; do
2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608 eval ac_new_set=\$ac_env_${ac_var}_set
2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610 eval ac_new_val=\$ac_env_${ac_var}_value
2611 case $ac_old_set,$ac_new_set in
2612 set,)
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2614 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2616 ,set)
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2618 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,);;
2621 *)
2622 if test "x$ac_old_val" != "x$ac_new_val"; then
2623 # differences in whitespace do not lead to failure.
2624 ac_old_val_w=`echo x $ac_old_val`
2625 ac_new_val_w=`echo x $ac_new_val`
2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2628 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2629 ac_cache_corrupted=:
2630 else
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2632 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2633 eval $ac_var=\$ac_old_val
2634 fi
2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2636 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2638 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2639 fi;;
2640 esac
2641 # Pass precious variables to config.status.
2642 if test "$ac_new_set" = set; then
2643 case $ac_new_val in
2644 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645 *) ac_arg=$ac_var=$ac_new_val ;;
2646 esac
2647 case " $ac_configure_args " in
2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650 esac
2651 fi
2652 done
2653 if $ac_cache_corrupted; then
2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2655 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2658 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2659 and start over" "$LINENO" 5
2660 fi
2661 ## -------------------- ##
2662 ## Main body of script. ##
2663 ## -------------------- ##
2664
2665 ac_ext=c
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670
2671
2672
2673
2674 ac_config_headers="$ac_config_headers config.h"
2675
2676
2677 am__api_version='1.16'
2678
2679
2680
2681 # Find a good install program. We prefer a C program (faster),
2682 # so one script is as good as another. But avoid the broken or
2683 # incompatible versions:
2684 # SysV /etc/install, /usr/sbin/install
2685 # SunOS /usr/etc/install
2686 # IRIX /sbin/install
2687 # AIX /bin/install
2688 # AmigaOS /C/install, which installs bootblocks on floppy discs
2689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2692 # OS/2's system install, which has a completely different semantic
2693 # ./install, which can be erroneously created by make from ./install.sh.
2694 # Reject install programs that cannot install multiple files.
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2696 printf %s "checking for a BSD-compatible install... " >&6; }
2697 if test -z "$INSTALL"; then
2698 if test ${ac_cv_path_install+y}
2699 then :
2700 printf %s "(cached) " >&6
2701 else case e in #(
2702 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 case $as_dir in #(((
2707 '') as_dir=./ ;;
2708 */) ;;
2709 *) as_dir=$as_dir/ ;;
2710 esac
2711 # Account for fact that we put trailing slashes in our PATH walk.
2712 case $as_dir in #((
2713 ./ | /[cC]/* | \
2714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2715 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2716 /usr/ucb/* ) ;;
2717 *)
2718 # OSF1 and SCO ODT 3.0 have their own names for install.
2719 # Don't use installbsd from OSF since it installs stuff as root
2720 # by default.
2721 for ac_prog in ginstall scoinst install; do
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2724 if test $ac_prog = install &&
2725 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2726 # AIX install. It has an incompatible calling convention.
2727 :
2728 elif test $ac_prog = install &&
2729 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730 # program-specific install script used by HP pwplus--don't use.
2731 :
2732 else
2733 rm -rf conftest.one conftest.two conftest.dir
2734 echo one > conftest.one
2735 echo two > conftest.two
2736 mkdir conftest.dir
2737 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2738 test -s conftest.one && test -s conftest.two &&
2739 test -s conftest.dir/conftest.one &&
2740 test -s conftest.dir/conftest.two
2741 then
2742 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2743 break 3
2744 fi
2745 fi
2746 fi
2747 done
2748 done
2749 ;;
2750 esac
2751
2752 done
2753 IFS=$as_save_IFS
2754
2755 rm -rf conftest.one conftest.two conftest.dir
2756 ;;
2757 esac
2758 fi
2759 if test ${ac_cv_path_install+y}; then
2760 INSTALL=$ac_cv_path_install
2761 else
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for INSTALL within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 INSTALL=$ac_install_sh
2767 fi
2768 fi
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2770 printf "%s\n" "$INSTALL" >&6; }
2771
2772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2773 # It thinks the first close brace ends the variable substitution.
2774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2775
2776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2777
2778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2779
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2781 printf %s "checking whether build environment is sane... " >&6; }
2782 # Reject unsafe characters in $srcdir or the absolute working directory
2783 # name. Accept space and tab only in the latter.
2784 am_lf='
2785 '
2786 case `pwd` in
2787 *[\\\"\#\$\&\'\`$am_lf]*)
2788 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2789 esac
2790 case $srcdir in
2791 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2792 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2793 esac
2794
2795 # Do 'set' in a subshell so we don't clobber the current shell's
2796 # arguments. Must try -L first in case configure is actually a
2797 # symlink; some systems play weird games with the mod time of symlinks
2798 # (eg FreeBSD returns the mod time of the symlink's containing
2799 # directory).
2800 if (
2801 am_has_slept=no
2802 for am_try in 1 2; do
2803 echo "timestamp, slept: $am_has_slept" > conftest.file
2804 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2805 if test "$*" = "X"; then
2806 # -L didn't work.
2807 set X `ls -t "$srcdir/configure" conftest.file`
2808 fi
2809 if test "$*" != "X $srcdir/configure conftest.file" \
2810 && test "$*" != "X conftest.file $srcdir/configure"; then
2811
2812 # If neither matched, then we have a broken ls. This can happen
2813 # if, for instance, CONFIG_SHELL is bash and it inherits a
2814 # broken ls alias from the environment. This has actually
2815 # happened. Such a system could not be considered "sane".
2816 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2817 alias in your environment" "$LINENO" 5
2818 fi
2819 if test "$2" = conftest.file || test $am_try -eq 2; then
2820 break
2821 fi
2822 # Just in case.
2823 sleep 1
2824 am_has_slept=yes
2825 done
2826 test "$2" = conftest.file
2827 )
2828 then
2829 # Ok.
2830 :
2831 else
2832 as_fn_error $? "newly created file is older than distributed files!
2833 Check your system clock" "$LINENO" 5
2834 fi
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836 printf "%s\n" "yes" >&6; }
2837 # If we didn't sleep, we still need to ensure time stamps of config.status and
2838 # generated files are strictly newer.
2839 am_sleep_pid=
2840 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2841 ( sleep 1 ) &
2842 am_sleep_pid=$!
2843 fi
2844
2845 rm -f conftest.file
2846
2847 test "$program_prefix" != NONE &&
2848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2849 # Use a double $ so make ignores it.
2850 test "$program_suffix" != NONE &&
2851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2852 # Double any \ or $.
2853 # By default was 's,x,x', remove it if useless.
2854 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2855 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2856
2857
2858 # Expand $ac_aux_dir to an absolute path.
2859 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2860
2861
2862 if test x"${MISSING+set}" != xset; then
2863 MISSING="\${SHELL} '$am_aux_dir/missing'"
2864 fi
2865 # Use eval to expand $SHELL
2866 if eval "$MISSING --is-lightweight"; then
2867 am_missing_run="$MISSING "
2868 else
2869 am_missing_run=
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2871 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2872 fi
2873
2874 if test x"${install_sh+set}" != xset; then
2875 case $am_aux_dir in
2876 *\ * | *\ *)
2877 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2878 *)
2879 install_sh="\${SHELL} $am_aux_dir/install-sh"
2880 esac
2881 fi
2882
2883 # Installed binaries are usually stripped using 'strip' when the user
2884 # run "make install-strip". However 'strip' might not be the right
2885 # tool to use in cross-compilation environments, therefore Automake
2886 # will honor the 'STRIP' environment variable to overrule this program.
2887 if test "$cross_compiling" != no; then
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}strip; ac_word=$2
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 printf %s "checking for $ac_word... " >&6; }
2893 if test ${ac_cv_prog_STRIP+y}
2894 then :
2895 printf %s "(cached) " >&6
2896 else case e in #(
2897 e) if test -n "$STRIP"; then
2898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 case $as_dir in #(((
2905 '') as_dir=./ ;;
2906 */) ;;
2907 *) as_dir=$as_dir/ ;;
2908 esac
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi ;;
2920 esac
2921 fi
2922 STRIP=$ac_cv_prog_STRIP
2923 if test -n "$STRIP"; then
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925 printf "%s\n" "$STRIP" >&6; }
2926 else
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 printf "%s\n" "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$ac_cv_prog_STRIP"; then
2934 ac_ct_STRIP=$STRIP
2935 # Extract the first word of "strip", so it can be a program name with args.
2936 set dummy strip; ac_word=$2
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 printf %s "checking for $ac_word... " >&6; }
2939 if test ${ac_cv_prog_ac_ct_STRIP+y}
2940 then :
2941 printf %s "(cached) " >&6
2942 else case e in #(
2943 e) if test -n "$ac_ct_STRIP"; then
2944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 case $as_dir in #(((
2951 '') as_dir=./ ;;
2952 */) ;;
2953 *) as_dir=$as_dir/ ;;
2954 esac
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_ac_ct_STRIP="strip"
2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi ;;
2966 esac
2967 fi
2968 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2969 if test -n "$ac_ct_STRIP"; then
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2971 printf "%s\n" "$ac_ct_STRIP" >&6; }
2972 else
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 printf "%s\n" "no" >&6; }
2975 fi
2976
2977 if test "x$ac_ct_STRIP" = x; then
2978 STRIP=":"
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986 STRIP=$ac_ct_STRIP
2987 fi
2988 else
2989 STRIP="$ac_cv_prog_STRIP"
2990 fi
2991
2992 fi
2993 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2994
2995
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2997 printf %s "checking for a race-free mkdir -p... " >&6; }
2998 if test -z "$MKDIR_P"; then
2999 if test ${ac_cv_path_mkdir+y}
3000 then :
3001 printf %s "(cached) " >&6
3002 else case e in #(
3003 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3005 do
3006 IFS=$as_save_IFS
3007 case $as_dir in #(((
3008 '') as_dir=./ ;;
3009 */) ;;
3010 *) as_dir=$as_dir/ ;;
3011 esac
3012 for ac_prog in mkdir gmkdir; do
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3015 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3016 'mkdir ('*'coreutils) '* | \
3017 *'BusyBox '* | \
3018 'mkdir (fileutils) '4.1*)
3019 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3020 break 3;;
3021 esac
3022 done
3023 done
3024 done
3025 IFS=$as_save_IFS
3026 ;;
3027 esac
3028 fi
3029
3030 test -d ./--version && rmdir ./--version
3031 if test ${ac_cv_path_mkdir+y}; then
3032 MKDIR_P="$ac_cv_path_mkdir -p"
3033 else
3034 # As a last resort, use plain mkdir -p,
3035 # in the hope it doesn't have the bugs of ancient mkdir.
3036 MKDIR_P='mkdir -p'
3037 fi
3038 fi
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040 printf "%s\n" "$MKDIR_P" >&6; }
3041
3042 for ac_prog in gawk mawk nawk awk
3043 do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 printf %s "checking for $ac_word... " >&6; }
3048 if test ${ac_cv_prog_AWK+y}
3049 then :
3050 printf %s "(cached) " >&6
3051 else case e in #(
3052 e) if test -n "$AWK"; then
3053 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 case $as_dir in #(((
3060 '') as_dir=./ ;;
3061 */) ;;
3062 *) as_dir=$as_dir/ ;;
3063 esac
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_AWK="$ac_prog"
3067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi ;;
3075 esac
3076 fi
3077 AWK=$ac_cv_prog_AWK
3078 if test -n "$AWK"; then
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080 printf "%s\n" "$AWK" >&6; }
3081 else
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 printf "%s\n" "no" >&6; }
3084 fi
3085
3086
3087 test -n "$AWK" && break
3088 done
3089
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092 set x ${MAKE-make}
3093 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3095 then :
3096 printf %s "(cached) " >&6
3097 else case e in #(
3098 e) cat >conftest.make <<\_ACEOF
3099 SHELL = /bin/sh
3100 all:
3101 @echo '@@@%%%=$(MAKE)=@@@%%%'
3102 _ACEOF
3103 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3104 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3105 *@@@%%%=?*=@@@%%%*)
3106 eval ac_cv_prog_make_${ac_make}_set=yes;;
3107 *)
3108 eval ac_cv_prog_make_${ac_make}_set=no;;
3109 esac
3110 rm -f conftest.make ;;
3111 esac
3112 fi
3113 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 printf "%s\n" "yes" >&6; }
3116 SET_MAKE=
3117 else
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 printf "%s\n" "no" >&6; }
3120 SET_MAKE="MAKE=${MAKE-make}"
3121 fi
3122
3123 rm -rf .tst 2>/dev/null
3124 mkdir .tst 2>/dev/null
3125 if test -d .tst; then
3126 am__leading_dot=.
3127 else
3128 am__leading_dot=_
3129 fi
3130 rmdir .tst 2>/dev/null
3131
3132 # Check whether --enable-silent-rules was given.
3133 if test ${enable_silent_rules+y}
3134 then :
3135 enableval=$enable_silent_rules;
3136 fi
3137
3138 case $enable_silent_rules in # (((
3139 yes) AM_DEFAULT_VERBOSITY=0;;
3140 no) AM_DEFAULT_VERBOSITY=1;;
3141 *) AM_DEFAULT_VERBOSITY=1;;
3142 esac
3143 am_make=${MAKE-make}
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3145 printf %s "checking whether $am_make supports nested variables... " >&6; }
3146 if test ${am_cv_make_support_nested_variables+y}
3147 then :
3148 printf %s "(cached) " >&6
3149 else case e in #(
3150 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3151 BAR0=false
3152 BAR1=true
3153 V=1
3154 am__doit:
3155 @$(TRUE)
3156 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3157 am_cv_make_support_nested_variables=yes
3158 else
3159 am_cv_make_support_nested_variables=no
3160 fi ;;
3161 esac
3162 fi
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3165 if test $am_cv_make_support_nested_variables = yes; then
3166 AM_V='$(V)'
3167 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3168 else
3169 AM_V=$AM_DEFAULT_VERBOSITY
3170 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3171 fi
3172 AM_BACKSLASH='\'
3173
3174 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3175 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3176 # is not polluted with repeated "-I."
3177 am__isrc=' -I$(srcdir)'
3178 # test to see if srcdir already configured
3179 if test -f $srcdir/config.status; then
3180 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3181 fi
3182 fi
3183
3184 # test whether we have cygpath
3185 if test -z "$CYGPATH_W"; then
3186 if (cygpath --version) >/dev/null 2>/dev/null; then
3187 CYGPATH_W='cygpath -w'
3188 else
3189 CYGPATH_W=echo
3190 fi
3191 fi
3192
3193
3194 # Define the identity of the package.
3195 PACKAGE='mingw-w64-genidl'
3196 VERSION='1.0'
3197
3198
3199 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3200
3201
3202 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3203
3204 # Some tools Automake needs.
3205
3206 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3207
3208
3209 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3210
3211
3212 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3213
3214
3215 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3216
3217
3218 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3219
3220 # For better backward compatibility. To be removed once Automake 1.9.x
3221 # dies out for good. For more background, see:
3222 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3223 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3224 mkdir_p='$(MKDIR_P)'
3225
3226 # We need awk for the "check" target (and possibly the TAP driver). The
3227 # system "awk" is bad on some platforms.
3228 # Always define AMTAR for backward compatibility. Yes, it's still used
3229 # in the wild :-( We should find a proper way to deprecate it ...
3230 AMTAR='$${TAR-tar}'
3231
3232
3233 # We'll loop over all known methods to create a tar archive until one works.
3234 _am_tools='gnutar pax cpio none'
3235
3236 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3237
3238
3239
3240
3241
3242 # Variables for tags utilities; see am/tags.am
3243 if test -z "$CTAGS"; then
3244 CTAGS=ctags
3245 fi
3246
3247 if test -z "$ETAGS"; then
3248 ETAGS=etags
3249 fi
3250
3251 if test -z "$CSCOPE"; then
3252 CSCOPE=cscope
3253 fi
3254
3255
3256
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes. So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK; else
3266 cat >&2 <<'END'
3267 Oops!
3268
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present. This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3273
3274 Please tell [email protected] about your system, including the value
3275 of your $PATH and any error possibly output before this message. This
3276 can help us improve future automake versions.
3277
3278 END
3279 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3280 echo 'Configuration will proceed anyway, since you have set the' >&2
3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282 echo >&2
3283 else
3284 cat >&2 <<'END'
3285 Aborting the configuration process, to ensure you take notice of the issue.
3286
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3289
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3293
3294 END
3295 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3296 fi
3297 fi
3298
3299
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3301 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3302 # Check whether --enable-maintainer-mode was given.
3303 if test ${enable_maintainer_mode+y}
3304 then :
3305 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3306 else case e in #(
3307 e) USE_MAINTAINER_MODE=no ;;
3308 esac
3309 fi
3310
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3312 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3313 if test $USE_MAINTAINER_MODE = yes; then
3314 MAINTAINER_MODE_TRUE=
3315 MAINTAINER_MODE_FALSE='#'
3316 else
3317 MAINTAINER_MODE_TRUE='#'
3318 MAINTAINER_MODE_FALSE=
3319 fi
3320
3321 MAINT=$MAINTAINER_MODE_TRUE
3322
3323
3324
3325
3326
3327 # Make sure we can run config.sub.
3328 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3329 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3330
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3332 printf %s "checking build system type... " >&6; }
3333 if test ${ac_cv_build+y}
3334 then :
3335 printf %s "(cached) " >&6
3336 else case e in #(
3337 e) ac_build_alias=$build_alias
3338 test "x$ac_build_alias" = x &&
3339 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3340 test "x$ac_build_alias" = x &&
3341 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3342 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3343 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3344 ;;
3345 esac
3346 fi
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3348 printf "%s\n" "$ac_cv_build" >&6; }
3349 case $ac_cv_build in
3350 *-*-*) ;;
3351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3352 esac
3353 build=$ac_cv_build
3354 ac_save_IFS=$IFS; IFS='-'
3355 set x $ac_cv_build
3356 shift
3357 build_cpu=$1
3358 build_vendor=$2
3359 shift; shift
3360 # Remember, the first character of IFS is used to create $*,
3361 # except with old shells:
3362 build_os=$*
3363 IFS=$ac_save_IFS
3364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3365
3366
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3368 printf %s "checking host system type... " >&6; }
3369 if test ${ac_cv_host+y}
3370 then :
3371 printf %s "(cached) " >&6
3372 else case e in #(
3373 e) if test "x$host_alias" = x; then
3374 ac_cv_host=$ac_cv_build
3375 else
3376 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3377 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3378 fi
3379 ;;
3380 esac
3381 fi
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3383 printf "%s\n" "$ac_cv_host" >&6; }
3384 case $ac_cv_host in
3385 *-*-*) ;;
3386 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3387 esac
3388 host=$ac_cv_host
3389 ac_save_IFS=$IFS; IFS='-'
3390 set x $ac_cv_host
3391 shift
3392 host_cpu=$1
3393 host_vendor=$2
3394 shift; shift
3395 # Remember, the first character of IFS is used to create $*,
3396 # except with old shells:
3397 host_os=$*
3398 IFS=$ac_save_IFS
3399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3400
3401
3402
3403 # Checks for programs.
3404
3405
3406
3407
3408
3409
3410
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 rm -f core conftest*
4471 unset am_i ;;
4472 esac
4473 fi
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4475 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4476 if test "$am_cv_prog_cc_c_o" != yes; then
4477 # Losing compiler, so override with the script.
4478 # FIXME: It is wrong to rewrite CC.
4479 # But if we don't then we get into trouble of one sort or another.
4480 # A longer-term fix would be to have automake use am__CC in this case,
4481 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4482 CC="$am_aux_dir/compile $CC"
4483 fi
4484 ac_ext=c
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
4490 DEPDIR="${am__leading_dot}deps"
4491
4492 ac_config_commands="$ac_config_commands depfiles"
4493
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4495 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4496 cat > confinc.mk << 'END'
4497 am__doit:
4498 @echo this is the am__doit target >confinc.out
4499 .PHONY: am__doit
4500 END
4501 am__include="#"
4502 am__quote=
4503 # BSD make does it like this.
4504 echo '.include "confinc.mk" # ignored' > confmf.BSD
4505 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4506 echo 'include confinc.mk # ignored' > confmf.GNU
4507 _am_result=no
4508 for s in GNU BSD; do
4509 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4510 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }
4514 case $?:`cat confinc.out 2>/dev/null` in #(
4515 '0:this is the am__doit target') :
4516 case $s in #(
4517 BSD) :
4518 am__include='.include' am__quote='"' ;; #(
4519 *) :
4520 am__include='include' am__quote='' ;;
4521 esac ;; #(
4522 *) :
4523 ;;
4524 esac
4525 if test "$am__include" != "#"; then
4526 _am_result="yes ($s style)"
4527 break
4528 fi
4529 done
4530 rm -f confinc.* confmf.*
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4532 printf "%s\n" "${_am_result}" >&6; }
4533
4534 # Check whether --enable-dependency-tracking was given.
4535 if test ${enable_dependency_tracking+y}
4536 then :
4537 enableval=$enable_dependency_tracking;
4538 fi
4539
4540 if test "x$enable_dependency_tracking" != xno; then
4541 am_depcomp="$ac_aux_dir/depcomp"
4542 AMDEPBACKSLASH='\'
4543 am__nodep='_no'
4544 fi
4545 if test "x$enable_dependency_tracking" != xno; then
4546 AMDEP_TRUE=
4547 AMDEP_FALSE='#'
4548 else
4549 AMDEP_TRUE='#'
4550 AMDEP_FALSE=
4551 fi
4552
4553
4554
4555 depcc="$CC" am_compiler_list=
4556
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4558 printf %s "checking dependency style of $depcc... " >&6; }
4559 if test ${am_cv_CC_dependencies_compiler_type+y}
4560 then :
4561 printf %s "(cached) " >&6
4562 else case e in #(
4563 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4564 # We make a subdir and do the tests there. Otherwise we can end up
4565 # making bogus files that we don't know about and never remove. For
4566 # instance it was reported that on HP-UX the gcc test will end up
4567 # making a dummy file named 'D' -- because '-MD' means "put the output
4568 # in D".
4569 rm -rf conftest.dir
4570 mkdir conftest.dir
4571 # Copy depcomp to subdir because otherwise we won't find it if we're
4572 # using a relative directory.
4573 cp "$am_depcomp" conftest.dir
4574 cd conftest.dir
4575 # We will build objects and dependencies in a subdirectory because
4576 # it helps to detect inapplicable dependency modes. For instance
4577 # both Tru64's cc and ICC support -MD to output dependencies as a
4578 # side effect of compilation, but ICC will put the dependencies in
4579 # the current directory while Tru64 will put them in the object
4580 # directory.
4581 mkdir sub
4582
4583 am_cv_CC_dependencies_compiler_type=none
4584 if test "$am_compiler_list" = ""; then
4585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4586 fi
4587 am__universal=false
4588 case " $depcc " in #(
4589 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4590 esac
4591
4592 for depmode in $am_compiler_list; do
4593 # Setup a source with many dependencies, because some compilers
4594 # like to wrap large dependency lists on column 80 (with \), and
4595 # we should not choose a depcomp mode which is confused by this.
4596 #
4597 # We need to recreate these files for each test, as the compiler may
4598 # overwrite some of them when testing with obscure command lines.
4599 # This happens at least with the AIX C compiler.
4600 : > sub/conftest.c
4601 for i in 1 2 3 4 5 6; do
4602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4603 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4604 # Solaris 10 /bin/sh.
4605 echo '/* dummy */' > sub/conftst$i.h
4606 done
4607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4608
4609 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4610 # mode. It turns out that the SunPro C++ compiler does not properly
4611 # handle '-M -o', and we need to detect this. Also, some Intel
4612 # versions had trouble with output in subdirs.
4613 am__obj=sub/conftest.${OBJEXT-o}
4614 am__minus_obj="-o $am__obj"
4615 case $depmode in
4616 gcc)
4617 # This depmode causes a compiler race in universal mode.
4618 test "$am__universal" = false || continue
4619 ;;
4620 nosideeffect)
4621 # After this tag, mechanisms are not by side-effect, so they'll
4622 # only be used when explicitly requested.
4623 if test "x$enable_dependency_tracking" = xyes; then
4624 continue
4625 else
4626 break
4627 fi
4628 ;;
4629 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4630 # This compiler won't grok '-c -o', but also, the minuso test has
4631 # not run yet. These depmodes are late enough in the game, and
4632 # so weak that their functioning should not be impacted.
4633 am__obj=conftest.${OBJEXT-o}
4634 am__minus_obj=
4635 ;;
4636 none) break ;;
4637 esac
4638 if depmode=$depmode \
4639 source=sub/conftest.c object=$am__obj \
4640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4641 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4642 >/dev/null 2>conftest.err &&
4643 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4644 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4645 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4647 # icc doesn't choke on unknown options, it will just issue warnings
4648 # or remarks (even with -Werror). So we grep stderr for any message
4649 # that says an option was ignored or not supported.
4650 # When given -MP, icc 7.0 and 7.1 complain thusly:
4651 # icc: Command line warning: ignoring option '-M'; no argument required
4652 # The diagnosis changed in icc 8.0:
4653 # icc: Command line remark: option '-MP' not supported
4654 if (grep 'ignoring option' conftest.err ||
4655 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4656 am_cv_CC_dependencies_compiler_type=$depmode
4657 break
4658 fi
4659 fi
4660 done
4661
4662 cd ..
4663 rm -rf conftest.dir
4664 else
4665 am_cv_CC_dependencies_compiler_type=none
4666 fi
4667 ;;
4668 esac
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4671 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4672 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4673
4674 if
4675 test "x$enable_dependency_tracking" != xno \
4676 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4677 am__fastdepCC_TRUE=
4678 am__fastdepCC_FALSE='#'
4679 else
4680 am__fastdepCC_TRUE='#'
4681 am__fastdepCC_FALSE=
4682 fi
4683
4684
4685
4686 # Checks for libraries.
4687
4688 # Checks for header files.
4689
4690 ac_header= ac_cache=
4691 for ac_item in $ac_header_c_list
4692 do
4693 if test $ac_cache; then
4694 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4695 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4696 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4697 fi
4698 ac_header= ac_cache=
4699 elif test $ac_header; then
4700 ac_cache=$ac_item
4701 else
4702 ac_header=$ac_item
4703 fi
4704 done
4705
4706
4707
4708
4709
4710
4711
4712
4713 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4714 then :
4715
4716 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4717
4718 fi
4719 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4720 if test "x$ac_cv_header_malloc_h" = xyes
4721 then :
4722 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
4723
4724 fi
4725 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
4726 if test "x$ac_cv_header_memory_h" = xyes
4727 then :
4728 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
4729
4730 fi
4731 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4732 if test "x$ac_cv_header_stdint_h" = xyes
4733 then :
4734 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
4735
4736 fi
4737 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4738 if test "x$ac_cv_header_stdlib_h" = xyes
4739 then :
4740 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4741
4742 fi
4743 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4744 if test "x$ac_cv_header_string_h" = xyes
4745 then :
4746 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
4747
4748 fi
4749
4750
4751 # Checks for typedefs, structures, and compiler characteristics.
4752 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
4753 case $ac_cv_c_int16_t in #(
4754 no|yes) ;; #(
4755 *)
4756
4757 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
4758 ;;
4759 esac
4760
4761 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
4762 case $ac_cv_c_int32_t in #(
4763 no|yes) ;; #(
4764 *)
4765
4766 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
4767 ;;
4768 esac
4769
4770 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
4771 case $ac_cv_c_int64_t in #(
4772 no|yes) ;; #(
4773 *)
4774
4775 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
4776 ;;
4777 esac
4778
4779 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4780 if test "x$ac_cv_type_size_t" = xyes
4781 then :
4782
4783 else case e in #(
4784 e)
4785 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4786 ;;
4787 esac
4788 fi
4789
4790 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
4791 case $ac_cv_c_uint16_t in #(
4792 no|yes) ;; #(
4793 *)
4794
4795
4796 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
4797 ;;
4798 esac
4799
4800 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4801 case $ac_cv_c_uint32_t in #(
4802 no|yes) ;; #(
4803 *)
4804
4805 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
4806
4807
4808 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
4809 ;;
4810 esac
4811
4812 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
4813 case $ac_cv_c_uint64_t in #(
4814 no|yes) ;; #(
4815 *)
4816
4817 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
4818
4819
4820 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
4821 ;;
4822 esac
4823
4824
4825 # Checks for library functions.
4826 #AC_FUNC_MALLOC
4827 #AC_FUNC_REALLOC
4828 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4829 if test "x$ac_cv_func_memset" = xyes
4830 then :
4831 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4832
4833 fi
4834 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4835 if test "x$ac_cv_func_strchr" = xyes
4836 then :
4837 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
4838
4839 fi
4840 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
4841 if test "x$ac_cv_func_strdup" = xyes
4842 then :
4843 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
4844
4845 fi
4846 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
4847 if test "x$ac_cv_func_strrchr" = xyes
4848 then :
4849 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
4850
4851 fi
4852 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4853 if test "x$ac_cv_func_strstr" = xyes
4854 then :
4855 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
4856
4857 fi
4858
4859
4860 ac_config_files="$ac_config_files Makefile"
4861
4862 cat >confcache <<\_ACEOF
4863 # This file is a shell script that caches the results of configure
4864 # tests run on this system so they can be shared between configure
4865 # scripts and configure runs, see configure's option --config-cache.
4866 # It is not useful on other systems. If it contains results you don't
4867 # want to keep, you may remove or edit it.
4868 #
4869 # config.status only pays attention to the cache file if you give it
4870 # the --recheck option to rerun configure.
4871 #
4872 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4873 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
4874 # following values.
4875
4876 _ACEOF
4877
4878 # The following way of writing the cache mishandles newlines in values,
4879 # but we know of no workaround that is simple, portable, and efficient.
4880 # So, we kill variables containing newlines.
4881 # Ultrix sh set writes to stderr and can't be redirected directly,
4882 # and sets the high bit in the cache file unless we assign to the vars.
4883 (
4884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4885 eval ac_val=\$$ac_var
4886 case $ac_val in #(
4887 *${as_nl}*)
4888 case $ac_var in #(
4889 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4890 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4891 esac
4892 case $ac_var in #(
4893 _ | IFS | as_nl) ;; #(
4894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4895 *) { eval $ac_var=; unset $ac_var;} ;;
4896 esac ;;
4897 esac
4898 done
4899
4900 (set) 2>&1 |
4901 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4902 *${as_nl}ac_space=\ *)
4903 # 'set' does not quote correctly, so add quotes: double-quote
4904 # substitution turns \\\\ into \\, and sed turns \\ into \.
4905 sed -n \
4906 "s/'/'\\\\''/g;
4907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4908 ;; #(
4909 *)
4910 # 'set' quotes correctly as required by POSIX, so do not add quotes.
4911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4912 ;;
4913 esac |
4914 sort
4915 ) |
4916 sed '
4917 /^ac_cv_env_/b end
4918 t clear
4919 :clear
4920 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4921 t end
4922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4923 :end' >>confcache
4924 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4925 if test -w "$cache_file"; then
4926 if test "x$cache_file" != "x/dev/null"; then
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4928 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4929 if test ! -f "$cache_file" || test -h "$cache_file"; then
4930 cat confcache >"$cache_file"
4931 else
4932 case $cache_file in #(
4933 */* | ?:*)
4934 mv -f confcache "$cache_file"$$ &&
4935 mv -f "$cache_file"$$ "$cache_file" ;; #(
4936 *)
4937 mv -f confcache "$cache_file" ;;
4938 esac
4939 fi
4940 fi
4941 else
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4943 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4944 fi
4945 fi
4946 rm -f confcache
4947
4948 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4949 # Let make expand exec_prefix.
4950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4951
4952 DEFS=-DHAVE_CONFIG_H
4953
4954 ac_libobjs=
4955 ac_ltlibobjs=
4956 U=
4957 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4958 # 1. Remove the extension, and $U if already installed.
4959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4960 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4962 # will be set to the directory where LIBOBJS objects are built.
4963 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4964 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4965 done
4966 LIBOBJS=$ac_libobjs
4967
4968 LTLIBOBJS=$ac_ltlibobjs
4969
4970
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4972 printf %s "checking that generated files are newer than configure... " >&6; }
4973 if test -n "$am_sleep_pid"; then
4974 # Hide warnings about reused PIDs.
4975 wait $am_sleep_pid 2>/dev/null
4976 fi
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4978 printf "%s\n" "done" >&6; }
4979 if test -n "$EXEEXT"; then
4980 am__EXEEXT_TRUE=
4981 am__EXEEXT_FALSE='#'
4982 else
4983 am__EXEEXT_TRUE='#'
4984 am__EXEEXT_FALSE=
4985 fi
4986
4987 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4988 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4990 fi
4991 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4992 as_fn_error $? "conditional \"AMDEP\" was never defined.
4993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4994 fi
4995 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4996 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4998 fi
4999
5000 : "${CONFIG_STATUS=./config.status}"
5001 ac_write_fail=0
5002 ac_clean_files_save=$ac_clean_files
5003 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5005 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5006 as_write_fail=0
5007 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5008 #! $SHELL
5009 # Generated by $as_me.
5010 # Run this file to recreate the current configuration.
5011 # Compiler output produced by configure, useful for debugging
5012 # configure, is in config.log if it exists.
5013
5014 debug=false
5015 ac_cs_recheck=false
5016 ac_cs_silent=false
5017
5018 SHELL=\${CONFIG_SHELL-$SHELL}
5019 export SHELL
5020 _ASEOF
5021 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5022 ## -------------------- ##
5023 ## M4sh Initialization. ##
5024 ## -------------------- ##
5025
5026 # Be more Bourne compatible
5027 DUALCASE=1; export DUALCASE # for MKS sh
5028 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5029 then :
5030 emulate sh
5031 NULLCMD=:
5032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5033 # is contrary to our usage. Disable this feature.
5034 alias -g '${1+"$@"}'='"$@"'
5035 setopt NO_GLOB_SUBST
5036 else case e in #(
5037 e) case `(set -o) 2>/dev/null` in #(
5038 *posix*) :
5039 set -o posix ;; #(
5040 *) :
5041 ;;
5042 esac ;;
5043 esac
5044 fi
5045
5046
5047
5048 # Reset variables that may have inherited troublesome values from
5049 # the environment.
5050
5051 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5052 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5053 # side effect of setting IFS to empty, thus disabling word splitting.)
5054 # Quoting is to prevent editors from complaining about space-tab.
5055 as_nl='
5056 '
5057 export as_nl
5058 IFS=" "" $as_nl"
5059
5060 PS1='$ '
5061 PS2='> '
5062 PS4='+ '
5063
5064 # Ensure predictable behavior from utilities with locale-dependent output.
5065 LC_ALL=C
5066 export LC_ALL
5067 LANGUAGE=C
5068 export LANGUAGE
5069
5070 # We cannot yet rely on "unset" to work, but we need these variables
5071 # to be unset--not just set to an empty or harmless value--now, to
5072 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5073 # also avoids known problems related to "unset" and subshell syntax
5074 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5075 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5076 do eval test \${$as_var+y} \
5077 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5078 done
5079
5080 # Ensure that fds 0, 1, and 2 are open.
5081 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5082 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5083 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5084
5085 # The user is always right.
5086 if ${PATH_SEPARATOR+false} :; then
5087 PATH_SEPARATOR=:
5088 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5089 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5090 PATH_SEPARATOR=';'
5091 }
5092 fi
5093
5094
5095 # Find who we are. Look in the path if we contain no directory separator.
5096 as_myself=
5097 case $0 in #((
5098 *[\\/]* ) as_myself=$0 ;;
5099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 case $as_dir in #(((
5104 '') as_dir=./ ;;
5105 */) ;;
5106 *) as_dir=$as_dir/ ;;
5107 esac
5108 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5109 done
5110 IFS=$as_save_IFS
5111
5112 ;;
5113 esac
5114 # We did not find ourselves, most probably we were run as 'sh COMMAND'
5115 # in which case we are not to be found in the path.
5116 if test "x$as_myself" = x; then
5117 as_myself=$0
5118 fi
5119 if test ! -f "$as_myself"; then
5120 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5121 exit 1
5122 fi
5123
5124
5125
5126 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5127 # ----------------------------------------
5128 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5129 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5130 # script with STATUS, using 1 if that was 0.
5131 as_fn_error ()
5132 {
5133 as_status=$1; test $as_status -eq 0 && as_status=1
5134 if test "$4"; then
5135 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5137 fi
5138 printf "%s\n" "$as_me: error: $2" >&2
5139 as_fn_exit $as_status
5140 } # as_fn_error
5141
5142
5143 # as_fn_set_status STATUS
5144 # -----------------------
5145 # Set $? to STATUS, without forking.
5146 as_fn_set_status ()
5147 {
5148 return $1
5149 } # as_fn_set_status
5150
5151 # as_fn_exit STATUS
5152 # -----------------
5153 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5154 as_fn_exit ()
5155 {
5156 set +e
5157 as_fn_set_status $1
5158 exit $1
5159 } # as_fn_exit
5160
5161 # as_fn_unset VAR
5162 # ---------------
5163 # Portably unset VAR.
5164 as_fn_unset ()
5165 {
5166 { eval $1=; unset $1;}
5167 }
5168 as_unset=as_fn_unset
5169
5170 # as_fn_append VAR VALUE
5171 # ----------------------
5172 # Append the text in VALUE to the end of the definition contained in VAR. Take
5173 # advantage of any shell optimizations that allow amortized linear growth over
5174 # repeated appends, instead of the typical quadratic growth present in naive
5175 # implementations.
5176 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5177 then :
5178 eval 'as_fn_append ()
5179 {
5180 eval $1+=\$2
5181 }'
5182 else case e in #(
5183 e) as_fn_append ()
5184 {
5185 eval $1=\$$1\$2
5186 } ;;
5187 esac
5188 fi # as_fn_append
5189
5190 # as_fn_arith ARG...
5191 # ------------------
5192 # Perform arithmetic evaluation on the ARGs, and store the result in the
5193 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5194 # must be portable across $(()) and expr.
5195 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5196 then :
5197 eval 'as_fn_arith ()
5198 {
5199 as_val=$(( $* ))
5200 }'
5201 else case e in #(
5202 e) as_fn_arith ()
5203 {
5204 as_val=`expr "$@" || test $? -eq 1`
5205 } ;;
5206 esac
5207 fi # as_fn_arith
5208
5209
5210 if expr a : '\(a\)' >/dev/null 2>&1 &&
5211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5212 as_expr=expr
5213 else
5214 as_expr=false
5215 fi
5216
5217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5218 as_basename=basename
5219 else
5220 as_basename=false
5221 fi
5222
5223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5224 as_dirname=dirname
5225 else
5226 as_dirname=false
5227 fi
5228
5229 as_me=`$as_basename -- "$0" ||
5230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5231 X"$0" : 'X\(//\)$' \| \
5232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5233 printf "%s\n" X/"$0" |
5234 sed '/^.*\/\([^/][^/]*\)\/*$/{
5235 s//\1/
5236 q
5237 }
5238 /^X\/\(\/\/\)$/{
5239 s//\1/
5240 q
5241 }
5242 /^X\/\(\/\).*/{
5243 s//\1/
5244 q
5245 }
5246 s/.*/./; q'`
5247
5248 # Avoid depending upon Character Ranges.
5249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5252 as_cr_digits='0123456789'
5253 as_cr_alnum=$as_cr_Letters$as_cr_digits
5254
5255
5256 # Determine whether it's possible to make 'echo' print without a newline.
5257 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5258 # for compatibility with existing Makefiles.
5259 ECHO_C= ECHO_N= ECHO_T=
5260 case `echo -n x` in #(((((
5261 -n*)
5262 case `echo 'xy\c'` in
5263 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5264 xy) ECHO_C='\c';;
5265 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5266 ECHO_T=' ';;
5267 esac;;
5268 *)
5269 ECHO_N='-n';;
5270 esac
5271
5272 # For backward compatibility with old third-party macros, we provide
5273 # the shell variables $as_echo and $as_echo_n. New code should use
5274 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5275 as_echo='printf %s\n'
5276 as_echo_n='printf %s'
5277
5278 rm -f conf$$ conf$$.exe conf$$.file
5279 if test -d conf$$.dir; then
5280 rm -f conf$$.dir/conf$$.file
5281 else
5282 rm -f conf$$.dir
5283 mkdir conf$$.dir 2>/dev/null
5284 fi
5285 if (echo >conf$$.file) 2>/dev/null; then
5286 if ln -s conf$$.file conf$$ 2>/dev/null; then
5287 as_ln_s='ln -s'
5288 # ... but there are two gotchas:
5289 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5290 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5291 # In both cases, we have to default to 'cp -pR'.
5292 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5293 as_ln_s='cp -pR'
5294 elif ln conf$$.file conf$$ 2>/dev/null; then
5295 as_ln_s=ln
5296 else
5297 as_ln_s='cp -pR'
5298 fi
5299 else
5300 as_ln_s='cp -pR'
5301 fi
5302 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5303 rmdir conf$$.dir 2>/dev/null
5304
5305
5306 # as_fn_mkdir_p
5307 # -------------
5308 # Create "$as_dir" as a directory, including parents if necessary.
5309 as_fn_mkdir_p ()
5310 {
5311
5312 case $as_dir in #(
5313 -*) as_dir=./$as_dir;;
5314 esac
5315 test -d "$as_dir" || eval $as_mkdir_p || {
5316 as_dirs=
5317 while :; do
5318 case $as_dir in #(
5319 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5320 *) as_qdir=$as_dir;;
5321 esac
5322 as_dirs="'$as_qdir' $as_dirs"
5323 as_dir=`$as_dirname -- "$as_dir" ||
5324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5325 X"$as_dir" : 'X\(//\)[^/]' \| \
5326 X"$as_dir" : 'X\(//\)$' \| \
5327 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5328 printf "%s\n" X"$as_dir" |
5329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5330 s//\1/
5331 q
5332 }
5333 /^X\(\/\/\)[^/].*/{
5334 s//\1/
5335 q
5336 }
5337 /^X\(\/\/\)$/{
5338 s//\1/
5339 q
5340 }
5341 /^X\(\/\).*/{
5342 s//\1/
5343 q
5344 }
5345 s/.*/./; q'`
5346 test -d "$as_dir" && break
5347 done
5348 test -z "$as_dirs" || eval "mkdir $as_dirs"
5349 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5350
5351
5352 } # as_fn_mkdir_p
5353 if mkdir -p . 2>/dev/null; then
5354 as_mkdir_p='mkdir -p "$as_dir"'
5355 else
5356 test -d ./-p && rmdir ./-p
5357 as_mkdir_p=false
5358 fi
5359
5360
5361 # as_fn_executable_p FILE
5362 # -----------------------
5363 # Test if FILE is an executable regular file.
5364 as_fn_executable_p ()
5365 {
5366 test -f "$1" && test -x "$1"
5367 } # as_fn_executable_p
5368 as_test_x='test -x'
5369 as_executable_p=as_fn_executable_p
5370
5371 # Sed expression to map a string onto a valid CPP name.
5372 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5373 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5374
5375 # Sed expression to map a string onto a valid variable name.
5376 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5377 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
5378
5379
5380 exec 6>&1
5381 ## ----------------------------------- ##
5382 ## Main body of $CONFIG_STATUS script. ##
5383 ## ----------------------------------- ##
5384 _ASEOF
5385 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5386
5387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5388 # Save the log message, to keep $0 and so on meaningful, and to
5389 # report actual input values of CONFIG_FILES etc. instead of their
5390 # values after options handling.
5391 ac_log="
5392 This file was extended by mingw-w64-genidl $as_me 1.0, which was
5393 generated by GNU Autoconf 2.72. Invocation command line was
5394
5395 CONFIG_FILES = $CONFIG_FILES
5396 CONFIG_HEADERS = $CONFIG_HEADERS
5397 CONFIG_LINKS = $CONFIG_LINKS
5398 CONFIG_COMMANDS = $CONFIG_COMMANDS
5399 $ $0 $@
5400
5401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5402 "
5403
5404 _ACEOF
5405
5406 case $ac_config_files in *"
5407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5408 esac
5409
5410 case $ac_config_headers in *"
5411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5412 esac
5413
5414
5415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5416 # Files that config.status was made for.
5417 config_files="$ac_config_files"
5418 config_headers="$ac_config_headers"
5419 config_commands="$ac_config_commands"
5420
5421 _ACEOF
5422
5423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5424 ac_cs_usage="\
5425 '$as_me' instantiates files and other configuration actions
5426 from templates according to the current configuration. Unless the files
5427 and actions are specified as TAGs, all are instantiated by default.
5428
5429 Usage: $0 [OPTION]... [TAG]...
5430
5431 -h, --help print this help, then exit
5432 -V, --version print version number and configuration settings, then exit
5433 --config print configuration, then exit
5434 -q, --quiet, --silent
5435 do not print progress messages
5436 -d, --debug don't remove temporary files
5437 --recheck update $as_me by reconfiguring in the same conditions
5438 --file=FILE[:TEMPLATE]
5439 instantiate the configuration file FILE
5440 --header=FILE[:TEMPLATE]
5441 instantiate the configuration header FILE
5442
5443 Configuration files:
5444 $config_files
5445
5446 Configuration headers:
5447 $config_headers
5448
5449 Configuration commands:
5450 $config_commands
5451
5452 Report bugs to <[email protected]>."
5453
5454 _ACEOF
5455 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5456 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5458 ac_cs_config='$ac_cs_config_escaped'
5459 ac_cs_version="\\
5460 mingw-w64-genidl config.status 1.0
5461 configured by $0, generated by GNU Autoconf 2.72,
5462 with options \\"\$ac_cs_config\\"
5463
5464 Copyright (C) 2023 Free Software Foundation, Inc.
5465 This config.status script is free software; the Free Software Foundation
5466 gives unlimited permission to copy, distribute and modify it."
5467
5468 ac_pwd='$ac_pwd'
5469 srcdir='$srcdir'
5470 INSTALL='$INSTALL'
5471 MKDIR_P='$MKDIR_P'
5472 AWK='$AWK'
5473 test -n "\$AWK" || AWK=awk
5474 _ACEOF
5475
5476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5477 # The default lists apply if the user does not specify any file.
5478 ac_need_defaults=:
5479 while test $# != 0
5480 do
5481 case $1 in
5482 --*=?*)
5483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5484 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5485 ac_shift=:
5486 ;;
5487 --*=)
5488 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5489 ac_optarg=
5490 ac_shift=:
5491 ;;
5492 *)
5493 ac_option=$1
5494 ac_optarg=$2
5495 ac_shift=shift
5496 ;;
5497 esac
5498
5499 case $ac_option in
5500 # Handling of the options.
5501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5502 ac_cs_recheck=: ;;
5503 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5504 printf "%s\n" "$ac_cs_version"; exit ;;
5505 --config | --confi | --conf | --con | --co | --c )
5506 printf "%s\n" "$ac_cs_config"; exit ;;
5507 --debug | --debu | --deb | --de | --d | -d )
5508 debug=: ;;
5509 --file | --fil | --fi | --f )
5510 $ac_shift
5511 case $ac_optarg in
5512 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5513 '') as_fn_error $? "missing file argument" ;;
5514 esac
5515 as_fn_append CONFIG_FILES " '$ac_optarg'"
5516 ac_need_defaults=false;;
5517 --header | --heade | --head | --hea )
5518 $ac_shift
5519 case $ac_optarg in
5520 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5521 esac
5522 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5523 ac_need_defaults=false;;
5524 --he | --h)
5525 # Conflict between --help and --header
5526 as_fn_error $? "ambiguous option: '$1'
5527 Try '$0 --help' for more information.";;
5528 --help | --hel | -h )
5529 printf "%s\n" "$ac_cs_usage"; exit ;;
5530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5532 ac_cs_silent=: ;;
5533
5534 # This is an error.
5535 -*) as_fn_error $? "unrecognized option: '$1'
5536 Try '$0 --help' for more information." ;;
5537
5538 *) as_fn_append ac_config_targets " $1"
5539 ac_need_defaults=false ;;
5540
5541 esac
5542 shift
5543 done
5544
5545 ac_configure_extra_args=
5546
5547 if $ac_cs_silent; then
5548 exec 6>/dev/null
5549 ac_configure_extra_args="$ac_configure_extra_args --silent"
5550 fi
5551
5552 _ACEOF
5553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5554 if \$ac_cs_recheck; then
5555 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5556 shift
5557 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5558 CONFIG_SHELL='$SHELL'
5559 export CONFIG_SHELL
5560 exec "\$@"
5561 fi
5562
5563 _ACEOF
5564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5565 exec 5>>config.log
5566 {
5567 echo
5568 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5569 ## Running $as_me. ##
5570 _ASBOX
5571 printf "%s\n" "$ac_log"
5572 } >&5
5573
5574 _ACEOF
5575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5576 #
5577 # INIT-COMMANDS
5578 #
5579 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5580
5581 _ACEOF
5582
5583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5584
5585 # Handling of arguments.
5586 for ac_config_target in $ac_config_targets
5587 do
5588 case $ac_config_target in
5589 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5590 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5591 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5592
5593 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5594 esac
5595 done
5596
5597
5598 # If the user did not use the arguments to specify the items to instantiate,
5599 # then the envvar interface is used. Set only those that are not.
5600 # We use the long form for the default assignment because of an extremely
5601 # bizarre bug on SunOS 4.1.3.
5602 if $ac_need_defaults; then
5603 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5604 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5605 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
5606 fi
5607
5608 # Have a temporary directory for convenience. Make it in the build tree
5609 # simply because there is no reason against having it here, and in addition,
5610 # creating and moving files from /tmp can sometimes cause problems.
5611 # Hook for its removal unless debugging.
5612 # Note that there is a small window in which the directory will not be cleaned:
5613 # after its creation but before its name has been assigned to '$tmp'.
5614 $debug ||
5615 {
5616 tmp= ac_tmp=
5617 trap 'exit_status=$?
5618 : "${ac_tmp:=$tmp}"
5619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5620 ' 0
5621 trap 'as_fn_exit 1' 1 2 13 15
5622 }
5623 # Create a (secure) tmp directory for tmp files.
5624
5625 {
5626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5627 test -d "$tmp"
5628 } ||
5629 {
5630 tmp=./conf$$-$RANDOM
5631 (umask 077 && mkdir "$tmp")
5632 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5633 ac_tmp=$tmp
5634
5635 # Set up the scripts for CONFIG_FILES section.
5636 # No need to generate them if there are no CONFIG_FILES.
5637 # This happens for instance with './config.status config.h'.
5638 if test -n "$CONFIG_FILES"; then
5639
5640
5641 ac_cr=`echo X | tr X '\015'`
5642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5643 # But we know of no other shell where ac_cr would be empty at this
5644 # point, so we can use a bashism as a fallback.
5645 if test "x$ac_cr" = x; then
5646 eval ac_cr=\$\'\\r\'
5647 fi
5648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5650 ac_cs_awk_cr='\\r'
5651 else
5652 ac_cs_awk_cr=$ac_cr
5653 fi
5654
5655 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5656 _ACEOF
5657
5658
5659 {
5660 echo "cat >conf$$subs.awk <<_ACEOF" &&
5661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5662 echo "_ACEOF"
5663 } >conf$$subs.sh ||
5664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5666 ac_delim='%!_!# '
5667 for ac_last_try in false false false false false :; do
5668 . ./conf$$subs.sh ||
5669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5670
5671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5672 if test $ac_delim_n = $ac_delim_num; then
5673 break
5674 elif $ac_last_try; then
5675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5676 else
5677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5678 fi
5679 done
5680 rm -f conf$$subs.sh
5681
5682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5683 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5684 _ACEOF
5685 sed -n '
5686 h
5687 s/^/S["/; s/!.*/"]=/
5688 p
5689 g
5690 s/^[^!]*!//
5691 :repl
5692 t repl
5693 s/'"$ac_delim"'$//
5694 t delim
5695 :nl
5696 h
5697 s/\(.\{148\}\)..*/\1/
5698 t more1
5699 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5700 p
5701 n
5702 b repl
5703 :more1
5704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5705 p
5706 g
5707 s/.\{148\}//
5708 t nl
5709 :delim
5710 h
5711 s/\(.\{148\}\)..*/\1/
5712 t more2
5713 s/["\\]/\\&/g; s/^/"/; s/$/"/
5714 p
5715 b
5716 :more2
5717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5718 p
5719 g
5720 s/.\{148\}//
5721 t delim
5722 ' <conf$$subs.awk | sed '
5723 /^[^""]/{
5724 N
5725 s/\n//
5726 }
5727 ' >>$CONFIG_STATUS || ac_write_fail=1
5728 rm -f conf$$subs.awk
5729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5730 _ACAWK
5731 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5732 for (key in S) S_is_set[key] = 1
5733 FS = ""
5734
5735 }
5736 {
5737 line = $ 0
5738 nfields = split(line, field, "@")
5739 substed = 0
5740 len = length(field[1])
5741 for (i = 2; i < nfields; i++) {
5742 key = field[i]
5743 keylen = length(key)
5744 if (S_is_set[key]) {
5745 value = S[key]
5746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5747 len += length(value) + length(field[++i])
5748 substed = 1
5749 } else
5750 len += 1 + keylen
5751 }
5752
5753 print line
5754 }
5755
5756 _ACAWK
5757 _ACEOF
5758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5759 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5761 else
5762 cat
5763 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5765 _ACEOF
5766
5767 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5768 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5769 # trailing colons and then remove the whole line if VPATH becomes empty
5770 # (actually we leave an empty line to preserve line numbers).
5771 if test "x$srcdir" = x.; then
5772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5773 h
5774 s///
5775 s/^/:/
5776 s/[ ]*$/:/
5777 s/:\$(srcdir):/:/g
5778 s/:\${srcdir}:/:/g
5779 s/:@srcdir@:/:/g
5780 s/^:*//
5781 s/:*$//
5782 x
5783 s/\(=[ ]*\).*/\1/
5784 G
5785 s/\n//
5786 s/^[^=]*=[ ]*$//
5787 }'
5788 fi
5789
5790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5791 fi # test -n "$CONFIG_FILES"
5792
5793 # Set up the scripts for CONFIG_HEADERS section.
5794 # No need to generate them if there are no CONFIG_HEADERS.
5795 # This happens for instance with './config.status Makefile'.
5796 if test -n "$CONFIG_HEADERS"; then
5797 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5798 BEGIN {
5799 _ACEOF
5800
5801 # Transform confdefs.h into an awk script 'defines.awk', embedded as
5802 # here-document in config.status, that substitutes the proper values into
5803 # config.h.in to produce config.h.
5804
5805 # Create a delimiter string that does not exist in confdefs.h, to ease
5806 # handling of long lines.
5807 ac_delim='%!_!# '
5808 for ac_last_try in false false :; do
5809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5810 if test -z "$ac_tt"; then
5811 break
5812 elif $ac_last_try; then
5813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5814 else
5815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5816 fi
5817 done
5818
5819 # For the awk script, D is an array of macro values keyed by name,
5820 # likewise P contains macro parameters if any. Preserve backslash
5821 # newline sequences.
5822
5823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5824 sed -n '
5825 s/.\{148\}/&'"$ac_delim"'/g
5826 t rset
5827 :rset
5828 s/^[ ]*#[ ]*define[ ][ ]*/ /
5829 t def
5830 d
5831 :def
5832 s/\\$//
5833 t bsnl
5834 s/["\\]/\\&/g
5835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5836 D["\1"]=" \3"/p
5837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5838 d
5839 :bsnl
5840 s/["\\]/\\&/g
5841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5842 D["\1"]=" \3\\\\\\n"\\/p
5843 t cont
5844 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5845 t cont
5846 d
5847 :cont
5848 n
5849 s/.\{148\}/&'"$ac_delim"'/g
5850 t clear
5851 :clear
5852 s/\\$//
5853 t bsnlc
5854 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5855 d
5856 :bsnlc
5857 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5858 b cont
5859 ' <confdefs.h | sed '
5860 s/'"$ac_delim"'/"\\\
5861 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5862
5863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5864 for (key in D) D_is_set[key] = 1
5865 FS = ""
5866 }
5867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5868 line = \$ 0
5869 split(line, arg, " ")
5870 if (arg[1] == "#") {
5871 defundef = arg[2]
5872 mac1 = arg[3]
5873 } else {
5874 defundef = substr(arg[1], 2)
5875 mac1 = arg[2]
5876 }
5877 split(mac1, mac2, "(") #)
5878 macro = mac2[1]
5879 prefix = substr(line, 1, index(line, defundef) - 1)
5880 if (D_is_set[macro]) {
5881 # Preserve the white space surrounding the "#".
5882 print prefix "define", macro P[macro] D[macro]
5883 next
5884 } else {
5885 # Replace #undef with comments. This is necessary, for example,
5886 # in the case of _POSIX_SOURCE, which is predefined and required
5887 # on some systems where configure will not decide to define it.
5888 if (defundef == "undef") {
5889 print "/*", prefix defundef, macro, "*/"
5890 next
5891 }
5892 }
5893 }
5894 { print }
5895 _ACAWK
5896 _ACEOF
5897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5899 fi # test -n "$CONFIG_HEADERS"
5900
5901
5902 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5903 shift
5904 for ac_tag
5905 do
5906 case $ac_tag in
5907 :[FHLC]) ac_mode=$ac_tag; continue;;
5908 esac
5909 case $ac_mode$ac_tag in
5910 :[FHL]*:*);;
5911 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
5912 :[FH]-) ac_tag=-:-;;
5913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5914 esac
5915 ac_save_IFS=$IFS
5916 IFS=:
5917 set x $ac_tag
5918 IFS=$ac_save_IFS
5919 shift
5920 ac_file=$1
5921 shift
5922
5923 case $ac_mode in
5924 :L) ac_source=$1;;
5925 :[FH])
5926 ac_file_inputs=
5927 for ac_f
5928 do
5929 case $ac_f in
5930 -) ac_f="$ac_tmp/stdin";;
5931 *) # Look for the file first in the build tree, then in the source tree
5932 # (if the path is not absolute). The absolute path cannot be DOS-style,
5933 # because $ac_f cannot contain ':'.
5934 test -f "$ac_f" ||
5935 case $ac_f in
5936 [\\/$]*) false;;
5937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5938 esac ||
5939 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
5940 esac
5941 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5942 as_fn_append ac_file_inputs " '$ac_f'"
5943 done
5944
5945 # Let's still pretend it is 'configure' which instantiates (i.e., don't
5946 # use $as_me), people would be surprised to read:
5947 # /* config.h. Generated by config.status. */
5948 configure_input='Generated from '`
5949 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5950 `' by configure.'
5951 if test x"$ac_file" != x-; then
5952 configure_input="$ac_file. $configure_input"
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5954 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5955 fi
5956 # Neutralize special characters interpreted by sed in replacement strings.
5957 case $configure_input in #(
5958 *\&* | *\|* | *\\* )
5959 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5960 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5961 *) ac_sed_conf_input=$configure_input;;
5962 esac
5963
5964 case $ac_tag in
5965 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5967 esac
5968 ;;
5969 esac
5970
5971 ac_dir=`$as_dirname -- "$ac_file" ||
5972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5973 X"$ac_file" : 'X\(//\)[^/]' \| \
5974 X"$ac_file" : 'X\(//\)$' \| \
5975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5976 printf "%s\n" X"$ac_file" |
5977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5978 s//\1/
5979 q
5980 }
5981 /^X\(\/\/\)[^/].*/{
5982 s//\1/
5983 q
5984 }
5985 /^X\(\/\/\)$/{
5986 s//\1/
5987 q
5988 }
5989 /^X\(\/\).*/{
5990 s//\1/
5991 q
5992 }
5993 s/.*/./; q'`
5994 as_dir="$ac_dir"; as_fn_mkdir_p
5995 ac_builddir=.
5996
5997 case "$ac_dir" in
5998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5999 *)
6000 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6001 # A ".." for each directory in $ac_dir_suffix.
6002 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6003 case $ac_top_builddir_sub in
6004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6006 esac ;;
6007 esac
6008 ac_abs_top_builddir=$ac_pwd
6009 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6010 # for backward compatibility:
6011 ac_top_builddir=$ac_top_build_prefix
6012
6013 case $srcdir in
6014 .) # We are building in place.
6015 ac_srcdir=.
6016 ac_top_srcdir=$ac_top_builddir_sub
6017 ac_abs_top_srcdir=$ac_pwd ;;
6018 [\\/]* | ?:[\\/]* ) # Absolute name.
6019 ac_srcdir=$srcdir$ac_dir_suffix;
6020 ac_top_srcdir=$srcdir
6021 ac_abs_top_srcdir=$srcdir ;;
6022 *) # Relative name.
6023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6024 ac_top_srcdir=$ac_top_build_prefix$srcdir
6025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6026 esac
6027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6028
6029
6030 case $ac_mode in
6031 :F)
6032 #
6033 # CONFIG_FILE
6034 #
6035
6036 case $INSTALL in
6037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6039 esac
6040 ac_MKDIR_P=$MKDIR_P
6041 case $MKDIR_P in
6042 [\\/$]* | ?:[\\/]* ) ;;
6043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6044 esac
6045 _ACEOF
6046
6047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6048 # If the template does not know about datarootdir, expand it.
6049 # FIXME: This hack should be removed a few years after 2.60.
6050 ac_datarootdir_hack=; ac_datarootdir_seen=
6051 ac_sed_dataroot='
6052 /datarootdir/ {
6053 p
6054 q
6055 }
6056 /@datadir@/p
6057 /@docdir@/p
6058 /@infodir@/p
6059 /@localedir@/p
6060 /@mandir@/p'
6061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6062 *datarootdir*) ac_datarootdir_seen=yes;;
6063 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6065 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6066 _ACEOF
6067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6068 ac_datarootdir_hack='
6069 s&@datadir@&$datadir&g
6070 s&@docdir@&$docdir&g
6071 s&@infodir@&$infodir&g
6072 s&@localedir@&$localedir&g
6073 s&@mandir@&$mandir&g
6074 s&\\\${datarootdir}&$datarootdir&g' ;;
6075 esac
6076 _ACEOF
6077
6078 # Neutralize VPATH when '$srcdir' = '.'.
6079 # Shell code in configure.ac might set extrasub.
6080 # FIXME: do we really want to maintain this feature?
6081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6082 ac_sed_extra="$ac_vpsub
6083 $extrasub
6084 _ACEOF
6085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6086 :t
6087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6088 s|@configure_input@|$ac_sed_conf_input|;t t
6089 s&@top_builddir@&$ac_top_builddir_sub&;t t
6090 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6091 s&@srcdir@&$ac_srcdir&;t t
6092 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6093 s&@top_srcdir@&$ac_top_srcdir&;t t
6094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6095 s&@builddir@&$ac_builddir&;t t
6096 s&@abs_builddir@&$ac_abs_builddir&;t t
6097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6098 s&@INSTALL@&$ac_INSTALL&;t t
6099 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6100 $ac_datarootdir_hack
6101 "
6102 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6104
6105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6108 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
6110 which seems to be undefined. Please make sure it is defined" >&5
6111 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
6112 which seems to be undefined. Please make sure it is defined" >&2;}
6113
6114 rm -f "$ac_tmp/stdin"
6115 case $ac_file in
6116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6118 esac \
6119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6120 ;;
6121 :H)
6122 #
6123 # CONFIG_HEADER
6124 #
6125 if test x"$ac_file" != x-; then
6126 {
6127 printf "%s\n" "/* $configure_input */" >&1 \
6128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6129 } >"$ac_tmp/config.h" \
6130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6133 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6134 else
6135 rm -f "$ac_file"
6136 mv "$ac_tmp/config.h" "$ac_file" \
6137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6138 fi
6139 else
6140 printf "%s\n" "/* $configure_input */" >&1 \
6141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6142 || as_fn_error $? "could not create -" "$LINENO" 5
6143 fi
6144 # Compute "$ac_file"'s index in $config_headers.
6145 _am_arg="$ac_file"
6146 _am_stamp_count=1
6147 for _am_header in $config_headers :; do
6148 case $_am_header in
6149 $_am_arg | $_am_arg:* )
6150 break ;;
6151 * )
6152 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6153 esac
6154 done
6155 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6156 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6157 X"$_am_arg" : 'X\(//\)[^/]' \| \
6158 X"$_am_arg" : 'X\(//\)$' \| \
6159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6160 printf "%s\n" X"$_am_arg" |
6161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6162 s//\1/
6163 q
6164 }
6165 /^X\(\/\/\)[^/].*/{
6166 s//\1/
6167 q
6168 }
6169 /^X\(\/\/\)$/{
6170 s//\1/
6171 q
6172 }
6173 /^X\(\/\).*/{
6174 s//\1/
6175 q
6176 }
6177 s/.*/./; q'`/stamp-h$_am_stamp_count
6178 ;;
6179
6180 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6181 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
6182 ;;
6183 esac
6184
6185
6186 case $ac_file$ac_mode in
6187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6188 # Older Autoconf quotes --file arguments for eval, but not when files
6189 # are listed without --file. Let's play safe and only enable the eval
6190 # if we detect the quoting.
6191 # TODO: see whether this extra hack can be removed once we start
6192 # requiring Autoconf 2.70 or later.
6193 case $CONFIG_FILES in #(
6194 *\'*) :
6195 eval set x "$CONFIG_FILES" ;; #(
6196 *) :
6197 set x $CONFIG_FILES ;; #(
6198 *) :
6199 ;;
6200 esac
6201 shift
6202 # Used to flag and report bootstrapping failures.
6203 am_rc=0
6204 for am_mf
6205 do
6206 # Strip MF so we end up with the name of the file.
6207 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
6208 # Check whether this is an Automake generated Makefile which includes
6209 # dependency-tracking related rules and includes.
6210 # Grep'ing the whole file directly is not great: AIX grep has a line
6211 # limit of 2048, but all sed's we know have understand at least 4000.
6212 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
6213 || continue
6214 am_dirpart=`$as_dirname -- "$am_mf" ||
6215 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6216 X"$am_mf" : 'X\(//\)[^/]' \| \
6217 X"$am_mf" : 'X\(//\)$' \| \
6218 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6219 printf "%s\n" X"$am_mf" |
6220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6221 s//\1/
6222 q
6223 }
6224 /^X\(\/\/\)[^/].*/{
6225 s//\1/
6226 q
6227 }
6228 /^X\(\/\/\)$/{
6229 s//\1/
6230 q
6231 }
6232 /^X\(\/\).*/{
6233 s//\1/
6234 q
6235 }
6236 s/.*/./; q'`
6237 am_filepart=`$as_basename -- "$am_mf" ||
6238 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
6239 X"$am_mf" : 'X\(//\)$' \| \
6240 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6241 printf "%s\n" X/"$am_mf" |
6242 sed '/^.*\/\([^/][^/]*\)\/*$/{
6243 s//\1/
6244 q
6245 }
6246 /^X\/\(\/\/\)$/{
6247 s//\1/
6248 q
6249 }
6250 /^X\/\(\/\).*/{
6251 s//\1/
6252 q
6253 }
6254 s/.*/./; q'`
6255 { echo "$as_me:$LINENO: cd "$am_dirpart" \
6256 && sed -e '/# am--include-marker/d' "$am_filepart" \
6257 | $MAKE -f - am--depfiles" >&5
6258 (cd "$am_dirpart" \
6259 && sed -e '/# am--include-marker/d' "$am_filepart" \
6260 | $MAKE -f - am--depfiles) >&5 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } || am_rc=$?
6264 done
6265 if test $am_rc -ne 0; then
6266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6267 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6268 as_fn_error $? "Something went wrong bootstrapping makefile fragments
6269 for automatic dependency tracking. If GNU make was not used, consider
6270 re-running the configure script with MAKE=\"gmake\" (or whatever is
6271 necessary). You can also try re-running configure with the
6272 '--disable-dependency-tracking' option to at least be able to build
6273 the package (albeit without support for automatic dependency tracking).
6274 See 'config.log' for more details" "$LINENO" 5; }
6275 fi
6276 { am_dirpart=; unset am_dirpart;}
6277 { am_filepart=; unset am_filepart;}
6278 { am_mf=; unset am_mf;}
6279 { am_rc=; unset am_rc;}
6280 rm -f conftest-deps.mk
6281 }
6282 ;;
6283
6284 esac
6285 done # for ac_tag
6286
6287
6288 as_fn_exit 0
6289 _ACEOF
6290 ac_clean_files=$ac_clean_files_save
6291
6292 test $ac_write_fail = 0 ||
6293 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6294
6295
6296 # configure is writing to config.log, and then calls config.status.
6297 # config.status does its own redirection, appending to config.log.
6298 # Unfortunately, on DOS this fails, as config.log is still kept open
6299 # by configure, so config.status won't be able to write to it; its
6300 # output is simply discarded. So we exec the FD to /dev/null,
6301 # effectively closing config.log, so it can be properly (re)opened and
6302 # appended to by config.status. When coming back to configure, we
6303 # need to make the FD available again.
6304 if test "$no_create" != yes; then
6305 ac_cs_success=:
6306 ac_config_status_args=
6307 test "$silent" = yes &&
6308 ac_config_status_args="$ac_config_status_args --quiet"
6309 exec 5>/dev/null
6310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6311 exec 5>>config.log
6312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6313 # would make configure fail if this is the last instruction.
6314 $ac_cs_success || as_fn_exit 1
6315 fi
6316 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6318 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6319 fi
6320
6321