ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
Revision: 1.15
Committed: Sat Sep 24 06:32:50 2022 UTC (19 months, 3 weeks ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +34 -194 lines
Log Message:
*** empty log message ***

File Contents

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