Debian Codegraph @

modules/zlib/configure

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