beta-0.89.2
[luatex.git] / source / libs / zziplib / configure
blob5e0860088345e4b219f7ff617736d86efa3a94d8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zziplib (TeX Live) 0.13.62.
5 # Report bugs to <tex-k@tug.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='zziplib (TeX Live)'
582 PACKAGE_TARNAME='zziplib--tex-live-'
583 PACKAGE_VERSION='0.13.62'
584 PACKAGE_STRING='zziplib (TeX Live) 0.13.62'
585 PACKAGE_BUGREPORT='tex-k@tug.org'
586 PACKAGE_URL=''
588 ac_unique_file="zziplib-0.13.62/zziplib.spec"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 ZZIPLIB_TREE
630 build_FALSE
631 build_TRUE
632 ZLIB_RULE
633 ZLIB_DEPEND
634 ZLIB_LIBS
635 ZLIB_INCLUDES
636 ZZIPLIB_DEFINES
637 EGREP
638 GREP
640 VISIBILITY_CFLAGS
641 LN_S
642 RANLIB
643 host_os
644 host_vendor
645 host_cpu
646 host
647 build_os
648 build_vendor
649 build_cpu
650 build
651 WARNING_CFLAGS
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 am__nodep
656 AMDEPBACKSLASH
657 AMDEP_FALSE
658 AMDEP_TRUE
659 am__quote
660 am__include
661 DEPDIR
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
669 MAINT
670 MAINTAINER_MODE_FALSE
671 MAINTAINER_MODE_TRUE
672 AM_BACKSLASH
673 AM_DEFAULT_VERBOSITY
674 AM_DEFAULT_V
675 AM_V
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_silent_rules
741 enable_maintainer_mode
742 enable_dependency_tracking
743 enable_compiler_warnings
744 enable_largefile
745 with_system_zlib
746 with_zlib_includes
747 with_zlib_libdir
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP'
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
808 ac_prev=
809 ac_dashdash=
810 for ac_option
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
819 case $ac_option in
820 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *=) ac_optarg= ;;
822 *) ac_optarg=yes ;;
823 esac
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
829 ac_dashdash=yes ;;
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 ac_prev=bindir ;;
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 bindir=$ac_optarg ;;
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
848 --config-cache | -C)
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
852 ac_prev=datadir ;;
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
872 "enable_$ac_useropt"
873 "*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=no ;;
879 -docdir | --docdir | --docdi | --doc | --do)
880 ac_prev=docdir ;;
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 docdir=$ac_optarg ;;
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 ac_prev=dvidir ;;
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 dvidir=$ac_optarg ;;
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=\$ac_optarg ;;
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
916 with_gas=yes ;;
918 -help | --help | --hel | --he | -h)
919 ac_init_help=long ;;
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 ac_prev=htmldir ;;
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 | --ht=*)
934 htmldir=$ac_optarg ;;
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 ac_prev=infodir ;;
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
948 -libdir | --libdir | --libdi | --libd)
949 ac_prev=libdir ;;
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 libdir=$ac_optarg ;;
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
960 -localedir | --localedir | --localedi | --localed | --locale)
961 ac_prev=localedir ;;
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 ac_prev=mandir ;;
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 mandir=$ac_optarg ;;
977 -nfp | --nfp | --nf)
978 # Obsolete; use --without-fp.
979 with_fp=no ;;
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
983 no_create=yes ;;
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 no_recursion=yes ;;
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 ac_prev=prefix ;;
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 ac_prev=pdfdir ;;
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1039 -psdir | --psdir | --psdi | --psd | --ps)
1040 ac_prev=psdir ;;
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 psdir=$ac_optarg ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 silent=yes ;;
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 ac_prev=sbindir ;;
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 | --sbi=* | --sb=*)
1052 sbindir=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1057 | --sha | --sh)
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 | --sha=* | --sh=*)
1063 sharedstatedir=$ac_optarg ;;
1065 -site | --site | --sit)
1066 ac_prev=site ;;
1067 -site=* | --site=* | --sit=*)
1068 site=$ac_optarg ;;
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 ac_prev=srcdir ;;
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 verbose=yes ;;
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1093 -with-* | --with-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=no ;;
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153 esac
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 esac
1166 done
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error $? "missing argument to $ac_option"
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1175 no) ;;
1176 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 esac
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1189 case $ac_val in
1190 */ )
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1193 esac
1194 # Be sure to have absolute directory names.
1195 case $ac_val in
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 esac
1199 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 done
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 elif test "x$build_alias" != "x$host_alias"; then
1214 cross_compiling=yes
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221 test "$silent" = yes && exec 6>/dev/null
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 s//\1/
1246 /^X\(\/\/\)[^/].*/{
1247 s//\1/
1250 /^X\(\/\/\)$/{
1251 s//\1/
1254 /^X\(\/\).*/{
1255 s//\1/
1258 s/.*/./; q'`
1259 srcdir=$ac_confdir
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 srcdir=..
1263 else
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298 \`configure' configures zziplib (TeX Live) 0.13.62 to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1307 Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root
1347 [DATAROOTDIR/doc/zziplib--tex-live-]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352 _ACEOF
1354 cat <<\_ACEOF
1356 Program names:
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361 System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 _ACEOF
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of zziplib (TeX Live) 0.13.62:";;
1370 esac
1371 cat <<\_ACEOF
1373 Optional Features:
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-silent-rules less verbose build output (undo: "make V=1")
1378 --disable-silent-rules verbose build output (undo: "make V=0")
1379 --enable-maintainer-mode
1380 enable make rules and dependencies not useful (and
1381 sometimes confusing) to the casual installer
1382 --enable-dependency-tracking
1383 do not reject slow dependency extractors
1384 --disable-dependency-tracking
1385 speeds up one-time build
1386 --enable-compiler-warnings=[no|min|yes|max|all]
1387 Turn on compiler warnings [default: yes if
1388 maintainer-mode, min otherwise]
1389 --disable-largefile omit support for large files
1391 Optional Packages:
1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1394 --with-system-zlib use installed zlib headers and library
1395 --with-zlib-includes=DIR
1396 zlib headers installed in DIR
1397 --with-zlib-libdir=DIR zlib library installed in DIR
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CPP C preprocessor
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 Report bugs to <tex-k@tug.org>.
1413 _ACEOF
1414 ac_status=$?
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 continue
1423 ac_builddir=.
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1441 case $srcdir in
1442 .) # We are building in place.
1443 ac_srcdir=.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1465 else
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1469 done
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474 cat <<\_ACEOF
1475 zziplib (TeX Live) configure 0.13.62
1476 generated by GNU Autoconf 2.69
1478 Copyright (C) 2012 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482 exit
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1497 case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1504 ac_status=$?
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1515 ac_retval=0
1516 else
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1520 ac_retval=1
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_c_try_link LINENO
1528 # -----------------------
1529 # Try to link conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_link ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext conftest$ac_exeext
1534 if { { ac_try="$ac_link"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_link") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest$ac_exeext && {
1553 test "$cross_compiling" = yes ||
1554 test -x conftest$ac_exeext
1555 }; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1561 ac_retval=1
1563 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1564 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1565 # interfere with the next link command; also delete a directory that is
1566 # left behind by Apple's compiler. We do this before executing the actions.
1567 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1571 } # ac_fn_c_try_link
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_cpp ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } > conftest.i && {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=1
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_cpp
1610 # ac_fn_c_try_run LINENO
1611 # ----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613 # that executables *can* be run.
1614 ac_fn_c_try_run ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_link"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>&5
1625 ac_status=$?
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628 { { case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_try") 2>&5
1635 ac_status=$?
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; }; }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: program exited with status $ac_status" >&5
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=$ac_status
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_run
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1656 # accordingly.
1657 ac_fn_c_check_header_mongrel ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if eval \${$3+:} false; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 else
1670 # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1680 else
1681 ac_header_compiler=no
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1696 else
1697 ac_header_preproc=no
1699 rm -f conftest.err conftest.i conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1703 # So? What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705 yes:no: )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711 no:yes:* )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ( $as_echo "## ---------------------------- ##
1723 ## Report this to tex-k@tug.org ##
1724 ## ---------------------------- ##"
1725 ) | sed "s/^/$as_me: WARNING: /" >&2
1727 esac
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 eval "$3=\$ac_header_compiler"
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_mongrel
1743 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists and can be compiled using the include files in
1746 # INCLUDES, setting the cache variable VAR accordingly.
1747 ac_fn_c_check_header_compile ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_header_compile
1774 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1775 # -------------------------------------------
1776 # Tests whether TYPE exists after having included INCLUDES, setting cache
1777 # variable VAR accordingly.
1778 ac_fn_c_check_type ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 eval "$3=no"
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1791 main ()
1793 if (sizeof ($2))
1794 return 0;
1796 return 0;
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 main ()
1806 if (sizeof (($2)))
1807 return 0;
1809 return 0;
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1814 else
1815 eval "$3=yes"
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_type
1828 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1829 # --------------------------------------------
1830 # Tries to find the compile-time value of EXPR in a program that includes
1831 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1832 # computed
1833 ac_fn_c_compute_int ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if test "$cross_compiling" = yes; then
1837 # Depending upon the size, compute the lo and hi bounds.
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1842 main ()
1844 static int test_array [1 - 2 * !(($2) >= 0)];
1845 test_array [0] = 0;
1846 return test_array [0];
1849 return 0;
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853 ac_lo=0 ac_mid=0
1854 while :; do
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1859 main ()
1861 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1862 test_array [0] = 0;
1863 return test_array [0];
1866 return 0;
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 ac_hi=$ac_mid; break
1871 else
1872 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1873 if test $ac_lo -le $ac_mid; then
1874 ac_lo= ac_hi=
1875 break
1877 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 done
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1886 main ()
1888 static int test_array [1 - 2 * !(($2) < 0)];
1889 test_array [0] = 0;
1890 return test_array [0];
1893 return 0;
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_hi=-1 ac_mid=-1
1898 while :; do
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1903 main ()
1905 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1906 test_array [0] = 0;
1907 return test_array [0];
1910 return 0;
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_lo=$ac_mid; break
1915 else
1916 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1917 if test $ac_mid -le $ac_hi; then
1918 ac_lo= ac_hi=
1919 break
1921 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 done
1925 else
1926 ac_lo= ac_hi=
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 # Binary search between lo and hi bounds.
1932 while test "x$ac_lo" != "x$ac_hi"; do
1933 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 main ()
1940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1941 test_array [0] = 0;
1942 return test_array [0];
1945 return 0;
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 ac_hi=$ac_mid
1950 else
1951 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 done
1955 case $ac_lo in #((
1956 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1957 '') ac_retval=1 ;;
1958 esac
1959 else
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1963 static long int longval () { return $2; }
1964 static unsigned long int ulongval () { return $2; }
1965 #include <stdio.h>
1966 #include <stdlib.h>
1968 main ()
1971 FILE *f = fopen ("conftest.val", "w");
1972 if (! f)
1973 return 1;
1974 if (($2) < 0)
1976 long int i = longval ();
1977 if (i != ($2))
1978 return 1;
1979 fprintf (f, "%ld", i);
1981 else
1983 unsigned long int i = ulongval ();
1984 if (i != ($2))
1985 return 1;
1986 fprintf (f, "%lu", i);
1988 /* Do not output a trailing newline, as this causes \r\n confusion
1989 on some platforms. */
1990 return ferror (f) || fclose (f) != 0;
1993 return 0;
1995 _ACEOF
1996 if ac_fn_c_try_run "$LINENO"; then :
1997 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1998 else
1999 ac_retval=1
2001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2002 conftest.$ac_objext conftest.beam conftest.$ac_ext
2003 rm -f conftest.val
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_c_compute_int
2011 # ac_fn_c_check_func LINENO FUNC VAR
2012 # ----------------------------------
2013 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2014 ac_fn_c_check_func ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2026 #define $2 innocuous_$2
2028 /* System header to define __stub macros and hopefully few prototypes,
2029 which can conflict with char $2 (); below.
2030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2031 <limits.h> exists even on freestanding compilers. */
2033 #ifdef __STDC__
2034 # include <limits.h>
2035 #else
2036 # include <assert.h>
2037 #endif
2039 #undef $2
2041 /* Override any GCC internal prototype to avoid an error.
2042 Use char because int might match the return type of a GCC
2043 builtin and then its argument prototype would still apply. */
2044 #ifdef __cplusplus
2045 extern "C"
2046 #endif
2047 char $2 ();
2048 /* The GNU C library defines this for functions which it implements
2049 to always fail with ENOSYS. Some functions are actually named
2050 something starting with __ and the normal name is an alias. */
2051 #if defined __stub_$2 || defined __stub___$2
2052 choke me
2053 #endif
2056 main ()
2058 return $2 ();
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_link "$LINENO"; then :
2064 eval "$3=yes"
2065 else
2066 eval "$3=no"
2068 rm -f core conftest.err conftest.$ac_objext \
2069 conftest$ac_exeext conftest.$ac_ext
2071 eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_func
2077 cat >config.log <<_ACEOF
2078 This file contains any messages produced by compilers while
2079 running configure, to aid debugging if configure makes a mistake.
2081 It was created by zziplib (TeX Live) $as_me 0.13.62, which was
2082 generated by GNU Autoconf 2.69. Invocation command line was
2084 $ $0 $@
2086 _ACEOF
2087 exec 5>>config.log
2089 cat <<_ASUNAME
2090 ## --------- ##
2091 ## Platform. ##
2092 ## --------- ##
2094 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2095 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2096 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2097 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2098 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2101 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2103 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2104 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2105 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2106 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2107 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2108 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2109 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111 _ASUNAME
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 $as_echo "PATH: $as_dir"
2119 done
2120 IFS=$as_save_IFS
2122 } >&5
2124 cat >&5 <<_ACEOF
2127 ## ----------- ##
2128 ## Core tests. ##
2129 ## ----------- ##
2131 _ACEOF
2134 # Keep a trace of the command line.
2135 # Strip out --no-create and --no-recursion so they do not pile up.
2136 # Strip out --silent because we don't want to record it for future runs.
2137 # Also quote any args containing shell meta-characters.
2138 # Make two passes to allow for proper duplicate-argument suppression.
2139 ac_configure_args=
2140 ac_configure_args0=
2141 ac_configure_args1=
2142 ac_must_keep_next=false
2143 for ac_pass in 1 2
2145 for ac_arg
2147 case $ac_arg in
2148 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2150 | -silent | --silent | --silen | --sile | --sil)
2151 continue ;;
2152 *\'*)
2153 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 esac
2155 case $ac_pass in
2156 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158 as_fn_append ac_configure_args1 " '$ac_arg'"
2159 if test $ac_must_keep_next = true; then
2160 ac_must_keep_next=false # Got value, back to normal.
2161 else
2162 case $ac_arg in
2163 *=* | --config-cache | -C | -disable-* | --disable-* \
2164 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2165 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2166 | -with-* | --with-* | -without-* | --without-* | --x)
2167 case "$ac_configure_args0 " in
2168 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169 esac
2171 -* ) ac_must_keep_next=true ;;
2172 esac
2174 as_fn_append ac_configure_args " '$ac_arg'"
2176 esac
2177 done
2178 done
2179 { ac_configure_args0=; unset ac_configure_args0;}
2180 { ac_configure_args1=; unset ac_configure_args1;}
2182 # When interrupted or exit'd, cleanup temporary files, and complete
2183 # config.log. We remove comments because anyway the quotes in there
2184 # would cause problems or look ugly.
2185 # WARNING: Use '\'' to represent an apostrophe within the trap.
2186 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2187 trap 'exit_status=$?
2188 # Save into config.log some information that might help in debugging.
2190 echo
2192 $as_echo "## ---------------- ##
2193 ## Cache variables. ##
2194 ## ---------------- ##"
2195 echo
2196 # The following way of writing the cache mishandles newlines in values,
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in #(
2201 *${as_nl}*)
2202 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205 esac
2206 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;;
2210 esac ;;
2211 esac
2212 done
2213 (set) 2>&1 |
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
2216 sed -n \
2217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 ;; #(
2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223 esac |
2224 sort
2226 echo
2228 $as_echo "## ----------------- ##
2229 ## Output variables. ##
2230 ## ----------------- ##"
2231 echo
2232 for ac_var in $ac_subst_vars
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
2242 if test -n "$ac_subst_files"; then
2243 $as_echo "## ------------------- ##
2244 ## File substitutions. ##
2245 ## ------------------- ##"
2246 echo
2247 for ac_var in $ac_subst_files
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2258 if test -s confdefs.h; then
2259 $as_echo "## ----------- ##
2260 ## confdefs.h. ##
2261 ## ----------- ##"
2262 echo
2263 cat confdefs.h
2264 echo
2266 test "$ac_signal" != 0 &&
2267 $as_echo "$as_me: caught signal $ac_signal"
2268 $as_echo "$as_me: exit $exit_status"
2269 } >&5
2270 rm -f core *.core core.conftest.* &&
2271 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2272 exit $exit_status
2274 for ac_signal in 1 2 13 15; do
2275 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2276 done
2277 ac_signal=0
2279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2280 rm -f -r conftest* confdefs.h
2282 $as_echo "/* confdefs.h */" > confdefs.h
2284 # Predefined preprocessor variables.
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_NAME "$PACKAGE_NAME"
2288 _ACEOF
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2292 _ACEOF
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2296 _ACEOF
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_STRING "$PACKAGE_STRING"
2300 _ACEOF
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2304 _ACEOF
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_URL "$PACKAGE_URL"
2308 _ACEOF
2311 # Let the site file select an alternate cache file if it wants to.
2312 # Prefer an explicitly selected file to automatically selected ones.
2313 ac_site_file1=NONE
2314 ac_site_file2=NONE
2315 if test -n "$CONFIG_SITE"; then
2316 # We do not want a PATH search for config.site.
2317 case $CONFIG_SITE in #((
2318 -*) ac_site_file1=./$CONFIG_SITE;;
2319 */*) ac_site_file1=$CONFIG_SITE;;
2320 *) ac_site_file1=./$CONFIG_SITE;;
2321 esac
2322 elif test "x$prefix" != xNONE; then
2323 ac_site_file1=$prefix/share/config.site
2324 ac_site_file2=$prefix/etc/config.site
2325 else
2326 ac_site_file1=$ac_default_prefix/share/config.site
2327 ac_site_file2=$ac_default_prefix/etc/config.site
2329 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 test "x$ac_site_file" = xNONE && continue
2332 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2334 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2335 sed 's/^/| /' "$ac_site_file" >&5
2336 . "$ac_site_file" \
2337 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2339 as_fn_error $? "failed to load site script $ac_site_file
2340 See \`config.log' for more details" "$LINENO" 5; }
2342 done
2344 if test -r "$cache_file"; then
2345 # Some versions of bash will fail to source /dev/null (special files
2346 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2347 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2349 $as_echo "$as_me: loading cache $cache_file" >&6;}
2350 case $cache_file in
2351 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2352 *) . "./$cache_file";;
2353 esac
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2357 $as_echo "$as_me: creating cache $cache_file" >&6;}
2358 >$cache_file
2361 # Check that the precious variables saved in the cache have kept the same
2362 # value.
2363 ac_cache_corrupted=false
2364 for ac_var in $ac_precious_vars; do
2365 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2366 eval ac_new_set=\$ac_env_${ac_var}_set
2367 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2368 eval ac_new_val=\$ac_env_${ac_var}_value
2369 case $ac_old_set,$ac_new_set in
2370 set,)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2374 ,set)
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2376 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2377 ac_cache_corrupted=: ;;
2378 ,);;
2380 if test "x$ac_old_val" != "x$ac_new_val"; then
2381 # differences in whitespace do not lead to failure.
2382 ac_old_val_w=`echo x $ac_old_val`
2383 ac_new_val_w=`echo x $ac_new_val`
2384 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2386 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2387 ac_cache_corrupted=:
2388 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2390 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2391 eval $ac_var=\$ac_old_val
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2394 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2396 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2397 fi;;
2398 esac
2399 # Pass precious variables to config.status.
2400 if test "$ac_new_set" = set; then
2401 case $ac_new_val in
2402 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2403 *) ac_arg=$ac_var=$ac_new_val ;;
2404 esac
2405 case " $ac_configure_args " in
2406 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2407 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2408 esac
2410 done
2411 if $ac_cache_corrupted; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2415 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2416 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2418 ## -------------------- ##
2419 ## Main body of script. ##
2420 ## -------------------- ##
2422 ac_ext=c
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 ac_aux_dir=
2432 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2433 if test -f "$ac_dir/install-sh"; then
2434 ac_aux_dir=$ac_dir
2435 ac_install_sh="$ac_aux_dir/install-sh -c"
2436 break
2437 elif test -f "$ac_dir/install.sh"; then
2438 ac_aux_dir=$ac_dir
2439 ac_install_sh="$ac_aux_dir/install.sh -c"
2440 break
2441 elif test -f "$ac_dir/shtool"; then
2442 ac_aux_dir=$ac_dir
2443 ac_install_sh="$ac_aux_dir/shtool install -c"
2444 break
2446 done
2447 if test -z "$ac_aux_dir"; then
2448 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2451 # These three variables are undocumented and unsupported,
2452 # and are intended to be withdrawn in a future Autoconf release.
2453 # They can cause serious problems if a builder's source tree is in a directory
2454 # whose full name contains unusual characters.
2455 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2456 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2457 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2462 am__api_version='1.15'
2464 # Find a good install program. We prefer a C program (faster),
2465 # so one script is as good as another. But avoid the broken or
2466 # incompatible versions:
2467 # SysV /etc/install, /usr/sbin/install
2468 # SunOS /usr/etc/install
2469 # IRIX /sbin/install
2470 # AIX /bin/install
2471 # AmigaOS /C/install, which installs bootblocks on floppy discs
2472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2475 # OS/2's system install, which has a completely different semantic
2476 # ./install, which can be erroneously created by make from ./install.sh.
2477 # Reject install programs that cannot install multiple files.
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2479 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2480 if test -z "$INSTALL"; then
2481 if ${ac_cv_path_install+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 # Account for people who put trailing slashes in PATH elements.
2490 case $as_dir/ in #((
2491 ./ | .// | /[cC]/* | \
2492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2493 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2494 /usr/ucb/* ) ;;
2496 # OSF1 and SCO ODT 3.0 have their own names for install.
2497 # Don't use installbsd from OSF since it installs stuff as root
2498 # by default.
2499 for ac_prog in ginstall scoinst install; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2502 if test $ac_prog = install &&
2503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2504 # AIX install. It has an incompatible calling convention.
2506 elif test $ac_prog = install &&
2507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508 # program-specific install script used by HP pwplus--don't use.
2510 else
2511 rm -rf conftest.one conftest.two conftest.dir
2512 echo one > conftest.one
2513 echo two > conftest.two
2514 mkdir conftest.dir
2515 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2516 test -s conftest.one && test -s conftest.two &&
2517 test -s conftest.dir/conftest.one &&
2518 test -s conftest.dir/conftest.two
2519 then
2520 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2521 break 3
2525 done
2526 done
2528 esac
2530 done
2531 IFS=$as_save_IFS
2533 rm -rf conftest.one conftest.two conftest.dir
2536 if test "${ac_cv_path_install+set}" = set; then
2537 INSTALL=$ac_cv_path_install
2538 else
2539 # As a last resort, use the slow shell script. Don't cache a
2540 # value for INSTALL within a source directory, because that will
2541 # break other packages using the cache if that directory is
2542 # removed, or if the value is a relative name.
2543 INSTALL=$ac_install_sh
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2547 $as_echo "$INSTALL" >&6; }
2549 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550 # It thinks the first close brace ends the variable substitution.
2551 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2553 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2555 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2558 $as_echo_n "checking whether build environment is sane... " >&6; }
2559 # Reject unsafe characters in $srcdir or the absolute working directory
2560 # name. Accept space and tab only in the latter.
2561 am_lf='
2563 case `pwd` in
2564 *[\\\"\#\$\&\'\`$am_lf]*)
2565 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2566 esac
2567 case $srcdir in
2568 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2569 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2570 esac
2572 # Do 'set' in a subshell so we don't clobber the current shell's
2573 # arguments. Must try -L first in case configure is actually a
2574 # symlink; some systems play weird games with the mod time of symlinks
2575 # (eg FreeBSD returns the mod time of the symlink's containing
2576 # directory).
2577 if (
2578 am_has_slept=no
2579 for am_try in 1 2; do
2580 echo "timestamp, slept: $am_has_slept" > conftest.file
2581 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2582 if test "$*" = "X"; then
2583 # -L didn't work.
2584 set X `ls -t "$srcdir/configure" conftest.file`
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
2593 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" "$LINENO" 5
2596 if test "$2" = conftest.file || test $am_try -eq 2; then
2597 break
2599 # Just in case.
2600 sleep 1
2601 am_has_slept=yes
2602 done
2603 test "$2" = conftest.file
2605 then
2606 # Ok.
2608 else
2609 as_fn_error $? "newly created file is older than distributed files!
2610 Check your system clock" "$LINENO" 5
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2613 $as_echo "yes" >&6; }
2614 # If we didn't sleep, we still need to ensure time stamps of config.status and
2615 # generated files are strictly newer.
2616 am_sleep_pid=
2617 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2618 ( sleep 1 ) &
2619 am_sleep_pid=$!
2622 rm -f conftest.file
2624 test "$program_prefix" != NONE &&
2625 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2626 # Use a double $ so make ignores it.
2627 test "$program_suffix" != NONE &&
2628 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2629 # Double any \ or $.
2630 # By default was `s,x,x', remove it if useless.
2631 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2632 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2634 # Expand $ac_aux_dir to an absolute path.
2635 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2637 if test x"${MISSING+set}" != xset; then
2638 case $am_aux_dir in
2639 *\ * | *\ *)
2640 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2642 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2643 esac
2645 # Use eval to expand $SHELL
2646 if eval "$MISSING --is-lightweight"; then
2647 am_missing_run="$MISSING "
2648 else
2649 am_missing_run=
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2651 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2654 if test x"${install_sh+set}" != xset; then
2655 case $am_aux_dir in
2656 *\ * | *\ *)
2657 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2659 install_sh="\${SHELL} $am_aux_dir/install-sh"
2660 esac
2663 # Installed binaries are usually stripped using 'strip' when the user
2664 # run "make install-strip". However 'strip' might not be the right
2665 # tool to use in cross-compilation environments, therefore Automake
2666 # will honor the 'STRIP' environment variable to overrule this program.
2667 if test "$cross_compiling" != no; then
2668 if test -n "$ac_tool_prefix"; then
2669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}strip; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_STRIP+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$STRIP"; then
2677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2692 IFS=$as_save_IFS
2696 STRIP=$ac_cv_prog_STRIP
2697 if test -n "$STRIP"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2699 $as_echo "$STRIP" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2707 if test -z "$ac_cv_prog_STRIP"; then
2708 ac_ct_STRIP=$STRIP
2709 # Extract the first word of "strip", so it can be a program name with args.
2710 set dummy strip; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$ac_ct_STRIP"; then
2717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_ac_ct_STRIP="strip"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2737 if test -n "$ac_ct_STRIP"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2739 $as_echo "$ac_ct_STRIP" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2745 if test "x$ac_ct_STRIP" = x; then
2746 STRIP=":"
2747 else
2748 case $cross_compiling:$ac_tool_warned in
2749 yes:)
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752 ac_tool_warned=yes ;;
2753 esac
2754 STRIP=$ac_ct_STRIP
2756 else
2757 STRIP="$ac_cv_prog_STRIP"
2761 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2764 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2765 if test -z "$MKDIR_P"; then
2766 if ${ac_cv_path_mkdir+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_prog in mkdir gmkdir; do
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2777 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2778 'mkdir (GNU coreutils) '* | \
2779 'mkdir (coreutils) '* | \
2780 'mkdir (fileutils) '4.1*)
2781 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2782 break 3;;
2783 esac
2784 done
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 test -d ./--version && rmdir ./--version
2792 if test "${ac_cv_path_mkdir+set}" = set; then
2793 MKDIR_P="$ac_cv_path_mkdir -p"
2794 else
2795 # As a last resort, use the slow shell script. Don't cache a
2796 # value for MKDIR_P within a source directory, because that will
2797 # break other packages using the cache if that directory is
2798 # removed, or if the value is a relative name.
2799 MKDIR_P="$ac_install_sh -d"
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2803 $as_echo "$MKDIR_P" >&6; }
2805 for ac_prog in gawk mawk nawk awk
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_AWK+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$AWK"; then
2815 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_AWK="$ac_prog"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2830 IFS=$as_save_IFS
2834 AWK=$ac_cv_prog_AWK
2835 if test -n "$AWK"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2837 $as_echo "$AWK" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2844 test -n "$AWK" && break
2845 done
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2848 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2849 set x ${MAKE-make}
2850 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2851 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 cat >conftest.make <<\_ACEOF
2855 SHELL = /bin/sh
2856 all:
2857 @echo '@@@%%%=$(MAKE)=@@@%%%'
2858 _ACEOF
2859 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2860 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2861 *@@@%%%=?*=@@@%%%*)
2862 eval ac_cv_prog_make_${ac_make}_set=yes;;
2864 eval ac_cv_prog_make_${ac_make}_set=no;;
2865 esac
2866 rm -f conftest.make
2868 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2870 $as_echo "yes" >&6; }
2871 SET_MAKE=
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 SET_MAKE="MAKE=${MAKE-make}"
2878 rm -rf .tst 2>/dev/null
2879 mkdir .tst 2>/dev/null
2880 if test -d .tst; then
2881 am__leading_dot=.
2882 else
2883 am__leading_dot=_
2885 rmdir .tst 2>/dev/null
2887 # Check whether --enable-silent-rules was given.
2888 if test "${enable_silent_rules+set}" = set; then :
2889 enableval=$enable_silent_rules;
2892 case $enable_silent_rules in # (((
2893 yes) AM_DEFAULT_VERBOSITY=0;;
2894 no) AM_DEFAULT_VERBOSITY=1;;
2895 *) AM_DEFAULT_VERBOSITY=1;;
2896 esac
2897 am_make=${MAKE-make}
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2899 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2900 if ${am_cv_make_support_nested_variables+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if $as_echo 'TRUE=$(BAR$(V))
2904 BAR0=false
2905 BAR1=true
2907 am__doit:
2908 @$(TRUE)
2909 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2910 am_cv_make_support_nested_variables=yes
2911 else
2912 am_cv_make_support_nested_variables=no
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2916 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2917 if test $am_cv_make_support_nested_variables = yes; then
2918 AM_V='$(V)'
2919 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2920 else
2921 AM_V=$AM_DEFAULT_VERBOSITY
2922 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2924 AM_BACKSLASH='\'
2926 DEPDIR="${am__leading_dot}deps"
2928 ac_config_commands="$ac_config_commands depfiles"
2931 am_make=${MAKE-make}
2932 cat > confinc << 'END'
2933 am__doit:
2934 @echo this is the am__doit target
2935 .PHONY: am__doit
2937 # If we don't find an include directive, just comment out the code.
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2939 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2940 am__include="#"
2941 am__quote=
2942 _am_result=none
2943 # First try GNU make style include.
2944 echo "include confinc" > confmf
2945 # Ignore all kinds of additional output from 'make'.
2946 case `$am_make -s -f confmf 2> /dev/null` in #(
2947 *the\ am__doit\ target*)
2948 am__include=include
2949 am__quote=
2950 _am_result=GNU
2952 esac
2953 # Now try BSD make style include.
2954 if test "$am__include" = "#"; then
2955 echo '.include "confinc"' > confmf
2956 case `$am_make -s -f confmf 2> /dev/null` in #(
2957 *the\ am__doit\ target*)
2958 am__include=.include
2959 am__quote="\""
2960 _am_result=BSD
2962 esac
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2967 $as_echo "$_am_result" >&6; }
2968 rm -f confinc confmf
2970 # Check whether --enable-dependency-tracking was given.
2971 if test "${enable_dependency_tracking+set}" = set; then :
2972 enableval=$enable_dependency_tracking;
2975 if test "x$enable_dependency_tracking" != xno; then
2976 am_depcomp="$ac_aux_dir/depcomp"
2977 AMDEPBACKSLASH='\'
2978 am__nodep='_no'
2980 if test "x$enable_dependency_tracking" != xno; then
2981 AMDEP_TRUE=
2982 AMDEP_FALSE='#'
2983 else
2984 AMDEP_TRUE='#'
2985 AMDEP_FALSE=
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3033 if test -z "$ac_cv_prog_CC"; then
3034 ac_ct_CC=$CC
3035 # Extract the first word of "gcc", so it can be a program name with args.
3036 set dummy gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_ac_ct_CC="gcc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065 $as_echo "$ac_ct_CC" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3071 if test "x$ac_ct_CC" = x; then
3072 CC=""
3073 else
3074 case $cross_compiling:$ac_tool_warned in
3075 yes:)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3079 esac
3080 CC=$ac_ct_CC
3082 else
3083 CC="$ac_cv_prog_CC"
3086 if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_CC="${ac_tool_prefix}cc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3127 if test -z "$CC"; then
3128 # Extract the first word of "cc", so it can be a program name with args.
3129 set dummy cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 ac_prog_rejected=no
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147 ac_prog_rejected=yes
3148 continue
3150 ac_cv_prog_CC="cc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3156 IFS=$as_save_IFS
3158 if test $ac_prog_rejected = yes; then
3159 # We found a bogon in the path, so make sure we never use it.
3160 set dummy $ac_cv_prog_CC
3161 shift
3162 if test $# != 0; then
3163 # We chose a different compiler from the bogus one.
3164 # However, it has the same basename, so the bogon will be chosen
3165 # first if we set CC to just the basename; use the full file name.
3166 shift
3167 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3183 if test -z "$CC"; then
3184 if test -n "$ac_tool_prefix"; then
3185 for ac_prog in cl.exe
3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$CC" && break
3225 done
3227 if test -z "$CC"; then
3228 ac_ct_CC=$CC
3229 for ac_prog in cl.exe
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$ac_ct_CC"; then
3239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_ac_ct_CC="$ac_prog"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259 if test -n "$ac_ct_CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3261 $as_echo "$ac_ct_CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3268 test -n "$ac_ct_CC" && break
3269 done
3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275 yes:)
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 ac_tool_warned=yes ;;
3279 esac
3280 CC=$ac_ct_CC
3287 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 # Provide some information about the compiler.
3293 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3294 set X $ac_compile
3295 ac_compiler=$2
3296 for ac_option in --version -v -V -qversion; do
3297 { { ac_try="$ac_compiler $ac_option >&5"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3305 ac_status=$?
3306 if test -s conftest.err; then
3307 sed '10a\
3308 ... rest of stderr output deleted ...
3309 10q' conftest.err >conftest.er1
3310 cat conftest.er1 >&5
3312 rm -f conftest.er1 conftest.err
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }
3315 done
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3321 main ()
3325 return 0;
3327 _ACEOF
3328 ac_clean_files_save=$ac_clean_files
3329 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3330 # Try to create an executable without -o first, disregard a.out.
3331 # It will help us diagnose broken compilers, and finding out an intuition
3332 # of exeext.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3337 # The possible output files:
3338 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3340 ac_rmfiles=
3341 for ac_file in $ac_files
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3346 esac
3347 done
3348 rm -f $ac_rmfiles
3350 if { { ac_try="$ac_link_default"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link_default") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }; then :
3361 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3363 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3364 # so that the user can short-circuit this test for compilers unknown to
3365 # Autoconf.
3366 for ac_file in $ac_files ''
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3372 [ab].out )
3373 # We found the default executable, but exeext='' is most
3374 # certainly right.
3375 break;;
3376 *.* )
3377 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3378 then :; else
3379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381 # We set ac_cv_exeext here because the later test for it is not
3382 # safe: cross compilers may not add the suffix if given an `-o'
3383 # argument, so we may need to know it at that point already.
3384 # Even if this section looks crufty: it has the advantage of
3385 # actually working.
3386 break;;
3388 break;;
3389 esac
3390 done
3391 test "$ac_cv_exeext" = no && ac_cv_exeext=
3393 else
3394 ac_file=''
3396 if test -z "$ac_file"; then :
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error 77 "C compiler cannot create executables
3405 See \`config.log' for more details" "$LINENO" 5; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3411 $as_echo_n "checking for C compiler default output file name... " >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3413 $as_echo "$ac_file" >&6; }
3414 ac_exeext=$ac_cv_exeext
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419 $as_echo_n "checking for suffix of executables... " >&6; }
3420 if { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3433 # work properly (i.e., refer to `conftest.exe'), while it won't with
3434 # `rm'.
3435 for ac_file in conftest.exe conftest conftest.*; do
3436 test -f "$ac_file" || continue
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440 break;;
3441 * ) break;;
3442 esac
3443 done
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details" "$LINENO" 5; }
3450 rm -f conftest conftest$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3456 ac_exeext=$EXEEXT
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <stdio.h>
3461 main ()
3463 FILE *f = fopen ("conftest.out", "w");
3464 return ferror (f) || fclose (f) != 0;
3467 return 0;
3469 _ACEOF
3470 ac_clean_files="$ac_clean_files conftest.out"
3471 # Check that the compiler produces executables we can run. If not, either
3472 # the compiler is broken, or we cross compile.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3474 $as_echo_n "checking whether we are cross compiling... " >&6; }
3475 if test "$cross_compiling" != yes; then
3476 { { ac_try="$ac_link"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }
3487 if { ac_try='./conftest$ac_cv_exeext'
3488 { { case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_try") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; }; then
3498 cross_compiling=no
3499 else
3500 if test "$cross_compiling" = maybe; then
3501 cross_compiling=yes
3502 else
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details" "$LINENO" 5; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3514 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3517 $as_echo_n "checking for suffix of object files... " >&6; }
3518 if ${ac_cv_objext+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 rm -f conftest.o conftest.obj
3533 if { { ac_try="$ac_compile"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_compile") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 for ac_file in conftest.o conftest.obj conftest.*; do
3545 test -f "$ac_file" || continue;
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3548 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3549 break;;
3550 esac
3551 done
3552 else
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of object files: cannot compile
3559 See \`config.log' for more details" "$LINENO" 5; }
3561 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3564 $as_echo "$ac_cv_objext" >&6; }
3565 OBJEXT=$ac_cv_objext
3566 ac_objext=$OBJEXT
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569 if ${ac_cv_c_compiler_gnu+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3576 main ()
3578 #ifndef __GNUC__
3579 choke me
3580 #endif
3583 return 0;
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_compiler_gnu=yes
3588 else
3589 ac_compiler_gnu=no
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597 if test $ac_compiler_gnu = yes; then
3598 GCC=yes
3599 else
3600 GCC=
3602 ac_test_CFLAGS=${CFLAGS+set}
3603 ac_save_CFLAGS=$CFLAGS
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3606 if ${ac_cv_prog_cc_g+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 ac_save_c_werror_flag=$ac_c_werror_flag
3610 ac_c_werror_flag=yes
3611 ac_cv_prog_cc_g=no
3612 CFLAGS="-g"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3617 main ()
3621 return 0;
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_g=yes
3626 else
3627 CFLAGS=""
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3632 main ()
3636 return 0;
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3641 else
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3643 CFLAGS="-g"
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3648 main ()
3652 return 0;
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_g=yes
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666 $as_echo "$ac_cv_prog_cc_g" >&6; }
3667 if test "$ac_test_CFLAGS" = set; then
3668 CFLAGS=$ac_save_CFLAGS
3669 elif test $ac_cv_prog_cc_g = yes; then
3670 if test "$GCC" = yes; then
3671 CFLAGS="-g -O2"
3672 else
3673 CFLAGS="-g"
3675 else
3676 if test "$GCC" = yes; then
3677 CFLAGS="-O2"
3678 else
3679 CFLAGS=
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684 if ${ac_cv_prog_cc_c89+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 ac_cv_prog_cc_c89=no
3688 ac_save_CC=$CC
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691 #include <stdarg.h>
3692 #include <stdio.h>
3693 struct stat;
3694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3695 struct buf { int x; };
3696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3697 static char *e (p, i)
3698 char **p;
3699 int i;
3701 return p[i];
3703 static char *f (char * (*g) (char **, int), char **p, ...)
3705 char *s;
3706 va_list v;
3707 va_start (v,p);
3708 s = g (p, va_arg (v,int));
3709 va_end (v);
3710 return s;
3713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3714 function prototypes and stuff, but not '\xHH' hex character constants.
3715 These don't provoke an error unfortunately, instead are silently treated
3716 as 'x'. The following induces an error, until -std is added to get
3717 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3718 array size at least. It's necessary to write '\x00'==0 to get something
3719 that's true only with -std. */
3720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3723 inside strings and character constants. */
3724 #define FOO(x) 'x'
3725 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727 int test (int i, double x);
3728 struct s1 {int (*f) (int a);};
3729 struct s2 {int (*f) (double a);};
3730 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3731 int argc;
3732 char **argv;
3734 main ()
3736 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 return 0;
3740 _ACEOF
3741 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3742 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744 CC="$ac_save_CC $ac_arg"
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_prog_cc_c89=$ac_arg
3748 rm -f core conftest.err conftest.$ac_objext
3749 test "x$ac_cv_prog_cc_c89" != "xno" && break
3750 done
3751 rm -f conftest.$ac_ext
3752 CC=$ac_save_CC
3755 # AC_CACHE_VAL
3756 case "x$ac_cv_prog_cc_c89" in
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759 $as_echo "none needed" >&6; } ;;
3760 xno)
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3762 $as_echo "unsupported" >&6; } ;;
3764 CC="$CC $ac_cv_prog_cc_c89"
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3766 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3767 esac
3768 if test "x$ac_cv_prog_cc_c89" != xno; then :
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3784 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3785 if ${am_cv_prog_cc_c_o+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3792 main ()
3796 return 0;
3798 _ACEOF
3799 # Make sure it works both with $CC and with simple cc.
3800 # Following AC_PROG_CC_C_O, we do the test twice because some
3801 # compilers refuse to overwrite an existing .o file with -o,
3802 # though they will create one.
3803 am_cv_prog_cc_c_o=yes
3804 for am_i in 1 2; do
3805 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3806 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } \
3810 && test -f conftest2.$ac_objext; then
3811 : OK
3812 else
3813 am_cv_prog_cc_c_o=no
3814 break
3816 done
3817 rm -f core conftest*
3818 unset am_i
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3821 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3822 if test "$am_cv_prog_cc_c_o" != yes; then
3823 # Losing compiler, so override with the script.
3824 # FIXME: It is wrong to rewrite CC.
3825 # But if we don't then we get into trouble of one sort or another.
3826 # A longer-term fix would be to have automake use am__CC in this case,
3827 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3828 CC="$am_aux_dir/compile $CC"
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837 depcc="$CC" am_compiler_list=
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840 $as_echo_n "checking dependency style of $depcc... " >&6; }
3841 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845 # We make a subdir and do the tests there. Otherwise we can end up
3846 # making bogus files that we don't know about and never remove. For
3847 # instance it was reported that on HP-UX the gcc test will end up
3848 # making a dummy file named 'D' -- because '-MD' means "put the output
3849 # in D".
3850 rm -rf conftest.dir
3851 mkdir conftest.dir
3852 # Copy depcomp to subdir because otherwise we won't find it if we're
3853 # using a relative directory.
3854 cp "$am_depcomp" conftest.dir
3855 cd conftest.dir
3856 # We will build objects and dependencies in a subdirectory because
3857 # it helps to detect inapplicable dependency modes. For instance
3858 # both Tru64's cc and ICC support -MD to output dependencies as a
3859 # side effect of compilation, but ICC will put the dependencies in
3860 # the current directory while Tru64 will put them in the object
3861 # directory.
3862 mkdir sub
3864 am_cv_CC_dependencies_compiler_type=none
3865 if test "$am_compiler_list" = ""; then
3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3868 am__universal=false
3869 case " $depcc " in #(
3870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3871 esac
3873 for depmode in $am_compiler_list; do
3874 # Setup a source with many dependencies, because some compilers
3875 # like to wrap large dependency lists on column 80 (with \), and
3876 # we should not choose a depcomp mode which is confused by this.
3878 # We need to recreate these files for each test, as the compiler may
3879 # overwrite some of them when testing with obscure command lines.
3880 # This happens at least with the AIX C compiler.
3881 : > sub/conftest.c
3882 for i in 1 2 3 4 5 6; do
3883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3885 # Solaris 10 /bin/sh.
3886 echo '/* dummy */' > sub/conftst$i.h
3887 done
3888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3891 # mode. It turns out that the SunPro C++ compiler does not properly
3892 # handle '-M -o', and we need to detect this. Also, some Intel
3893 # versions had trouble with output in subdirs.
3894 am__obj=sub/conftest.${OBJEXT-o}
3895 am__minus_obj="-o $am__obj"
3896 case $depmode in
3897 gcc)
3898 # This depmode causes a compiler race in universal mode.
3899 test "$am__universal" = false || continue
3901 nosideeffect)
3902 # After this tag, mechanisms are not by side-effect, so they'll
3903 # only be used when explicitly requested.
3904 if test "x$enable_dependency_tracking" = xyes; then
3905 continue
3906 else
3907 break
3910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3911 # This compiler won't grok '-c -o', but also, the minuso test has
3912 # not run yet. These depmodes are late enough in the game, and
3913 # so weak that their functioning should not be impacted.
3914 am__obj=conftest.${OBJEXT-o}
3915 am__minus_obj=
3917 none) break ;;
3918 esac
3919 if depmode=$depmode \
3920 source=sub/conftest.c object=$am__obj \
3921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3923 >/dev/null 2>conftest.err &&
3924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3928 # icc doesn't choke on unknown options, it will just issue warnings
3929 # or remarks (even with -Werror). So we grep stderr for any message
3930 # that says an option was ignored or not supported.
3931 # When given -MP, icc 7.0 and 7.1 complain thusly:
3932 # icc: Command line warning: ignoring option '-M'; no argument required
3933 # The diagnosis changed in icc 8.0:
3934 # icc: Command line remark: option '-MP' not supported
3935 if (grep 'ignoring option' conftest.err ||
3936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3937 am_cv_CC_dependencies_compiler_type=$depmode
3938 break
3941 done
3943 cd ..
3944 rm -rf conftest.dir
3945 else
3946 am_cv_CC_dependencies_compiler_type=none
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3951 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3952 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3955 test "x$enable_dependency_tracking" != xno \
3956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3957 am__fastdepCC_TRUE=
3958 am__fastdepCC_FALSE='#'
3959 else
3960 am__fastdepCC_TRUE='#'
3961 am__fastdepCC_FALSE=
3966 # Check whether --enable-compiler-warnings was given.
3967 if test "${enable_compiler_warnings+set}" = set; then :
3968 enableval=$enable_compiler_warnings;
3970 case $enable_compiler_warnings in #(
3971 no | min | yes | max | all) :
3972 ;; #(
3973 *) :
3974 if test "x$enable_maintainer_mode" = xyes; then :
3975 enable_compiler_warnings=yes
3976 else
3977 enable_compiler_warnings=min
3978 fi ;;
3979 esac
3982 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3983 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3984 # is not polluted with repeated "-I."
3985 am__isrc=' -I$(srcdir)'
3986 # test to see if srcdir already configured
3987 if test -f $srcdir/config.status; then
3988 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3992 # test whether we have cygpath
3993 if test -z "$CYGPATH_W"; then
3994 if (cygpath --version) >/dev/null 2>/dev/null; then
3995 CYGPATH_W='cygpath -w'
3996 else
3997 CYGPATH_W=echo
4002 # Define the identity of the package.
4003 PACKAGE='zziplib--tex-live-'
4004 VERSION='0.13.62'
4007 cat >>confdefs.h <<_ACEOF
4008 #define PACKAGE "$PACKAGE"
4009 _ACEOF
4012 cat >>confdefs.h <<_ACEOF
4013 #define VERSION "$VERSION"
4014 _ACEOF
4016 # Some tools Automake needs.
4018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4032 # For better backward compatibility. To be removed once Automake 1.9.x
4033 # dies out for good. For more background, see:
4034 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4035 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4036 mkdir_p='$(MKDIR_P)'
4038 # We need awk for the "check" target (and possibly the TAP driver). The
4039 # system "awk" is bad on some platforms.
4040 # Always define AMTAR for backward compatibility. Yes, it's still used
4041 # in the wild :-( We should find a proper way to deprecate it ...
4042 AMTAR='$${TAR-tar}'
4045 # We'll loop over all known methods to create a tar archive until one works.
4046 _am_tools='gnutar pax cpio none'
4048 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4055 # POSIX will say in a future version that running "rm -f" with no argument
4056 # is OK; and we want to be able to make that assumption in our Makefile
4057 # recipes. So use an aggressive probe to check that the usage we want is
4058 # actually supported "in the wild" to an acceptable degree.
4059 # See automake bug#10828.
4060 # To make any issue more visible, cause the running configure to be aborted
4061 # by default if the 'rm' program in use doesn't match our expectations; the
4062 # user can still override this though.
4063 if rm -f && rm -fr && rm -rf; then : OK; else
4064 cat >&2 <<'END'
4065 Oops!
4067 Your 'rm' program seems unable to run without file operands specified
4068 on the command line, even when the '-f' option is present. This is contrary
4069 to the behaviour of most rm programs out there, and not conforming with
4070 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4072 Please tell bug-automake@gnu.org about your system, including the value
4073 of your $PATH and any error possibly output before this message. This
4074 can help us improve future automake versions.
4077 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4078 echo 'Configuration will proceed anyway, since you have set the' >&2
4079 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4080 echo >&2
4081 else
4082 cat >&2 <<'END'
4083 Aborting the configuration process, to ensure you take notice of the issue.
4085 You can download and install GNU coreutils to get an 'rm' implementation
4086 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4088 If you want to complete the configuration process using your problematic
4089 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4090 to "yes", and re-run configure.
4093 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4099 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4100 # Check whether --enable-maintainer-mode was given.
4101 if test "${enable_maintainer_mode+set}" = set; then :
4102 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4103 else
4104 USE_MAINTAINER_MODE=no
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4108 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4109 if test $USE_MAINTAINER_MODE = yes; then
4110 MAINTAINER_MODE_TRUE=
4111 MAINTAINER_MODE_FALSE='#'
4112 else
4113 MAINTAINER_MODE_TRUE='#'
4114 MAINTAINER_MODE_FALSE=
4117 MAINT=$MAINTAINER_MODE_TRUE
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
4121 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
4122 if ${kb_cv_c_prototypes+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <stdarg.h>
4129 main ()
4131 extern void foo(int i,...);
4133 return 0;
4135 _ACEOF
4136 if ac_fn_c_try_link "$LINENO"; then :
4137 kb_cv_c_prototypes=yes
4138 else
4139 kb_cv_c_prototypes=no
4141 rm -f core conftest.err conftest.$ac_objext \
4142 conftest$ac_exeext conftest.$ac_ext
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
4145 $as_echo "$kb_cv_c_prototypes" >&6; }
4146 if test "x$kb_cv_c_prototypes" = xno; then
4147 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
4150 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
4151 if ${kpse_cv_warning_cflags+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test "x$GCC" = xyes; then
4155 kpse_cv_warning_cflags=
4156 if test "x$enable_compiler_warnings" != xno; then
4157 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
4158 case `$CC -dumpversion` in #(
4159 3.4.* | 4.* | 5.*) :
4160 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
4161 *) :
4163 esac
4164 case `$CC -dumpversion` in #(
4165 3.[234].* | 4.* | 5.*) :
4166 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
4167 *) :
4169 esac
4170 if test "x$enable_compiler_warnings" != xmin; then
4171 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
4172 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
4173 if test "x$enable_compiler_warnings" != xyes; then
4174 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
4175 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
4176 case `$CC -dumpversion` in #(
4177 3.4.* | 4.* | 5.*) :
4178 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
4179 *) :
4181 esac
4182 if test "x$enable_compiler_warnings" != xmax; then
4183 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
4188 elif test "x$enable_compiler_warnings" = xno; then
4189 kpse_cv_warning_cflags=
4190 else
4191 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
4195 $as_echo "$kpse_cv_warning_cflags" >&6; }
4196 WARNING_CFLAGS=$kpse_cv_warning_cflags
4205 # Make sure we can run config.sub.
4206 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4207 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4210 $as_echo_n "checking build system type... " >&6; }
4211 if ${ac_cv_build+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 ac_build_alias=$build_alias
4215 test "x$ac_build_alias" = x &&
4216 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4217 test "x$ac_build_alias" = x &&
4218 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4219 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4220 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4224 $as_echo "$ac_cv_build" >&6; }
4225 case $ac_cv_build in
4226 *-*-*) ;;
4227 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4228 esac
4229 build=$ac_cv_build
4230 ac_save_IFS=$IFS; IFS='-'
4231 set x $ac_cv_build
4232 shift
4233 build_cpu=$1
4234 build_vendor=$2
4235 shift; shift
4236 # Remember, the first character of IFS is used to create $*,
4237 # except with old shells:
4238 build_os=$*
4239 IFS=$ac_save_IFS
4240 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4244 $as_echo_n "checking host system type... " >&6; }
4245 if ${ac_cv_host+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 if test "x$host_alias" = x; then
4249 ac_cv_host=$ac_cv_build
4250 else
4251 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4252 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4257 $as_echo "$ac_cv_host" >&6; }
4258 case $ac_cv_host in
4259 *-*-*) ;;
4260 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4261 esac
4262 host=$ac_cv_host
4263 ac_save_IFS=$IFS; IFS='-'
4264 set x $ac_cv_host
4265 shift
4266 host_cpu=$1
4267 host_vendor=$2
4268 shift; shift
4269 # Remember, the first character of IFS is used to create $*,
4270 # except with old shells:
4271 host_os=$*
4272 IFS=$ac_save_IFS
4273 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4277 # Checks for programs.
4278 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 if test -n "$ac_tool_prefix"; then
4284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_CC+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4311 CC=$ac_cv_prog_CC
4312 if test -n "$CC"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4314 $as_echo "$CC" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4322 if test -z "$ac_cv_prog_CC"; then
4323 ac_ct_CC=$CC
4324 # Extract the first word of "gcc", so it can be a program name with args.
4325 set dummy gcc; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$ac_ct_CC"; then
4332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_ac_ct_CC="gcc"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4352 if test -n "$ac_ct_CC"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4354 $as_echo "$ac_ct_CC" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4360 if test "x$ac_ct_CC" = x; then
4361 CC=""
4362 else
4363 case $cross_compiling:$ac_tool_warned in
4364 yes:)
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367 ac_tool_warned=yes ;;
4368 esac
4369 CC=$ac_ct_CC
4371 else
4372 CC="$ac_cv_prog_CC"
4375 if test -z "$CC"; then
4376 if test -n "$ac_tool_prefix"; then
4377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4378 set dummy ${ac_tool_prefix}cc; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_CC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$CC"; then
4385 ac_cv_prog_CC="$CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_CC="${ac_tool_prefix}cc"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 CC=$ac_cv_prog_CC
4405 if test -n "$CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4407 $as_echo "$CC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4416 if test -z "$CC"; then
4417 # Extract the first word of "cc", so it can be a program name with args.
4418 set dummy cc; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if ${ac_cv_prog_CC+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
4426 else
4427 ac_prog_rejected=no
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4436 ac_prog_rejected=yes
4437 continue
4439 ac_cv_prog_CC="cc"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4443 done
4444 done
4445 IFS=$as_save_IFS
4447 if test $ac_prog_rejected = yes; then
4448 # We found a bogon in the path, so make sure we never use it.
4449 set dummy $ac_cv_prog_CC
4450 shift
4451 if test $# != 0; then
4452 # We chose a different compiler from the bogus one.
4453 # However, it has the same basename, so the bogon will be chosen
4454 # first if we set CC to just the basename; use the full file name.
4455 shift
4456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4461 CC=$ac_cv_prog_CC
4462 if test -n "$CC"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4464 $as_echo "$CC" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4472 if test -z "$CC"; then
4473 if test -n "$ac_tool_prefix"; then
4474 for ac_prog in cl.exe
4476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if ${ac_cv_prog_CC+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$CC"; then
4484 ac_cv_prog_CC="$CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 CC=$ac_cv_prog_CC
4504 if test -n "$CC"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4506 $as_echo "$CC" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4513 test -n "$CC" && break
4514 done
4516 if test -z "$CC"; then
4517 ac_ct_CC=$CC
4518 for ac_prog in cl.exe
4520 # Extract the first word of "$ac_prog", so it can be a program name with args.
4521 set dummy $ac_prog; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$ac_ct_CC"; then
4528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_prog_ac_ct_CC="$ac_prog"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4548 if test -n "$ac_ct_CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4550 $as_echo "$ac_ct_CC" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4557 test -n "$ac_ct_CC" && break
4558 done
4560 if test "x$ac_ct_CC" = x; then
4561 CC=""
4562 else
4563 case $cross_compiling:$ac_tool_warned in
4564 yes:)
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4567 ac_tool_warned=yes ;;
4568 esac
4569 CC=$ac_ct_CC
4576 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "no acceptable C compiler found in \$PATH
4579 See \`config.log' for more details" "$LINENO" 5; }
4581 # Provide some information about the compiler.
4582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4583 set X $ac_compile
4584 ac_compiler=$2
4585 for ac_option in --version -v -V -qversion; do
4586 { { ac_try="$ac_compiler $ac_option >&5"
4587 case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4594 ac_status=$?
4595 if test -s conftest.err; then
4596 sed '10a\
4597 ... rest of stderr output deleted ...
4598 10q' conftest.err >conftest.er1
4599 cat conftest.er1 >&5
4601 rm -f conftest.er1 conftest.err
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; }
4604 done
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4607 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4608 if ${ac_cv_c_compiler_gnu+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 main ()
4617 #ifndef __GNUC__
4618 choke me
4619 #endif
4622 return 0;
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_compiler_gnu=yes
4627 else
4628 ac_compiler_gnu=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4635 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4636 if test $ac_compiler_gnu = yes; then
4637 GCC=yes
4638 else
4639 GCC=
4641 ac_test_CFLAGS=${CFLAGS+set}
4642 ac_save_CFLAGS=$CFLAGS
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4644 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4645 if ${ac_cv_prog_cc_g+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_save_c_werror_flag=$ac_c_werror_flag
4649 ac_c_werror_flag=yes
4650 ac_cv_prog_cc_g=no
4651 CFLAGS="-g"
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4656 main ()
4660 return 0;
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_prog_cc_g=yes
4665 else
4666 CFLAGS=""
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 main ()
4675 return 0;
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4680 else
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682 CFLAGS="-g"
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4687 main ()
4691 return 0;
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_prog_cc_g=yes
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_c_werror_flag=$ac_save_c_werror_flag
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4705 $as_echo "$ac_cv_prog_cc_g" >&6; }
4706 if test "$ac_test_CFLAGS" = set; then
4707 CFLAGS=$ac_save_CFLAGS
4708 elif test $ac_cv_prog_cc_g = yes; then
4709 if test "$GCC" = yes; then
4710 CFLAGS="-g -O2"
4711 else
4712 CFLAGS="-g"
4714 else
4715 if test "$GCC" = yes; then
4716 CFLAGS="-O2"
4717 else
4718 CFLAGS=
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4723 if ${ac_cv_prog_cc_c89+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 ac_cv_prog_cc_c89=no
4727 ac_save_CC=$CC
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 #include <stdarg.h>
4731 #include <stdio.h>
4732 struct stat;
4733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4734 struct buf { int x; };
4735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4736 static char *e (p, i)
4737 char **p;
4738 int i;
4740 return p[i];
4742 static char *f (char * (*g) (char **, int), char **p, ...)
4744 char *s;
4745 va_list v;
4746 va_start (v,p);
4747 s = g (p, va_arg (v,int));
4748 va_end (v);
4749 return s;
4752 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4753 function prototypes and stuff, but not '\xHH' hex character constants.
4754 These don't provoke an error unfortunately, instead are silently treated
4755 as 'x'. The following induces an error, until -std is added to get
4756 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4757 array size at least. It's necessary to write '\x00'==0 to get something
4758 that's true only with -std. */
4759 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4761 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4762 inside strings and character constants. */
4763 #define FOO(x) 'x'
4764 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4766 int test (int i, double x);
4767 struct s1 {int (*f) (int a);};
4768 struct s2 {int (*f) (double a);};
4769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4770 int argc;
4771 char **argv;
4773 main ()
4775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4777 return 0;
4779 _ACEOF
4780 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4781 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4783 CC="$ac_save_CC $ac_arg"
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 ac_cv_prog_cc_c89=$ac_arg
4787 rm -f core conftest.err conftest.$ac_objext
4788 test "x$ac_cv_prog_cc_c89" != "xno" && break
4789 done
4790 rm -f conftest.$ac_ext
4791 CC=$ac_save_CC
4794 # AC_CACHE_VAL
4795 case "x$ac_cv_prog_cc_c89" in
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4798 $as_echo "none needed" >&6; } ;;
4799 xno)
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4801 $as_echo "unsupported" >&6; } ;;
4803 CC="$CC $ac_cv_prog_cc_c89"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4805 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4806 esac
4807 if test "x$ac_cv_prog_cc_c89" != xno; then :
4811 ac_ext=c
4812 ac_cpp='$CPP $CPPFLAGS'
4813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 ac_ext=c
4818 ac_cpp='$CPP $CPPFLAGS'
4819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4823 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4824 if ${am_cv_prog_cc_c_o+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4831 main ()
4835 return 0;
4837 _ACEOF
4838 # Make sure it works both with $CC and with simple cc.
4839 # Following AC_PROG_CC_C_O, we do the test twice because some
4840 # compilers refuse to overwrite an existing .o file with -o,
4841 # though they will create one.
4842 am_cv_prog_cc_c_o=yes
4843 for am_i in 1 2; do
4844 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4845 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } \
4849 && test -f conftest2.$ac_objext; then
4850 : OK
4851 else
4852 am_cv_prog_cc_c_o=no
4853 break
4855 done
4856 rm -f core conftest*
4857 unset am_i
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4860 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4861 if test "$am_cv_prog_cc_c_o" != yes; then
4862 # Losing compiler, so override with the script.
4863 # FIXME: It is wrong to rewrite CC.
4864 # But if we don't then we get into trouble of one sort or another.
4865 # A longer-term fix would be to have automake use am__CC in this case,
4866 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4867 CC="$am_aux_dir/compile $CC"
4869 ac_ext=c
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 depcc="$CC" am_compiler_list=
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4879 $as_echo_n "checking dependency style of $depcc... " >&6; }
4880 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4884 # We make a subdir and do the tests there. Otherwise we can end up
4885 # making bogus files that we don't know about and never remove. For
4886 # instance it was reported that on HP-UX the gcc test will end up
4887 # making a dummy file named 'D' -- because '-MD' means "put the output
4888 # in D".
4889 rm -rf conftest.dir
4890 mkdir conftest.dir
4891 # Copy depcomp to subdir because otherwise we won't find it if we're
4892 # using a relative directory.
4893 cp "$am_depcomp" conftest.dir
4894 cd conftest.dir
4895 # We will build objects and dependencies in a subdirectory because
4896 # it helps to detect inapplicable dependency modes. For instance
4897 # both Tru64's cc and ICC support -MD to output dependencies as a
4898 # side effect of compilation, but ICC will put the dependencies in
4899 # the current directory while Tru64 will put them in the object
4900 # directory.
4901 mkdir sub
4903 am_cv_CC_dependencies_compiler_type=none
4904 if test "$am_compiler_list" = ""; then
4905 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4907 am__universal=false
4908 case " $depcc " in #(
4909 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4910 esac
4912 for depmode in $am_compiler_list; do
4913 # Setup a source with many dependencies, because some compilers
4914 # like to wrap large dependency lists on column 80 (with \), and
4915 # we should not choose a depcomp mode which is confused by this.
4917 # We need to recreate these files for each test, as the compiler may
4918 # overwrite some of them when testing with obscure command lines.
4919 # This happens at least with the AIX C compiler.
4920 : > sub/conftest.c
4921 for i in 1 2 3 4 5 6; do
4922 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4923 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4924 # Solaris 10 /bin/sh.
4925 echo '/* dummy */' > sub/conftst$i.h
4926 done
4927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4929 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4930 # mode. It turns out that the SunPro C++ compiler does not properly
4931 # handle '-M -o', and we need to detect this. Also, some Intel
4932 # versions had trouble with output in subdirs.
4933 am__obj=sub/conftest.${OBJEXT-o}
4934 am__minus_obj="-o $am__obj"
4935 case $depmode in
4936 gcc)
4937 # This depmode causes a compiler race in universal mode.
4938 test "$am__universal" = false || continue
4940 nosideeffect)
4941 # After this tag, mechanisms are not by side-effect, so they'll
4942 # only be used when explicitly requested.
4943 if test "x$enable_dependency_tracking" = xyes; then
4944 continue
4945 else
4946 break
4949 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4950 # This compiler won't grok '-c -o', but also, the minuso test has
4951 # not run yet. These depmodes are late enough in the game, and
4952 # so weak that their functioning should not be impacted.
4953 am__obj=conftest.${OBJEXT-o}
4954 am__minus_obj=
4956 none) break ;;
4957 esac
4958 if depmode=$depmode \
4959 source=sub/conftest.c object=$am__obj \
4960 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4961 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4962 >/dev/null 2>conftest.err &&
4963 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4964 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4965 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4966 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4967 # icc doesn't choke on unknown options, it will just issue warnings
4968 # or remarks (even with -Werror). So we grep stderr for any message
4969 # that says an option was ignored or not supported.
4970 # When given -MP, icc 7.0 and 7.1 complain thusly:
4971 # icc: Command line warning: ignoring option '-M'; no argument required
4972 # The diagnosis changed in icc 8.0:
4973 # icc: Command line remark: option '-MP' not supported
4974 if (grep 'ignoring option' conftest.err ||
4975 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4976 am_cv_CC_dependencies_compiler_type=$depmode
4977 break
4980 done
4982 cd ..
4983 rm -rf conftest.dir
4984 else
4985 am_cv_CC_dependencies_compiler_type=none
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4990 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4991 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4994 test "x$enable_dependency_tracking" != xno \
4995 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4996 am__fastdepCC_TRUE=
4997 am__fastdepCC_FALSE='#'
4998 else
4999 am__fastdepCC_TRUE='#'
5000 am__fastdepCC_FALSE=
5004 if test -n "$ac_tool_prefix"; then
5005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_RANLIB+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$RANLIB"; then
5013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 RANLIB=$ac_cv_prog_RANLIB
5033 if test -n "$RANLIB"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5035 $as_echo "$RANLIB" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5043 if test -z "$ac_cv_prog_RANLIB"; then
5044 ac_ct_RANLIB=$RANLIB
5045 # Extract the first word of "ranlib", so it can be a program name with args.
5046 set dummy ranlib; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$ac_ct_RANLIB"; then
5053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_ac_ct_RANLIB="ranlib"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5073 if test -n "$ac_ct_RANLIB"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5075 $as_echo "$ac_ct_RANLIB" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5081 if test "x$ac_ct_RANLIB" = x; then
5082 RANLIB=":"
5083 else
5084 case $cross_compiling:$ac_tool_warned in
5085 yes:)
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5088 ac_tool_warned=yes ;;
5089 esac
5090 RANLIB=$ac_ct_RANLIB
5092 else
5093 RANLIB="$ac_cv_prog_RANLIB"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5097 $as_echo_n "checking whether ln -s works... " >&6; }
5098 LN_S=$as_ln_s
5099 if test "$LN_S" = "ln -s"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101 $as_echo "yes" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5104 $as_echo "no, using $LN_S" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5
5109 $as_echo_n "checking CFLAGS for C to hide external symbols... " >&6; }
5110 if ${kpse_cv_visibility_cflags+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 kpse_cv_visibility_cflags=unknown
5120 kpse_save_flags=$CFLAGS
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <stdio.h>
5124 extern void foo(void);
5125 void foo(void){printf("foo\n");}
5126 _ACEOF
5127 # FIXME: Add tests for non-GNU compilers
5128 for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility=hidden'; do
5129 CFLAGS="$kpse_save_flags -Werror $kpse_flag"
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 kpse_cv_visibility_cflags=$kpse_flag; break
5133 rm -f core conftest.err conftest.$ac_objext
5134 done
5135 ac_ext=c
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5
5144 $as_echo "$kpse_cv_visibility_cflags" >&6; }
5145 CFLAGS=$kpse_save_flags
5146 case $kpse_cv_visibility_cflags in #(
5147 unknown) :
5148 ;; #(
5149 *) :
5150 VISIBILITY_CFLAGS=$kpse_cv_visibility_cflags
5152 esac
5158 # Checks for header files.
5159 ac_ext=c
5160 ac_cpp='$CPP $CPPFLAGS'
5161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5166 # On Suns, sometimes $CPP names a directory.
5167 if test -n "$CPP" && test -d "$CPP"; then
5168 CPP=
5170 if test -z "$CPP"; then
5171 if ${ac_cv_prog_CPP+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 # Double quotes because CPP needs to be expanded
5175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5177 ac_preproc_ok=false
5178 for ac_c_preproc_warn_flag in '' yes
5180 # Use a header file that comes with gcc, so configuring glibc
5181 # with a fresh cross-compiler works.
5182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5183 # <limits.h> exists even on freestanding compilers.
5184 # On the NeXT, cc -E runs the code through the compiler's parser,
5185 # not just through cpp. "Syntax error" is here to catch this case.
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 #ifdef __STDC__
5189 # include <limits.h>
5190 #else
5191 # include <assert.h>
5192 #endif
5193 Syntax error
5194 _ACEOF
5195 if ac_fn_c_try_cpp "$LINENO"; then :
5197 else
5198 # Broken: fails on valid input.
5199 continue
5201 rm -f conftest.err conftest.i conftest.$ac_ext
5203 # OK, works on sane cases. Now check whether nonexistent headers
5204 # can be detected and how.
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 #include <ac_nonexistent.h>
5208 _ACEOF
5209 if ac_fn_c_try_cpp "$LINENO"; then :
5210 # Broken: success on invalid input.
5211 continue
5212 else
5213 # Passes both tests.
5214 ac_preproc_ok=:
5215 break
5217 rm -f conftest.err conftest.i conftest.$ac_ext
5219 done
5220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221 rm -f conftest.i conftest.err conftest.$ac_ext
5222 if $ac_preproc_ok; then :
5223 break
5226 done
5227 ac_cv_prog_CPP=$CPP
5230 CPP=$ac_cv_prog_CPP
5231 else
5232 ac_cv_prog_CPP=$CPP
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5235 $as_echo "$CPP" >&6; }
5236 ac_preproc_ok=false
5237 for ac_c_preproc_warn_flag in '' yes
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 #ifdef __STDC__
5248 # include <limits.h>
5249 #else
5250 # include <assert.h>
5251 #endif
5252 Syntax error
5253 _ACEOF
5254 if ac_fn_c_try_cpp "$LINENO"; then :
5256 else
5257 # Broken: fails on valid input.
5258 continue
5260 rm -f conftest.err conftest.i conftest.$ac_ext
5262 # OK, works on sane cases. Now check whether nonexistent headers
5263 # can be detected and how.
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include <ac_nonexistent.h>
5267 _ACEOF
5268 if ac_fn_c_try_cpp "$LINENO"; then :
5269 # Broken: success on invalid input.
5270 continue
5271 else
5272 # Passes both tests.
5273 ac_preproc_ok=:
5274 break
5276 rm -f conftest.err conftest.i conftest.$ac_ext
5278 done
5279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5280 rm -f conftest.i conftest.err conftest.$ac_ext
5281 if $ac_preproc_ok; then :
5283 else
5284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5286 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5287 See \`config.log' for more details" "$LINENO" 5; }
5290 ac_ext=c
5291 ac_cpp='$CPP $CPPFLAGS'
5292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5298 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5299 if ${ac_cv_path_GREP+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -z "$GREP"; then
5303 ac_path_GREP_found=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_prog in grep ggrep; do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5313 as_fn_executable_p "$ac_path_GREP" || continue
5314 # Check for GNU ac_path_GREP and select it if it is found.
5315 # Check for GNU $ac_path_GREP
5316 case `"$ac_path_GREP" --version 2>&1` in
5317 *GNU*)
5318 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5320 ac_count=0
5321 $as_echo_n 0123456789 >"conftest.in"
5322 while :
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 $as_echo 'GREP' >> "conftest.nl"
5328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_GREP="$ac_path_GREP"
5334 ac_path_GREP_max=$ac_count
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5342 $ac_path_GREP_found && break 3
5343 done
5344 done
5345 done
5346 IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_GREP"; then
5348 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5350 else
5351 ac_cv_path_GREP=$GREP
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5356 $as_echo "$ac_cv_path_GREP" >&6; }
5357 GREP="$ac_cv_path_GREP"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5361 $as_echo_n "checking for egrep... " >&6; }
5362 if ${ac_cv_path_EGREP+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5366 then ac_cv_path_EGREP="$GREP -E"
5367 else
5368 if test -z "$EGREP"; then
5369 ac_path_EGREP_found=false
5370 # Loop through the user's path and test for each of PROGNAME-LIST
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_prog in egrep; do
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5379 as_fn_executable_p "$ac_path_EGREP" || continue
5380 # Check for GNU ac_path_EGREP and select it if it is found.
5381 # Check for GNU $ac_path_EGREP
5382 case `"$ac_path_EGREP" --version 2>&1` in
5383 *GNU*)
5384 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5386 ac_count=0
5387 $as_echo_n 0123456789 >"conftest.in"
5388 while :
5390 cat "conftest.in" "conftest.in" >"conftest.tmp"
5391 mv "conftest.tmp" "conftest.in"
5392 cp "conftest.in" "conftest.nl"
5393 $as_echo 'EGREP' >> "conftest.nl"
5394 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5396 as_fn_arith $ac_count + 1 && ac_count=$as_val
5397 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5398 # Best one so far, save it but keep looking for a better one
5399 ac_cv_path_EGREP="$ac_path_EGREP"
5400 ac_path_EGREP_max=$ac_count
5402 # 10*(2^10) chars as input seems more than enough
5403 test $ac_count -gt 10 && break
5404 done
5405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5406 esac
5408 $ac_path_EGREP_found && break 3
5409 done
5410 done
5411 done
5412 IFS=$as_save_IFS
5413 if test -z "$ac_cv_path_EGREP"; then
5414 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5416 else
5417 ac_cv_path_EGREP=$EGREP
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5423 $as_echo "$ac_cv_path_EGREP" >&6; }
5424 EGREP="$ac_cv_path_EGREP"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5428 $as_echo_n "checking for ANSI C header files... " >&6; }
5429 if ${ac_cv_header_stdc+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 #include <stdlib.h>
5435 #include <stdarg.h>
5436 #include <string.h>
5437 #include <float.h>
5440 main ()
5444 return 0;
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 ac_cv_header_stdc=yes
5449 else
5450 ac_cv_header_stdc=no
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 if test $ac_cv_header_stdc = yes; then
5455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 #include <string.h>
5460 _ACEOF
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "memchr" >/dev/null 2>&1; then :
5464 else
5465 ac_cv_header_stdc=no
5467 rm -f conftest*
5471 if test $ac_cv_header_stdc = yes; then
5472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <stdlib.h>
5477 _ACEOF
5478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5479 $EGREP "free" >/dev/null 2>&1; then :
5481 else
5482 ac_cv_header_stdc=no
5484 rm -f conftest*
5488 if test $ac_cv_header_stdc = yes; then
5489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5490 if test "$cross_compiling" = yes; then :
5492 else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <ctype.h>
5496 #include <stdlib.h>
5497 #if ((' ' & 0x0FF) == 0x020)
5498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5500 #else
5501 # define ISLOWER(c) \
5502 (('a' <= (c) && (c) <= 'i') \
5503 || ('j' <= (c) && (c) <= 'r') \
5504 || ('s' <= (c) && (c) <= 'z'))
5505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5506 #endif
5508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5510 main ()
5512 int i;
5513 for (i = 0; i < 256; i++)
5514 if (XOR (islower (i), ISLOWER (i))
5515 || toupper (i) != TOUPPER (i))
5516 return 2;
5517 return 0;
5519 _ACEOF
5520 if ac_fn_c_try_run "$LINENO"; then :
5522 else
5523 ac_cv_header_stdc=no
5525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5526 conftest.$ac_objext conftest.beam conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5532 $as_echo "$ac_cv_header_stdc" >&6; }
5533 if test $ac_cv_header_stdc = yes; then
5535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5539 ac_header_dirent=no
5540 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5541 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5543 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5544 if eval \${$as_ac_Header+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <sys/types.h>
5550 #include <$ac_hdr>
5553 main ()
5555 if ((DIR *) 0)
5556 return 0;
5558 return 0;
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 eval "$as_ac_Header=yes"
5563 else
5564 eval "$as_ac_Header=no"
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 eval ac_res=\$$as_ac_Header
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5570 $as_echo "$ac_res" >&6; }
5571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5572 cat >>confdefs.h <<_ACEOF
5573 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5574 _ACEOF
5576 ac_header_dirent=$ac_hdr; break
5579 done
5580 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5581 if test $ac_header_dirent = dirent.h; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5583 $as_echo_n "checking for library containing opendir... " >&6; }
5584 if ${ac_cv_search_opendir+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 ac_func_search_save_LIBS=$LIBS
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5591 /* Override any GCC internal prototype to avoid an error.
5592 Use char because int might match the return type of a GCC
5593 builtin and then its argument prototype would still apply. */
5594 #ifdef __cplusplus
5595 extern "C"
5596 #endif
5597 char opendir ();
5599 main ()
5601 return opendir ();
5603 return 0;
5605 _ACEOF
5606 for ac_lib in '' dir; do
5607 if test -z "$ac_lib"; then
5608 ac_res="none required"
5609 else
5610 ac_res=-l$ac_lib
5611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5613 if ac_fn_c_try_link "$LINENO"; then :
5614 ac_cv_search_opendir=$ac_res
5616 rm -f core conftest.err conftest.$ac_objext \
5617 conftest$ac_exeext
5618 if ${ac_cv_search_opendir+:} false; then :
5619 break
5621 done
5622 if ${ac_cv_search_opendir+:} false; then :
5624 else
5625 ac_cv_search_opendir=no
5627 rm conftest.$ac_ext
5628 LIBS=$ac_func_search_save_LIBS
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5631 $as_echo "$ac_cv_search_opendir" >&6; }
5632 ac_res=$ac_cv_search_opendir
5633 if test "$ac_res" != no; then :
5634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5640 $as_echo_n "checking for library containing opendir... " >&6; }
5641 if ${ac_cv_search_opendir+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 ac_func_search_save_LIBS=$LIBS
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5648 /* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5651 #ifdef __cplusplus
5652 extern "C"
5653 #endif
5654 char opendir ();
5656 main ()
5658 return opendir ();
5660 return 0;
5662 _ACEOF
5663 for ac_lib in '' x; do
5664 if test -z "$ac_lib"; then
5665 ac_res="none required"
5666 else
5667 ac_res=-l$ac_lib
5668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5670 if ac_fn_c_try_link "$LINENO"; then :
5671 ac_cv_search_opendir=$ac_res
5673 rm -f core conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext
5675 if ${ac_cv_search_opendir+:} false; then :
5676 break
5678 done
5679 if ${ac_cv_search_opendir+:} false; then :
5681 else
5682 ac_cv_search_opendir=no
5684 rm conftest.$ac_ext
5685 LIBS=$ac_func_search_save_LIBS
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5688 $as_echo "$ac_cv_search_opendir" >&6; }
5689 ac_res=$ac_cv_search_opendir
5690 if test "$ac_res" != no; then :
5691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5699 inttypes.h stdint.h unistd.h
5700 do :
5701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5705 cat >>confdefs.h <<_ACEOF
5706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5707 _ACEOF
5711 done
5714 for ac_header in stdint.h unistd.h windows.h sys/int_types.h
5715 do :
5716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5717 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5719 cat >>confdefs.h <<_ACEOF
5720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5721 _ACEOF
5725 done
5727 for ac_header in winnt.h winbase.h
5728 do :
5729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <windows.h>
5732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5733 cat >>confdefs.h <<_ACEOF
5734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735 _ACEOF
5739 done
5741 for ac_header in sys/types.h sys/mman.h sys/stat.h sys/param.h
5742 do :
5743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5744 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5745 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5746 cat >>confdefs.h <<_ACEOF
5747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 _ACEOF
5752 done
5753 for ac_header in io.h direct.h byteswap.h
5754 do :
5755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5758 cat >>confdefs.h <<_ACEOF
5759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5760 _ACEOF
5764 done
5766 for ac_header in fnmatch.h
5767 do :
5768 ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
5769 if test "x$ac_cv_header_fnmatch_h" = xyes; then :
5770 cat >>confdefs.h <<_ACEOF
5771 #define HAVE_FNMATCH_H 1
5772 _ACEOF
5776 done
5779 # ---------------------------------------------------------------
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether can use mmap for file scanning" >&5
5781 $as_echo_n "checking whether can use mmap for file scanning... " >&6; }
5782 enable_mmap='no (just a bit slower)'
5783 test "x$ac_cv_header_winbase_h" = xyes && enable_mmap="yes, winbase.h"
5784 test "x$ac_cv_header_sys_mman_h" = xyes && enable_mmap="yes, sys/mman.h"
5785 case $enable_mmap in #(
5786 yes*) :
5787 ZZIPLIB_DEFINES='-D_USE_MMAP' ;; #(
5788 *) :
5790 esac
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mmap" >&5
5792 $as_echo "$enable_mmap" >&6; }
5795 # Check whether --enable-largefile was given.
5796 if test "${enable_largefile+set}" = set; then :
5797 enableval=$enable_largefile;
5800 if test "$enable_largefile" != no; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5803 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5804 if ${ac_cv_sys_largefile_CC+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 ac_cv_sys_largefile_CC=no
5808 if test "$GCC" != yes; then
5809 ac_save_CC=$CC
5810 while :; do
5811 # IRIX 6.2 and later do not support large files by default,
5812 # so use the C compiler's -n32 option if that helps.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5823 ? 1 : -1];
5825 main ()
5829 return 0;
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833 break
5835 rm -f core conftest.err conftest.$ac_objext
5836 CC="$CC -n32"
5837 if ac_fn_c_try_compile "$LINENO"; then :
5838 ac_cv_sys_largefile_CC=' -n32'; break
5840 rm -f core conftest.err conftest.$ac_objext
5841 break
5842 done
5843 CC=$ac_save_CC
5844 rm -f conftest.$ac_ext
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5848 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5849 if test "$ac_cv_sys_largefile_CC" != no; then
5850 CC=$CC$ac_cv_sys_largefile_CC
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5854 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5855 if ${ac_cv_sys_file_offset_bits+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 while :; do
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include <sys/types.h>
5862 /* Check that off_t can represent 2**63 - 1 correctly.
5863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5864 since some C++ compilers masquerading as C compilers
5865 incorrectly reject 9223372036854775807. */
5866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5868 && LARGE_OFF_T % 2147483647 == 1)
5869 ? 1 : -1];
5871 main ()
5875 return 0;
5877 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879 ac_cv_sys_file_offset_bits=no; break
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #define _FILE_OFFSET_BITS 64
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5893 ? 1 : -1];
5895 main ()
5899 return 0;
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903 ac_cv_sys_file_offset_bits=64; break
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 ac_cv_sys_file_offset_bits=unknown
5907 break
5908 done
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5911 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5912 case $ac_cv_sys_file_offset_bits in #(
5913 no | unknown) ;;
5915 cat >>confdefs.h <<_ACEOF
5916 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5917 _ACEOF
5919 esac
5920 rm -rf conftest*
5921 if test $ac_cv_sys_file_offset_bits = unknown; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5923 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5924 if ${ac_cv_sys_large_files+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 while :; do
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930 #include <sys/types.h>
5931 /* Check that off_t can represent 2**63 - 1 correctly.
5932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5933 since some C++ compilers masquerading as C compilers
5934 incorrectly reject 9223372036854775807. */
5935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5937 && LARGE_OFF_T % 2147483647 == 1)
5938 ? 1 : -1];
5940 main ()
5944 return 0;
5946 _ACEOF
5947 if ac_fn_c_try_compile "$LINENO"; then :
5948 ac_cv_sys_large_files=no; break
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #define _LARGE_FILES 1
5954 #include <sys/types.h>
5955 /* Check that off_t can represent 2**63 - 1 correctly.
5956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5957 since some C++ compilers masquerading as C compilers
5958 incorrectly reject 9223372036854775807. */
5959 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5961 && LARGE_OFF_T % 2147483647 == 1)
5962 ? 1 : -1];
5964 main ()
5968 return 0;
5970 _ACEOF
5971 if ac_fn_c_try_compile "$LINENO"; then :
5972 ac_cv_sys_large_files=1; break
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 ac_cv_sys_large_files=unknown
5976 break
5977 done
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5980 $as_echo "$ac_cv_sys_large_files" >&6; }
5981 case $ac_cv_sys_large_files in #(
5982 no | unknown) ;;
5984 cat >>confdefs.h <<_ACEOF
5985 #define _LARGE_FILES $ac_cv_sys_large_files
5986 _ACEOF
5988 esac
5989 rm -rf conftest*
5995 # we know about some internals of ac_sys_largefile here...
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system differentiates 64bit off_t by defines" >&5
5997 $as_echo_n "checking whether system differentiates 64bit off_t by defines... " >&6; }
5998 ac_cv_sys_largefile_sensitive="no"
5999 if test ".${ac_cv_sys_file_offset_bits-no}${ac_cv_sys_large_files-no}" != ".nono"
6000 then ac_cv_sys_largefile_sensitive="yes"
6002 $as_echo "#define LARGEFILE_SENSITIVE 1" >>confdefs.h
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_sensitive" >&5
6006 $as_echo "$ac_cv_sys_largefile_sensitive" >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6009 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6010 if ${ac_cv_sys_largefile_source+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 while :; do
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <sys/types.h> /* for off_t */
6017 #include <stdio.h>
6019 main ()
6021 int (*fp) (FILE *, off_t, int) = fseeko;
6022 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6024 return 0;
6026 _ACEOF
6027 if ac_fn_c_try_link "$LINENO"; then :
6028 ac_cv_sys_largefile_source=no; break
6030 rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #define _LARGEFILE_SOURCE 1
6035 #include <sys/types.h> /* for off_t */
6036 #include <stdio.h>
6038 main ()
6040 int (*fp) (FILE *, off_t, int) = fseeko;
6041 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6043 return 0;
6045 _ACEOF
6046 if ac_fn_c_try_link "$LINENO"; then :
6047 ac_cv_sys_largefile_source=1; break
6049 rm -f core conftest.err conftest.$ac_objext \
6050 conftest$ac_exeext conftest.$ac_ext
6051 ac_cv_sys_largefile_source=unknown
6052 break
6053 done
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6056 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6057 case $ac_cv_sys_largefile_source in #(
6058 no | unknown) ;;
6060 cat >>confdefs.h <<_ACEOF
6061 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6062 _ACEOF
6064 esac
6065 rm -rf conftest*
6067 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6068 # in glibc 2.1.3, but that breaks too many other things.
6069 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6070 if test $ac_cv_sys_largefile_source != unknown; then
6072 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6077 # Checks for typedefs, structures, and compiler characteristics.
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6079 $as_echo_n "checking for inline... " >&6; }
6080 if ${ac_cv_c_inline+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 ac_cv_c_inline=no
6084 for ac_kw in inline __inline__ __inline; do
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 #ifndef __cplusplus
6088 typedef int foo_t;
6089 static $ac_kw foo_t static_foo () {return 0; }
6090 $ac_kw foo_t foo () {return 0; }
6091 #endif
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 ac_cv_c_inline=$ac_kw
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 test "$ac_cv_c_inline" != no && break
6099 done
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6103 $as_echo "$ac_cv_c_inline" >&6; }
6105 case $ac_cv_c_inline in
6106 inline | yes) ;;
6108 case $ac_cv_c_inline in
6109 no) ac_val=;;
6110 *) ac_val=$ac_cv_c_inline;;
6111 esac
6112 cat >>confdefs.h <<_ACEOF
6113 #ifndef __cplusplus
6114 #define inline $ac_val
6115 #endif
6116 _ACEOF
6118 esac
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6121 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6122 if ${ac_cv_c_const+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6129 main ()
6132 #ifndef __cplusplus
6133 /* Ultrix mips cc rejects this sort of thing. */
6134 typedef int charset[2];
6135 const charset cs = { 0, 0 };
6136 /* SunOS 4.1.1 cc rejects this. */
6137 char const *const *pcpcc;
6138 char **ppc;
6139 /* NEC SVR4.0.2 mips cc rejects this. */
6140 struct point {int x, y;};
6141 static struct point const zero = {0,0};
6142 /* AIX XL C 1.02.0.0 rejects this.
6143 It does not let you subtract one const X* pointer from another in
6144 an arm of an if-expression whose if-part is not a constant
6145 expression */
6146 const char *g = "string";
6147 pcpcc = &g + (g ? g-g : 0);
6148 /* HPUX 7.0 cc rejects these. */
6149 ++pcpcc;
6150 ppc = (char**) pcpcc;
6151 pcpcc = (char const *const *) ppc;
6152 { /* SCO 3.2v4 cc rejects this sort of thing. */
6153 char tx;
6154 char *t = &tx;
6155 char const *s = 0 ? (char *) 0 : (char const *) 0;
6157 *t++ = 0;
6158 if (s) return 0;
6160 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6161 int x[] = {25, 17};
6162 const int *foo = &x[0];
6163 ++foo;
6165 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6166 typedef const int *iptr;
6167 iptr p = 0;
6168 ++p;
6170 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6171 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6172 struct s { int j; const int *ap[3]; } bx;
6173 struct s *b = &bx; b->j = 5;
6175 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6176 const int foo = 10;
6177 if (!foo) return 0;
6179 return !cs[0] && !zero.x;
6180 #endif
6183 return 0;
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 ac_cv_c_const=yes
6188 else
6189 ac_cv_c_const=no
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6194 $as_echo "$ac_cv_c_const" >&6; }
6195 if test $ac_cv_c_const = no; then
6197 $as_echo "#define const /**/" >>confdefs.h
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6202 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6203 if ${ac_cv_c_restrict+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 ac_cv_c_restrict=no
6207 # The order here caters to the fact that C++ does not require restrict.
6208 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 typedef int * int_ptr;
6212 int foo (int_ptr $ac_kw ip) {
6213 return ip[0];
6216 main ()
6218 int s[1];
6219 int * $ac_kw t = s;
6220 t[0] = 0;
6221 return foo(t)
6223 return 0;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 ac_cv_c_restrict=$ac_kw
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 test "$ac_cv_c_restrict" != no && break
6231 done
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6235 $as_echo "$ac_cv_c_restrict" >&6; }
6237 case $ac_cv_c_restrict in
6238 restrict) ;;
6239 no) $as_echo "#define restrict /**/" >>confdefs.h
6241 *) cat >>confdefs.h <<_ACEOF
6242 #define restrict $ac_cv_c_restrict
6243 _ACEOF
6245 esac
6247 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6248 if test "x$ac_cv_type_size_t" = xyes; then :
6250 else
6252 cat >>confdefs.h <<_ACEOF
6253 #define size_t unsigned int
6254 _ACEOF
6258 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
6259 if test "x$ac_cv_type_ssize_t" = xyes; then :
6261 else
6263 cat >>confdefs.h <<_ACEOF
6264 #define ssize_t int
6265 _ACEOF
6269 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_off64_t" = xyes; then :
6272 else
6274 cat >>confdefs.h <<_ACEOF
6275 #define off64_t _zzip_off_t
6276 _ACEOF
6280 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
6281 if test "x$ac_cv_type___int64" = xyes; then :
6283 else
6285 cat >>confdefs.h <<_ACEOF
6286 #define __int64 long long
6287 _ACEOF
6291 # The cast to long int works around a bug in the HP C Compiler
6292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6294 # This bug is HP SR number 8606223364.
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6296 $as_echo_n "checking size of short... " >&6; }
6297 if ${ac_cv_sizeof_short+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6302 else
6303 if test "$ac_cv_type_short" = yes; then
6304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6306 as_fn_error 77 "cannot compute sizeof (short)
6307 See \`config.log' for more details" "$LINENO" 5; }
6308 else
6309 ac_cv_sizeof_short=0
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6315 $as_echo "$ac_cv_sizeof_short" >&6; }
6319 cat >>confdefs.h <<_ACEOF
6320 #define SIZEOF_SHORT $ac_cv_sizeof_short
6321 _ACEOF
6324 # The cast to long int works around a bug in the HP C Compiler
6325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6327 # This bug is HP SR number 8606223364.
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6329 $as_echo_n "checking size of int... " >&6; }
6330 if ${ac_cv_sizeof_int+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6335 else
6336 if test "$ac_cv_type_int" = yes; then
6337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6339 as_fn_error 77 "cannot compute sizeof (int)
6340 See \`config.log' for more details" "$LINENO" 5; }
6341 else
6342 ac_cv_sizeof_int=0
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6348 $as_echo "$ac_cv_sizeof_int" >&6; }
6352 cat >>confdefs.h <<_ACEOF
6353 #define SIZEOF_INT $ac_cv_sizeof_int
6354 _ACEOF
6357 # The cast to long int works around a bug in the HP C Compiler
6358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6360 # This bug is HP SR number 8606223364.
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6362 $as_echo_n "checking size of long... " >&6; }
6363 if ${ac_cv_sizeof_long+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6368 else
6369 if test "$ac_cv_type_long" = yes; then
6370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6372 as_fn_error 77 "cannot compute sizeof (long)
6373 See \`config.log' for more details" "$LINENO" 5; }
6374 else
6375 ac_cv_sizeof_long=0
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6381 $as_echo "$ac_cv_sizeof_long" >&6; }
6385 cat >>confdefs.h <<_ACEOF
6386 #define SIZEOF_LONG $ac_cv_sizeof_long
6387 _ACEOF
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6391 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6392 if ${ac_cv_c_bigendian+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 ac_cv_c_bigendian=unknown
6396 # See if we're dealing with a universal compiler.
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 #ifndef __APPLE_CC__
6400 not a universal capable compiler
6401 #endif
6402 typedef int dummy;
6404 _ACEOF
6405 if ac_fn_c_try_compile "$LINENO"; then :
6407 # Check for potential -arch flags. It is not universal unless
6408 # there are at least two -arch flags with different values.
6409 ac_arch=
6410 ac_prev=
6411 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6412 if test -n "$ac_prev"; then
6413 case $ac_word in
6414 i?86 | x86_64 | ppc | ppc64)
6415 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6416 ac_arch=$ac_word
6417 else
6418 ac_cv_c_bigendian=universal
6419 break
6422 esac
6423 ac_prev=
6424 elif test "x$ac_word" = "x-arch"; then
6425 ac_prev=arch
6427 done
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 if test $ac_cv_c_bigendian = unknown; then
6431 # See if sys/param.h defines the BYTE_ORDER macro.
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <sys/types.h>
6435 #include <sys/param.h>
6438 main ()
6440 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6441 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6442 && LITTLE_ENDIAN)
6443 bogus endian macros
6444 #endif
6447 return 0;
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451 # It does; now see whether it defined to BIG_ENDIAN or not.
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/param.h>
6458 main ()
6460 #if BYTE_ORDER != BIG_ENDIAN
6461 not big endian
6462 #endif
6465 return 0;
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 ac_cv_c_bigendian=yes
6470 else
6471 ac_cv_c_bigendian=no
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 if test $ac_cv_c_bigendian = unknown; then
6478 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481 #include <limits.h>
6484 main ()
6486 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6487 bogus endian macros
6488 #endif
6491 return 0;
6493 _ACEOF
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495 # It does; now see whether it defined to _BIG_ENDIAN or not.
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 #include <limits.h>
6501 main ()
6503 #ifndef _BIG_ENDIAN
6504 not big endian
6505 #endif
6508 return 0;
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 ac_cv_c_bigendian=yes
6513 else
6514 ac_cv_c_bigendian=no
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 if test $ac_cv_c_bigendian = unknown; then
6521 # Compile a test program.
6522 if test "$cross_compiling" = yes; then :
6523 # Try to guess by grepping values from an object file.
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 short int ascii_mm[] =
6527 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6528 short int ascii_ii[] =
6529 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6530 int use_ascii (int i) {
6531 return ascii_mm[i] + ascii_ii[i];
6533 short int ebcdic_ii[] =
6534 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6535 short int ebcdic_mm[] =
6536 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6537 int use_ebcdic (int i) {
6538 return ebcdic_mm[i] + ebcdic_ii[i];
6540 extern int foo;
6543 main ()
6545 return use_ascii (foo) == use_ebcdic (foo);
6547 return 0;
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6552 ac_cv_c_bigendian=yes
6554 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6555 if test "$ac_cv_c_bigendian" = unknown; then
6556 ac_cv_c_bigendian=no
6557 else
6558 # finding both strings is unlikely to happen, but who knows?
6559 ac_cv_c_bigendian=unknown
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 $ac_includes_default
6569 main ()
6572 /* Are we little or big endian? From Harbison&Steele. */
6573 union
6575 long int l;
6576 char c[sizeof (long int)];
6577 } u;
6578 u.l = 1;
6579 return u.c[sizeof (long int) - 1] == 1;
6582 return 0;
6584 _ACEOF
6585 if ac_fn_c_try_run "$LINENO"; then :
6586 ac_cv_c_bigendian=no
6587 else
6588 ac_cv_c_bigendian=yes
6590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6591 conftest.$ac_objext conftest.beam conftest.$ac_ext
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6597 $as_echo "$ac_cv_c_bigendian" >&6; }
6598 case $ac_cv_c_bigendian in #(
6599 yes)
6600 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6601 ;; #(
6603 ;; #(
6604 universal)
6606 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6608 ;; #(
6610 as_fn_error $? "unknown endianness
6611 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6612 esac
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointers to integers require aligned access" >&5
6616 $as_echo_n "checking if pointers to integers require aligned access... " >&6; }
6617 if ${zziplib_cv_aligned_access+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test "$cross_compiling" = yes; then :
6621 case $host_cpu in #(
6622 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) :
6623 zziplib_cv_aligned_access=yes ;; #(
6624 *) :
6625 zziplib_cv_aligned_access=no ;;
6626 esac
6627 else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6631 #include <stdio.h>
6632 #include <stdlib.h>
6634 main ()
6637 char* string = malloc(40);
6638 int i;
6639 for (i=0; i < 40; i++) string[i] = i;
6641 void* s = string;
6642 int* p = s+1;
6643 int* q = s+2;
6644 if (*p == *q) { return 1; }
6647 return 0;
6649 _ACEOF
6650 if ac_fn_c_try_run "$LINENO"; then :
6651 zziplib_cv_aligned_access=no
6652 else
6653 zziplib_cv_aligned_access=yes
6655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6656 conftest.$ac_objext conftest.beam conftest.$ac_ext
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $zziplib_cv_aligned_access" >&5
6661 $as_echo "$zziplib_cv_aligned_access" >&6; }
6662 if test "x$zziplib_cv_aligned_access" = xyes ; then
6664 $as_echo "#define HAVE_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
6669 # Checks for library functions.
6670 for ac_func in strcasecmp strndup
6671 do :
6672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6674 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6675 cat >>confdefs.h <<_ACEOF
6676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6677 _ACEOF
6680 done
6683 kpse_save_CPPFLAGS=$CPPFLAGS
6684 kpse_save_LIBS=$LIBS
6686 ## _KPSE_INIT: Initialize TL infrastructure
6687 kpse_BLD=`(cd "./../../." && pwd)`
6688 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
6690 ## _KPSE_LIB_FLAGS: Setup zlib (-lz) flags
6692 # Check whether --with-system-zlib was given.
6693 if test "${with_system_zlib+set}" = set; then :
6694 withval=$with_system_zlib;
6697 # Check whether --with-zlib-includes was given.
6698 if test "${with_zlib_includes+set}" = set; then :
6699 withval=$with_zlib_includes;
6702 # Check whether --with-zlib-libdir was given.
6703 if test "${with_zlib_libdir+set}" = set; then :
6704 withval=$with_zlib_libdir;
6706 if test "x$with_system_zlib" = xyes; then
6707 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
6708 ZLIB_INCLUDES="-I$with_zlib_includes"
6710 ZLIB_LIBS="-lz"
6711 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
6712 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
6714 else
6715 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
6716 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
6717 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
6718 ZLIB_RULE='# Rebuild libz
6719 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
6720 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
6721 ${top_builddir}/../../libs/zlib/include/zconf.h:
6722 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
6725 $as_echo_n "checking if <zlib.h> defines 'z_const'... " >&6; }
6726 if ${kpse_cv_have_decl_z_const+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
6730 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #include <zlib.h>
6736 main ()
6738 z_const char * foo();
6740 return 0;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744 kpse_cv_have_decl_z_const=yes
6745 else
6746 kpse_cv_have_decl_z_const=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 CPPFLAGS=$kpse_save_CPPFLAGS
6750 LIBS=$kpse_save_LIBS
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
6754 $as_echo "$kpse_cv_have_decl_z_const" >&6; }
6755 case $kpse_cv_have_decl_z_const in #(
6756 yes) :
6758 $as_echo "#define ZLIB_CONST 1" >>confdefs.h
6759 ;; #(
6760 *) :
6762 $as_echo "#define z_const /**/" >>confdefs.h
6764 esac
6767 if test "x$enable_build" != xno; then
6768 build_TRUE=
6769 build_FALSE='#'
6770 else
6771 build_TRUE='#'
6772 build_FALSE=
6776 if test "x$enable_build" != xno || test -f config.force; then
6778 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
6779 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
6781 for ac_header in zlib.h
6782 do :
6783 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6784 if test "x$ac_cv_header_zlib_h" = xyes; then :
6785 cat >>confdefs.h <<_ACEOF
6786 #define HAVE_ZLIB_H 1
6787 _ACEOF
6791 done
6793 ac_fn_c_check_func "$LINENO" "zlibVersion" "ac_cv_func_zlibVersion"
6794 if test "x$ac_cv_func_zlibVersion" = xyes; then :
6796 else
6797 as_fn_error $? "zlib not found" "$LINENO" 5
6800 CPPFLAGS=$kpse_save_CPPFLAGS
6801 LIBS=$kpse_save_LIBS
6804 echo timestamp >config.force
6807 ZZIPLIB_TREE=zziplib-0.13.62
6810 # -----------------------------------------------------------------------
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating include/zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&5
6812 $as_echo "creating include/zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&6; }
6813 test -d include || mkdir include
6814 sed -f $srcdir/$ZZIPLIB_TREE/zzip/_msvc.sed $srcdir/config.h.in >include/_msvc.in
6815 ac_config_headers="$ac_config_headers config.h"
6817 ac_config_commands="$ac_config_commands include/zzip/_config.h"
6819 ac_config_commands="$ac_config_commands include/zzip/_msvc.h"
6822 ac_config_files="$ac_config_files Makefile include/zzip/Makefile"
6825 cat >confcache <<\_ACEOF
6826 # This file is a shell script that caches the results of configure
6827 # tests run on this system so they can be shared between configure
6828 # scripts and configure runs, see configure's option --config-cache.
6829 # It is not useful on other systems. If it contains results you don't
6830 # want to keep, you may remove or edit it.
6832 # config.status only pays attention to the cache file if you give it
6833 # the --recheck option to rerun configure.
6835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6837 # following values.
6839 _ACEOF
6841 # The following way of writing the cache mishandles newlines in values,
6842 # but we know of no workaround that is simple, portable, and efficient.
6843 # So, we kill variables containing newlines.
6844 # Ultrix sh set writes to stderr and can't be redirected directly,
6845 # and sets the high bit in the cache file unless we assign to the vars.
6847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6848 eval ac_val=\$$ac_var
6849 case $ac_val in #(
6850 *${as_nl}*)
6851 case $ac_var in #(
6852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6854 esac
6855 case $ac_var in #(
6856 _ | IFS | as_nl) ;; #(
6857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6858 *) { eval $ac_var=; unset $ac_var;} ;;
6859 esac ;;
6860 esac
6861 done
6863 (set) 2>&1 |
6864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6865 *${as_nl}ac_space=\ *)
6866 # `set' does not quote correctly, so add quotes: double-quote
6867 # substitution turns \\\\ into \\, and sed turns \\ into \.
6868 sed -n \
6869 "s/'/'\\\\''/g;
6870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6871 ;; #(
6873 # `set' quotes correctly as required by POSIX, so do not add quotes.
6874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6876 esac |
6877 sort
6879 sed '
6880 /^ac_cv_env_/b end
6881 t clear
6882 :clear
6883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6884 t end
6885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6886 :end' >>confcache
6887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6888 if test -w "$cache_file"; then
6889 if test "x$cache_file" != "x/dev/null"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6891 $as_echo "$as_me: updating cache $cache_file" >&6;}
6892 if test ! -f "$cache_file" || test -h "$cache_file"; then
6893 cat confcache >"$cache_file"
6894 else
6895 case $cache_file in #(
6896 */* | ?:*)
6897 mv -f confcache "$cache_file"$$ &&
6898 mv -f "$cache_file"$$ "$cache_file" ;; #(
6900 mv -f confcache "$cache_file" ;;
6901 esac
6904 else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6909 rm -f confcache
6911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6912 # Let make expand exec_prefix.
6913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6915 DEFS=-DHAVE_CONFIG_H
6917 ac_libobjs=
6918 ac_ltlibobjs=
6920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6921 # 1. Remove the extension, and $U if already installed.
6922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6925 # will be set to the directory where LIBOBJS objects are built.
6926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6928 done
6929 LIBOBJS=$ac_libobjs
6931 LTLIBOBJS=$ac_ltlibobjs
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6935 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6936 if test -n "$am_sleep_pid"; then
6937 # Hide warnings about reused PIDs.
6938 wait $am_sleep_pid 2>/dev/null
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6941 $as_echo "done" >&6; }
6942 if test -n "$EXEEXT"; then
6943 am__EXEEXT_TRUE=
6944 am__EXEEXT_FALSE='#'
6945 else
6946 am__EXEEXT_TRUE='#'
6947 am__EXEEXT_FALSE=
6950 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6951 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6954 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6955 as_fn_error $? "conditional \"AMDEP\" was never defined.
6956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6959 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6962 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6963 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6967 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
6968 as_fn_error $? "conditional \"build\" was never defined.
6969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6972 : "${CONFIG_STATUS=./config.status}"
6973 ac_write_fail=0
6974 ac_clean_files_save=$ac_clean_files
6975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6977 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6978 as_write_fail=0
6979 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6980 #! $SHELL
6981 # Generated by $as_me.
6982 # Run this file to recreate the current configuration.
6983 # Compiler output produced by configure, useful for debugging
6984 # configure, is in config.log if it exists.
6986 debug=false
6987 ac_cs_recheck=false
6988 ac_cs_silent=false
6990 SHELL=\${CONFIG_SHELL-$SHELL}
6991 export SHELL
6992 _ASEOF
6993 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6994 ## -------------------- ##
6995 ## M4sh Initialization. ##
6996 ## -------------------- ##
6998 # Be more Bourne compatible
6999 DUALCASE=1; export DUALCASE # for MKS sh
7000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7001 emulate sh
7002 NULLCMD=:
7003 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7004 # is contrary to our usage. Disable this feature.
7005 alias -g '${1+"$@"}'='"$@"'
7006 setopt NO_GLOB_SUBST
7007 else
7008 case `(set -o) 2>/dev/null` in #(
7009 *posix*) :
7010 set -o posix ;; #(
7011 *) :
7013 esac
7017 as_nl='
7019 export as_nl
7020 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7021 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7023 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7024 # Prefer a ksh shell builtin over an external printf program on Solaris,
7025 # but without wasting forks for bash or zsh.
7026 if test -z "$BASH_VERSION$ZSH_VERSION" \
7027 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7028 as_echo='print -r --'
7029 as_echo_n='print -rn --'
7030 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7031 as_echo='printf %s\n'
7032 as_echo_n='printf %s'
7033 else
7034 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7035 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7036 as_echo_n='/usr/ucb/echo -n'
7037 else
7038 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7039 as_echo_n_body='eval
7040 arg=$1;
7041 case $arg in #(
7042 *"$as_nl"*)
7043 expr "X$arg" : "X\\(.*\\)$as_nl";
7044 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7045 esac;
7046 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7048 export as_echo_n_body
7049 as_echo_n='sh -c $as_echo_n_body as_echo'
7051 export as_echo_body
7052 as_echo='sh -c $as_echo_body as_echo'
7055 # The user is always right.
7056 if test "${PATH_SEPARATOR+set}" != set; then
7057 PATH_SEPARATOR=:
7058 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7059 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7060 PATH_SEPARATOR=';'
7065 # IFS
7066 # We need space, tab and new line, in precisely that order. Quoting is
7067 # there to prevent editors from complaining about space-tab.
7068 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7069 # splitting by setting IFS to empty value.)
7070 IFS=" "" $as_nl"
7072 # Find who we are. Look in the path if we contain no directory separator.
7073 as_myself=
7074 case $0 in #((
7075 *[\\/]* ) as_myself=$0 ;;
7076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7082 done
7083 IFS=$as_save_IFS
7086 esac
7087 # We did not find ourselves, most probably we were run as `sh COMMAND'
7088 # in which case we are not to be found in the path.
7089 if test "x$as_myself" = x; then
7090 as_myself=$0
7092 if test ! -f "$as_myself"; then
7093 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7094 exit 1
7097 # Unset variables that we do not need and which cause bugs (e.g. in
7098 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7099 # suppresses any "Segmentation fault" message there. '((' could
7100 # trigger a bug in pdksh 5.2.14.
7101 for as_var in BASH_ENV ENV MAIL MAILPATH
7102 do eval test x\${$as_var+set} = xset \
7103 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7104 done
7105 PS1='$ '
7106 PS2='> '
7107 PS4='+ '
7109 # NLS nuisances.
7110 LC_ALL=C
7111 export LC_ALL
7112 LANGUAGE=C
7113 export LANGUAGE
7115 # CDPATH.
7116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7119 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7120 # ----------------------------------------
7121 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7122 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7123 # script with STATUS, using 1 if that was 0.
7124 as_fn_error ()
7126 as_status=$1; test $as_status -eq 0 && as_status=1
7127 if test "$4"; then
7128 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7129 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7131 $as_echo "$as_me: error: $2" >&2
7132 as_fn_exit $as_status
7133 } # as_fn_error
7136 # as_fn_set_status STATUS
7137 # -----------------------
7138 # Set $? to STATUS, without forking.
7139 as_fn_set_status ()
7141 return $1
7142 } # as_fn_set_status
7144 # as_fn_exit STATUS
7145 # -----------------
7146 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7147 as_fn_exit ()
7149 set +e
7150 as_fn_set_status $1
7151 exit $1
7152 } # as_fn_exit
7154 # as_fn_unset VAR
7155 # ---------------
7156 # Portably unset VAR.
7157 as_fn_unset ()
7159 { eval $1=; unset $1;}
7161 as_unset=as_fn_unset
7162 # as_fn_append VAR VALUE
7163 # ----------------------
7164 # Append the text in VALUE to the end of the definition contained in VAR. Take
7165 # advantage of any shell optimizations that allow amortized linear growth over
7166 # repeated appends, instead of the typical quadratic growth present in naive
7167 # implementations.
7168 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7169 eval 'as_fn_append ()
7171 eval $1+=\$2
7173 else
7174 as_fn_append ()
7176 eval $1=\$$1\$2
7178 fi # as_fn_append
7180 # as_fn_arith ARG...
7181 # ------------------
7182 # Perform arithmetic evaluation on the ARGs, and store the result in the
7183 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7184 # must be portable across $(()) and expr.
7185 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7186 eval 'as_fn_arith ()
7188 as_val=$(( $* ))
7190 else
7191 as_fn_arith ()
7193 as_val=`expr "$@" || test $? -eq 1`
7195 fi # as_fn_arith
7198 if expr a : '\(a\)' >/dev/null 2>&1 &&
7199 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7200 as_expr=expr
7201 else
7202 as_expr=false
7205 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7206 as_basename=basename
7207 else
7208 as_basename=false
7211 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7212 as_dirname=dirname
7213 else
7214 as_dirname=false
7217 as_me=`$as_basename -- "$0" ||
7218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7219 X"$0" : 'X\(//\)$' \| \
7220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7221 $as_echo X/"$0" |
7222 sed '/^.*\/\([^/][^/]*\)\/*$/{
7223 s//\1/
7226 /^X\/\(\/\/\)$/{
7227 s//\1/
7230 /^X\/\(\/\).*/{
7231 s//\1/
7234 s/.*/./; q'`
7236 # Avoid depending upon Character Ranges.
7237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7240 as_cr_digits='0123456789'
7241 as_cr_alnum=$as_cr_Letters$as_cr_digits
7243 ECHO_C= ECHO_N= ECHO_T=
7244 case `echo -n x` in #(((((
7245 -n*)
7246 case `echo 'xy\c'` in
7247 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7248 xy) ECHO_C='\c';;
7249 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7250 ECHO_T=' ';;
7251 esac;;
7253 ECHO_N='-n';;
7254 esac
7256 rm -f conf$$ conf$$.exe conf$$.file
7257 if test -d conf$$.dir; then
7258 rm -f conf$$.dir/conf$$.file
7259 else
7260 rm -f conf$$.dir
7261 mkdir conf$$.dir 2>/dev/null
7263 if (echo >conf$$.file) 2>/dev/null; then
7264 if ln -s conf$$.file conf$$ 2>/dev/null; then
7265 as_ln_s='ln -s'
7266 # ... but there are two gotchas:
7267 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7268 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7269 # In both cases, we have to default to `cp -pR'.
7270 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7271 as_ln_s='cp -pR'
7272 elif ln conf$$.file conf$$ 2>/dev/null; then
7273 as_ln_s=ln
7274 else
7275 as_ln_s='cp -pR'
7277 else
7278 as_ln_s='cp -pR'
7280 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7281 rmdir conf$$.dir 2>/dev/null
7284 # as_fn_mkdir_p
7285 # -------------
7286 # Create "$as_dir" as a directory, including parents if necessary.
7287 as_fn_mkdir_p ()
7290 case $as_dir in #(
7291 -*) as_dir=./$as_dir;;
7292 esac
7293 test -d "$as_dir" || eval $as_mkdir_p || {
7294 as_dirs=
7295 while :; do
7296 case $as_dir in #(
7297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7298 *) as_qdir=$as_dir;;
7299 esac
7300 as_dirs="'$as_qdir' $as_dirs"
7301 as_dir=`$as_dirname -- "$as_dir" ||
7302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7303 X"$as_dir" : 'X\(//\)[^/]' \| \
7304 X"$as_dir" : 'X\(//\)$' \| \
7305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7306 $as_echo X"$as_dir" |
7307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7308 s//\1/
7311 /^X\(\/\/\)[^/].*/{
7312 s//\1/
7315 /^X\(\/\/\)$/{
7316 s//\1/
7319 /^X\(\/\).*/{
7320 s//\1/
7323 s/.*/./; q'`
7324 test -d "$as_dir" && break
7325 done
7326 test -z "$as_dirs" || eval "mkdir $as_dirs"
7327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7330 } # as_fn_mkdir_p
7331 if mkdir -p . 2>/dev/null; then
7332 as_mkdir_p='mkdir -p "$as_dir"'
7333 else
7334 test -d ./-p && rmdir ./-p
7335 as_mkdir_p=false
7339 # as_fn_executable_p FILE
7340 # -----------------------
7341 # Test if FILE is an executable regular file.
7342 as_fn_executable_p ()
7344 test -f "$1" && test -x "$1"
7345 } # as_fn_executable_p
7346 as_test_x='test -x'
7347 as_executable_p=as_fn_executable_p
7349 # Sed expression to map a string onto a valid CPP name.
7350 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7352 # Sed expression to map a string onto a valid variable name.
7353 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7356 exec 6>&1
7357 ## ----------------------------------- ##
7358 ## Main body of $CONFIG_STATUS script. ##
7359 ## ----------------------------------- ##
7360 _ASEOF
7361 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7364 # Save the log message, to keep $0 and so on meaningful, and to
7365 # report actual input values of CONFIG_FILES etc. instead of their
7366 # values after options handling.
7367 ac_log="
7368 This file was extended by zziplib (TeX Live) $as_me 0.13.62, which was
7369 generated by GNU Autoconf 2.69. Invocation command line was
7371 CONFIG_FILES = $CONFIG_FILES
7372 CONFIG_HEADERS = $CONFIG_HEADERS
7373 CONFIG_LINKS = $CONFIG_LINKS
7374 CONFIG_COMMANDS = $CONFIG_COMMANDS
7375 $ $0 $@
7377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7380 _ACEOF
7382 case $ac_config_files in *"
7383 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7384 esac
7386 case $ac_config_headers in *"
7387 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7388 esac
7391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7392 # Files that config.status was made for.
7393 config_files="$ac_config_files"
7394 config_headers="$ac_config_headers"
7395 config_commands="$ac_config_commands"
7397 _ACEOF
7399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7400 ac_cs_usage="\
7401 \`$as_me' instantiates files and other configuration actions
7402 from templates according to the current configuration. Unless the files
7403 and actions are specified as TAGs, all are instantiated by default.
7405 Usage: $0 [OPTION]... [TAG]...
7407 -h, --help print this help, then exit
7408 -V, --version print version number and configuration settings, then exit
7409 --config print configuration, then exit
7410 -q, --quiet, --silent
7411 do not print progress messages
7412 -d, --debug don't remove temporary files
7413 --recheck update $as_me by reconfiguring in the same conditions
7414 --file=FILE[:TEMPLATE]
7415 instantiate the configuration file FILE
7416 --header=FILE[:TEMPLATE]
7417 instantiate the configuration header FILE
7419 Configuration files:
7420 $config_files
7422 Configuration headers:
7423 $config_headers
7425 Configuration commands:
7426 $config_commands
7428 Report bugs to <tex-k@tug.org>."
7430 _ACEOF
7431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7432 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7433 ac_cs_version="\\
7434 zziplib (TeX Live) config.status 0.13.62
7435 configured by $0, generated by GNU Autoconf 2.69,
7436 with options \\"\$ac_cs_config\\"
7438 Copyright (C) 2012 Free Software Foundation, Inc.
7439 This config.status script is free software; the Free Software Foundation
7440 gives unlimited permission to copy, distribute and modify it."
7442 ac_pwd='$ac_pwd'
7443 srcdir='$srcdir'
7444 INSTALL='$INSTALL'
7445 MKDIR_P='$MKDIR_P'
7446 AWK='$AWK'
7447 test -n "\$AWK" || AWK=awk
7448 _ACEOF
7450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7451 # The default lists apply if the user does not specify any file.
7452 ac_need_defaults=:
7453 while test $# != 0
7455 case $1 in
7456 --*=?*)
7457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7459 ac_shift=:
7461 --*=)
7462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7463 ac_optarg=
7464 ac_shift=:
7467 ac_option=$1
7468 ac_optarg=$2
7469 ac_shift=shift
7471 esac
7473 case $ac_option in
7474 # Handling of the options.
7475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7476 ac_cs_recheck=: ;;
7477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7478 $as_echo "$ac_cs_version"; exit ;;
7479 --config | --confi | --conf | --con | --co | --c )
7480 $as_echo "$ac_cs_config"; exit ;;
7481 --debug | --debu | --deb | --de | --d | -d )
7482 debug=: ;;
7483 --file | --fil | --fi | --f )
7484 $ac_shift
7485 case $ac_optarg in
7486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7487 '') as_fn_error $? "missing file argument" ;;
7488 esac
7489 as_fn_append CONFIG_FILES " '$ac_optarg'"
7490 ac_need_defaults=false;;
7491 --header | --heade | --head | --hea )
7492 $ac_shift
7493 case $ac_optarg in
7494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7495 esac
7496 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7497 ac_need_defaults=false;;
7498 --he | --h)
7499 # Conflict between --help and --header
7500 as_fn_error $? "ambiguous option: \`$1'
7501 Try \`$0 --help' for more information.";;
7502 --help | --hel | -h )
7503 $as_echo "$ac_cs_usage"; exit ;;
7504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7505 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7506 ac_cs_silent=: ;;
7508 # This is an error.
7509 -*) as_fn_error $? "unrecognized option: \`$1'
7510 Try \`$0 --help' for more information." ;;
7512 *) as_fn_append ac_config_targets " $1"
7513 ac_need_defaults=false ;;
7515 esac
7516 shift
7517 done
7519 ac_configure_extra_args=
7521 if $ac_cs_silent; then
7522 exec 6>/dev/null
7523 ac_configure_extra_args="$ac_configure_extra_args --silent"
7526 _ACEOF
7527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7528 if \$ac_cs_recheck; then
7529 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7530 shift
7531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7532 CONFIG_SHELL='$SHELL'
7533 export CONFIG_SHELL
7534 exec "\$@"
7537 _ACEOF
7538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7539 exec 5>>config.log
7541 echo
7542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7543 ## Running $as_me. ##
7544 _ASBOX
7545 $as_echo "$ac_log"
7546 } >&5
7548 _ACEOF
7549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7551 # INIT-COMMANDS
7553 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7554 PACKAGE="$PACKAGE"
7555 PACKAGE="$PACKAGE"
7557 _ACEOF
7559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7561 # Handling of arguments.
7562 for ac_config_target in $ac_config_targets
7564 case $ac_config_target in
7565 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7566 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7567 "include/zzip/_config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/zzip/_config.h" ;;
7568 "include/zzip/_msvc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/zzip/_msvc.h" ;;
7569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7570 "include/zzip/Makefile") CONFIG_FILES="$CONFIG_FILES include/zzip/Makefile" ;;
7572 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7573 esac
7574 done
7577 # If the user did not use the arguments to specify the items to instantiate,
7578 # then the envvar interface is used. Set only those that are not.
7579 # We use the long form for the default assignment because of an extremely
7580 # bizarre bug on SunOS 4.1.3.
7581 if $ac_need_defaults; then
7582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7583 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7584 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7587 # Have a temporary directory for convenience. Make it in the build tree
7588 # simply because there is no reason against having it here, and in addition,
7589 # creating and moving files from /tmp can sometimes cause problems.
7590 # Hook for its removal unless debugging.
7591 # Note that there is a small window in which the directory will not be cleaned:
7592 # after its creation but before its name has been assigned to `$tmp'.
7593 $debug ||
7595 tmp= ac_tmp=
7596 trap 'exit_status=$?
7597 : "${ac_tmp:=$tmp}"
7598 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7600 trap 'as_fn_exit 1' 1 2 13 15
7602 # Create a (secure) tmp directory for tmp files.
7605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7606 test -d "$tmp"
7607 } ||
7609 tmp=./conf$$-$RANDOM
7610 (umask 077 && mkdir "$tmp")
7611 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7612 ac_tmp=$tmp
7614 # Set up the scripts for CONFIG_FILES section.
7615 # No need to generate them if there are no CONFIG_FILES.
7616 # This happens for instance with `./config.status config.h'.
7617 if test -n "$CONFIG_FILES"; then
7620 ac_cr=`echo X | tr X '\015'`
7621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7622 # But we know of no other shell where ac_cr would be empty at this
7623 # point, so we can use a bashism as a fallback.
7624 if test "x$ac_cr" = x; then
7625 eval ac_cr=\$\'\\r\'
7627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7629 ac_cs_awk_cr='\\r'
7630 else
7631 ac_cs_awk_cr=$ac_cr
7634 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7635 _ACEOF
7639 echo "cat >conf$$subs.awk <<_ACEOF" &&
7640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7641 echo "_ACEOF"
7642 } >conf$$subs.sh ||
7643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7645 ac_delim='%!_!# '
7646 for ac_last_try in false false false false false :; do
7647 . ./conf$$subs.sh ||
7648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7651 if test $ac_delim_n = $ac_delim_num; then
7652 break
7653 elif $ac_last_try; then
7654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7655 else
7656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7658 done
7659 rm -f conf$$subs.sh
7661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7662 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7663 _ACEOF
7664 sed -n '
7666 s/^/S["/; s/!.*/"]=/
7669 s/^[^!]*!//
7670 :repl
7671 t repl
7672 s/'"$ac_delim"'$//
7673 t delim
7676 s/\(.\{148\}\)..*/\1/
7677 t more1
7678 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7681 b repl
7682 :more1
7683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7686 s/.\{148\}//
7687 t nl
7688 :delim
7690 s/\(.\{148\}\)..*/\1/
7691 t more2
7692 s/["\\]/\\&/g; s/^/"/; s/$/"/
7695 :more2
7696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7699 s/.\{148\}//
7700 t delim
7701 ' <conf$$subs.awk | sed '
7702 /^[^""]/{
7704 s/\n//
7706 ' >>$CONFIG_STATUS || ac_write_fail=1
7707 rm -f conf$$subs.awk
7708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7709 _ACAWK
7710 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7711 for (key in S) S_is_set[key] = 1
7712 FS = "\a"
7716 line = $ 0
7717 nfields = split(line, field, "@")
7718 substed = 0
7719 len = length(field[1])
7720 for (i = 2; i < nfields; i++) {
7721 key = field[i]
7722 keylen = length(key)
7723 if (S_is_set[key]) {
7724 value = S[key]
7725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7726 len += length(value) + length(field[++i])
7727 substed = 1
7728 } else
7729 len += 1 + keylen
7732 print line
7735 _ACAWK
7736 _ACEOF
7737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7740 else
7742 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7743 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7744 _ACEOF
7746 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7747 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7748 # trailing colons and then remove the whole line if VPATH becomes empty
7749 # (actually we leave an empty line to preserve line numbers).
7750 if test "x$srcdir" = x.; then
7751 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7753 s///
7754 s/^/:/
7755 s/[ ]*$/:/
7756 s/:\$(srcdir):/:/g
7757 s/:\${srcdir}:/:/g
7758 s/:@srcdir@:/:/g
7759 s/^:*//
7760 s/:*$//
7762 s/\(=[ ]*\).*/\1/
7764 s/\n//
7765 s/^[^=]*=[ ]*$//
7769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7770 fi # test -n "$CONFIG_FILES"
7772 # Set up the scripts for CONFIG_HEADERS section.
7773 # No need to generate them if there are no CONFIG_HEADERS.
7774 # This happens for instance with `./config.status Makefile'.
7775 if test -n "$CONFIG_HEADERS"; then
7776 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7777 BEGIN {
7778 _ACEOF
7780 # Transform confdefs.h into an awk script `defines.awk', embedded as
7781 # here-document in config.status, that substitutes the proper values into
7782 # config.h.in to produce config.h.
7784 # Create a delimiter string that does not exist in confdefs.h, to ease
7785 # handling of long lines.
7786 ac_delim='%!_!# '
7787 for ac_last_try in false false :; do
7788 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7789 if test -z "$ac_tt"; then
7790 break
7791 elif $ac_last_try; then
7792 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7793 else
7794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7796 done
7798 # For the awk script, D is an array of macro values keyed by name,
7799 # likewise P contains macro parameters if any. Preserve backslash
7800 # newline sequences.
7802 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7803 sed -n '
7804 s/.\{148\}/&'"$ac_delim"'/g
7805 t rset
7806 :rset
7807 s/^[ ]*#[ ]*define[ ][ ]*/ /
7808 t def
7810 :def
7811 s/\\$//
7812 t bsnl
7813 s/["\\]/\\&/g
7814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7815 D["\1"]=" \3"/p
7816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7818 :bsnl
7819 s/["\\]/\\&/g
7820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7821 D["\1"]=" \3\\\\\\n"\\/p
7822 t cont
7823 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7824 t cont
7826 :cont
7828 s/.\{148\}/&'"$ac_delim"'/g
7829 t clear
7830 :clear
7831 s/\\$//
7832 t bsnlc
7833 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7835 :bsnlc
7836 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7837 b cont
7838 ' <confdefs.h | sed '
7839 s/'"$ac_delim"'/"\\\
7840 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7843 for (key in D) D_is_set[key] = 1
7844 FS = "\a"
7846 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7847 line = \$ 0
7848 split(line, arg, " ")
7849 if (arg[1] == "#") {
7850 defundef = arg[2]
7851 mac1 = arg[3]
7852 } else {
7853 defundef = substr(arg[1], 2)
7854 mac1 = arg[2]
7856 split(mac1, mac2, "(") #)
7857 macro = mac2[1]
7858 prefix = substr(line, 1, index(line, defundef) - 1)
7859 if (D_is_set[macro]) {
7860 # Preserve the white space surrounding the "#".
7861 print prefix "define", macro P[macro] D[macro]
7862 next
7863 } else {
7864 # Replace #undef with comments. This is necessary, for example,
7865 # in the case of _POSIX_SOURCE, which is predefined and required
7866 # on some systems where configure will not decide to define it.
7867 if (defundef == "undef") {
7868 print "/*", prefix defundef, macro, "*/"
7869 next
7873 { print }
7874 _ACAWK
7875 _ACEOF
7876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7877 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7878 fi # test -n "$CONFIG_HEADERS"
7881 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7882 shift
7883 for ac_tag
7885 case $ac_tag in
7886 :[FHLC]) ac_mode=$ac_tag; continue;;
7887 esac
7888 case $ac_mode$ac_tag in
7889 :[FHL]*:*);;
7890 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7891 :[FH]-) ac_tag=-:-;;
7892 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7893 esac
7894 ac_save_IFS=$IFS
7895 IFS=:
7896 set x $ac_tag
7897 IFS=$ac_save_IFS
7898 shift
7899 ac_file=$1
7900 shift
7902 case $ac_mode in
7903 :L) ac_source=$1;;
7904 :[FH])
7905 ac_file_inputs=
7906 for ac_f
7908 case $ac_f in
7909 -) ac_f="$ac_tmp/stdin";;
7910 *) # Look for the file first in the build tree, then in the source tree
7911 # (if the path is not absolute). The absolute path cannot be DOS-style,
7912 # because $ac_f cannot contain `:'.
7913 test -f "$ac_f" ||
7914 case $ac_f in
7915 [\\/$]*) false;;
7916 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7917 esac ||
7918 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7919 esac
7920 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7921 as_fn_append ac_file_inputs " '$ac_f'"
7922 done
7924 # Let's still pretend it is `configure' which instantiates (i.e., don't
7925 # use $as_me), people would be surprised to read:
7926 # /* config.h. Generated by config.status. */
7927 configure_input='Generated from '`
7928 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7929 `' by configure.'
7930 if test x"$ac_file" != x-; then
7931 configure_input="$ac_file. $configure_input"
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7933 $as_echo "$as_me: creating $ac_file" >&6;}
7935 # Neutralize special characters interpreted by sed in replacement strings.
7936 case $configure_input in #(
7937 *\&* | *\|* | *\\* )
7938 ac_sed_conf_input=`$as_echo "$configure_input" |
7939 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7940 *) ac_sed_conf_input=$configure_input;;
7941 esac
7943 case $ac_tag in
7944 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7946 esac
7948 esac
7950 ac_dir=`$as_dirname -- "$ac_file" ||
7951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7952 X"$ac_file" : 'X\(//\)[^/]' \| \
7953 X"$ac_file" : 'X\(//\)$' \| \
7954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7955 $as_echo X"$ac_file" |
7956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7957 s//\1/
7960 /^X\(\/\/\)[^/].*/{
7961 s//\1/
7964 /^X\(\/\/\)$/{
7965 s//\1/
7968 /^X\(\/\).*/{
7969 s//\1/
7972 s/.*/./; q'`
7973 as_dir="$ac_dir"; as_fn_mkdir_p
7974 ac_builddir=.
7976 case "$ac_dir" in
7977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7979 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7980 # A ".." for each directory in $ac_dir_suffix.
7981 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7982 case $ac_top_builddir_sub in
7983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7985 esac ;;
7986 esac
7987 ac_abs_top_builddir=$ac_pwd
7988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7989 # for backward compatibility:
7990 ac_top_builddir=$ac_top_build_prefix
7992 case $srcdir in
7993 .) # We are building in place.
7994 ac_srcdir=.
7995 ac_top_srcdir=$ac_top_builddir_sub
7996 ac_abs_top_srcdir=$ac_pwd ;;
7997 [\\/]* | ?:[\\/]* ) # Absolute name.
7998 ac_srcdir=$srcdir$ac_dir_suffix;
7999 ac_top_srcdir=$srcdir
8000 ac_abs_top_srcdir=$srcdir ;;
8001 *) # Relative name.
8002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8003 ac_top_srcdir=$ac_top_build_prefix$srcdir
8004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8005 esac
8006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8009 case $ac_mode in
8012 # CONFIG_FILE
8015 case $INSTALL in
8016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8018 esac
8019 ac_MKDIR_P=$MKDIR_P
8020 case $MKDIR_P in
8021 [\\/$]* | ?:[\\/]* ) ;;
8022 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8023 esac
8024 _ACEOF
8026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8027 # If the template does not know about datarootdir, expand it.
8028 # FIXME: This hack should be removed a few years after 2.60.
8029 ac_datarootdir_hack=; ac_datarootdir_seen=
8030 ac_sed_dataroot='
8031 /datarootdir/ {
8035 /@datadir@/p
8036 /@docdir@/p
8037 /@infodir@/p
8038 /@localedir@/p
8039 /@mandir@/p'
8040 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8041 *datarootdir*) ac_datarootdir_seen=yes;;
8042 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8044 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8045 _ACEOF
8046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8047 ac_datarootdir_hack='
8048 s&@datadir@&$datadir&g
8049 s&@docdir@&$docdir&g
8050 s&@infodir@&$infodir&g
8051 s&@localedir@&$localedir&g
8052 s&@mandir@&$mandir&g
8053 s&\\\${datarootdir}&$datarootdir&g' ;;
8054 esac
8055 _ACEOF
8057 # Neutralize VPATH when `$srcdir' = `.'.
8058 # Shell code in configure.ac might set extrasub.
8059 # FIXME: do we really want to maintain this feature?
8060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8061 ac_sed_extra="$ac_vpsub
8062 $extrasub
8063 _ACEOF
8064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8067 s|@configure_input@|$ac_sed_conf_input|;t t
8068 s&@top_builddir@&$ac_top_builddir_sub&;t t
8069 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8070 s&@srcdir@&$ac_srcdir&;t t
8071 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8072 s&@top_srcdir@&$ac_top_srcdir&;t t
8073 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8074 s&@builddir@&$ac_builddir&;t t
8075 s&@abs_builddir@&$ac_abs_builddir&;t t
8076 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8077 s&@INSTALL@&$ac_INSTALL&;t t
8078 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8079 $ac_datarootdir_hack
8081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8082 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8085 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8087 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8089 which seems to be undefined. Please make sure it is defined" >&5
8090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8091 which seems to be undefined. Please make sure it is defined" >&2;}
8093 rm -f "$ac_tmp/stdin"
8094 case $ac_file in
8095 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8096 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8097 esac \
8098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8102 # CONFIG_HEADER
8104 if test x"$ac_file" != x-; then
8106 $as_echo "/* $configure_input */" \
8107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8108 } >"$ac_tmp/config.h" \
8109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8110 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8113 else
8114 rm -f "$ac_file"
8115 mv "$ac_tmp/config.h" "$ac_file" \
8116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8118 else
8119 $as_echo "/* $configure_input */" \
8120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8121 || as_fn_error $? "could not create -" "$LINENO" 5
8123 # Compute "$ac_file"'s index in $config_headers.
8124 _am_arg="$ac_file"
8125 _am_stamp_count=1
8126 for _am_header in $config_headers :; do
8127 case $_am_header in
8128 $_am_arg | $_am_arg:* )
8129 break ;;
8131 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8132 esac
8133 done
8134 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8135 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8136 X"$_am_arg" : 'X\(//\)[^/]' \| \
8137 X"$_am_arg" : 'X\(//\)$' \| \
8138 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8139 $as_echo X"$_am_arg" |
8140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8141 s//\1/
8144 /^X\(\/\/\)[^/].*/{
8145 s//\1/
8148 /^X\(\/\/\)$/{
8149 s//\1/
8152 /^X\(\/\).*/{
8153 s//\1/
8156 s/.*/./; q'`/stamp-h$_am_stamp_count
8159 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8160 $as_echo "$as_me: executing $ac_file commands" >&6;}
8162 esac
8165 case $ac_file$ac_mode in
8166 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8167 # Older Autoconf quotes --file arguments for eval, but not when files
8168 # are listed without --file. Let's play safe and only enable the eval
8169 # if we detect the quoting.
8170 case $CONFIG_FILES in
8171 *\'*) eval set x "$CONFIG_FILES" ;;
8172 *) set x $CONFIG_FILES ;;
8173 esac
8174 shift
8175 for mf
8177 # Strip MF so we end up with the name of the file.
8178 mf=`echo "$mf" | sed -e 's/:.*$//'`
8179 # Check whether this is an Automake generated Makefile or not.
8180 # We used to match only the files named 'Makefile.in', but
8181 # some people rename them; so instead we look at the file content.
8182 # Grep'ing the first line is not enough: some people post-process
8183 # each Makefile.in and add a new line on top of each file to say so.
8184 # Grep'ing the whole file is not good either: AIX grep has a line
8185 # limit of 2048, but all sed's we know have understand at least 4000.
8186 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8187 dirpart=`$as_dirname -- "$mf" ||
8188 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8189 X"$mf" : 'X\(//\)[^/]' \| \
8190 X"$mf" : 'X\(//\)$' \| \
8191 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8192 $as_echo X"$mf" |
8193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8194 s//\1/
8197 /^X\(\/\/\)[^/].*/{
8198 s//\1/
8201 /^X\(\/\/\)$/{
8202 s//\1/
8205 /^X\(\/\).*/{
8206 s//\1/
8209 s/.*/./; q'`
8210 else
8211 continue
8213 # Extract the definition of DEPDIR, am__include, and am__quote
8214 # from the Makefile without running 'make'.
8215 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8216 test -z "$DEPDIR" && continue
8217 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8218 test -z "$am__include" && continue
8219 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8220 # Find all dependency output files, they are included files with
8221 # $(DEPDIR) in their names. We invoke sed twice because it is the
8222 # simplest approach to changing $(DEPDIR) to its actual value in the
8223 # expansion.
8224 for file in `sed -n "
8225 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8226 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8227 # Make sure the directory exists.
8228 test -f "$dirpart/$file" && continue
8229 fdir=`$as_dirname -- "$file" ||
8230 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8231 X"$file" : 'X\(//\)[^/]' \| \
8232 X"$file" : 'X\(//\)$' \| \
8233 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8234 $as_echo X"$file" |
8235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8236 s//\1/
8239 /^X\(\/\/\)[^/].*/{
8240 s//\1/
8243 /^X\(\/\/\)$/{
8244 s//\1/
8247 /^X\(\/\).*/{
8248 s//\1/
8251 s/.*/./; q'`
8252 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8253 # echo "creating $dirpart/$file"
8254 echo '# dummy' > "$dirpart/$file"
8255 done
8256 done
8259 "include/zzip/_config.h":C) ac_prefix_conf_OUT=`echo include/zzip/_config.h`
8260 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
8261 ac_prefix_conf_PKG=`echo zzip`
8262 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
8263 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
8264 ac_prefix_conf_INP=`echo "config.h" | sed -e 's/ *//'`
8265 if test ".$ac_prefix_conf_INP" = "."; then
8266 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
8267 case "$ac_file" in
8268 *.h) ac_prefix_conf_INP=$ac_file ;;
8270 esac
8271 test ".$ac_prefix_conf_INP" != "." && break
8272 done
8274 if test ".$ac_prefix_conf_INP" = "."; then
8275 case "$ac_prefix_conf_OUT" in
8276 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
8278 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
8280 *) ac_prefix_conf_INP=config.h
8282 esac
8284 if test -z "$ac_prefix_conf_PKG" ; then
8285 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
8286 else
8287 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
8288 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
8289 fi fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
8291 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
8292 if test -f $ac_prefix_conf_INP ; then
8293 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
8294 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
8295 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
8296 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
8297 echo "#endif/" >>conftest.prefix
8298 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
8299 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
8300 echo "#endif/" >> conftest.prefix
8301 # now executing _script on _DEF input to create _OUT output file
8302 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
8303 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
8304 echo ' ' >>$tmp/pconfig.h
8305 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
8307 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
8308 echo ' ' >>$tmp/pconfig.h
8309 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
8310 echo "#endif" >>$tmp/pconfig.h
8311 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
8313 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
8314 else
8315 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
8316 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8317 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
8318 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
8319 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
8320 $as_echo X"$ac_prefix_conf_OUT" |
8321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8322 s//\1/
8325 /^X\(\/\/\)[^/].*/{
8326 s//\1/
8329 /^X\(\/\/\)$/{
8330 s//\1/
8333 /^X\(\/\).*/{
8334 s//\1/
8337 s/.*/./; q'`
8338 as_dir="$ac_dir"; as_fn_mkdir_p
8339 rm -f "$ac_prefix_conf_OUT"
8340 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
8342 cp conftest.prefix _configs.sed
8343 else
8344 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
8346 rm -f conftest.*
8349 "include/zzip/_msvc.h":C) ac_prefix_conf_OUT=`echo include/zzip/_msvc.h`
8350 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
8351 ac_prefix_conf_PKG=`echo zzip`
8352 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
8353 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
8354 ac_prefix_conf_INP=`echo "include/_msvc.in" | sed -e 's/ *//'`
8355 if test ".$ac_prefix_conf_INP" = "."; then
8356 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
8357 case "$ac_file" in
8358 *.h) ac_prefix_conf_INP=$ac_file ;;
8360 esac
8361 test ".$ac_prefix_conf_INP" != "." && break
8362 done
8364 if test ".$ac_prefix_conf_INP" = "."; then
8365 case "$ac_prefix_conf_OUT" in
8366 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
8368 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
8370 *) ac_prefix_conf_INP=config.h
8372 esac
8374 if test -z "$ac_prefix_conf_PKG" ; then
8375 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
8376 else
8377 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
8378 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
8379 fi fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
8381 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
8382 if test -f $ac_prefix_conf_INP ; then
8383 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
8384 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
8385 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
8386 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
8387 echo "#endif/" >>conftest.prefix
8388 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
8389 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
8390 echo "#endif/" >> conftest.prefix
8391 # now executing _script on _DEF input to create _OUT output file
8392 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
8393 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
8394 echo ' ' >>$tmp/pconfig.h
8395 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
8397 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
8398 echo ' ' >>$tmp/pconfig.h
8399 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
8400 echo "#endif" >>$tmp/pconfig.h
8401 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
8403 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
8404 else
8405 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
8406 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8407 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
8408 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
8409 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
8410 $as_echo X"$ac_prefix_conf_OUT" |
8411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8412 s//\1/
8415 /^X\(\/\/\)[^/].*/{
8416 s//\1/
8419 /^X\(\/\/\)$/{
8420 s//\1/
8423 /^X\(\/\).*/{
8424 s//\1/
8427 s/.*/./; q'`
8428 as_dir="$ac_dir"; as_fn_mkdir_p
8429 rm -f "$ac_prefix_conf_OUT"
8430 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
8432 cp conftest.prefix _configs.sed
8433 else
8434 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
8436 rm -f conftest.*
8440 esac
8441 done # for ac_tag
8444 as_fn_exit 0
8445 _ACEOF
8446 ac_clean_files=$ac_clean_files_save
8448 test $ac_write_fail = 0 ||
8449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8452 # configure is writing to config.log, and then calls config.status.
8453 # config.status does its own redirection, appending to config.log.
8454 # Unfortunately, on DOS this fails, as config.log is still kept open
8455 # by configure, so config.status won't be able to write to it; its
8456 # output is simply discarded. So we exec the FD to /dev/null,
8457 # effectively closing config.log, so it can be properly (re)opened and
8458 # appended to by config.status. When coming back to configure, we
8459 # need to make the FD available again.
8460 if test "$no_create" != yes; then
8461 ac_cs_success=:
8462 ac_config_status_args=
8463 test "$silent" = yes &&
8464 ac_config_status_args="$ac_config_status_args --quiet"
8465 exec 5>/dev/null
8466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8467 exec 5>>config.log
8468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8469 # would make configure fail if this is the last instruction.
8470 $ac_cs_success || as_fn_exit 1
8472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}