Debian Codegraph @

mingw-w64-tools/genpeimg/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-genpeimg 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-genpeimg'
605 PACKAGE_TARNAME='mingw-w64-genpeimg'
606 PACKAGE_VERSION='1.0'
607 PACKAGE_STRING='mingw-w64-genpeimg 1.0'
608 PACKAGE_BUGREPORT='[email protected]'
609 PACKAGE_URL=''
610
611 ac_unique_file="src/genpeimg.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-genpeimg 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-genpeimg]
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-genpeimg 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-genpeimg 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_check_type LINENO TYPE VAR INCLUDES
1564 # -------------------------------------------
1565 # Tests whether TYPE exists after having included INCLUDES, setting cache
1566 # variable VAR accordingly.
1567 ac_fn_c_check_type ()
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 $2" >&5
1571 printf %s "checking for $2... " >&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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578 /* end confdefs.h. */
1579 $4
1580 int
1581 main (void)
1582 {
1583 if (sizeof ($2))
1584 return 0;
1585 ;
1586 return 0;
1587 }
1588 _ACEOF
1589 if ac_fn_c_try_compile "$LINENO"
1590 then :
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1593 $4
1594 int
1595 main (void)
1596 {
1597 if (sizeof (($2)))
1598 return 0;
1599 ;
1600 return 0;
1601 }
1602 _ACEOF
1603 if ac_fn_c_try_compile "$LINENO"
1604 then :
1605
1606 else case e in #(
1607 e) eval "$3=yes" ;;
1608 esac
1609 fi
1610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1611 fi
1612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1613 esac
1614 fi
1615 eval ac_res=\$$3
1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617 printf "%s\n" "$ac_res" >&6; }
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619
1620 } # ac_fn_c_check_type
1621
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_link ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 printf "%s\n" "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 test -x conftest$ac_exeext
1650 }
1651 then :
1652 ac_retval=0
1653 else case e in #(
1654 e) printf "%s\n" "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1 ;;
1658 esac
1659 fi
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_link
1669
1670 # ac_fn_c_check_func LINENO FUNC VAR
1671 # ----------------------------------
1672 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1673 ac_fn_c_check_func ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 printf %s "checking for $2... " >&6; }
1678 if eval test \${$3+y}
1679 then :
1680 printf %s "(cached) " >&6
1681 else case e in #(
1682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1686 #define $2 innocuous_$2
1687
1688 /* System header to define __stub macros and hopefully few prototypes,
1689 which can conflict with char $2 (void); below. */
1690
1691 #include <limits.h>
1692 #undef $2
1693
1694 /* Override any GCC internal prototype to avoid an error.
1695 Use char because int might match the return type of a GCC
1696 builtin and then its argument prototype would still apply. */
1697 #ifdef __cplusplus
1698 extern "C"
1699 #endif
1700 char $2 (void);
1701 /* The GNU C library defines this for functions which it implements
1702 to always fail with ENOSYS. Some functions are actually named
1703 something starting with __ and the normal name is an alias. */
1704 #if defined __stub_$2 || defined __stub___$2
1705 choke me
1706 #endif
1707
1708 int
1709 main (void)
1710 {
1711 return $2 ();
1712 ;
1713 return 0;
1714 }
1715 _ACEOF
1716 if ac_fn_c_try_link "$LINENO"
1717 then :
1718 eval "$3=yes"
1719 else case e in #(
1720 e) eval "$3=no" ;;
1721 esac
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1724 conftest$ac_exeext conftest.$ac_ext ;;
1725 esac
1726 fi
1727 eval ac_res=\$$3
1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 printf "%s\n" "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_func
1733 ac_configure_args_raw=
1734 for ac_arg
1735 do
1736 case $ac_arg in
1737 *\'*)
1738 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1739 esac
1740 as_fn_append ac_configure_args_raw " '$ac_arg'"
1741 done
1742
1743 case $ac_configure_args_raw in
1744 *$as_nl*)
1745 ac_safe_unquote= ;;
1746 *)
1747 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1748 ac_unsafe_a="$ac_unsafe_z#~"
1749 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1750 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1751 esac
1752
1753 cat >config.log <<_ACEOF
1754 This file contains any messages produced by compilers while
1755 running configure, to aid debugging if configure makes a mistake.
1756
1757 It was created by mingw-w64-genpeimg $as_me 1.0, which was
1758 generated by GNU Autoconf 2.72. Invocation command line was
1759
1760 $ $0$ac_configure_args_raw
1761
1762 _ACEOF
1763 exec 5>>config.log
1764 {
1765 cat <<_ASUNAME
1766 ## --------- ##
1767 ## Platform. ##
1768 ## --------- ##
1769
1770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1775
1776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1777 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1778
1779 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1780 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1782 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1783 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1784 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1785 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1786
1787 _ASUNAME
1788
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792 IFS=$as_save_IFS
1793 case $as_dir in #(((
1794 '') as_dir=./ ;;
1795 */) ;;
1796 *) as_dir=$as_dir/ ;;
1797 esac
1798 printf "%s\n" "PATH: $as_dir"
1799 done
1800 IFS=$as_save_IFS
1801
1802 } >&5
1803
1804 cat >&5 <<_ACEOF
1805
1806
1807 ## ----------- ##
1808 ## Core tests. ##
1809 ## ----------- ##
1810
1811 _ACEOF
1812
1813
1814 # Keep a trace of the command line.
1815 # Strip out --no-create and --no-recursion so they do not pile up.
1816 # Strip out --silent because we don't want to record it for future runs.
1817 # Also quote any args containing shell meta-characters.
1818 # Make two passes to allow for proper duplicate-argument suppression.
1819 ac_configure_args=
1820 ac_configure_args0=
1821 ac_configure_args1=
1822 ac_must_keep_next=false
1823 for ac_pass in 1 2
1824 do
1825 for ac_arg
1826 do
1827 case $ac_arg in
1828 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1830 | -silent | --silent | --silen | --sile | --sil)
1831 continue ;;
1832 *\'*)
1833 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1834 esac
1835 case $ac_pass in
1836 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1837 2)
1838 as_fn_append ac_configure_args1 " '$ac_arg'"
1839 if test $ac_must_keep_next = true; then
1840 ac_must_keep_next=false # Got value, back to normal.
1841 else
1842 case $ac_arg in
1843 *=* | --config-cache | -C | -disable-* | --disable-* \
1844 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1845 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1846 | -with-* | --with-* | -without-* | --without-* | --x)
1847 case "$ac_configure_args0 " in
1848 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1849 esac
1850 ;;
1851 -* ) ac_must_keep_next=true ;;
1852 esac
1853 fi
1854 as_fn_append ac_configure_args " '$ac_arg'"
1855 ;;
1856 esac
1857 done
1858 done
1859 { ac_configure_args0=; unset ac_configure_args0;}
1860 { ac_configure_args1=; unset ac_configure_args1;}
1861
1862 # When interrupted or exit'd, cleanup temporary files, and complete
1863 # config.log. We remove comments because anyway the quotes in there
1864 # would cause problems or look ugly.
1865 # WARNING: Use '\'' to represent an apostrophe within the trap.
1866 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1867 trap 'exit_status=$?
1868 # Sanitize IFS.
1869 IFS=" "" $as_nl"
1870 # Save into config.log some information that might help in debugging.
1871 {
1872 echo
1873
1874 printf "%s\n" "## ---------------- ##
1875 ## Cache variables. ##
1876 ## ---------------- ##"
1877 echo
1878 # The following way of writing the cache mishandles newlines in values,
1879 (
1880 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1881 eval ac_val=\$$ac_var
1882 case $ac_val in #(
1883 *${as_nl}*)
1884 case $ac_var in #(
1885 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1886 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1887 esac
1888 case $ac_var in #(
1889 _ | IFS | as_nl) ;; #(
1890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1891 *) { eval $ac_var=; unset $ac_var;} ;;
1892 esac ;;
1893 esac
1894 done
1895 (set) 2>&1 |
1896 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1897 *${as_nl}ac_space=\ *)
1898 sed -n \
1899 "s/'\''/'\''\\\\'\'''\''/g;
1900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1901 ;; #(
1902 *)
1903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1904 ;;
1905 esac |
1906 sort
1907 )
1908 echo
1909
1910 printf "%s\n" "## ----------------- ##
1911 ## Output variables. ##
1912 ## ----------------- ##"
1913 echo
1914 for ac_var in $ac_subst_vars
1915 do
1916 eval ac_val=\$$ac_var
1917 case $ac_val in
1918 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1919 esac
1920 printf "%s\n" "$ac_var='\''$ac_val'\''"
1921 done | sort
1922 echo
1923
1924 if test -n "$ac_subst_files"; then
1925 printf "%s\n" "## ------------------- ##
1926 ## File substitutions. ##
1927 ## ------------------- ##"
1928 echo
1929 for ac_var in $ac_subst_files
1930 do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in
1933 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934 esac
1935 printf "%s\n" "$ac_var='\''$ac_val'\''"
1936 done | sort
1937 echo
1938 fi
1939
1940 if test -s confdefs.h; then
1941 printf "%s\n" "## ----------- ##
1942 ## confdefs.h. ##
1943 ## ----------- ##"
1944 echo
1945 cat confdefs.h
1946 echo
1947 fi
1948 test "$ac_signal" != 0 &&
1949 printf "%s\n" "$as_me: caught signal $ac_signal"
1950 printf "%s\n" "$as_me: exit $exit_status"
1951 } >&5
1952 rm -f core *.core core.conftest.* &&
1953 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1954 exit $exit_status
1955 ' 0
1956 for ac_signal in 1 2 13 15; do
1957 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1958 done
1959 ac_signal=0
1960
1961 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1962 rm -f -r conftest* confdefs.h
1963
1964 printf "%s\n" "/* confdefs.h */" > confdefs.h
1965
1966 # Predefined preprocessor variables.
1967
1968 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1969
1970 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1971
1972 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1973
1974 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1975
1976 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1977
1978 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1979
1980
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1983 if test -n "$CONFIG_SITE"; then
1984 ac_site_files="$CONFIG_SITE"
1985 elif test "x$prefix" != xNONE; then
1986 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1987 else
1988 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1989 fi
1990
1991 for ac_site_file in $ac_site_files
1992 do
1993 case $ac_site_file in #(
1994 */*) :
1995 ;; #(
1996 *) :
1997 ac_site_file=./$ac_site_file ;;
1998 esac
1999 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2001 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2002 sed 's/^/| /' "$ac_site_file" >&5
2003 . "$ac_site_file" \
2004 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2005 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2006 as_fn_error $? "failed to load site script $ac_site_file
2007 See 'config.log' for more details" "$LINENO" 5; }
2008 fi
2009 done
2010
2011 if test -r "$cache_file"; then
2012 # Some versions of bash will fail to source /dev/null (special files
2013 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2014 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2016 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2017 case $cache_file in
2018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2019 *) . "./$cache_file";;
2020 esac
2021 fi
2022 else
2023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2024 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2025 >$cache_file
2026 fi
2027
2028 # Test code for whether the C compiler supports C89 (global declarations)
2029 ac_c_conftest_c89_globals='
2030 /* Does the compiler advertise C89 conformance?
2031 Do not test the value of __STDC__, because some compilers set it to 0
2032 while being otherwise adequately conformant. */
2033 #if !defined __STDC__
2034 # error "Compiler does not advertise C89 conformance"
2035 #endif
2036
2037 #include <stddef.h>
2038 #include <stdarg.h>
2039 struct stat;
2040 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2041 struct buf { int x; };
2042 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2043 static char *e (char **p, int i)
2044 {
2045 return p[i];
2046 }
2047 static char *f (char * (*g) (char **, int), char **p, ...)
2048 {
2049 char *s;
2050 va_list v;
2051 va_start (v,p);
2052 s = g (p, va_arg (v,int));
2053 va_end (v);
2054 return s;
2055 }
2056
2057 /* C89 style stringification. */
2058 #define noexpand_stringify(a) #a
2059 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2060
2061 /* C89 style token pasting. Exercises some of the corner cases that
2062 e.g. old MSVC gets wrong, but not very hard. */
2063 #define noexpand_concat(a,b) a##b
2064 #define expand_concat(a,b) noexpand_concat(a,b)
2065 extern int vA;
2066 extern int vbee;
2067 #define aye A
2068 #define bee B
2069 int *pvA = &expand_concat(v,aye);
2070 int *pvbee = &noexpand_concat(v,bee);
2071
2072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2073 function prototypes and stuff, but not \xHH hex character constants.
2074 These do not provoke an error unfortunately, instead are silently treated
2075 as an "x". The following induces an error, until -std is added to get
2076 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2077 array size at least. It is necessary to write \x00 == 0 to get something
2078 that is true only with -std. */
2079 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2080
2081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2082 inside strings and character constants. */
2083 #define FOO(x) '\''x'\''
2084 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2085
2086 int test (int i, double x);
2087 struct s1 {int (*f) (int a);};
2088 struct s2 {int (*f) (double a);};
2089 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2090 int, int);'
2091
2092 # Test code for whether the C compiler supports C89 (body of main).
2093 ac_c_conftest_c89_main='
2094 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2095 '
2096
2097 # Test code for whether the C compiler supports C99 (global declarations)
2098 ac_c_conftest_c99_globals='
2099 /* Does the compiler advertise C99 conformance? */
2100 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2101 # error "Compiler does not advertise C99 conformance"
2102 #endif
2103
2104 // See if C++-style comments work.
2105
2106 #include <stdbool.h>
2107 extern int puts (const char *);
2108 extern int printf (const char *, ...);
2109 extern int dprintf (int, const char *, ...);
2110 extern void *malloc (size_t);
2111 extern void free (void *);
2112
2113 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2114 // dprintf is used instead of fprintf to avoid needing to declare
2115 // FILE and stderr.
2116 #define debug(...) dprintf (2, __VA_ARGS__)
2117 #define showlist(...) puts (#__VA_ARGS__)
2118 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2119 static void
2120 test_varargs_macros (void)
2121 {
2122 int x = 1234;
2123 int y = 5678;
2124 debug ("Flag");
2125 debug ("X = %d\n", x);
2126 showlist (The first, second, and third items.);
2127 report (x>y, "x is %d but y is %d", x, y);
2128 }
2129
2130 // Check long long types.
2131 #define BIG64 18446744073709551615ull
2132 #define BIG32 4294967295ul
2133 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2134 #if !BIG_OK
2135 #error "your preprocessor is broken"
2136 #endif
2137 #if BIG_OK
2138 #else
2139 #error "your preprocessor is broken"
2140 #endif
2141 static long long int bignum = -9223372036854775807LL;
2142 static unsigned long long int ubignum = BIG64;
2143
2144 struct incomplete_array
2145 {
2146 int datasize;
2147 double data[];
2148 };
2149
2150 struct named_init {
2151 int number;
2152 const wchar_t *name;
2153 double average;
2154 };
2155
2156 typedef const char *ccp;
2157
2158 static inline int
2159 test_restrict (ccp restrict text)
2160 {
2161 // Iterate through items via the restricted pointer.
2162 // Also check for declarations in for loops.
2163 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2164 continue;
2165 return 0;
2166 }
2167
2168 // Check varargs and va_copy.
2169 static bool
2170 test_varargs (const char *format, ...)
2171 {
2172 va_list args;
2173 va_start (args, format);
2174 va_list args_copy;
2175 va_copy (args_copy, args);
2176
2177 const char *str = "";
2178 int number = 0;
2179 float fnumber = 0;
2180
2181 while (*format)
2182 {
2183 switch (*format++)
2184 {
2185 case '\''s'\'': // string
2186 str = va_arg (args_copy, const char *);
2187 break;
2188 case '\''d'\'': // int
2189 number = va_arg (args_copy, int);
2190 break;
2191 case '\''f'\'': // float
2192 fnumber = va_arg (args_copy, double);
2193 break;
2194 default:
2195 break;
2196 }
2197 }
2198 va_end (args_copy);
2199 va_end (args);
2200
2201 return *str && number && fnumber;
2202 }
2203 '
2204
2205 # Test code for whether the C compiler supports C99 (body of main).
2206 ac_c_conftest_c99_main='
2207 // Check bool.
2208 _Bool success = false;
2209 success |= (argc != 0);
2210
2211 // Check restrict.
2212 if (test_restrict ("String literal") == 0)
2213 success = true;
2214 char *restrict newvar = "Another string";
2215
2216 // Check varargs.
2217 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2218 test_varargs_macros ();
2219
2220 // Check flexible array members.
2221 struct incomplete_array *ia =
2222 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2223 ia->datasize = 10;
2224 for (int i = 0; i < ia->datasize; ++i)
2225 ia->data[i] = i * 1.234;
2226 // Work around memory leak warnings.
2227 free (ia);
2228
2229 // Check named initializers.
2230 struct named_init ni = {
2231 .number = 34,
2232 .name = L"Test wide string",
2233 .average = 543.34343,
2234 };
2235
2236 ni.number = 58;
2237
2238 int dynamic_array[ni.number];
2239 dynamic_array[0] = argv[0][0];
2240 dynamic_array[ni.number - 1] = 543;
2241
2242 // work around unused variable warnings
2243 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2244 || dynamic_array[ni.number - 1] != 543);
2245 '
2246
2247 # Test code for whether the C compiler supports C11 (global declarations)
2248 ac_c_conftest_c11_globals='
2249 /* Does the compiler advertise C11 conformance? */
2250 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2251 # error "Compiler does not advertise C11 conformance"
2252 #endif
2253
2254 // Check _Alignas.
2255 char _Alignas (double) aligned_as_double;
2256 char _Alignas (0) no_special_alignment;
2257 extern char aligned_as_int;
2258 char _Alignas (0) _Alignas (int) aligned_as_int;
2259
2260 // Check _Alignof.
2261 enum
2262 {
2263 int_alignment = _Alignof (int),
2264 int_array_alignment = _Alignof (int[100]),
2265 char_alignment = _Alignof (char)
2266 };
2267 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2268
2269 // Check _Noreturn.
2270 int _Noreturn does_not_return (void) { for (;;) continue; }
2271
2272 // Check _Static_assert.
2273 struct test_static_assert
2274 {
2275 int x;
2276 _Static_assert (sizeof (int) <= sizeof (long int),
2277 "_Static_assert does not work in struct");
2278 long int y;
2279 };
2280
2281 // Check UTF-8 literals.
2282 #define u8 syntax error!
2283 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2284
2285 // Check duplicate typedefs.
2286 typedef long *long_ptr;
2287 typedef long int *long_ptr;
2288 typedef long_ptr long_ptr;
2289
2290 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2291 struct anonymous
2292 {
2293 union {
2294 struct { int i; int j; };
2295 struct { int k; long int l; } w;
2296 };
2297 int m;
2298 } v1;
2299 '
2300
2301 # Test code for whether the C compiler supports C11 (body of main).
2302 ac_c_conftest_c11_main='
2303 _Static_assert ((offsetof (struct anonymous, i)
2304 == offsetof (struct anonymous, w.k)),
2305 "Anonymous union alignment botch");
2306 v1.i = 2;
2307 v1.w.k = 5;
2308 ok |= v1.i != 5;
2309 '
2310
2311 # Test code for whether the C compiler supports C11 (complete).
2312 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2313 ${ac_c_conftest_c99_globals}
2314 ${ac_c_conftest_c11_globals}
2315
2316 int
2317 main (int argc, char **argv)
2318 {
2319 int ok = 0;
2320 ${ac_c_conftest_c89_main}
2321 ${ac_c_conftest_c99_main}
2322 ${ac_c_conftest_c11_main}
2323 return ok;
2324 }
2325 "
2326
2327 # Test code for whether the C compiler supports C99 (complete).
2328 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2329 ${ac_c_conftest_c99_globals}
2330
2331 int
2332 main (int argc, char **argv)
2333 {
2334 int ok = 0;
2335 ${ac_c_conftest_c89_main}
2336 ${ac_c_conftest_c99_main}
2337 return ok;
2338 }
2339 "
2340
2341 # Test code for whether the C compiler supports C89 (complete).
2342 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2343
2344 int
2345 main (int argc, char **argv)
2346 {
2347 int ok = 0;
2348 ${ac_c_conftest_c89_main}
2349 return ok;
2350 }
2351 "
2352
2353 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2354 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2355 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2356 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2357 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2358 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2359 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2360 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2361 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2362
2363 # Auxiliary files required by this configure script.
2364 ac_aux_files="compile config.guess config.sub missing install-sh"
2365
2366 # Locations in which to look for auxiliary files.
2367 ac_aux_dir_candidates="${srcdir}/build-aux"
2368
2369 # Search for a directory containing all of the required auxiliary files,
2370 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2371 # If we don't find one directory that contains all the files we need,
2372 # we report the set of missing files from the *first* directory in
2373 # $ac_aux_dir_candidates and give up.
2374 ac_missing_aux_files=""
2375 ac_first_candidate=:
2376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 as_found=false
2379 for as_dir in $ac_aux_dir_candidates
2380 do
2381 IFS=$as_save_IFS
2382 case $as_dir in #(((
2383 '') as_dir=./ ;;
2384 */) ;;
2385 *) as_dir=$as_dir/ ;;
2386 esac
2387 as_found=:
2388
2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2390 ac_aux_dir_found=yes
2391 ac_install_sh=
2392 for ac_aux in $ac_aux_files
2393 do
2394 # As a special case, if "install-sh" is required, that requirement
2395 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2396 # and $ac_install_sh is set appropriately for whichever one is found.
2397 if test x"$ac_aux" = x"install-sh"
2398 then
2399 if test -f "${as_dir}install-sh"; then
2400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2401 ac_install_sh="${as_dir}install-sh -c"
2402 elif test -f "${as_dir}install.sh"; then
2403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2404 ac_install_sh="${as_dir}install.sh -c"
2405 elif test -f "${as_dir}shtool"; then
2406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2407 ac_install_sh="${as_dir}shtool install -c"
2408 else
2409 ac_aux_dir_found=no
2410 if $ac_first_candidate; then
2411 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2412 else
2413 break
2414 fi
2415 fi
2416 else
2417 if test -f "${as_dir}${ac_aux}"; then
2418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2419 else
2420 ac_aux_dir_found=no
2421 if $ac_first_candidate; then
2422 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2423 else
2424 break
2425 fi
2426 fi
2427 fi
2428 done
2429 if test "$ac_aux_dir_found" = yes; then
2430 ac_aux_dir="$as_dir"
2431 break
2432 fi
2433 ac_first_candidate=false
2434
2435 as_found=false
2436 done
2437 IFS=$as_save_IFS
2438 if $as_found
2439 then :
2440
2441 else case e in #(
2442 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2443 esac
2444 fi
2445
2446
2447 # These three variables are undocumented and unsupported,
2448 # and are intended to be withdrawn in a future Autoconf release.
2449 # They can cause serious problems if a builder's source tree is in a directory
2450 # whose full name contains unusual characters.
2451 if test -f "${ac_aux_dir}config.guess"; then
2452 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2453 fi
2454 if test -f "${ac_aux_dir}config.sub"; then
2455 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2456 fi
2457 if test -f "$ac_aux_dir/configure"; then
2458 ac_configure="$SHELL ${ac_aux_dir}configure"
2459 fi
2460
2461 # Check that the precious variables saved in the cache have kept the same
2462 # value.
2463 ac_cache_corrupted=false
2464 for ac_var in $ac_precious_vars; do
2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2466 eval ac_new_set=\$ac_env_${ac_var}_set
2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2468 eval ac_new_val=\$ac_env_${ac_var}_value
2469 case $ac_old_set,$ac_new_set in
2470 set,)
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2472 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,set)
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2476 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2477 ac_cache_corrupted=: ;;
2478 ,);;
2479 *)
2480 if test "x$ac_old_val" != "x$ac_new_val"; then
2481 # differences in whitespace do not lead to failure.
2482 ac_old_val_w=`echo x $ac_old_val`
2483 ac_new_val_w=`echo x $ac_new_val`
2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2486 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2487 ac_cache_corrupted=:
2488 else
2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2490 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2491 eval $ac_var=\$ac_old_val
2492 fi
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2494 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2496 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2497 fi;;
2498 esac
2499 # Pass precious variables to config.status.
2500 if test "$ac_new_set" = set; then
2501 case $ac_new_val in
2502 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2503 *) ac_arg=$ac_var=$ac_new_val ;;
2504 esac
2505 case " $ac_configure_args " in
2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2508 esac
2509 fi
2510 done
2511 if $ac_cache_corrupted; then
2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2515 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2516 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2517 and start over" "$LINENO" 5
2518 fi
2519 ## -------------------- ##
2520 ## Main body of script. ##
2521 ## -------------------- ##
2522
2523 ac_ext=c
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530
2531
2532 ac_config_headers="$ac_config_headers config.h"
2533
2534
2535 am__api_version='1.16'
2536
2537
2538
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2545 # AIX /bin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 # Reject install programs that cannot install multiple files.
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2554 printf %s "checking for a BSD-compatible install... " >&6; }
2555 if test -z "$INSTALL"; then
2556 if test ${ac_cv_path_install+y}
2557 then :
2558 printf %s "(cached) " >&6
2559 else case e in #(
2560 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 case $as_dir in #(((
2565 '') as_dir=./ ;;
2566 */) ;;
2567 *) as_dir=$as_dir/ ;;
2568 esac
2569 # Account for fact that we put trailing slashes in our PATH walk.
2570 case $as_dir in #((
2571 ./ | /[cC]/* | \
2572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2573 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2574 /usr/ucb/* ) ;;
2575 *)
2576 # OSF1 and SCO ODT 3.0 have their own names for install.
2577 # Don't use installbsd from OSF since it installs stuff as root
2578 # by default.
2579 for ac_prog in ginstall scoinst install; do
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2582 if test $ac_prog = install &&
2583 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2584 # AIX install. It has an incompatible calling convention.
2585 :
2586 elif test $ac_prog = install &&
2587 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2588 # program-specific install script used by HP pwplus--don't use.
2589 :
2590 else
2591 rm -rf conftest.one conftest.two conftest.dir
2592 echo one > conftest.one
2593 echo two > conftest.two
2594 mkdir conftest.dir
2595 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2596 test -s conftest.one && test -s conftest.two &&
2597 test -s conftest.dir/conftest.one &&
2598 test -s conftest.dir/conftest.two
2599 then
2600 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2601 break 3
2602 fi
2603 fi
2604 fi
2605 done
2606 done
2607 ;;
2608 esac
2609
2610 done
2611 IFS=$as_save_IFS
2612
2613 rm -rf conftest.one conftest.two conftest.dir
2614 ;;
2615 esac
2616 fi
2617 if test ${ac_cv_path_install+y}; then
2618 INSTALL=$ac_cv_path_install
2619 else
2620 # As a last resort, use the slow shell script. Don't cache a
2621 # value for INSTALL within a source directory, because that will
2622 # break other packages using the cache if that directory is
2623 # removed, or if the value is a relative name.
2624 INSTALL=$ac_install_sh
2625 fi
2626 fi
2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2628 printf "%s\n" "$INSTALL" >&6; }
2629
2630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2631 # It thinks the first close brace ends the variable substitution.
2632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2633
2634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2635
2636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2637
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2639 printf %s "checking whether build environment is sane... " >&6; }
2640 # Reject unsafe characters in $srcdir or the absolute working directory
2641 # name. Accept space and tab only in the latter.
2642 am_lf='
2643 '
2644 case `pwd` in
2645 *[\\\"\#\$\&\'\`$am_lf]*)
2646 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2647 esac
2648 case $srcdir in
2649 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2650 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2651 esac
2652
2653 # Do 'set' in a subshell so we don't clobber the current shell's
2654 # arguments. Must try -L first in case configure is actually a
2655 # symlink; some systems play weird games with the mod time of symlinks
2656 # (eg FreeBSD returns the mod time of the symlink's containing
2657 # directory).
2658 if (
2659 am_has_slept=no
2660 for am_try in 1 2; do
2661 echo "timestamp, slept: $am_has_slept" > conftest.file
2662 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2663 if test "$*" = "X"; then
2664 # -L didn't work.
2665 set X `ls -t "$srcdir/configure" conftest.file`
2666 fi
2667 if test "$*" != "X $srcdir/configure conftest.file" \
2668 && test "$*" != "X conftest.file $srcdir/configure"; then
2669
2670 # If neither matched, then we have a broken ls. This can happen
2671 # if, for instance, CONFIG_SHELL is bash and it inherits a
2672 # broken ls alias from the environment. This has actually
2673 # happened. Such a system could not be considered "sane".
2674 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2675 alias in your environment" "$LINENO" 5
2676 fi
2677 if test "$2" = conftest.file || test $am_try -eq 2; then
2678 break
2679 fi
2680 # Just in case.
2681 sleep 1
2682 am_has_slept=yes
2683 done
2684 test "$2" = conftest.file
2685 )
2686 then
2687 # Ok.
2688 :
2689 else
2690 as_fn_error $? "newly created file is older than distributed files!
2691 Check your system clock" "$LINENO" 5
2692 fi
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2694 printf "%s\n" "yes" >&6; }
2695 # If we didn't sleep, we still need to ensure time stamps of config.status and
2696 # generated files are strictly newer.
2697 am_sleep_pid=
2698 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2699 ( sleep 1 ) &
2700 am_sleep_pid=$!
2701 fi
2702
2703 rm -f conftest.file
2704
2705 test "$program_prefix" != NONE &&
2706 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2707 # Use a double $ so make ignores it.
2708 test "$program_suffix" != NONE &&
2709 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2710 # Double any \ or $.
2711 # By default was 's,x,x', remove it if useless.
2712 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2713 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2714
2715
2716 # Expand $ac_aux_dir to an absolute path.
2717 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2718
2719
2720 if test x"${MISSING+set}" != xset; then
2721 MISSING="\${SHELL} '$am_aux_dir/missing'"
2722 fi
2723 # Use eval to expand $SHELL
2724 if eval "$MISSING --is-lightweight"; then
2725 am_missing_run="$MISSING "
2726 else
2727 am_missing_run=
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2729 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2730 fi
2731
2732 if test x"${install_sh+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2736 *)
2737 install_sh="\${SHELL} $am_aux_dir/install-sh"
2738 esac
2739 fi
2740
2741 # Installed binaries are usually stripped using 'strip' when the user
2742 # run "make install-strip". However 'strip' might not be the right
2743 # tool to use in cross-compilation environments, therefore Automake
2744 # will honor the 'STRIP' environment variable to overrule this program.
2745 if test "$cross_compiling" != no; then
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}strip; ac_word=$2
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 printf %s "checking for $ac_word... " >&6; }
2751 if test ${ac_cv_prog_STRIP+y}
2752 then :
2753 printf %s "(cached) " >&6
2754 else case e in #(
2755 e) if test -n "$STRIP"; then
2756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 case $as_dir in #(((
2763 '') as_dir=./ ;;
2764 */) ;;
2765 *) as_dir=$as_dir/ ;;
2766 esac
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 fi ;;
2778 esac
2779 fi
2780 STRIP=$ac_cv_prog_STRIP
2781 if test -n "$STRIP"; then
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2783 printf "%s\n" "$STRIP" >&6; }
2784 else
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 printf "%s\n" "no" >&6; }
2787 fi
2788
2789
2790 fi
2791 if test -z "$ac_cv_prog_STRIP"; then
2792 ac_ct_STRIP=$STRIP
2793 # Extract the first word of "strip", so it can be a program name with args.
2794 set dummy strip; ac_word=$2
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 printf %s "checking for $ac_word... " >&6; }
2797 if test ${ac_cv_prog_ac_ct_STRIP+y}
2798 then :
2799 printf %s "(cached) " >&6
2800 else case e in #(
2801 e) if test -n "$ac_ct_STRIP"; then
2802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 case $as_dir in #(((
2809 '') as_dir=./ ;;
2810 */) ;;
2811 *) as_dir=$as_dir/ ;;
2812 esac
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_ac_ct_STRIP="strip"
2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi ;;
2824 esac
2825 fi
2826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2827 if test -n "$ac_ct_STRIP"; then
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2829 printf "%s\n" "$ac_ct_STRIP" >&6; }
2830 else
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 printf "%s\n" "no" >&6; }
2833 fi
2834
2835 if test "x$ac_ct_STRIP" = x; then
2836 STRIP=":"
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 STRIP=$ac_ct_STRIP
2845 fi
2846 else
2847 STRIP="$ac_cv_prog_STRIP"
2848 fi
2849
2850 fi
2851 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2852
2853
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2855 printf %s "checking for a race-free mkdir -p... " >&6; }
2856 if test -z "$MKDIR_P"; then
2857 if test ${ac_cv_path_mkdir+y}
2858 then :
2859 printf %s "(cached) " >&6
2860 else case e in #(
2861 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2863 do
2864 IFS=$as_save_IFS
2865 case $as_dir in #(((
2866 '') as_dir=./ ;;
2867 */) ;;
2868 *) as_dir=$as_dir/ ;;
2869 esac
2870 for ac_prog in mkdir gmkdir; do
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2873 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2874 'mkdir ('*'coreutils) '* | \
2875 *'BusyBox '* | \
2876 'mkdir (fileutils) '4.1*)
2877 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2878 break 3;;
2879 esac
2880 done
2881 done
2882 done
2883 IFS=$as_save_IFS
2884 ;;
2885 esac
2886 fi
2887
2888 test -d ./--version && rmdir ./--version
2889 if test ${ac_cv_path_mkdir+y}; then
2890 MKDIR_P="$ac_cv_path_mkdir -p"
2891 else
2892 # As a last resort, use plain mkdir -p,
2893 # in the hope it doesn't have the bugs of ancient mkdir.
2894 MKDIR_P='mkdir -p'
2895 fi
2896 fi
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898 printf "%s\n" "$MKDIR_P" >&6; }
2899
2900 for ac_prog in gawk mawk nawk awk
2901 do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 printf %s "checking for $ac_word... " >&6; }
2906 if test ${ac_cv_prog_AWK+y}
2907 then :
2908 printf %s "(cached) " >&6
2909 else case e in #(
2910 e) if test -n "$AWK"; then
2911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 case $as_dir in #(((
2918 '') as_dir=./ ;;
2919 */) ;;
2920 *) as_dir=$as_dir/ ;;
2921 esac
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_AWK="$ac_prog"
2925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi ;;
2933 esac
2934 fi
2935 AWK=$ac_cv_prog_AWK
2936 if test -n "$AWK"; then
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938 printf "%s\n" "$AWK" >&6; }
2939 else
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 printf "%s\n" "no" >&6; }
2942 fi
2943
2944
2945 test -n "$AWK" && break
2946 done
2947
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950 set x ${MAKE-make}
2951 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2953 then :
2954 printf %s "(cached) " >&6
2955 else case e in #(
2956 e) cat >conftest.make <<\_ACEOF
2957 SHELL = /bin/sh
2958 all:
2959 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960 _ACEOF
2961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 *@@@%%%=?*=@@@%%%*)
2964 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 *)
2966 eval ac_cv_prog_make_${ac_make}_set=no;;
2967 esac
2968 rm -f conftest.make ;;
2969 esac
2970 fi
2971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 printf "%s\n" "yes" >&6; }
2974 SET_MAKE=
2975 else
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 printf "%s\n" "no" >&6; }
2978 SET_MAKE="MAKE=${MAKE-make}"
2979 fi
2980
2981 rm -rf .tst 2>/dev/null
2982 mkdir .tst 2>/dev/null
2983 if test -d .tst; then
2984 am__leading_dot=.
2985 else
2986 am__leading_dot=_
2987 fi
2988 rmdir .tst 2>/dev/null
2989
2990 # Check whether --enable-silent-rules was given.
2991 if test ${enable_silent_rules+y}
2992 then :
2993 enableval=$enable_silent_rules;
2994 fi
2995
2996 case $enable_silent_rules in # (((
2997 yes) AM_DEFAULT_VERBOSITY=0;;
2998 no) AM_DEFAULT_VERBOSITY=1;;
2999 *) AM_DEFAULT_VERBOSITY=1;;
3000 esac
3001 am_make=${MAKE-make}
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3003 printf %s "checking whether $am_make supports nested variables... " >&6; }
3004 if test ${am_cv_make_support_nested_variables+y}
3005 then :
3006 printf %s "(cached) " >&6
3007 else case e in #(
3008 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3009 BAR0=false
3010 BAR1=true
3011 V=1
3012 am__doit:
3013 @$(TRUE)
3014 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3015 am_cv_make_support_nested_variables=yes
3016 else
3017 am_cv_make_support_nested_variables=no
3018 fi ;;
3019 esac
3020 fi
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3022 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3023 if test $am_cv_make_support_nested_variables = yes; then
3024 AM_V='$(V)'
3025 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3026 else
3027 AM_V=$AM_DEFAULT_VERBOSITY
3028 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3029 fi
3030 AM_BACKSLASH='\'
3031
3032 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3033 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3034 # is not polluted with repeated "-I."
3035 am__isrc=' -I$(srcdir)'
3036 # test to see if srcdir already configured
3037 if test -f $srcdir/config.status; then
3038 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3039 fi
3040 fi
3041
3042 # test whether we have cygpath
3043 if test -z "$CYGPATH_W"; then
3044 if (cygpath --version) >/dev/null 2>/dev/null; then
3045 CYGPATH_W='cygpath -w'
3046 else
3047 CYGPATH_W=echo
3048 fi
3049 fi
3050
3051
3052 # Define the identity of the package.
3053 PACKAGE='mingw-w64-genpeimg'
3054 VERSION='1.0'
3055
3056
3057 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3058
3059
3060 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3061
3062 # Some tools Automake needs.
3063
3064 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3065
3066
3067 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3068
3069
3070 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3071
3072
3073 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3074
3075
3076 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3077
3078 # For better backward compatibility. To be removed once Automake 1.9.x
3079 # dies out for good. For more background, see:
3080 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3081 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3082 mkdir_p='$(MKDIR_P)'
3083
3084 # We need awk for the "check" target (and possibly the TAP driver). The
3085 # system "awk" is bad on some platforms.
3086 # Always define AMTAR for backward compatibility. Yes, it's still used
3087 # in the wild :-( We should find a proper way to deprecate it ...
3088 AMTAR='$${TAR-tar}'
3089
3090
3091 # We'll loop over all known methods to create a tar archive until one works.
3092 _am_tools='gnutar pax cpio none'
3093
3094 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3095
3096
3097
3098
3099
3100 # Variables for tags utilities; see am/tags.am
3101 if test -z "$CTAGS"; then
3102 CTAGS=ctags
3103 fi
3104
3105 if test -z "$ETAGS"; then
3106 ETAGS=etags
3107 fi
3108
3109 if test -z "$CSCOPE"; then
3110 CSCOPE=cscope
3111 fi
3112
3113
3114
3115 # POSIX will say in a future version that running "rm -f" with no argument
3116 # is OK; and we want to be able to make that assumption in our Makefile
3117 # recipes. So use an aggressive probe to check that the usage we want is
3118 # actually supported "in the wild" to an acceptable degree.
3119 # See automake bug#10828.
3120 # To make any issue more visible, cause the running configure to be aborted
3121 # by default if the 'rm' program in use doesn't match our expectations; the
3122 # user can still override this though.
3123 if rm -f && rm -fr && rm -rf; then : OK; else
3124 cat >&2 <<'END'
3125 Oops!
3126
3127 Your 'rm' program seems unable to run without file operands specified
3128 on the command line, even when the '-f' option is present. This is contrary
3129 to the behaviour of most rm programs out there, and not conforming with
3130 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3131
3132 Please tell [email protected] about your system, including the value
3133 of your $PATH and any error possibly output before this message. This
3134 can help us improve future automake versions.
3135
3136 END
3137 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3138 echo 'Configuration will proceed anyway, since you have set the' >&2
3139 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3140 echo >&2
3141 else
3142 cat >&2 <<'END'
3143 Aborting the configuration process, to ensure you take notice of the issue.
3144
3145 You can download and install GNU coreutils to get an 'rm' implementation
3146 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3147
3148 If you want to complete the configuration process using your problematic
3149 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3150 to "yes", and re-run configure.
3151
3152 END
3153 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3154 fi
3155 fi
3156
3157
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3159 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3160 # Check whether --enable-maintainer-mode was given.
3161 if test ${enable_maintainer_mode+y}
3162 then :
3163 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3164 else case e in #(
3165 e) USE_MAINTAINER_MODE=no ;;
3166 esac
3167 fi
3168
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3170 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3171 if test $USE_MAINTAINER_MODE = yes; then
3172 MAINTAINER_MODE_TRUE=
3173 MAINTAINER_MODE_FALSE='#'
3174 else
3175 MAINTAINER_MODE_TRUE='#'
3176 MAINTAINER_MODE_FALSE=
3177 fi
3178
3179 MAINT=$MAINTAINER_MODE_TRUE
3180
3181
3182
3183
3184
3185 # Make sure we can run config.sub.
3186 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3187 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3188
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3190 printf %s "checking build system type... " >&6; }
3191 if test ${ac_cv_build+y}
3192 then :
3193 printf %s "(cached) " >&6
3194 else case e in #(
3195 e) ac_build_alias=$build_alias
3196 test "x$ac_build_alias" = x &&
3197 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3198 test "x$ac_build_alias" = x &&
3199 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3200 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3201 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3202 ;;
3203 esac
3204 fi
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3206 printf "%s\n" "$ac_cv_build" >&6; }
3207 case $ac_cv_build in
3208 *-*-*) ;;
3209 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3210 esac
3211 build=$ac_cv_build
3212 ac_save_IFS=$IFS; IFS='-'
3213 set x $ac_cv_build
3214 shift
3215 build_cpu=$1
3216 build_vendor=$2
3217 shift; shift
3218 # Remember, the first character of IFS is used to create $*,
3219 # except with old shells:
3220 build_os=$*
3221 IFS=$ac_save_IFS
3222 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3223
3224
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3226 printf %s "checking host system type... " >&6; }
3227 if test ${ac_cv_host+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else case e in #(
3231 e) if test "x$host_alias" = x; then
3232 ac_cv_host=$ac_cv_build
3233 else
3234 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3235 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3236 fi
3237 ;;
3238 esac
3239 fi
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3241 printf "%s\n" "$ac_cv_host" >&6; }
3242 case $ac_cv_host in
3243 *-*-*) ;;
3244 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3245 esac
3246 host=$ac_cv_host
3247 ac_save_IFS=$IFS; IFS='-'
3248 set x $ac_cv_host
3249 shift
3250 host_cpu=$1
3251 host_vendor=$2
3252 shift; shift
3253 # Remember, the first character of IFS is used to create $*,
3254 # except with old shells:
3255 host_os=$*
3256 IFS=$ac_save_IFS
3257 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3258
3259
3260
3261 # Checks for programs.
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 printf %s "checking for $ac_word... " >&6; }
3281 if test ${ac_cv_prog_CC+y}
3282 then :
3283 printf %s "(cached) " >&6
3284 else case e in #(
3285 e) if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291 IFS=$as_save_IFS
3292 case $as_dir in #(((
3293 '') as_dir=./ ;;
3294 */) ;;
3295 *) as_dir=$as_dir/ ;;
3296 esac
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi ;;
3308 esac
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 printf "%s\n" "$CC" >&6; }
3314 else
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 printf "%s\n" "no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$ac_cv_prog_CC"; then
3322 ac_ct_CC=$CC
3323 # Extract the first word of "gcc", so it can be a program name with args.
3324 set dummy gcc; ac_word=$2
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 printf %s "checking for $ac_word... " >&6; }
3327 if test ${ac_cv_prog_ac_ct_CC+y}
3328 then :
3329 printf %s "(cached) " >&6
3330 else case e in #(
3331 e) if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 case $as_dir in #(((
3339 '') as_dir=./ ;;
3340 */) ;;
3341 *) as_dir=$as_dir/ ;;
3342 esac
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_ac_ct_CC="gcc"
3346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi ;;
3354 esac
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 printf "%s\n" "$ac_ct_CC" >&6; }
3360 else
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 printf "%s\n" "no" >&6; }
3363 fi
3364
3365 if test "x$ac_ct_CC" = x; then
3366 CC=""
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374 CC=$ac_ct_CC
3375 fi
3376 else
3377 CC="$ac_cv_prog_CC"
3378 fi
3379
3380 if test -z "$CC"; then
3381 if test -n "$ac_tool_prefix"; then
3382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3383 set dummy ${ac_tool_prefix}cc; ac_word=$2
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 printf %s "checking for $ac_word... " >&6; }
3386 if test ${ac_cv_prog_CC+y}
3387 then :
3388 printf %s "(cached) " >&6
3389 else case e in #(
3390 e) if test -n "$CC"; then
3391 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 case $as_dir in #(((
3398 '') as_dir=./ ;;
3399 */) ;;
3400 *) as_dir=$as_dir/ ;;
3401 esac
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_CC="${ac_tool_prefix}cc"
3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi ;;
3413 esac
3414 fi
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 printf "%s\n" "$CC" >&6; }
3419 else
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422 fi
3423
3424
3425 fi
3426 fi
3427 if test -z "$CC"; then
3428 # Extract the first word of "cc", so it can be a program name with args.
3429 set dummy cc; ac_word=$2
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 printf %s "checking for $ac_word... " >&6; }
3432 if test ${ac_cv_prog_CC+y}
3433 then :
3434 printf %s "(cached) " >&6
3435 else case e in #(
3436 e) if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438 else
3439 ac_prog_rejected=no
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443 IFS=$as_save_IFS
3444 case $as_dir in #(((
3445 '') as_dir=./ ;;
3446 */) ;;
3447 *) as_dir=$as_dir/ ;;
3448 esac
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3451 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452 ac_prog_rejected=yes
3453 continue
3454 fi
3455 ac_cv_prog_CC="cc"
3456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 if test $ac_prog_rejected = yes; then
3464 # We found a bogon in the path, so make sure we never use it.
3465 set dummy $ac_cv_prog_CC
3466 shift
3467 if test $# != 0; then
3468 # We chose a different compiler from the bogus one.
3469 # However, it has the same basename, so the bogon will be chosen
3470 # first if we set CC to just the basename; use the full file name.
3471 shift
3472 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3473 fi
3474 fi
3475 fi ;;
3476 esac
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 printf "%s\n" "$CC" >&6; }
3482 else
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 printf "%s\n" "no" >&6; }
3485 fi
3486
3487
3488 fi
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl.exe
3492 do
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 printf %s "checking for $ac_word... " >&6; }
3497 if test ${ac_cv_prog_CC+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else case e in #(
3501 e) if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 case $as_dir in #(((
3509 '') as_dir=./ ;;
3510 */) ;;
3511 *) as_dir=$as_dir/ ;;
3512 esac
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 fi ;;
3524 esac
3525 fi
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 printf "%s\n" "$CC" >&6; }
3530 else
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 printf "%s\n" "no" >&6; }
3533 fi
3534
3535
3536 test -n "$CC" && break
3537 done
3538 fi
3539 if test -z "$CC"; then
3540 ac_ct_CC=$CC
3541 for ac_prog in cl.exe
3542 do
3543 # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 printf %s "checking for $ac_word... " >&6; }
3547 if test ${ac_cv_prog_ac_ct_CC+y}
3548 then :
3549 printf %s "(cached) " >&6
3550 else case e in #(
3551 e) if test -n "$ac_ct_CC"; then
3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 case $as_dir in #(((
3559 '') as_dir=./ ;;
3560 */) ;;
3561 *) as_dir=$as_dir/ ;;
3562 esac
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_ac_ct_CC="$ac_prog"
3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi ;;
3574 esac
3575 fi
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579 printf "%s\n" "$ac_ct_CC" >&6; }
3580 else
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3583 fi
3584
3585
3586 test -n "$ac_ct_CC" && break
3587 done
3588
3589 if test "x$ac_ct_CC" = x; then
3590 CC=""
3591 else
3592 case $cross_compiling:$ac_tool_warned in
3593 yes:)
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned=yes ;;
3597 esac
3598 CC=$ac_ct_CC
3599 fi
3600 fi
3601
3602 fi
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}clang; ac_word=$2
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 printf %s "checking for $ac_word... " >&6; }
3609 if test ${ac_cv_prog_CC+y}
3610 then :
3611 printf %s "(cached) " >&6
3612 else case e in #(
3613 e) if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619 IFS=$as_save_IFS
3620 case $as_dir in #(((
3621 '') as_dir=./ ;;
3622 */) ;;
3623 *) as_dir=$as_dir/ ;;
3624 esac
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_CC="${ac_tool_prefix}clang"
3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631 done
3632 done
3633 IFS=$as_save_IFS
3634
3635 fi ;;
3636 esac
3637 fi
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 printf "%s\n" "$CC" >&6; }
3642 else
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 printf "%s\n" "no" >&6; }
3645 fi
3646
3647
3648 fi
3649 if test -z "$ac_cv_prog_CC"; then
3650 ac_ct_CC=$CC
3651 # Extract the first word of "clang", so it can be a program name with args.
3652 set dummy clang; ac_word=$2
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 printf %s "checking for $ac_word... " >&6; }
3655 if test ${ac_cv_prog_ac_ct_CC+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else case e in #(
3659 e) if test -n "$ac_ct_CC"; then
3660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 case $as_dir in #(((
3667 '') as_dir=./ ;;
3668 */) ;;
3669 *) as_dir=$as_dir/ ;;
3670 esac
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_ac_ct_CC="clang"
3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi ;;
3682 esac
3683 fi
3684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687 printf "%s\n" "$ac_ct_CC" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693 if test "x$ac_ct_CC" = x; then
3694 CC=""
3695 else
3696 case $cross_compiling:$ac_tool_warned in
3697 yes:)
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3700 ac_tool_warned=yes ;;
3701 esac
3702 CC=$ac_ct_CC
3703 fi
3704 else
3705 CC="$ac_cv_prog_CC"
3706 fi
3707
3708 fi
3709
3710
3711 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3712 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3713 as_fn_error $? "no acceptable C compiler found in \$PATH
3714 See 'config.log' for more details" "$LINENO" 5; }
3715
3716 # Provide some information about the compiler.
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3718 set X $ac_compile
3719 ac_compiler=$2
3720 for ac_option in --version -v -V -qversion -version; do
3721 { { ac_try="$ac_compiler $ac_option >&5"
3722 case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 printf "%s\n" "$ac_try_echo"; } >&5
3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3729 ac_status=$?
3730 if test -s conftest.err; then
3731 sed '10a\
3732 ... rest of stderr output deleted ...
3733 10q' conftest.err >conftest.er1
3734 cat conftest.er1 >&5
3735 fi
3736 rm -f conftest.er1 conftest.err
3737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3739 done
3740
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main (void)
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 ac_clean_files_save=$ac_clean_files
3753 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3754 # Try to create an executable without -o first, disregard a.out.
3755 # It will help us diagnose broken compilers, and finding out an intuition
3756 # of exeext.
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758 printf %s "checking whether the C compiler works... " >&6; }
3759 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3760
3761 # The possible output files:
3762 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3763
3764 ac_rmfiles=
3765 for ac_file in $ac_files
3766 do
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770 esac
3771 done
3772 rm -f $ac_rmfiles
3773
3774 if { { ac_try="$ac_link_default"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 printf "%s\n" "$ac_try_echo"; } >&5
3781 (eval "$ac_link_default") 2>&5
3782 ac_status=$?
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }
3785 then :
3786 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3787 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3789 # so that the user can short-circuit this test for compilers unknown to
3790 # Autoconf.
3791 for ac_file in $ac_files ''
3792 do
3793 test -f "$ac_file" || continue
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3796 ;;
3797 [ab].out )
3798 # We found the default executable, but exeext='' is most
3799 # certainly right.
3800 break;;
3801 *.* )
3802 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3803 then :; else
3804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 fi
3806 # We set ac_cv_exeext here because the later test for it is not
3807 # safe: cross compilers may not add the suffix if given an '-o'
3808 # argument, so we may need to know it at that point already.
3809 # Even if this section looks crufty: it has the advantage of
3810 # actually working.
3811 break;;
3812 * )
3813 break;;
3814 esac
3815 done
3816 test "$ac_cv_exeext" = no && ac_cv_exeext=
3817
3818 else case e in #(
3819 e) ac_file='' ;;
3820 esac
3821 fi
3822 if test -z "$ac_file"
3823 then :
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 printf "%s\n" "no" >&6; }
3826 printf "%s\n" "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3830 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3831 as_fn_error 77 "C compiler cannot create executables
3832 See 'config.log' for more details" "$LINENO" 5; }
3833 else case e in #(
3834 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3835 printf "%s\n" "yes" >&6; } ;;
3836 esac
3837 fi
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3839 printf %s "checking for C compiler default output file name... " >&6; }
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3841 printf "%s\n" "$ac_file" >&6; }
3842 ac_exeext=$ac_cv_exeext
3843
3844 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3845 ac_clean_files=$ac_clean_files_save
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3847 printf %s "checking for suffix of executables... " >&6; }
3848 if { { ac_try="$ac_link"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 printf "%s\n" "$ac_try_echo"; } >&5
3855 (eval "$ac_link") 2>&5
3856 ac_status=$?
3857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }
3859 then :
3860 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3861 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3862 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3863 # 'rm'.
3864 for ac_file in conftest.exe conftest conftest.*; do
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3869 break;;
3870 * ) break;;
3871 esac
3872 done
3873 else case e in #(
3874 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3875 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3876 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3877 See 'config.log' for more details" "$LINENO" 5; } ;;
3878 esac
3879 fi
3880 rm -f conftest conftest$ac_cv_exeext
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3882 printf "%s\n" "$ac_cv_exeext" >&6; }
3883
3884 rm -f conftest.$ac_ext
3885 EXEEXT=$ac_cv_exeext
3886 ac_exeext=$EXEEXT
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889 #include <stdio.h>
3890 int
3891 main (void)
3892 {
3893 FILE *f = fopen ("conftest.out", "w");
3894 if (!f)
3895 return 1;
3896 return ferror (f) || fclose (f) != 0;
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 ac_clean_files="$ac_clean_files conftest.out"
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906 printf %s "checking whether we are cross compiling... " >&6; }
3907 if test "$cross_compiling" != yes; then
3908 { { ac_try="$ac_link"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 printf "%s\n" "$ac_try_echo"; } >&5
3915 (eval "$ac_link") 2>&5
3916 ac_status=$?
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }
3919 if { ac_try='./conftest$ac_cv_exeext'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 printf "%s\n" "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3927 ac_status=$?
3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3930 cross_compiling=no
3931 else
3932 if test "$cross_compiling" = maybe; then
3933 cross_compiling=yes
3934 else
3935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3936 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3937 as_fn_error 77 "cannot run C compiled programs.
3938 If you meant to cross compile, use '--host'.
3939 See 'config.log' for more details" "$LINENO" 5; }
3940 fi
3941 fi
3942 fi
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 printf "%s\n" "$cross_compiling" >&6; }
3945
3946 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3947 conftest.o conftest.obj conftest.out
3948 ac_clean_files=$ac_clean_files_save
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3950 printf %s "checking for suffix of object files... " >&6; }
3951 if test ${ac_cv_objext+y}
3952 then :
3953 printf %s "(cached) " >&6
3954 else case e in #(
3955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957
3958 int
3959 main (void)
3960 {
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try="$ac_compile"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 printf "%s\n" "$ac_try_echo"; } >&5
3974 (eval "$ac_compile") 2>&5
3975 ac_status=$?
3976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }
3978 then :
3979 for ac_file in conftest.o conftest.obj conftest.*; do
3980 test -f "$ac_file" || continue;
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3984 break;;
3985 esac
3986 done
3987 else case e in #(
3988 e) printf "%s\n" "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3992 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3993 as_fn_error $? "cannot compute suffix of object files: cannot compile
3994 See 'config.log' for more details" "$LINENO" 5; } ;;
3995 esac
3996 fi
3997 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3998 esac
3999 fi
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4001 printf "%s\n" "$ac_cv_objext" >&6; }
4002 OBJEXT=$ac_cv_objext
4003 ac_objext=$OBJEXT
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4005 printf %s "checking whether the compiler supports GNU C... " >&6; }
4006 if test ${ac_cv_c_compiler_gnu+y}
4007 then :
4008 printf %s "(cached) " >&6
4009 else case e in #(
4010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main (void)
4015 {
4016 #ifndef __GNUC__
4017 choke me
4018 #endif
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"
4025 then :
4026 ac_compiler_gnu=yes
4027 else case e in #(
4028 e) ac_compiler_gnu=no ;;
4029 esac
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 ;;
4034 esac
4035 fi
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4037 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 if test $ac_compiler_gnu = yes; then
4041 GCC=yes
4042 else
4043 GCC=
4044 fi
4045 ac_test_CFLAGS=${CFLAGS+y}
4046 ac_save_CFLAGS=$CFLAGS
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4048 printf %s "checking whether $CC accepts -g... " >&6; }
4049 if test ${ac_cv_prog_cc_g+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else case e in #(
4053 e) ac_save_c_werror_flag=$ac_c_werror_flag
4054 ac_c_werror_flag=yes
4055 ac_cv_prog_cc_g=no
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main (void)
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"
4069 then :
4070 ac_cv_prog_cc_g=yes
4071 else case e in #(
4072 e) CFLAGS=""
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075
4076 int
4077 main (void)
4078 {
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"
4085 then :
4086
4087 else case e in #(
4088 e) ac_c_werror_flag=$ac_save_c_werror_flag
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main (void)
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"
4102 then :
4103 ac_cv_prog_cc_g=yes
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4106 esac
4107 fi
4108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4109 esac
4110 fi
4111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4112 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4113 esac
4114 fi
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4116 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4117 if test $ac_test_CFLAGS; then
4118 CFLAGS=$ac_save_CFLAGS
4119 elif test $ac_cv_prog_cc_g = yes; then
4120 if test "$GCC" = yes; then
4121 CFLAGS="-g -O2"
4122 else
4123 CFLAGS="-g"
4124 fi
4125 else
4126 if test "$GCC" = yes; then
4127 CFLAGS="-O2"
4128 else
4129 CFLAGS=
4130 fi
4131 fi
4132 ac_prog_cc_stdc=no
4133 if test x$ac_prog_cc_stdc = xno
4134 then :
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4136 printf %s "checking for $CC option to enable C11 features... " >&6; }
4137 if test ${ac_cv_prog_cc_c11+y}
4138 then :
4139 printf %s "(cached) " >&6
4140 else case e in #(
4141 e) ac_cv_prog_cc_c11=no
4142 ac_save_CC=$CC
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 $ac_c_conftest_c11_program
4146 _ACEOF
4147 for ac_arg in '' -std=gnu11
4148 do
4149 CC="$ac_save_CC $ac_arg"
4150 if ac_fn_c_try_compile "$LINENO"
4151 then :
4152 ac_cv_prog_cc_c11=$ac_arg
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.beam
4155 test "x$ac_cv_prog_cc_c11" != "xno" && break
4156 done
4157 rm -f conftest.$ac_ext
4158 CC=$ac_save_CC ;;
4159 esac
4160 fi
4161
4162 if test "x$ac_cv_prog_cc_c11" = xno
4163 then :
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4165 printf "%s\n" "unsupported" >&6; }
4166 else case e in #(
4167 e) if test "x$ac_cv_prog_cc_c11" = x
4168 then :
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170 printf "%s\n" "none needed" >&6; }
4171 else case e in #(
4172 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4173 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4174 CC="$CC $ac_cv_prog_cc_c11" ;;
4175 esac
4176 fi
4177 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4178 ac_prog_cc_stdc=c11 ;;
4179 esac
4180 fi
4181 fi
4182 if test x$ac_prog_cc_stdc = xno
4183 then :
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4185 printf %s "checking for $CC option to enable C99 features... " >&6; }
4186 if test ${ac_cv_prog_cc_c99+y}
4187 then :
4188 printf %s "(cached) " >&6
4189 else case e in #(
4190 e) ac_cv_prog_cc_c99=no
4191 ac_save_CC=$CC
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 $ac_c_conftest_c99_program
4195 _ACEOF
4196 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4197 do
4198 CC="$ac_save_CC $ac_arg"
4199 if ac_fn_c_try_compile "$LINENO"
4200 then :
4201 ac_cv_prog_cc_c99=$ac_arg
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.beam
4204 test "x$ac_cv_prog_cc_c99" != "xno" && break
4205 done
4206 rm -f conftest.$ac_ext
4207 CC=$ac_save_CC ;;
4208 esac
4209 fi
4210
4211 if test "x$ac_cv_prog_cc_c99" = xno
4212 then :
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 printf "%s\n" "unsupported" >&6; }
4215 else case e in #(
4216 e) if test "x$ac_cv_prog_cc_c99" = x
4217 then :
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4219 printf "%s\n" "none needed" >&6; }
4220 else case e in #(
4221 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4222 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4223 CC="$CC $ac_cv_prog_cc_c99" ;;
4224 esac
4225 fi
4226 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4227 ac_prog_cc_stdc=c99 ;;
4228 esac
4229 fi
4230 fi
4231 if test x$ac_prog_cc_stdc = xno
4232 then :
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4234 printf %s "checking for $CC option to enable C89 features... " >&6; }
4235 if test ${ac_cv_prog_cc_c89+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else case e in #(
4239 e) ac_cv_prog_cc_c89=no
4240 ac_save_CC=$CC
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 $ac_c_conftest_c89_program
4244 _ACEOF
4245 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 do
4247 CC="$ac_save_CC $ac_arg"
4248 if ac_fn_c_try_compile "$LINENO"
4249 then :
4250 ac_cv_prog_cc_c89=$ac_arg
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext conftest.beam
4253 test "x$ac_cv_prog_cc_c89" != "xno" && break
4254 done
4255 rm -f conftest.$ac_ext
4256 CC=$ac_save_CC ;;
4257 esac
4258 fi
4259
4260 if test "x$ac_cv_prog_cc_c89" = xno
4261 then :
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4263 printf "%s\n" "unsupported" >&6; }
4264 else case e in #(
4265 e) if test "x$ac_cv_prog_cc_c89" = x
4266 then :
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4268 printf "%s\n" "none needed" >&6; }
4269 else case e in #(
4270 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4271 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4272 CC="$CC $ac_cv_prog_cc_c89" ;;
4273 esac
4274 fi
4275 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4276 ac_prog_cc_stdc=c89 ;;
4277 esac
4278 fi
4279 fi
4280
4281 ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4294 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4295 if test ${am_cv_prog_cc_c_o+y}
4296 then :
4297 printf %s "(cached) " >&6
4298 else case e in #(
4299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301
4302 int
4303 main (void)
4304 {
4305
4306 ;
4307 return 0;
4308 }
4309 _ACEOF
4310 # Make sure it works both with $CC and with simple cc.
4311 # Following AC_PROG_CC_C_O, we do the test twice because some
4312 # compilers refuse to overwrite an existing .o file with -o,
4313 # though they will create one.
4314 am_cv_prog_cc_c_o=yes
4315 for am_i in 1 2; do
4316 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4317 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } \
4321 && test -f conftest2.$ac_objext; then
4322 : OK
4323 else
4324 am_cv_prog_cc_c_o=no
4325 break
4326 fi
4327 done
4328 rm -f core conftest*
4329 unset am_i ;;
4330 esac
4331 fi
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4333 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4334 if test "$am_cv_prog_cc_c_o" != yes; then
4335 # Losing compiler, so override with the script.
4336 # FIXME: It is wrong to rewrite CC.
4337 # But if we don't then we get into trouble of one sort or another.
4338 # A longer-term fix would be to have automake use am__CC in this case,
4339 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4340 CC="$am_aux_dir/compile $CC"
4341 fi
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347
4348 DEPDIR="${am__leading_dot}deps"
4349
4350 ac_config_commands="$ac_config_commands depfiles"
4351
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4353 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4354 cat > confinc.mk << 'END'
4355 am__doit:
4356 @echo this is the am__doit target >confinc.out
4357 .PHONY: am__doit
4358 END
4359 am__include="#"
4360 am__quote=
4361 # BSD make does it like this.
4362 echo '.include "confinc.mk" # ignored' > confmf.BSD
4363 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4364 echo 'include confinc.mk # ignored' > confmf.GNU
4365 _am_result=no
4366 for s in GNU BSD; do
4367 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4368 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }
4372 case $?:`cat confinc.out 2>/dev/null` in #(
4373 '0:this is the am__doit target') :
4374 case $s in #(
4375 BSD) :
4376 am__include='.include' am__quote='"' ;; #(
4377 *) :
4378 am__include='include' am__quote='' ;;
4379 esac ;; #(
4380 *) :
4381 ;;
4382 esac
4383 if test "$am__include" != "#"; then
4384 _am_result="yes ($s style)"
4385 break
4386 fi
4387 done
4388 rm -f confinc.* confmf.*
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4390 printf "%s\n" "${_am_result}" >&6; }
4391
4392 # Check whether --enable-dependency-tracking was given.
4393 if test ${enable_dependency_tracking+y}
4394 then :
4395 enableval=$enable_dependency_tracking;
4396 fi
4397
4398 if test "x$enable_dependency_tracking" != xno; then
4399 am_depcomp="$ac_aux_dir/depcomp"
4400 AMDEPBACKSLASH='\'
4401 am__nodep='_no'
4402 fi
4403 if test "x$enable_dependency_tracking" != xno; then
4404 AMDEP_TRUE=
4405 AMDEP_FALSE='#'
4406 else
4407 AMDEP_TRUE='#'
4408 AMDEP_FALSE=
4409 fi
4410
4411
4412
4413 depcc="$CC" am_compiler_list=
4414
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4416 printf %s "checking dependency style of $depcc... " >&6; }
4417 if test ${am_cv_CC_dependencies_compiler_type+y}
4418 then :
4419 printf %s "(cached) " >&6
4420 else case e in #(
4421 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4422 # We make a subdir and do the tests there. Otherwise we can end up
4423 # making bogus files that we don't know about and never remove. For
4424 # instance it was reported that on HP-UX the gcc test will end up
4425 # making a dummy file named 'D' -- because '-MD' means "put the output
4426 # in D".
4427 rm -rf conftest.dir
4428 mkdir conftest.dir
4429 # Copy depcomp to subdir because otherwise we won't find it if we're
4430 # using a relative directory.
4431 cp "$am_depcomp" conftest.dir
4432 cd conftest.dir
4433 # We will build objects and dependencies in a subdirectory because
4434 # it helps to detect inapplicable dependency modes. For instance
4435 # both Tru64's cc and ICC support -MD to output dependencies as a
4436 # side effect of compilation, but ICC will put the dependencies in
4437 # the current directory while Tru64 will put them in the object
4438 # directory.
4439 mkdir sub
4440
4441 am_cv_CC_dependencies_compiler_type=none
4442 if test "$am_compiler_list" = ""; then
4443 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4444 fi
4445 am__universal=false
4446 case " $depcc " in #(
4447 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4448 esac
4449
4450 for depmode in $am_compiler_list; do
4451 # Setup a source with many dependencies, because some compilers
4452 # like to wrap large dependency lists on column 80 (with \), and
4453 # we should not choose a depcomp mode which is confused by this.
4454 #
4455 # We need to recreate these files for each test, as the compiler may
4456 # overwrite some of them when testing with obscure command lines.
4457 # This happens at least with the AIX C compiler.
4458 : > sub/conftest.c
4459 for i in 1 2 3 4 5 6; do
4460 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4461 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4462 # Solaris 10 /bin/sh.
4463 echo '/* dummy */' > sub/conftst$i.h
4464 done
4465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4466
4467 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4468 # mode. It turns out that the SunPro C++ compiler does not properly
4469 # handle '-M -o', and we need to detect this. Also, some Intel
4470 # versions had trouble with output in subdirs.
4471 am__obj=sub/conftest.${OBJEXT-o}
4472 am__minus_obj="-o $am__obj"
4473 case $depmode in
4474 gcc)
4475 # This depmode causes a compiler race in universal mode.
4476 test "$am__universal" = false || continue
4477 ;;
4478 nosideeffect)
4479 # After this tag, mechanisms are not by side-effect, so they'll
4480 # only be used when explicitly requested.
4481 if test "x$enable_dependency_tracking" = xyes; then
4482 continue
4483 else
4484 break
4485 fi
4486 ;;
4487 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4488 # This compiler won't grok '-c -o', but also, the minuso test has
4489 # not run yet. These depmodes are late enough in the game, and
4490 # so weak that their functioning should not be impacted.
4491 am__obj=conftest.${OBJEXT-o}
4492 am__minus_obj=
4493 ;;
4494 none) break ;;
4495 esac
4496 if depmode=$depmode \
4497 source=sub/conftest.c object=$am__obj \
4498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4499 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4500 >/dev/null 2>conftest.err &&
4501 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4503 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4505 # icc doesn't choke on unknown options, it will just issue warnings
4506 # or remarks (even with -Werror). So we grep stderr for any message
4507 # that says an option was ignored or not supported.
4508 # When given -MP, icc 7.0 and 7.1 complain thusly:
4509 # icc: Command line warning: ignoring option '-M'; no argument required
4510 # The diagnosis changed in icc 8.0:
4511 # icc: Command line remark: option '-MP' not supported
4512 if (grep 'ignoring option' conftest.err ||
4513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4514 am_cv_CC_dependencies_compiler_type=$depmode
4515 break
4516 fi
4517 fi
4518 done
4519
4520 cd ..
4521 rm -rf conftest.dir
4522 else
4523 am_cv_CC_dependencies_compiler_type=none
4524 fi
4525 ;;
4526 esac
4527 fi
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4529 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4531
4532 if
4533 test "x$enable_dependency_tracking" != xno \
4534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4535 am__fastdepCC_TRUE=
4536 am__fastdepCC_FALSE='#'
4537 else
4538 am__fastdepCC_TRUE='#'
4539 am__fastdepCC_FALSE=
4540 fi
4541
4542
4543
4544 # Checks for libraries.
4545
4546 # Checks for header files.
4547
4548 ac_header= ac_cache=
4549 for ac_item in $ac_header_c_list
4550 do
4551 if test $ac_cache; then
4552 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4553 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4554 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4555 fi
4556 ac_header= ac_cache=
4557 elif test $ac_header; then
4558 ac_cache=$ac_item
4559 else
4560 ac_header=$ac_item
4561 fi
4562 done
4563
4564
4565
4566
4567
4568
4569
4570
4571 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4572 then :
4573
4574 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4575
4576 fi
4577 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4578 if test "x$ac_cv_header_stdlib_h" = xyes
4579 then :
4580 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4581
4582 fi
4583 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4584 if test "x$ac_cv_header_string_h" = xyes
4585 then :
4586 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
4587
4588 fi
4589
4590
4591 # Checks for typedefs, structures, and compiler characteristics.
4592 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4593 if test "x$ac_cv_type_size_t" = xyes
4594 then :
4595
4596 else case e in #(
4597 e)
4598 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4599 ;;
4600 esac
4601 fi
4602
4603
4604 # Checks for library functions.
4605 #AC_FUNC_MALLOC
4606 #AC_FUNC_REALLOC
4607 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
4608 if test "x$ac_cv_func_memmove" = xyes
4609 then :
4610 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
4611
4612 fi
4613 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4614 if test "x$ac_cv_func_memset" = xyes
4615 then :
4616 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4617
4618 fi
4619 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
4620 if test "x$ac_cv_func_strdup" = xyes
4621 then :
4622 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
4623
4624 fi
4625
4626
4627 ac_config_files="$ac_config_files Makefile"
4628
4629 cat >confcache <<\_ACEOF
4630 # This file is a shell script that caches the results of configure
4631 # tests run on this system so they can be shared between configure
4632 # scripts and configure runs, see configure's option --config-cache.
4633 # It is not useful on other systems. If it contains results you don't
4634 # want to keep, you may remove or edit it.
4635 #
4636 # config.status only pays attention to the cache file if you give it
4637 # the --recheck option to rerun configure.
4638 #
4639 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4640 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
4641 # following values.
4642
4643 _ACEOF
4644
4645 # The following way of writing the cache mishandles newlines in values,
4646 # but we know of no workaround that is simple, portable, and efficient.
4647 # So, we kill variables containing newlines.
4648 # Ultrix sh set writes to stderr and can't be redirected directly,
4649 # and sets the high bit in the cache file unless we assign to the vars.
4650 (
4651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4652 eval ac_val=\$$ac_var
4653 case $ac_val in #(
4654 *${as_nl}*)
4655 case $ac_var in #(
4656 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4657 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4658 esac
4659 case $ac_var in #(
4660 _ | IFS | as_nl) ;; #(
4661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4662 *) { eval $ac_var=; unset $ac_var;} ;;
4663 esac ;;
4664 esac
4665 done
4666
4667 (set) 2>&1 |
4668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4669 *${as_nl}ac_space=\ *)
4670 # 'set' does not quote correctly, so add quotes: double-quote
4671 # substitution turns \\\\ into \\, and sed turns \\ into \.
4672 sed -n \
4673 "s/'/'\\\\''/g;
4674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4675 ;; #(
4676 *)
4677 # 'set' quotes correctly as required by POSIX, so do not add quotes.
4678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4679 ;;
4680 esac |
4681 sort
4682 ) |
4683 sed '
4684 /^ac_cv_env_/b end
4685 t clear
4686 :clear
4687 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4688 t end
4689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4690 :end' >>confcache
4691 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4692 if test -w "$cache_file"; then
4693 if test "x$cache_file" != "x/dev/null"; then
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4695 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4696 if test ! -f "$cache_file" || test -h "$cache_file"; then
4697 cat confcache >"$cache_file"
4698 else
4699 case $cache_file in #(
4700 */* | ?:*)
4701 mv -f confcache "$cache_file"$$ &&
4702 mv -f "$cache_file"$$ "$cache_file" ;; #(
4703 *)
4704 mv -f confcache "$cache_file" ;;
4705 esac
4706 fi
4707 fi
4708 else
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4710 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4711 fi
4712 fi
4713 rm -f confcache
4714
4715 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4716 # Let make expand exec_prefix.
4717 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4718
4719 DEFS=-DHAVE_CONFIG_H
4720
4721 ac_libobjs=
4722 ac_ltlibobjs=
4723 U=
4724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4725 # 1. Remove the extension, and $U if already installed.
4726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4727 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4729 # will be set to the directory where LIBOBJS objects are built.
4730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4732 done
4733 LIBOBJS=$ac_libobjs
4734
4735 LTLIBOBJS=$ac_ltlibobjs
4736
4737
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4739 printf %s "checking that generated files are newer than configure... " >&6; }
4740 if test -n "$am_sleep_pid"; then
4741 # Hide warnings about reused PIDs.
4742 wait $am_sleep_pid 2>/dev/null
4743 fi
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4745 printf "%s\n" "done" >&6; }
4746 if test -n "$EXEEXT"; then
4747 am__EXEEXT_TRUE=
4748 am__EXEEXT_FALSE='#'
4749 else
4750 am__EXEEXT_TRUE='#'
4751 am__EXEEXT_FALSE=
4752 fi
4753
4754 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4755 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4757 fi
4758 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4759 as_fn_error $? "conditional \"AMDEP\" was never defined.
4760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4761 fi
4762 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4763 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4765 fi
4766
4767 : "${CONFIG_STATUS=./config.status}"
4768 ac_write_fail=0
4769 ac_clean_files_save=$ac_clean_files
4770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4772 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4773 as_write_fail=0
4774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4775 #! $SHELL
4776 # Generated by $as_me.
4777 # Run this file to recreate the current configuration.
4778 # Compiler output produced by configure, useful for debugging
4779 # configure, is in config.log if it exists.
4780
4781 debug=false
4782 ac_cs_recheck=false
4783 ac_cs_silent=false
4784
4785 SHELL=\${CONFIG_SHELL-$SHELL}
4786 export SHELL
4787 _ASEOF
4788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4789 ## -------------------- ##
4790 ## M4sh Initialization. ##
4791 ## -------------------- ##
4792
4793 # Be more Bourne compatible
4794 DUALCASE=1; export DUALCASE # for MKS sh
4795 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4796 then :
4797 emulate sh
4798 NULLCMD=:
4799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4800 # is contrary to our usage. Disable this feature.
4801 alias -g '${1+"$@"}'='"$@"'
4802 setopt NO_GLOB_SUBST
4803 else case e in #(
4804 e) case `(set -o) 2>/dev/null` in #(
4805 *posix*) :
4806 set -o posix ;; #(
4807 *) :
4808 ;;
4809 esac ;;
4810 esac
4811 fi
4812
4813
4814
4815 # Reset variables that may have inherited troublesome values from
4816 # the environment.
4817
4818 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4819 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4820 # side effect of setting IFS to empty, thus disabling word splitting.)
4821 # Quoting is to prevent editors from complaining about space-tab.
4822 as_nl='
4823 '
4824 export as_nl
4825 IFS=" "" $as_nl"
4826
4827 PS1='$ '
4828 PS2='> '
4829 PS4='+ '
4830
4831 # Ensure predictable behavior from utilities with locale-dependent output.
4832 LC_ALL=C
4833 export LC_ALL
4834 LANGUAGE=C
4835 export LANGUAGE
4836
4837 # We cannot yet rely on "unset" to work, but we need these variables
4838 # to be unset--not just set to an empty or harmless value--now, to
4839 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4840 # also avoids known problems related to "unset" and subshell syntax
4841 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4842 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4843 do eval test \${$as_var+y} \
4844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4845 done
4846
4847 # Ensure that fds 0, 1, and 2 are open.
4848 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4849 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4850 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4851
4852 # The user is always right.
4853 if ${PATH_SEPARATOR+false} :; then
4854 PATH_SEPARATOR=:
4855 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4856 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4857 PATH_SEPARATOR=';'
4858 }
4859 fi
4860
4861
4862 # Find who we are. Look in the path if we contain no directory separator.
4863 as_myself=
4864 case $0 in #((
4865 *[\\/]* ) as_myself=$0 ;;
4866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 case $as_dir in #(((
4871 '') as_dir=./ ;;
4872 */) ;;
4873 *) as_dir=$as_dir/ ;;
4874 esac
4875 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4876 done
4877 IFS=$as_save_IFS
4878
4879 ;;
4880 esac
4881 # We did not find ourselves, most probably we were run as 'sh COMMAND'
4882 # in which case we are not to be found in the path.
4883 if test "x$as_myself" = x; then
4884 as_myself=$0
4885 fi
4886 if test ! -f "$as_myself"; then
4887 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4888 exit 1
4889 fi
4890
4891
4892
4893 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4894 # ----------------------------------------
4895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4897 # script with STATUS, using 1 if that was 0.
4898 as_fn_error ()
4899 {
4900 as_status=$1; test $as_status -eq 0 && as_status=1
4901 if test "$4"; then
4902 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4904 fi
4905 printf "%s\n" "$as_me: error: $2" >&2
4906 as_fn_exit $as_status
4907 } # as_fn_error
4908
4909
4910 # as_fn_set_status STATUS
4911 # -----------------------
4912 # Set $? to STATUS, without forking.
4913 as_fn_set_status ()
4914 {
4915 return $1
4916 } # as_fn_set_status
4917
4918 # as_fn_exit STATUS
4919 # -----------------
4920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4921 as_fn_exit ()
4922 {
4923 set +e
4924 as_fn_set_status $1
4925 exit $1
4926 } # as_fn_exit
4927
4928 # as_fn_unset VAR
4929 # ---------------
4930 # Portably unset VAR.
4931 as_fn_unset ()
4932 {
4933 { eval $1=; unset $1;}
4934 }
4935 as_unset=as_fn_unset
4936
4937 # as_fn_append VAR VALUE
4938 # ----------------------
4939 # Append the text in VALUE to the end of the definition contained in VAR. Take
4940 # advantage of any shell optimizations that allow amortized linear growth over
4941 # repeated appends, instead of the typical quadratic growth present in naive
4942 # implementations.
4943 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4944 then :
4945 eval 'as_fn_append ()
4946 {
4947 eval $1+=\$2
4948 }'
4949 else case e in #(
4950 e) as_fn_append ()
4951 {
4952 eval $1=\$$1\$2
4953 } ;;
4954 esac
4955 fi # as_fn_append
4956
4957 # as_fn_arith ARG...
4958 # ------------------
4959 # Perform arithmetic evaluation on the ARGs, and store the result in the
4960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4961 # must be portable across $(()) and expr.
4962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4963 then :
4964 eval 'as_fn_arith ()
4965 {
4966 as_val=$(( $* ))
4967 }'
4968 else case e in #(
4969 e) as_fn_arith ()
4970 {
4971 as_val=`expr "$@" || test $? -eq 1`
4972 } ;;
4973 esac
4974 fi # as_fn_arith
4975
4976
4977 if expr a : '\(a\)' >/dev/null 2>&1 &&
4978 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4979 as_expr=expr
4980 else
4981 as_expr=false
4982 fi
4983
4984 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4985 as_basename=basename
4986 else
4987 as_basename=false
4988 fi
4989
4990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4991 as_dirname=dirname
4992 else
4993 as_dirname=false
4994 fi
4995
4996 as_me=`$as_basename -- "$0" ||
4997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4998 X"$0" : 'X\(//\)$' \| \
4999 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5000 printf "%s\n" X/"$0" |
5001 sed '/^.*\/\([^/][^/]*\)\/*$/{
5002 s//\1/
5003 q
5004 }
5005 /^X\/\(\/\/\)$/{
5006 s//\1/
5007 q
5008 }
5009 /^X\/\(\/\).*/{
5010 s//\1/
5011 q
5012 }
5013 s/.*/./; q'`
5014
5015 # Avoid depending upon Character Ranges.
5016 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5017 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5018 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5019 as_cr_digits='0123456789'
5020 as_cr_alnum=$as_cr_Letters$as_cr_digits
5021
5022
5023 # Determine whether it's possible to make 'echo' print without a newline.
5024 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5025 # for compatibility with existing Makefiles.
5026 ECHO_C= ECHO_N= ECHO_T=
5027 case `echo -n x` in #(((((
5028 -n*)
5029 case `echo 'xy\c'` in
5030 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5031 xy) ECHO_C='\c';;
5032 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5033 ECHO_T=' ';;
5034 esac;;
5035 *)
5036 ECHO_N='-n';;
5037 esac
5038
5039 # For backward compatibility with old third-party macros, we provide
5040 # the shell variables $as_echo and $as_echo_n. New code should use
5041 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5042 as_echo='printf %s\n'
5043 as_echo_n='printf %s'
5044
5045 rm -f conf$$ conf$$.exe conf$$.file
5046 if test -d conf$$.dir; then
5047 rm -f conf$$.dir/conf$$.file
5048 else
5049 rm -f conf$$.dir
5050 mkdir conf$$.dir 2>/dev/null
5051 fi
5052 if (echo >conf$$.file) 2>/dev/null; then
5053 if ln -s conf$$.file conf$$ 2>/dev/null; then
5054 as_ln_s='ln -s'
5055 # ... but there are two gotchas:
5056 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5057 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5058 # In both cases, we have to default to 'cp -pR'.
5059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5060 as_ln_s='cp -pR'
5061 elif ln conf$$.file conf$$ 2>/dev/null; then
5062 as_ln_s=ln
5063 else
5064 as_ln_s='cp -pR'
5065 fi
5066 else
5067 as_ln_s='cp -pR'
5068 fi
5069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5070 rmdir conf$$.dir 2>/dev/null
5071
5072
5073 # as_fn_mkdir_p
5074 # -------------
5075 # Create "$as_dir" as a directory, including parents if necessary.
5076 as_fn_mkdir_p ()
5077 {
5078
5079 case $as_dir in #(
5080 -*) as_dir=./$as_dir;;
5081 esac
5082 test -d "$as_dir" || eval $as_mkdir_p || {
5083 as_dirs=
5084 while :; do
5085 case $as_dir in #(
5086 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5087 *) as_qdir=$as_dir;;
5088 esac
5089 as_dirs="'$as_qdir' $as_dirs"
5090 as_dir=`$as_dirname -- "$as_dir" ||
5091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5092 X"$as_dir" : 'X\(//\)[^/]' \| \
5093 X"$as_dir" : 'X\(//\)$' \| \
5094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5095 printf "%s\n" X"$as_dir" |
5096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5097 s//\1/
5098 q
5099 }
5100 /^X\(\/\/\)[^/].*/{
5101 s//\1/
5102 q
5103 }
5104 /^X\(\/\/\)$/{
5105 s//\1/
5106 q
5107 }
5108 /^X\(\/\).*/{
5109 s//\1/
5110 q
5111 }
5112 s/.*/./; q'`
5113 test -d "$as_dir" && break
5114 done
5115 test -z "$as_dirs" || eval "mkdir $as_dirs"
5116 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5117
5118
5119 } # as_fn_mkdir_p
5120 if mkdir -p . 2>/dev/null; then
5121 as_mkdir_p='mkdir -p "$as_dir"'
5122 else
5123 test -d ./-p && rmdir ./-p
5124 as_mkdir_p=false
5125 fi
5126
5127
5128 # as_fn_executable_p FILE
5129 # -----------------------
5130 # Test if FILE is an executable regular file.
5131 as_fn_executable_p ()
5132 {
5133 test -f "$1" && test -x "$1"
5134 } # as_fn_executable_p
5135 as_test_x='test -x'
5136 as_executable_p=as_fn_executable_p
5137
5138 # Sed expression to map a string onto a valid CPP name.
5139 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5140 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5141
5142 # Sed expression to map a string onto a valid variable name.
5143 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5144 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
5145
5146
5147 exec 6>&1
5148 ## ----------------------------------- ##
5149 ## Main body of $CONFIG_STATUS script. ##
5150 ## ----------------------------------- ##
5151 _ASEOF
5152 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5153
5154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5155 # Save the log message, to keep $0 and so on meaningful, and to
5156 # report actual input values of CONFIG_FILES etc. instead of their
5157 # values after options handling.
5158 ac_log="
5159 This file was extended by mingw-w64-genpeimg $as_me 1.0, which was
5160 generated by GNU Autoconf 2.72. Invocation command line was
5161
5162 CONFIG_FILES = $CONFIG_FILES
5163 CONFIG_HEADERS = $CONFIG_HEADERS
5164 CONFIG_LINKS = $CONFIG_LINKS
5165 CONFIG_COMMANDS = $CONFIG_COMMANDS
5166 $ $0 $@
5167
5168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5169 "
5170
5171 _ACEOF
5172
5173 case $ac_config_files in *"
5174 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5175 esac
5176
5177 case $ac_config_headers in *"
5178 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5179 esac
5180
5181
5182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5183 # Files that config.status was made for.
5184 config_files="$ac_config_files"
5185 config_headers="$ac_config_headers"
5186 config_commands="$ac_config_commands"
5187
5188 _ACEOF
5189
5190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5191 ac_cs_usage="\
5192 '$as_me' instantiates files and other configuration actions
5193 from templates according to the current configuration. Unless the files
5194 and actions are specified as TAGs, all are instantiated by default.
5195
5196 Usage: $0 [OPTION]... [TAG]...
5197
5198 -h, --help print this help, then exit
5199 -V, --version print version number and configuration settings, then exit
5200 --config print configuration, then exit
5201 -q, --quiet, --silent
5202 do not print progress messages
5203 -d, --debug don't remove temporary files
5204 --recheck update $as_me by reconfiguring in the same conditions
5205 --file=FILE[:TEMPLATE]
5206 instantiate the configuration file FILE
5207 --header=FILE[:TEMPLATE]
5208 instantiate the configuration header FILE
5209
5210 Configuration files:
5211 $config_files
5212
5213 Configuration headers:
5214 $config_headers
5215
5216 Configuration commands:
5217 $config_commands
5218
5219 Report bugs to <[email protected]>."
5220
5221 _ACEOF
5222 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5223 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5225 ac_cs_config='$ac_cs_config_escaped'
5226 ac_cs_version="\\
5227 mingw-w64-genpeimg config.status 1.0
5228 configured by $0, generated by GNU Autoconf 2.72,
5229 with options \\"\$ac_cs_config\\"
5230
5231 Copyright (C) 2023 Free Software Foundation, Inc.
5232 This config.status script is free software; the Free Software Foundation
5233 gives unlimited permission to copy, distribute and modify it."
5234
5235 ac_pwd='$ac_pwd'
5236 srcdir='$srcdir'
5237 INSTALL='$INSTALL'
5238 MKDIR_P='$MKDIR_P'
5239 AWK='$AWK'
5240 test -n "\$AWK" || AWK=awk
5241 _ACEOF
5242
5243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5244 # The default lists apply if the user does not specify any file.
5245 ac_need_defaults=:
5246 while test $# != 0
5247 do
5248 case $1 in
5249 --*=?*)
5250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5252 ac_shift=:
5253 ;;
5254 --*=)
5255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5256 ac_optarg=
5257 ac_shift=:
5258 ;;
5259 *)
5260 ac_option=$1
5261 ac_optarg=$2
5262 ac_shift=shift
5263 ;;
5264 esac
5265
5266 case $ac_option in
5267 # Handling of the options.
5268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5269 ac_cs_recheck=: ;;
5270 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5271 printf "%s\n" "$ac_cs_version"; exit ;;
5272 --config | --confi | --conf | --con | --co | --c )
5273 printf "%s\n" "$ac_cs_config"; exit ;;
5274 --debug | --debu | --deb | --de | --d | -d )
5275 debug=: ;;
5276 --file | --fil | --fi | --f )
5277 $ac_shift
5278 case $ac_optarg in
5279 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5280 '') as_fn_error $? "missing file argument" ;;
5281 esac
5282 as_fn_append CONFIG_FILES " '$ac_optarg'"
5283 ac_need_defaults=false;;
5284 --header | --heade | --head | --hea )
5285 $ac_shift
5286 case $ac_optarg in
5287 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5288 esac
5289 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5290 ac_need_defaults=false;;
5291 --he | --h)
5292 # Conflict between --help and --header
5293 as_fn_error $? "ambiguous option: '$1'
5294 Try '$0 --help' for more information.";;
5295 --help | --hel | -h )
5296 printf "%s\n" "$ac_cs_usage"; exit ;;
5297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5299 ac_cs_silent=: ;;
5300
5301 # This is an error.
5302 -*) as_fn_error $? "unrecognized option: '$1'
5303 Try '$0 --help' for more information." ;;
5304
5305 *) as_fn_append ac_config_targets " $1"
5306 ac_need_defaults=false ;;
5307
5308 esac
5309 shift
5310 done
5311
5312 ac_configure_extra_args=
5313
5314 if $ac_cs_silent; then
5315 exec 6>/dev/null
5316 ac_configure_extra_args="$ac_configure_extra_args --silent"
5317 fi
5318
5319 _ACEOF
5320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5321 if \$ac_cs_recheck; then
5322 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5323 shift
5324 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5325 CONFIG_SHELL='$SHELL'
5326 export CONFIG_SHELL
5327 exec "\$@"
5328 fi
5329
5330 _ACEOF
5331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5332 exec 5>>config.log
5333 {
5334 echo
5335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5336 ## Running $as_me. ##
5337 _ASBOX
5338 printf "%s\n" "$ac_log"
5339 } >&5
5340
5341 _ACEOF
5342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5343 #
5344 # INIT-COMMANDS
5345 #
5346 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5347
5348 _ACEOF
5349
5350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5351
5352 # Handling of arguments.
5353 for ac_config_target in $ac_config_targets
5354 do
5355 case $ac_config_target in
5356 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5358 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5359
5360 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5361 esac
5362 done
5363
5364
5365 # If the user did not use the arguments to specify the items to instantiate,
5366 # then the envvar interface is used. Set only those that are not.
5367 # We use the long form for the default assignment because of an extremely
5368 # bizarre bug on SunOS 4.1.3.
5369 if $ac_need_defaults; then
5370 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5371 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5372 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
5373 fi
5374
5375 # Have a temporary directory for convenience. Make it in the build tree
5376 # simply because there is no reason against having it here, and in addition,
5377 # creating and moving files from /tmp can sometimes cause problems.
5378 # Hook for its removal unless debugging.
5379 # Note that there is a small window in which the directory will not be cleaned:
5380 # after its creation but before its name has been assigned to '$tmp'.
5381 $debug ||
5382 {
5383 tmp= ac_tmp=
5384 trap 'exit_status=$?
5385 : "${ac_tmp:=$tmp}"
5386 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5387 ' 0
5388 trap 'as_fn_exit 1' 1 2 13 15
5389 }
5390 # Create a (secure) tmp directory for tmp files.
5391
5392 {
5393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5394 test -d "$tmp"
5395 } ||
5396 {
5397 tmp=./conf$$-$RANDOM
5398 (umask 077 && mkdir "$tmp")
5399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5400 ac_tmp=$tmp
5401
5402 # Set up the scripts for CONFIG_FILES section.
5403 # No need to generate them if there are no CONFIG_FILES.
5404 # This happens for instance with './config.status config.h'.
5405 if test -n "$CONFIG_FILES"; then
5406
5407
5408 ac_cr=`echo X | tr X '\015'`
5409 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5410 # But we know of no other shell where ac_cr would be empty at this
5411 # point, so we can use a bashism as a fallback.
5412 if test "x$ac_cr" = x; then
5413 eval ac_cr=\$\'\\r\'
5414 fi
5415 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5416 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5417 ac_cs_awk_cr='\\r'
5418 else
5419 ac_cs_awk_cr=$ac_cr
5420 fi
5421
5422 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5423 _ACEOF
5424
5425
5426 {
5427 echo "cat >conf$$subs.awk <<_ACEOF" &&
5428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5429 echo "_ACEOF"
5430 } >conf$$subs.sh ||
5431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5433 ac_delim='%!_!# '
5434 for ac_last_try in false false false false false :; do
5435 . ./conf$$subs.sh ||
5436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5437
5438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5439 if test $ac_delim_n = $ac_delim_num; then
5440 break
5441 elif $ac_last_try; then
5442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5443 else
5444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5445 fi
5446 done
5447 rm -f conf$$subs.sh
5448
5449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5450 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5451 _ACEOF
5452 sed -n '
5453 h
5454 s/^/S["/; s/!.*/"]=/
5455 p
5456 g
5457 s/^[^!]*!//
5458 :repl
5459 t repl
5460 s/'"$ac_delim"'$//
5461 t delim
5462 :nl
5463 h
5464 s/\(.\{148\}\)..*/\1/
5465 t more1
5466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5467 p
5468 n
5469 b repl
5470 :more1
5471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5472 p
5473 g
5474 s/.\{148\}//
5475 t nl
5476 :delim
5477 h
5478 s/\(.\{148\}\)..*/\1/
5479 t more2
5480 s/["\\]/\\&/g; s/^/"/; s/$/"/
5481 p
5482 b
5483 :more2
5484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5485 p
5486 g
5487 s/.\{148\}//
5488 t delim
5489 ' <conf$$subs.awk | sed '
5490 /^[^""]/{
5491 N
5492 s/\n//
5493 }
5494 ' >>$CONFIG_STATUS || ac_write_fail=1
5495 rm -f conf$$subs.awk
5496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5497 _ACAWK
5498 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5499 for (key in S) S_is_set[key] = 1
5500 FS = ""
5501
5502 }
5503 {
5504 line = $ 0
5505 nfields = split(line, field, "@")
5506 substed = 0
5507 len = length(field[1])
5508 for (i = 2; i < nfields; i++) {
5509 key = field[i]
5510 keylen = length(key)
5511 if (S_is_set[key]) {
5512 value = S[key]
5513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5514 len += length(value) + length(field[++i])
5515 substed = 1
5516 } else
5517 len += 1 + keylen
5518 }
5519
5520 print line
5521 }
5522
5523 _ACAWK
5524 _ACEOF
5525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5526 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5527 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5528 else
5529 cat
5530 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5531 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5532 _ACEOF
5533
5534 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5535 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5536 # trailing colons and then remove the whole line if VPATH becomes empty
5537 # (actually we leave an empty line to preserve line numbers).
5538 if test "x$srcdir" = x.; then
5539 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5540 h
5541 s///
5542 s/^/:/
5543 s/[ ]*$/:/
5544 s/:\$(srcdir):/:/g
5545 s/:\${srcdir}:/:/g
5546 s/:@srcdir@:/:/g
5547 s/^:*//
5548 s/:*$//
5549 x
5550 s/\(=[ ]*\).*/\1/
5551 G
5552 s/\n//
5553 s/^[^=]*=[ ]*$//
5554 }'
5555 fi
5556
5557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5558 fi # test -n "$CONFIG_FILES"
5559
5560 # Set up the scripts for CONFIG_HEADERS section.
5561 # No need to generate them if there are no CONFIG_HEADERS.
5562 # This happens for instance with './config.status Makefile'.
5563 if test -n "$CONFIG_HEADERS"; then
5564 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5565 BEGIN {
5566 _ACEOF
5567
5568 # Transform confdefs.h into an awk script 'defines.awk', embedded as
5569 # here-document in config.status, that substitutes the proper values into
5570 # config.h.in to produce config.h.
5571
5572 # Create a delimiter string that does not exist in confdefs.h, to ease
5573 # handling of long lines.
5574 ac_delim='%!_!# '
5575 for ac_last_try in false false :; do
5576 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5577 if test -z "$ac_tt"; then
5578 break
5579 elif $ac_last_try; then
5580 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5581 else
5582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5583 fi
5584 done
5585
5586 # For the awk script, D is an array of macro values keyed by name,
5587 # likewise P contains macro parameters if any. Preserve backslash
5588 # newline sequences.
5589
5590 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5591 sed -n '
5592 s/.\{148\}/&'"$ac_delim"'/g
5593 t rset
5594 :rset
5595 s/^[ ]*#[ ]*define[ ][ ]*/ /
5596 t def
5597 d
5598 :def
5599 s/\\$//
5600 t bsnl
5601 s/["\\]/\\&/g
5602 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5603 D["\1"]=" \3"/p
5604 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5605 d
5606 :bsnl
5607 s/["\\]/\\&/g
5608 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5609 D["\1"]=" \3\\\\\\n"\\/p
5610 t cont
5611 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5612 t cont
5613 d
5614 :cont
5615 n
5616 s/.\{148\}/&'"$ac_delim"'/g
5617 t clear
5618 :clear
5619 s/\\$//
5620 t bsnlc
5621 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5622 d
5623 :bsnlc
5624 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5625 b cont
5626 ' <confdefs.h | sed '
5627 s/'"$ac_delim"'/"\\\
5628 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5629
5630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5631 for (key in D) D_is_set[key] = 1
5632 FS = ""
5633 }
5634 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5635 line = \$ 0
5636 split(line, arg, " ")
5637 if (arg[1] == "#") {
5638 defundef = arg[2]
5639 mac1 = arg[3]
5640 } else {
5641 defundef = substr(arg[1], 2)
5642 mac1 = arg[2]
5643 }
5644 split(mac1, mac2, "(") #)
5645 macro = mac2[1]
5646 prefix = substr(line, 1, index(line, defundef) - 1)
5647 if (D_is_set[macro]) {
5648 # Preserve the white space surrounding the "#".
5649 print prefix "define", macro P[macro] D[macro]
5650 next
5651 } else {
5652 # Replace #undef with comments. This is necessary, for example,
5653 # in the case of _POSIX_SOURCE, which is predefined and required
5654 # on some systems where configure will not decide to define it.
5655 if (defundef == "undef") {
5656 print "/*", prefix defundef, macro, "*/"
5657 next
5658 }
5659 }
5660 }
5661 { print }
5662 _ACAWK
5663 _ACEOF
5664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5665 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5666 fi # test -n "$CONFIG_HEADERS"
5667
5668
5669 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5670 shift
5671 for ac_tag
5672 do
5673 case $ac_tag in
5674 :[FHLC]) ac_mode=$ac_tag; continue;;
5675 esac
5676 case $ac_mode$ac_tag in
5677 :[FHL]*:*);;
5678 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
5679 :[FH]-) ac_tag=-:-;;
5680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5681 esac
5682 ac_save_IFS=$IFS
5683 IFS=:
5684 set x $ac_tag
5685 IFS=$ac_save_IFS
5686 shift
5687 ac_file=$1
5688 shift
5689
5690 case $ac_mode in
5691 :L) ac_source=$1;;
5692 :[FH])
5693 ac_file_inputs=
5694 for ac_f
5695 do
5696 case $ac_f in
5697 -) ac_f="$ac_tmp/stdin";;
5698 *) # Look for the file first in the build tree, then in the source tree
5699 # (if the path is not absolute). The absolute path cannot be DOS-style,
5700 # because $ac_f cannot contain ':'.
5701 test -f "$ac_f" ||
5702 case $ac_f in
5703 [\\/$]*) false;;
5704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5705 esac ||
5706 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
5707 esac
5708 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5709 as_fn_append ac_file_inputs " '$ac_f'"
5710 done
5711
5712 # Let's still pretend it is 'configure' which instantiates (i.e., don't
5713 # use $as_me), people would be surprised to read:
5714 # /* config.h. Generated by config.status. */
5715 configure_input='Generated from '`
5716 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5717 `' by configure.'
5718 if test x"$ac_file" != x-; then
5719 configure_input="$ac_file. $configure_input"
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5721 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5722 fi
5723 # Neutralize special characters interpreted by sed in replacement strings.
5724 case $configure_input in #(
5725 *\&* | *\|* | *\\* )
5726 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5727 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5728 *) ac_sed_conf_input=$configure_input;;
5729 esac
5730
5731 case $ac_tag in
5732 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5734 esac
5735 ;;
5736 esac
5737
5738 ac_dir=`$as_dirname -- "$ac_file" ||
5739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5740 X"$ac_file" : 'X\(//\)[^/]' \| \
5741 X"$ac_file" : 'X\(//\)$' \| \
5742 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5743 printf "%s\n" X"$ac_file" |
5744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5745 s//\1/
5746 q
5747 }
5748 /^X\(\/\/\)[^/].*/{
5749 s//\1/
5750 q
5751 }
5752 /^X\(\/\/\)$/{
5753 s//\1/
5754 q
5755 }
5756 /^X\(\/\).*/{
5757 s//\1/
5758 q
5759 }
5760 s/.*/./; q'`
5761 as_dir="$ac_dir"; as_fn_mkdir_p
5762 ac_builddir=.
5763
5764 case "$ac_dir" in
5765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5766 *)
5767 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5768 # A ".." for each directory in $ac_dir_suffix.
5769 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5770 case $ac_top_builddir_sub in
5771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5773 esac ;;
5774 esac
5775 ac_abs_top_builddir=$ac_pwd
5776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5777 # for backward compatibility:
5778 ac_top_builddir=$ac_top_build_prefix
5779
5780 case $srcdir in
5781 .) # We are building in place.
5782 ac_srcdir=.
5783 ac_top_srcdir=$ac_top_builddir_sub
5784 ac_abs_top_srcdir=$ac_pwd ;;
5785 [\\/]* | ?:[\\/]* ) # Absolute name.
5786 ac_srcdir=$srcdir$ac_dir_suffix;
5787 ac_top_srcdir=$srcdir
5788 ac_abs_top_srcdir=$srcdir ;;
5789 *) # Relative name.
5790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5791 ac_top_srcdir=$ac_top_build_prefix$srcdir
5792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5793 esac
5794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5795
5796
5797 case $ac_mode in
5798 :F)
5799 #
5800 # CONFIG_FILE
5801 #
5802
5803 case $INSTALL in
5804 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5805 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5806 esac
5807 ac_MKDIR_P=$MKDIR_P
5808 case $MKDIR_P in
5809 [\\/$]* | ?:[\\/]* ) ;;
5810 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5811 esac
5812 _ACEOF
5813
5814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5815 # If the template does not know about datarootdir, expand it.
5816 # FIXME: This hack should be removed a few years after 2.60.
5817 ac_datarootdir_hack=; ac_datarootdir_seen=
5818 ac_sed_dataroot='
5819 /datarootdir/ {
5820 p
5821 q
5822 }
5823 /@datadir@/p
5824 /@docdir@/p
5825 /@infodir@/p
5826 /@localedir@/p
5827 /@mandir@/p'
5828 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5829 *datarootdir*) ac_datarootdir_seen=yes;;
5830 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5832 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5833 _ACEOF
5834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5835 ac_datarootdir_hack='
5836 s&@datadir@&$datadir&g
5837 s&@docdir@&$docdir&g
5838 s&@infodir@&$infodir&g
5839 s&@localedir@&$localedir&g
5840 s&@mandir@&$mandir&g
5841 s&\\\${datarootdir}&$datarootdir&g' ;;
5842 esac
5843 _ACEOF
5844
5845 # Neutralize VPATH when '$srcdir' = '.'.
5846 # Shell code in configure.ac might set extrasub.
5847 # FIXME: do we really want to maintain this feature?
5848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5849 ac_sed_extra="$ac_vpsub
5850 $extrasub
5851 _ACEOF
5852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5853 :t
5854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5855 s|@configure_input@|$ac_sed_conf_input|;t t
5856 s&@top_builddir@&$ac_top_builddir_sub&;t t
5857 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5858 s&@srcdir@&$ac_srcdir&;t t
5859 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5860 s&@top_srcdir@&$ac_top_srcdir&;t t
5861 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5862 s&@builddir@&$ac_builddir&;t t
5863 s&@abs_builddir@&$ac_abs_builddir&;t t
5864 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5865 s&@INSTALL@&$ac_INSTALL&;t t
5866 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5867 $ac_datarootdir_hack
5868 "
5869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5870 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5871
5872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5873 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5875 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5877 which seems to be undefined. Please make sure it is defined" >&5
5878 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5879 which seems to be undefined. Please make sure it is defined" >&2;}
5880
5881 rm -f "$ac_tmp/stdin"
5882 case $ac_file in
5883 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5884 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5885 esac \
5886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5887 ;;
5888 :H)
5889 #
5890 # CONFIG_HEADER
5891 #
5892 if test x"$ac_file" != x-; then
5893 {
5894 printf "%s\n" "/* $configure_input */" >&1 \
5895 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5896 } >"$ac_tmp/config.h" \
5897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5898 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5900 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5901 else
5902 rm -f "$ac_file"
5903 mv "$ac_tmp/config.h" "$ac_file" \
5904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5905 fi
5906 else
5907 printf "%s\n" "/* $configure_input */" >&1 \
5908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5909 || as_fn_error $? "could not create -" "$LINENO" 5
5910 fi
5911 # Compute "$ac_file"'s index in $config_headers.
5912 _am_arg="$ac_file"
5913 _am_stamp_count=1
5914 for _am_header in $config_headers :; do
5915 case $_am_header in
5916 $_am_arg | $_am_arg:* )
5917 break ;;
5918 * )
5919 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5920 esac
5921 done
5922 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5923 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5924 X"$_am_arg" : 'X\(//\)[^/]' \| \
5925 X"$_am_arg" : 'X\(//\)$' \| \
5926 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5927 printf "%s\n" X"$_am_arg" |
5928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5929 s//\1/
5930 q
5931 }
5932 /^X\(\/\/\)[^/].*/{
5933 s//\1/
5934 q
5935 }
5936 /^X\(\/\/\)$/{
5937 s//\1/
5938 q
5939 }
5940 /^X\(\/\).*/{
5941 s//\1/
5942 q
5943 }
5944 s/.*/./; q'`/stamp-h$_am_stamp_count
5945 ;;
5946
5947 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5948 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
5949 ;;
5950 esac
5951
5952
5953 case $ac_file$ac_mode in
5954 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5955 # Older Autoconf quotes --file arguments for eval, but not when files
5956 # are listed without --file. Let's play safe and only enable the eval
5957 # if we detect the quoting.
5958 # TODO: see whether this extra hack can be removed once we start
5959 # requiring Autoconf 2.70 or later.
5960 case $CONFIG_FILES in #(
5961 *\'*) :
5962 eval set x "$CONFIG_FILES" ;; #(
5963 *) :
5964 set x $CONFIG_FILES ;; #(
5965 *) :
5966 ;;
5967 esac
5968 shift
5969 # Used to flag and report bootstrapping failures.
5970 am_rc=0
5971 for am_mf
5972 do
5973 # Strip MF so we end up with the name of the file.
5974 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
5975 # Check whether this is an Automake generated Makefile which includes
5976 # dependency-tracking related rules and includes.
5977 # Grep'ing the whole file directly is not great: AIX grep has a line
5978 # limit of 2048, but all sed's we know have understand at least 4000.
5979 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
5980 || continue
5981 am_dirpart=`$as_dirname -- "$am_mf" ||
5982 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5983 X"$am_mf" : 'X\(//\)[^/]' \| \
5984 X"$am_mf" : 'X\(//\)$' \| \
5985 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5986 printf "%s\n" X"$am_mf" |
5987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5988 s//\1/
5989 q
5990 }
5991 /^X\(\/\/\)[^/].*/{
5992 s//\1/
5993 q
5994 }
5995 /^X\(\/\/\)$/{
5996 s//\1/
5997 q
5998 }
5999 /^X\(\/\).*/{
6000 s//\1/
6001 q
6002 }
6003 s/.*/./; q'`
6004 am_filepart=`$as_basename -- "$am_mf" ||
6005 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
6006 X"$am_mf" : 'X\(//\)$' \| \
6007 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6008 printf "%s\n" X/"$am_mf" |
6009 sed '/^.*\/\([^/][^/]*\)\/*$/{
6010 s//\1/
6011 q
6012 }
6013 /^X\/\(\/\/\)$/{
6014 s//\1/
6015 q
6016 }
6017 /^X\/\(\/\).*/{
6018 s//\1/
6019 q
6020 }
6021 s/.*/./; q'`
6022 { echo "$as_me:$LINENO: cd "$am_dirpart" \
6023 && sed -e '/# am--include-marker/d' "$am_filepart" \
6024 | $MAKE -f - am--depfiles" >&5
6025 (cd "$am_dirpart" \
6026 && sed -e '/# am--include-marker/d' "$am_filepart" \
6027 | $MAKE -f - am--depfiles) >&5 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } || am_rc=$?
6031 done
6032 if test $am_rc -ne 0; then
6033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6034 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6035 as_fn_error $? "Something went wrong bootstrapping makefile fragments
6036 for automatic dependency tracking. If GNU make was not used, consider
6037 re-running the configure script with MAKE=\"gmake\" (or whatever is
6038 necessary). You can also try re-running configure with the
6039 '--disable-dependency-tracking' option to at least be able to build
6040 the package (albeit without support for automatic dependency tracking).
6041 See 'config.log' for more details" "$LINENO" 5; }
6042 fi
6043 { am_dirpart=; unset am_dirpart;}
6044 { am_filepart=; unset am_filepart;}
6045 { am_mf=; unset am_mf;}
6046 { am_rc=; unset am_rc;}
6047 rm -f conftest-deps.mk
6048 }
6049 ;;
6050
6051 esac
6052 done # for ac_tag
6053
6054
6055 as_fn_exit 0
6056 _ACEOF
6057 ac_clean_files=$ac_clean_files_save
6058
6059 test $ac_write_fail = 0 ||
6060 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6061
6062
6063 # configure is writing to config.log, and then calls config.status.
6064 # config.status does its own redirection, appending to config.log.
6065 # Unfortunately, on DOS this fails, as config.log is still kept open
6066 # by configure, so config.status won't be able to write to it; its
6067 # output is simply discarded. So we exec the FD to /dev/null,
6068 # effectively closing config.log, so it can be properly (re)opened and
6069 # appended to by config.status. When coming back to configure, we
6070 # need to make the FD available again.
6071 if test "$no_create" != yes; then
6072 ac_cs_success=:
6073 ac_config_status_args=
6074 test "$silent" = yes &&
6075 ac_config_status_args="$ac_config_status_args --quiet"
6076 exec 5>/dev/null
6077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6078 exec 5>>config.log
6079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6080 # would make configure fail if this is the last instruction.
6081 $ac_cs_success || as_fn_exit 1
6082 fi
6083 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6085 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6086 fi
6087
6088