beta-0.89.2
[luatex.git] / source / libs / zlib / configure
blob48fe4f2c4eb6e3160ff302165ee0afaf9e8d92b8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zlib (TeX Live) 1.2.8.
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='zlib (TeX Live)'
582 PACKAGE_TARNAME='zlib--tex-live-'
583 PACKAGE_VERSION='1.2.8'
584 PACKAGE_STRING='zlib (TeX Live) 1.2.8'
585 PACKAGE_BUGREPORT='tex-k@tug.org'
586 PACKAGE_URL=''
588 ac_unique_file="zlib-src/zlib.h"
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 ZLIB_TREE
630 ZLIB_DEFINES
631 EGREP
632 GREP
634 build_FALSE
635 build_TRUE
636 VISIBILITY_CFLAGS
637 LN_S
638 RANLIB
639 WARNING_CFLAGS
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 am__nodep
644 AMDEPBACKSLASH
645 AMDEP_FALSE
646 AMDEP_TRUE
647 am__quote
648 am__include
649 DEPDIR
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
657 MAINT
658 MAINTAINER_MODE_FALSE
659 MAINTAINER_MODE_TRUE
660 AM_BACKSLASH
661 AM_DEFAULT_VERBOSITY
662 AM_DEFAULT_V
663 AM_V
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_silent_rules
729 enable_maintainer_mode
730 enable_dependency_tracking
731 enable_compiler_warnings
732 enable_largefile
734 ac_precious_vars='build_alias
735 host_alias
736 target_alias
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP'
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 ac_unrecognized_opts=
749 ac_unrecognized_sep=
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *=) ac_optarg= ;;
807 *) ac_optarg=yes ;;
808 esac
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
814 ac_dashdash=yes ;;
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
833 --config-cache | -C)
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=no ;;
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=\$ac_optarg ;;
890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 | --exec | --exe | --ex)
893 ac_prev=exec_prefix ;;
894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 | --exec=* | --exe=* | --ex=*)
897 exec_prefix=$ac_optarg ;;
899 -gas | --gas | --ga | --g)
900 # Obsolete; use --with-gas.
901 with_gas=yes ;;
903 -help | --help | --hel | --he | -h)
904 ac_init_help=long ;;
905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 ac_init_help=recursive ;;
907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 ac_init_help=short ;;
910 -host | --host | --hos | --ho)
911 ac_prev=host_alias ;;
912 -host=* | --host=* | --hos=* | --ho=*)
913 host_alias=$ac_optarg ;;
915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916 ac_prev=htmldir ;;
917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918 | --ht=*)
919 htmldir=$ac_optarg ;;
921 -includedir | --includedir | --includedi | --included | --include \
922 | --includ | --inclu | --incl | --inc)
923 ac_prev=includedir ;;
924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 | --includ=* | --inclu=* | --incl=* | --inc=*)
926 includedir=$ac_optarg ;;
928 -infodir | --infodir | --infodi | --infod | --info | --inf)
929 ac_prev=infodir ;;
930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 infodir=$ac_optarg ;;
933 -libdir | --libdir | --libdi | --libd)
934 ac_prev=libdir ;;
935 -libdir=* | --libdir=* | --libdi=* | --libd=*)
936 libdir=$ac_optarg ;;
938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 | --libexe | --libex | --libe)
940 ac_prev=libexecdir ;;
941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 | --libexe=* | --libex=* | --libe=*)
943 libexecdir=$ac_optarg ;;
945 -localedir | --localedir | --localedi | --localed | --locale)
946 ac_prev=localedir ;;
947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 localedir=$ac_optarg ;;
950 -localstatedir | --localstatedir | --localstatedi | --localstated \
951 | --localstate | --localstat | --localsta | --localst | --locals)
952 ac_prev=localstatedir ;;
953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 localstatedir=$ac_optarg ;;
957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958 ac_prev=mandir ;;
959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960 mandir=$ac_optarg ;;
962 -nfp | --nfp | --nf)
963 # Obsolete; use --without-fp.
964 with_fp=no ;;
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c | -n)
968 no_create=yes ;;
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972 no_recursion=yes ;;
974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 | --oldin | --oldi | --old | --ol | --o)
977 ac_prev=oldincludedir ;;
978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 oldincludedir=$ac_optarg ;;
983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984 ac_prev=prefix ;;
985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986 prefix=$ac_optarg ;;
988 -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 | --program-pre | --program-pr | --program-p)
990 ac_prev=program_prefix ;;
991 -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 program_prefix=$ac_optarg ;;
995 -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 | --program-suf | --program-su | --program-s)
997 ac_prev=program_suffix ;;
998 -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 program_suffix=$ac_optarg ;;
1002 -program-transform-name | --program-transform-name \
1003 | --program-transform-nam | --program-transform-na \
1004 | --program-transform-n | --program-transform- \
1005 | --program-transform | --program-transfor \
1006 | --program-transfo | --program-transf \
1007 | --program-trans | --program-tran \
1008 | --progr-tra | --program-tr | --program-t)
1009 ac_prev=program_transform_name ;;
1010 -program-transform-name=* | --program-transform-name=* \
1011 | --program-transform-nam=* | --program-transform-na=* \
1012 | --program-transform-n=* | --program-transform-=* \
1013 | --program-transform=* | --program-transfor=* \
1014 | --program-transfo=* | --program-transf=* \
1015 | --program-trans=* | --program-tran=* \
1016 | --progr-tra=* | --program-tr=* | --program-t=*)
1017 program_transform_name=$ac_optarg ;;
1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020 ac_prev=pdfdir ;;
1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 pdfdir=$ac_optarg ;;
1024 -psdir | --psdir | --psdi | --psd | --ps)
1025 ac_prev=psdir ;;
1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027 psdir=$ac_optarg ;;
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1031 silent=yes ;;
1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034 ac_prev=sbindir ;;
1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036 | --sbi=* | --sb=*)
1037 sbindir=$ac_optarg ;;
1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 | --sharedst | --shareds | --shared | --share | --shar \
1042 | --sha | --sh)
1043 ac_prev=sharedstatedir ;;
1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047 | --sha=* | --sh=*)
1048 sharedstatedir=$ac_optarg ;;
1050 -site | --site | --sit)
1051 ac_prev=site ;;
1052 -site=* | --site=* | --sit=*)
1053 site=$ac_optarg ;;
1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056 ac_prev=srcdir ;;
1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 srcdir=$ac_optarg ;;
1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 | --syscon | --sysco | --sysc | --sys | --sy)
1062 ac_prev=sysconfdir ;;
1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 sysconfdir=$ac_optarg ;;
1067 -target | --target | --targe | --targ | --tar | --ta | --t)
1068 ac_prev=target_alias ;;
1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 target_alias=$ac_optarg ;;
1072 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073 verbose=yes ;;
1075 -version | --version | --versio | --versi | --vers | -V)
1076 ac_init_version=: ;;
1078 -with-* | --with-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "with_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=\$ac_optarg ;;
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=no ;;
1110 --x)
1111 # Obsolete; use --with-x.
1112 with_x=yes ;;
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1128 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 Try \`$0 --help' for more information"
1132 *=*)
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138 esac
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1143 # FIXME: should be removed in autoconf 3.0.
1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150 esac
1151 done
1153 if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 as_fn_error $? "missing argument to $ac_option"
1158 if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1160 no) ;;
1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 esac
1166 # Check all directory arguments for consistency.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1174 case $ac_val in
1175 */ )
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1178 esac
1179 # Be sure to have absolute directory names.
1180 case $ac_val in
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 esac
1184 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185 done
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1190 build=$build_alias
1191 host=$host_alias
1192 target=$target_alias
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 elif test "x$build_alias" != "x$host_alias"; then
1199 cross_compiling=yes
1203 ac_tool_prefix=
1204 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206 test "$silent" = yes && exec 6>/dev/null
1209 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210 ac_ls_di=`ls -di .` &&
1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212 as_fn_error $? "working directory cannot be determined"
1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214 as_fn_error $? "pwd does not report name of working directory"
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$as_myself" ||
1222 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$as_myself" : 'X\(//\)[^/]' \| \
1224 X"$as_myself" : 'X\(//\)$' \| \
1225 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1226 $as_echo X"$as_myself" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228 s//\1/
1231 /^X\(\/\/\)[^/].*/{
1232 s//\1/
1235 /^X\(\/\/\)$/{
1236 s//\1/
1239 /^X\(\/\).*/{
1240 s//\1/
1243 s/.*/./; q'`
1244 srcdir=$ac_confdir
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 srcdir=..
1248 else
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 ac_abs_confdir=`(
1257 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1258 pwd)`
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1266 case $srcdir in
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 esac
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 done
1277 # Report the --help message.
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
1283 \`configure' configures zlib (TeX Live) 1.2.8 to adapt to many kinds of systems.
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1290 Defaults for the options are specified in brackets.
1292 Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking ...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 [PREFIX]
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1314 For better control, use the options below.
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib--tex-live-]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336 _ACEOF
1338 cat <<\_ACEOF
1340 Program names:
1341 --program-prefix=PREFIX prepend PREFIX to installed program names
1342 --program-suffix=SUFFIX append SUFFIX to installed program names
1343 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1344 _ACEOF
1347 if test -n "$ac_init_help"; then
1348 case $ac_init_help in
1349 short | recursive ) echo "Configuration of zlib (TeX Live) 1.2.8:";;
1350 esac
1351 cat <<\_ACEOF
1353 Optional Features:
1354 --disable-option-checking ignore unrecognized --enable/--with options
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --enable-silent-rules less verbose build output (undo: "make V=1")
1358 --disable-silent-rules verbose build output (undo: "make V=0")
1359 --enable-maintainer-mode
1360 enable make rules and dependencies not useful (and
1361 sometimes confusing) to the casual installer
1362 --enable-dependency-tracking
1363 do not reject slow dependency extractors
1364 --disable-dependency-tracking
1365 speeds up one-time build
1366 --enable-compiler-warnings=[no|min|yes|max|all]
1367 Turn on compiler warnings [default: yes if
1368 maintainer-mode, min otherwise]
1369 --disable-largefile omit support for large files
1371 Some influential environment variables:
1372 CC C compiler command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
1376 LIBS libraries to pass to the linker, e.g. -l<library>
1377 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1378 you have headers in a nonstandard directory <include dir>
1379 CPP C preprocessor
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to <tex-k@tug.org>.
1385 _ACEOF
1386 ac_status=$?
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 continue
1395 ac_builddir=.
1397 case "$ac_dir" in
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407 esac
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1413 case $srcdir in
1414 .) # We are building in place.
1415 ac_srcdir=.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 esac
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1437 else
1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1441 done
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1446 cat <<\_ACEOF
1447 zlib (TeX Live) configure 1.2.8
1448 generated by GNU Autoconf 2.69
1450 Copyright (C) 2012 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454 exit
1457 ## ------------------------ ##
1458 ## Autoconf initialization. ##
1459 ## ------------------------ ##
1461 # ac_fn_c_try_compile LINENO
1462 # --------------------------
1463 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1464 ac_fn_c_try_compile ()
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 rm -f conftest.$ac_objext
1468 if { { ac_try="$ac_compile"
1469 case "(($ac_try" in
1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471 *) ac_try_echo=$ac_try;;
1472 esac
1473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474 $as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_compile") 2>conftest.err
1476 ac_status=$?
1477 if test -s conftest.err; then
1478 grep -v '^ *+' conftest.err >conftest.er1
1479 cat conftest.er1 >&5
1480 mv -f conftest.er1 conftest.err
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && {
1484 test -z "$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1486 } && test -s conftest.$ac_objext; then :
1487 ac_retval=0
1488 else
1489 $as_echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.$ac_ext >&5
1492 ac_retval=1
1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495 as_fn_set_status $ac_retval
1497 } # ac_fn_c_try_compile
1499 # ac_fn_c_try_link LINENO
1500 # -----------------------
1501 # Try to link conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_link ()
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext conftest$ac_exeext
1506 if { { ac_try="$ac_link"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_link") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest$ac_exeext && {
1525 test "$cross_compiling" = yes ||
1526 test -x conftest$ac_exeext
1527 }; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1533 ac_retval=1
1535 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1536 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1537 # interfere with the next link command; also delete a directory that is
1538 # left behind by Apple's compiler. We do this before executing the actions.
1539 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status $ac_retval
1543 } # ac_fn_c_try_link
1545 # ac_fn_c_try_cpp LINENO
1546 # ----------------------
1547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_cpp ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } > conftest.i && {
1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 }; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1575 ac_retval=1
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1580 } # ac_fn_c_try_cpp
1582 # ac_fn_c_try_run LINENO
1583 # ----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1585 # that executables *can* be run.
1586 ac_fn_c_try_run ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>&5
1597 ac_status=$?
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1600 { { case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_try") 2>&5
1607 ac_status=$?
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; }; }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: program exited with status $ac_status" >&5
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=$ac_status
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_c_try_run
1624 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1625 # -------------------------------------------------------
1626 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1627 # the include files in INCLUDES and setting the cache variable VAR
1628 # accordingly.
1629 ac_fn_c_check_header_mongrel ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if eval \${$3+:} false; then :
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if eval \${$3+:} false; then :
1636 $as_echo_n "(cached) " >&6
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 else
1642 # Is the header compilable?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1644 $as_echo_n "checking $2 usability... " >&6; }
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1648 #include <$2>
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"; then :
1651 ac_header_compiler=yes
1652 else
1653 ac_header_compiler=no
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1657 $as_echo "$ac_header_compiler" >&6; }
1659 # Is the header present?
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1661 $as_echo_n "checking $2 presence... " >&6; }
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1664 #include <$2>
1665 _ACEOF
1666 if ac_fn_c_try_cpp "$LINENO"; then :
1667 ac_header_preproc=yes
1668 else
1669 ac_header_preproc=no
1671 rm -f conftest.err conftest.i conftest.$ac_ext
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1673 $as_echo "$ac_header_preproc" >&6; }
1675 # So? What about this header?
1676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1677 yes:no: )
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1679 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1681 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 no:yes:* )
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1685 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1687 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1689 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1691 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1693 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 ( $as_echo "## ---------------------------- ##
1695 ## Report this to tex-k@tug.org ##
1696 ## ---------------------------- ##"
1697 ) | sed "s/^/$as_me: WARNING: /" >&2
1699 esac
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 eval "$3=\$ac_header_compiler"
1707 eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 } # ac_fn_c_check_header_mongrel
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_header_compile
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1749 It was created by zlib (TeX Live) $as_me 1.2.8, which was
1750 generated by GNU Autoconf 2.69. Invocation command line was
1752 $ $0 $@
1754 _ACEOF
1755 exec 5>>config.log
1757 cat <<_ASUNAME
1758 ## --------- ##
1759 ## Platform. ##
1760 ## --------- ##
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1779 _ASUNAME
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 $as_echo "PATH: $as_dir"
1787 done
1788 IFS=$as_save_IFS
1790 } >&5
1792 cat >&5 <<_ACEOF
1795 ## ----------- ##
1796 ## Core tests. ##
1797 ## ----------- ##
1799 _ACEOF
1802 # Keep a trace of the command line.
1803 # Strip out --no-create and --no-recursion so they do not pile up.
1804 # Strip out --silent because we don't want to record it for future runs.
1805 # Also quote any args containing shell meta-characters.
1806 # Make two passes to allow for proper duplicate-argument suppression.
1807 ac_configure_args=
1808 ac_configure_args0=
1809 ac_configure_args1=
1810 ac_must_keep_next=false
1811 for ac_pass in 1 2
1813 for ac_arg
1815 case $ac_arg in
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1819 continue ;;
1820 *\'*)
1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1822 esac
1823 case $ac_pass in
1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1826 as_fn_append ac_configure_args1 " '$ac_arg'"
1827 if test $ac_must_keep_next = true; then
1828 ac_must_keep_next=false # Got value, back to normal.
1829 else
1830 case $ac_arg in
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837 esac
1839 -* ) ac_must_keep_next=true ;;
1840 esac
1842 as_fn_append ac_configure_args " '$ac_arg'"
1844 esac
1845 done
1846 done
1847 { ac_configure_args0=; unset ac_configure_args0;}
1848 { ac_configure_args1=; unset ac_configure_args1;}
1850 # When interrupted or exit'd, cleanup temporary files, and complete
1851 # config.log. We remove comments because anyway the quotes in there
1852 # would cause problems or look ugly.
1853 # WARNING: Use '\'' to represent an apostrophe within the trap.
1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855 trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1858 echo
1860 $as_echo "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1878 esac ;;
1879 esac
1880 done
1881 (set) 2>&1 |
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1884 sed -n \
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891 esac |
1892 sort
1894 echo
1896 $as_echo "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1899 echo
1900 for ac_var in $ac_subst_vars
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 $as_echo "$ac_var='\''$ac_val'\''"
1907 done | sort
1908 echo
1910 if test -n "$ac_subst_files"; then
1911 $as_echo "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1914 echo
1915 for ac_var in $ac_subst_files
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1926 if test -s confdefs.h; then
1927 $as_echo "## ----------- ##
1928 ## confdefs.h. ##
1929 ## ----------- ##"
1930 echo
1931 cat confdefs.h
1932 echo
1934 test "$ac_signal" != 0 &&
1935 $as_echo "$as_me: caught signal $ac_signal"
1936 $as_echo "$as_me: exit $exit_status"
1937 } >&5
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940 exit $exit_status
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944 done
1945 ac_signal=0
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1950 $as_echo "/* confdefs.h */" > confdefs.h
1952 # Predefined preprocessor variables.
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_NAME "$PACKAGE_NAME"
1956 _ACEOF
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1960 _ACEOF
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1964 _ACEOF
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 _ACEOF
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972 _ACEOF
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_URL "$PACKAGE_URL"
1976 _ACEOF
1979 # Let the site file select an alternate cache file if it wants to.
1980 # Prefer an explicitly selected file to automatically selected ones.
1981 ac_site_file1=NONE
1982 ac_site_file2=NONE
1983 if test -n "$CONFIG_SITE"; then
1984 # We do not want a PATH search for config.site.
1985 case $CONFIG_SITE in #((
1986 -*) ac_site_file1=./$CONFIG_SITE;;
1987 */*) ac_site_file1=$CONFIG_SITE;;
1988 *) ac_site_file1=./$CONFIG_SITE;;
1989 esac
1990 elif test "x$prefix" != xNONE; then
1991 ac_site_file1=$prefix/share/config.site
1992 ac_site_file2=$prefix/etc/config.site
1993 else
1994 ac_site_file1=$ac_default_prefix/share/config.site
1995 ac_site_file2=$ac_default_prefix/etc/config.site
1997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1999 test "x$ac_site_file" = xNONE && continue
2000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2003 sed 's/^/| /' "$ac_site_file" >&5
2004 . "$ac_site_file" \
2005 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 as_fn_error $? "failed to load site script $ac_site_file
2008 See \`config.log' for more details" "$LINENO" 5; }
2010 done
2012 if test -r "$cache_file"; then
2013 # Some versions of bash will fail to source /dev/null (special files
2014 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2015 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2017 $as_echo "$as_me: loading cache $cache_file" >&6;}
2018 case $cache_file in
2019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020 *) . "./$cache_file";;
2021 esac
2023 else
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2025 $as_echo "$as_me: creating cache $cache_file" >&6;}
2026 >$cache_file
2029 # Check that the precious variables saved in the cache have kept the same
2030 # value.
2031 ac_cache_corrupted=false
2032 for ac_var in $ac_precious_vars; do
2033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034 eval ac_new_set=\$ac_env_${ac_var}_set
2035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036 eval ac_new_val=\$ac_env_${ac_var}_value
2037 case $ac_old_set,$ac_new_set in
2038 set,)
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041 ac_cache_corrupted=: ;;
2042 ,set)
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2044 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045 ac_cache_corrupted=: ;;
2046 ,);;
2048 if test "x$ac_old_val" != "x$ac_new_val"; then
2049 # differences in whitespace do not lead to failure.
2050 ac_old_val_w=`echo x $ac_old_val`
2051 ac_new_val_w=`echo x $ac_new_val`
2052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2054 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055 ac_cache_corrupted=:
2056 else
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059 eval $ac_var=\$ac_old_val
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2062 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2064 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2065 fi;;
2066 esac
2067 # Pass precious variables to config.status.
2068 if test "$ac_new_set" = set; then
2069 case $ac_new_val in
2070 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2071 *) ac_arg=$ac_var=$ac_new_val ;;
2072 esac
2073 case " $ac_configure_args " in
2074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2075 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2076 esac
2078 done
2079 if $ac_cache_corrupted; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2083 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2084 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2086 ## -------------------- ##
2087 ## Main body of script. ##
2088 ## -------------------- ##
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2099 ac_aux_dir=
2100 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2101 if test -f "$ac_dir/install-sh"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install-sh -c"
2104 break
2105 elif test -f "$ac_dir/install.sh"; then
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/install.sh -c"
2108 break
2109 elif test -f "$ac_dir/shtool"; then
2110 ac_aux_dir=$ac_dir
2111 ac_install_sh="$ac_aux_dir/shtool install -c"
2112 break
2114 done
2115 if test -z "$ac_aux_dir"; then
2116 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2119 # These three variables are undocumented and unsupported,
2120 # and are intended to be withdrawn in a future Autoconf release.
2121 # They can cause serious problems if a builder's source tree is in a directory
2122 # whose full name contains unusual characters.
2123 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2124 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2125 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2130 am__api_version='1.15'
2132 # Find a good install program. We prefer a C program (faster),
2133 # so one script is as good as another. But avoid the broken or
2134 # incompatible versions:
2135 # SysV /etc/install, /usr/sbin/install
2136 # SunOS /usr/etc/install
2137 # IRIX /sbin/install
2138 # AIX /bin/install
2139 # AmigaOS /C/install, which installs bootblocks on floppy discs
2140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2143 # OS/2's system install, which has a completely different semantic
2144 # ./install, which can be erroneously created by make from ./install.sh.
2145 # Reject install programs that cannot install multiple files.
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2147 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2148 if test -z "$INSTALL"; then
2149 if ${ac_cv_path_install+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 # Account for people who put trailing slashes in PATH elements.
2158 case $as_dir/ in #((
2159 ./ | .// | /[cC]/* | \
2160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2161 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2162 /usr/ucb/* ) ;;
2164 # OSF1 and SCO ODT 3.0 have their own names for install.
2165 # Don't use installbsd from OSF since it installs stuff as root
2166 # by default.
2167 for ac_prog in ginstall scoinst install; do
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2170 if test $ac_prog = install &&
2171 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172 # AIX install. It has an incompatible calling convention.
2174 elif test $ac_prog = install &&
2175 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2176 # program-specific install script used by HP pwplus--don't use.
2178 else
2179 rm -rf conftest.one conftest.two conftest.dir
2180 echo one > conftest.one
2181 echo two > conftest.two
2182 mkdir conftest.dir
2183 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2184 test -s conftest.one && test -s conftest.two &&
2185 test -s conftest.dir/conftest.one &&
2186 test -s conftest.dir/conftest.two
2187 then
2188 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2189 break 3
2193 done
2194 done
2196 esac
2198 done
2199 IFS=$as_save_IFS
2201 rm -rf conftest.one conftest.two conftest.dir
2204 if test "${ac_cv_path_install+set}" = set; then
2205 INSTALL=$ac_cv_path_install
2206 else
2207 # As a last resort, use the slow shell script. Don't cache a
2208 # value for INSTALL within a source directory, because that will
2209 # break other packages using the cache if that directory is
2210 # removed, or if the value is a relative name.
2211 INSTALL=$ac_install_sh
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2215 $as_echo "$INSTALL" >&6; }
2217 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2218 # It thinks the first close brace ends the variable substitution.
2219 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2221 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2223 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2226 $as_echo_n "checking whether build environment is sane... " >&6; }
2227 # Reject unsafe characters in $srcdir or the absolute working directory
2228 # name. Accept space and tab only in the latter.
2229 am_lf='
2231 case `pwd` in
2232 *[\\\"\#\$\&\'\`$am_lf]*)
2233 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2234 esac
2235 case $srcdir in
2236 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2237 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2238 esac
2240 # Do 'set' in a subshell so we don't clobber the current shell's
2241 # arguments. Must try -L first in case configure is actually a
2242 # symlink; some systems play weird games with the mod time of symlinks
2243 # (eg FreeBSD returns the mod time of the symlink's containing
2244 # directory).
2245 if (
2246 am_has_slept=no
2247 for am_try in 1 2; do
2248 echo "timestamp, slept: $am_has_slept" > conftest.file
2249 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2250 if test "$*" = "X"; then
2251 # -L didn't work.
2252 set X `ls -t "$srcdir/configure" conftest.file`
2254 if test "$*" != "X $srcdir/configure conftest.file" \
2255 && test "$*" != "X conftest.file $srcdir/configure"; then
2257 # If neither matched, then we have a broken ls. This can happen
2258 # if, for instance, CONFIG_SHELL is bash and it inherits a
2259 # broken ls alias from the environment. This has actually
2260 # happened. Such a system could not be considered "sane".
2261 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2262 alias in your environment" "$LINENO" 5
2264 if test "$2" = conftest.file || test $am_try -eq 2; then
2265 break
2267 # Just in case.
2268 sleep 1
2269 am_has_slept=yes
2270 done
2271 test "$2" = conftest.file
2273 then
2274 # Ok.
2276 else
2277 as_fn_error $? "newly created file is older than distributed files!
2278 Check your system clock" "$LINENO" 5
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2281 $as_echo "yes" >&6; }
2282 # If we didn't sleep, we still need to ensure time stamps of config.status and
2283 # generated files are strictly newer.
2284 am_sleep_pid=
2285 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2286 ( sleep 1 ) &
2287 am_sleep_pid=$!
2290 rm -f conftest.file
2292 test "$program_prefix" != NONE &&
2293 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2294 # Use a double $ so make ignores it.
2295 test "$program_suffix" != NONE &&
2296 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2297 # Double any \ or $.
2298 # By default was `s,x,x', remove it if useless.
2299 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2300 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2302 # Expand $ac_aux_dir to an absolute path.
2303 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2305 if test x"${MISSING+set}" != xset; then
2306 case $am_aux_dir in
2307 *\ * | *\ *)
2308 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2310 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2311 esac
2313 # Use eval to expand $SHELL
2314 if eval "$MISSING --is-lightweight"; then
2315 am_missing_run="$MISSING "
2316 else
2317 am_missing_run=
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2319 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2322 if test x"${install_sh+set}" != xset; then
2323 case $am_aux_dir in
2324 *\ * | *\ *)
2325 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2327 install_sh="\${SHELL} $am_aux_dir/install-sh"
2328 esac
2331 # Installed binaries are usually stripped using 'strip' when the user
2332 # run "make install-strip". However 'strip' might not be the right
2333 # tool to use in cross-compilation environments, therefore Automake
2334 # will honor the 'STRIP' environment variable to overrule this program.
2335 if test "$cross_compiling" != no; then
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}strip; ac_word=$2
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if ${ac_cv_prog_STRIP+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 if test -n "$STRIP"; then
2345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 STRIP=$ac_cv_prog_STRIP
2365 if test -n "$STRIP"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2367 $as_echo "$STRIP" >&6; }
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2370 $as_echo "no" >&6; }
2375 if test -z "$ac_cv_prog_STRIP"; then
2376 ac_ct_STRIP=$STRIP
2377 # Extract the first word of "strip", so it can be a program name with args.
2378 set dummy strip; ac_word=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test -n "$ac_ct_STRIP"; then
2385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394 ac_cv_prog_ac_ct_STRIP="strip"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2400 IFS=$as_save_IFS
2404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2405 if test -n "$ac_ct_STRIP"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2407 $as_echo "$ac_ct_STRIP" >&6; }
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2413 if test "x$ac_ct_STRIP" = x; then
2414 STRIP=":"
2415 else
2416 case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2420 ac_tool_warned=yes ;;
2421 esac
2422 STRIP=$ac_ct_STRIP
2424 else
2425 STRIP="$ac_cv_prog_STRIP"
2429 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2432 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2433 if test -z "$MKDIR_P"; then
2434 if ${ac_cv_path_mkdir+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_prog in mkdir gmkdir; do
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2445 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2446 'mkdir (GNU coreutils) '* | \
2447 'mkdir (coreutils) '* | \
2448 'mkdir (fileutils) '4.1*)
2449 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2450 break 3;;
2451 esac
2452 done
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 test -d ./--version && rmdir ./--version
2460 if test "${ac_cv_path_mkdir+set}" = set; then
2461 MKDIR_P="$ac_cv_path_mkdir -p"
2462 else
2463 # As a last resort, use the slow shell script. Don't cache a
2464 # value for MKDIR_P within a source directory, because that will
2465 # break other packages using the cache if that directory is
2466 # removed, or if the value is a relative name.
2467 MKDIR_P="$ac_install_sh -d"
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2471 $as_echo "$MKDIR_P" >&6; }
2473 for ac_prog in gawk mawk nawk awk
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if ${ac_cv_prog_AWK+:} false; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 if test -n "$AWK"; then
2483 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492 ac_cv_prog_AWK="$ac_prog"
2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2502 AWK=$ac_cv_prog_AWK
2503 if test -n "$AWK"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2505 $as_echo "$AWK" >&6; }
2506 else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2512 test -n "$AWK" && break
2513 done
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2517 set x ${MAKE-make}
2518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 cat >conftest.make <<\_ACEOF
2523 SHELL = /bin/sh
2524 all:
2525 @echo '@@@%%%=$(MAKE)=@@@%%%'
2526 _ACEOF
2527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2529 *@@@%%%=?*=@@@%%%*)
2530 eval ac_cv_prog_make_${ac_make}_set=yes;;
2532 eval ac_cv_prog_make_${ac_make}_set=no;;
2533 esac
2534 rm -f conftest.make
2536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538 $as_echo "yes" >&6; }
2539 SET_MAKE=
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542 $as_echo "no" >&6; }
2543 SET_MAKE="MAKE=${MAKE-make}"
2546 rm -rf .tst 2>/dev/null
2547 mkdir .tst 2>/dev/null
2548 if test -d .tst; then
2549 am__leading_dot=.
2550 else
2551 am__leading_dot=_
2553 rmdir .tst 2>/dev/null
2555 # Check whether --enable-silent-rules was given.
2556 if test "${enable_silent_rules+set}" = set; then :
2557 enableval=$enable_silent_rules;
2560 case $enable_silent_rules in # (((
2561 yes) AM_DEFAULT_VERBOSITY=0;;
2562 no) AM_DEFAULT_VERBOSITY=1;;
2563 *) AM_DEFAULT_VERBOSITY=1;;
2564 esac
2565 am_make=${MAKE-make}
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2567 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2568 if ${am_cv_make_support_nested_variables+:} false; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if $as_echo 'TRUE=$(BAR$(V))
2572 BAR0=false
2573 BAR1=true
2575 am__doit:
2576 @$(TRUE)
2577 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2578 am_cv_make_support_nested_variables=yes
2579 else
2580 am_cv_make_support_nested_variables=no
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2584 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2585 if test $am_cv_make_support_nested_variables = yes; then
2586 AM_V='$(V)'
2587 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2588 else
2589 AM_V=$AM_DEFAULT_VERBOSITY
2590 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2592 AM_BACKSLASH='\'
2594 DEPDIR="${am__leading_dot}deps"
2596 ac_config_commands="$ac_config_commands depfiles"
2599 am_make=${MAKE-make}
2600 cat > confinc << 'END'
2601 am__doit:
2602 @echo this is the am__doit target
2603 .PHONY: am__doit
2605 # If we don't find an include directive, just comment out the code.
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2607 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2608 am__include="#"
2609 am__quote=
2610 _am_result=none
2611 # First try GNU make style include.
2612 echo "include confinc" > confmf
2613 # Ignore all kinds of additional output from 'make'.
2614 case `$am_make -s -f confmf 2> /dev/null` in #(
2615 *the\ am__doit\ target*)
2616 am__include=include
2617 am__quote=
2618 _am_result=GNU
2620 esac
2621 # Now try BSD make style include.
2622 if test "$am__include" = "#"; then
2623 echo '.include "confinc"' > confmf
2624 case `$am_make -s -f confmf 2> /dev/null` in #(
2625 *the\ am__doit\ target*)
2626 am__include=.include
2627 am__quote="\""
2628 _am_result=BSD
2630 esac
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2635 $as_echo "$_am_result" >&6; }
2636 rm -f confinc confmf
2638 # Check whether --enable-dependency-tracking was given.
2639 if test "${enable_dependency_tracking+set}" = set; then :
2640 enableval=$enable_dependency_tracking;
2643 if test "x$enable_dependency_tracking" != xno; then
2644 am_depcomp="$ac_aux_dir/depcomp"
2645 AMDEPBACKSLASH='\'
2646 am__nodep='_no'
2648 if test "x$enable_dependency_tracking" != xno; then
2649 AMDEP_TRUE=
2650 AMDEP_FALSE='#'
2651 else
2652 AMDEP_TRUE='#'
2653 AMDEP_FALSE=
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2686 IFS=$as_save_IFS
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2701 if test -z "$ac_cv_prog_CC"; then
2702 ac_ct_CC=$CC
2703 # Extract the first word of "gcc", so it can be a program name with args.
2704 set dummy gcc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_ac_ct_CC="gcc"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2724 done
2725 done
2726 IFS=$as_save_IFS
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733 $as_echo "$ac_ct_CC" >&6; }
2734 else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2739 if test "x$ac_ct_CC" = x; then
2740 CC=""
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 CC=$ac_ct_CC
2750 else
2751 CC="$ac_cv_prog_CC"
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_CC="${ac_tool_prefix}cc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2777 done
2778 done
2779 IFS=$as_save_IFS
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2795 if test -z "$CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_CC+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 ac_prog_rejected=no
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815 ac_prog_rejected=yes
2816 continue
2818 ac_cv_prog_CC="cc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2822 done
2823 done
2824 IFS=$as_save_IFS
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy $ac_cv_prog_CC
2829 shift
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2834 shift
2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2844 else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2851 if test -z "$CC"; then
2852 if test -n "$ac_tool_prefix"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2878 IFS=$as_save_IFS
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$CC" && break
2893 done
2895 if test -z "$CC"; then
2896 ac_ct_CC=$CC
2897 for ac_prog in cl.exe
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$ac_ct_CC"; then
2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_ac_ct_CC="$ac_prog"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2920 done
2921 done
2922 IFS=$as_save_IFS
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929 $as_echo "$ac_ct_CC" >&6; }
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2936 test -n "$ac_ct_CC" && break
2937 done
2939 if test "x$ac_ct_CC" = x; then
2940 CC=""
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948 CC=$ac_ct_CC
2955 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 as_fn_error $? "no acceptable C compiler found in \$PATH
2958 See \`config.log' for more details" "$LINENO" 5; }
2960 # Provide some information about the compiler.
2961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2962 set X $ac_compile
2963 ac_compiler=$2
2964 for ac_option in --version -v -V -qversion; do
2965 { { ac_try="$ac_compiler $ac_option >&5"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2973 ac_status=$?
2974 if test -s conftest.err; then
2975 sed '10a\
2976 ... rest of stderr output deleted ...
2977 10q' conftest.err >conftest.er1
2978 cat conftest.er1 >&5
2980 rm -f conftest.er1 conftest.err
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }
2983 done
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2989 main ()
2993 return 0;
2995 _ACEOF
2996 ac_clean_files_save=$ac_clean_files
2997 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2998 # Try to create an executable without -o first, disregard a.out.
2999 # It will help us diagnose broken compilers, and finding out an intuition
3000 # of exeext.
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3002 $as_echo_n "checking whether the C compiler works... " >&6; }
3003 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3005 # The possible output files:
3006 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3008 ac_rmfiles=
3009 for ac_file in $ac_files
3011 case $ac_file in
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3013 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3014 esac
3015 done
3016 rm -f $ac_rmfiles
3018 if { { ac_try="$ac_link_default"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_link_default") 2>&5
3026 ac_status=$?
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3031 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3032 # so that the user can short-circuit this test for compilers unknown to
3033 # Autoconf.
3034 for ac_file in $ac_files ''
3036 test -f "$ac_file" || continue
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3040 [ab].out )
3041 # We found the default executable, but exeext='' is most
3042 # certainly right.
3043 break;;
3044 *.* )
3045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3046 then :; else
3047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 # We set ac_cv_exeext here because the later test for it is not
3050 # safe: cross compilers may not add the suffix if given an `-o'
3051 # argument, so we may need to know it at that point already.
3052 # Even if this section looks crufty: it has the advantage of
3053 # actually working.
3054 break;;
3056 break;;
3057 esac
3058 done
3059 test "$ac_cv_exeext" = no && ac_cv_exeext=
3061 else
3062 ac_file=''
3064 if test -z "$ac_file"; then :
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error 77 "C compiler cannot create executables
3073 See \`config.log' for more details" "$LINENO" 5; }
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3079 $as_echo_n "checking for C compiler default output file name... " >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3081 $as_echo "$ac_file" >&6; }
3082 ac_exeext=$ac_cv_exeext
3084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3085 ac_clean_files=$ac_clean_files_save
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3087 $as_echo_n "checking for suffix of executables... " >&6; }
3088 if { { ac_try="$ac_link"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3100 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3101 # work properly (i.e., refer to `conftest.exe'), while it won't with
3102 # `rm'.
3103 for ac_file in conftest.exe conftest conftest.*; do
3104 test -f "$ac_file" || continue
3105 case $ac_file in
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 break;;
3109 * ) break;;
3110 esac
3111 done
3112 else
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3116 See \`config.log' for more details" "$LINENO" 5; }
3118 rm -f conftest conftest$ac_cv_exeext
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3120 $as_echo "$ac_cv_exeext" >&6; }
3122 rm -f conftest.$ac_ext
3123 EXEEXT=$ac_cv_exeext
3124 ac_exeext=$EXEEXT
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3127 #include <stdio.h>
3129 main ()
3131 FILE *f = fopen ("conftest.out", "w");
3132 return ferror (f) || fclose (f) != 0;
3135 return 0;
3137 _ACEOF
3138 ac_clean_files="$ac_clean_files conftest.out"
3139 # Check that the compiler produces executables we can run. If not, either
3140 # the compiler is broken, or we cross compile.
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3142 $as_echo_n "checking whether we are cross compiling... " >&6; }
3143 if test "$cross_compiling" != yes; then
3144 { { ac_try="$ac_link"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_link") 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 if { ac_try='./conftest$ac_cv_exeext'
3156 { { case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }; }; then
3166 cross_compiling=no
3167 else
3168 if test "$cross_compiling" = maybe; then
3169 cross_compiling=yes
3170 else
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details" "$LINENO" 5; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3180 $as_echo "$cross_compiling" >&6; }
3182 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3183 ac_clean_files=$ac_clean_files_save
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3185 $as_echo_n "checking for suffix of object files... " >&6; }
3186 if ${ac_cv_objext+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compile") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 for ac_file in conftest.o conftest.obj conftest.*; do
3213 test -f "$ac_file" || continue;
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3217 break;;
3218 esac
3219 done
3220 else
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details" "$LINENO" 5; }
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3234 ac_objext=$OBJEXT
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3237 if ${ac_cv_c_compiler_gnu+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 main ()
3246 #ifndef __GNUC__
3247 choke me
3248 #endif
3251 return 0;
3253 _ACEOF
3254 if ac_fn_c_try_compile "$LINENO"; then :
3255 ac_compiler_gnu=yes
3256 else
3257 ac_compiler_gnu=no
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3266 GCC=yes
3267 else
3268 GCC=
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3274 if ${ac_cv_prog_cc_g+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 ac_save_c_werror_flag=$ac_c_werror_flag
3278 ac_c_werror_flag=yes
3279 ac_cv_prog_cc_g=no
3280 CFLAGS="-g"
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3285 main ()
3289 return 0;
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_g=yes
3294 else
3295 CFLAGS=""
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3300 main ()
3304 return 0;
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3309 else
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3311 CFLAGS="-g"
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_cv_prog_cc_g=yes
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3339 CFLAGS="-g -O2"
3340 else
3341 CFLAGS="-g"
3343 else
3344 if test "$GCC" = yes; then
3345 CFLAGS="-O2"
3346 else
3347 CFLAGS=
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3352 if ${ac_cv_prog_cc_c89+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 ac_cv_prog_cc_c89=no
3356 ac_save_CC=$CC
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #include <stdarg.h>
3360 #include <stdio.h>
3361 struct stat;
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3366 char **p;
3367 int i;
3369 return p[i];
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3373 char *s;
3374 va_list v;
3375 va_start (v,p);
3376 s = g (p, va_arg (v,int));
3377 va_end (v);
3378 return s;
3381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3382 function prototypes and stuff, but not '\xHH' hex character constants.
3383 These don't provoke an error unfortunately, instead are silently treated
3384 as 'x'. The following induces an error, until -std is added to get
3385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3386 array size at least. It's necessary to write '\x00'==0 to get something
3387 that's true only with -std. */
3388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3391 inside strings and character constants. */
3392 #define FOO(x) 'x'
3393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3395 int test (int i, double x);
3396 struct s1 {int (*f) (int a);};
3397 struct s2 {int (*f) (double a);};
3398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3399 int argc;
3400 char **argv;
3402 main ()
3404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3406 return 0;
3408 _ACEOF
3409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3412 CC="$ac_save_CC $ac_arg"
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414 ac_cv_prog_cc_c89=$ac_arg
3416 rm -f core conftest.err conftest.$ac_objext
3417 test "x$ac_cv_prog_cc_c89" != "xno" && break
3418 done
3419 rm -f conftest.$ac_ext
3420 CC=$ac_save_CC
3423 # AC_CACHE_VAL
3424 case "x$ac_cv_prog_cc_c89" in
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3427 $as_echo "none needed" >&6; } ;;
3428 xno)
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3430 $as_echo "unsupported" >&6; } ;;
3432 CC="$CC $ac_cv_prog_cc_c89"
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3435 esac
3436 if test "x$ac_cv_prog_cc_c89" != xno; then :
3440 ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 ac_ext=c
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3452 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3453 if ${am_cv_prog_cc_c_o+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3460 main ()
3464 return 0;
3466 _ACEOF
3467 # Make sure it works both with $CC and with simple cc.
3468 # Following AC_PROG_CC_C_O, we do the test twice because some
3469 # compilers refuse to overwrite an existing .o file with -o,
3470 # though they will create one.
3471 am_cv_prog_cc_c_o=yes
3472 for am_i in 1 2; do
3473 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3474 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } \
3478 && test -f conftest2.$ac_objext; then
3479 : OK
3480 else
3481 am_cv_prog_cc_c_o=no
3482 break
3484 done
3485 rm -f core conftest*
3486 unset am_i
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3489 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3490 if test "$am_cv_prog_cc_c_o" != yes; then
3491 # Losing compiler, so override with the script.
3492 # FIXME: It is wrong to rewrite CC.
3493 # But if we don't then we get into trouble of one sort or another.
3494 # A longer-term fix would be to have automake use am__CC in this case,
3495 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3496 CC="$am_aux_dir/compile $CC"
3498 ac_ext=c
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 depcc="$CC" am_compiler_list=
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3508 $as_echo_n "checking dependency style of $depcc... " >&6; }
3509 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3513 # We make a subdir and do the tests there. Otherwise we can end up
3514 # making bogus files that we don't know about and never remove. For
3515 # instance it was reported that on HP-UX the gcc test will end up
3516 # making a dummy file named 'D' -- because '-MD' means "put the output
3517 # in D".
3518 rm -rf conftest.dir
3519 mkdir conftest.dir
3520 # Copy depcomp to subdir because otherwise we won't find it if we're
3521 # using a relative directory.
3522 cp "$am_depcomp" conftest.dir
3523 cd conftest.dir
3524 # We will build objects and dependencies in a subdirectory because
3525 # it helps to detect inapplicable dependency modes. For instance
3526 # both Tru64's cc and ICC support -MD to output dependencies as a
3527 # side effect of compilation, but ICC will put the dependencies in
3528 # the current directory while Tru64 will put them in the object
3529 # directory.
3530 mkdir sub
3532 am_cv_CC_dependencies_compiler_type=none
3533 if test "$am_compiler_list" = ""; then
3534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3536 am__universal=false
3537 case " $depcc " in #(
3538 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3539 esac
3541 for depmode in $am_compiler_list; do
3542 # Setup a source with many dependencies, because some compilers
3543 # like to wrap large dependency lists on column 80 (with \), and
3544 # we should not choose a depcomp mode which is confused by this.
3546 # We need to recreate these files for each test, as the compiler may
3547 # overwrite some of them when testing with obscure command lines.
3548 # This happens at least with the AIX C compiler.
3549 : > sub/conftest.c
3550 for i in 1 2 3 4 5 6; do
3551 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3552 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3553 # Solaris 10 /bin/sh.
3554 echo '/* dummy */' > sub/conftst$i.h
3555 done
3556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3558 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3559 # mode. It turns out that the SunPro C++ compiler does not properly
3560 # handle '-M -o', and we need to detect this. Also, some Intel
3561 # versions had trouble with output in subdirs.
3562 am__obj=sub/conftest.${OBJEXT-o}
3563 am__minus_obj="-o $am__obj"
3564 case $depmode in
3565 gcc)
3566 # This depmode causes a compiler race in universal mode.
3567 test "$am__universal" = false || continue
3569 nosideeffect)
3570 # After this tag, mechanisms are not by side-effect, so they'll
3571 # only be used when explicitly requested.
3572 if test "x$enable_dependency_tracking" = xyes; then
3573 continue
3574 else
3575 break
3578 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3579 # This compiler won't grok '-c -o', but also, the minuso test has
3580 # not run yet. These depmodes are late enough in the game, and
3581 # so weak that their functioning should not be impacted.
3582 am__obj=conftest.${OBJEXT-o}
3583 am__minus_obj=
3585 none) break ;;
3586 esac
3587 if depmode=$depmode \
3588 source=sub/conftest.c object=$am__obj \
3589 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3590 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3591 >/dev/null 2>conftest.err &&
3592 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3593 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3594 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3595 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3596 # icc doesn't choke on unknown options, it will just issue warnings
3597 # or remarks (even with -Werror). So we grep stderr for any message
3598 # that says an option was ignored or not supported.
3599 # When given -MP, icc 7.0 and 7.1 complain thusly:
3600 # icc: Command line warning: ignoring option '-M'; no argument required
3601 # The diagnosis changed in icc 8.0:
3602 # icc: Command line remark: option '-MP' not supported
3603 if (grep 'ignoring option' conftest.err ||
3604 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3605 am_cv_CC_dependencies_compiler_type=$depmode
3606 break
3609 done
3611 cd ..
3612 rm -rf conftest.dir
3613 else
3614 am_cv_CC_dependencies_compiler_type=none
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3619 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3620 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3623 test "x$enable_dependency_tracking" != xno \
3624 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3625 am__fastdepCC_TRUE=
3626 am__fastdepCC_FALSE='#'
3627 else
3628 am__fastdepCC_TRUE='#'
3629 am__fastdepCC_FALSE=
3634 # Check whether --enable-compiler-warnings was given.
3635 if test "${enable_compiler_warnings+set}" = set; then :
3636 enableval=$enable_compiler_warnings;
3638 case $enable_compiler_warnings in #(
3639 no | min | yes | max | all) :
3640 ;; #(
3641 *) :
3642 if test "x$enable_maintainer_mode" = xyes; then :
3643 enable_compiler_warnings=yes
3644 else
3645 enable_compiler_warnings=min
3646 fi ;;
3647 esac
3650 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3651 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3652 # is not polluted with repeated "-I."
3653 am__isrc=' -I$(srcdir)'
3654 # test to see if srcdir already configured
3655 if test -f $srcdir/config.status; then
3656 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3660 # test whether we have cygpath
3661 if test -z "$CYGPATH_W"; then
3662 if (cygpath --version) >/dev/null 2>/dev/null; then
3663 CYGPATH_W='cygpath -w'
3664 else
3665 CYGPATH_W=echo
3670 # Define the identity of the package.
3671 PACKAGE='zlib--tex-live-'
3672 VERSION='1.2.8'
3675 cat >>confdefs.h <<_ACEOF
3676 #define PACKAGE "$PACKAGE"
3677 _ACEOF
3680 cat >>confdefs.h <<_ACEOF
3681 #define VERSION "$VERSION"
3682 _ACEOF
3684 # Some tools Automake needs.
3686 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3689 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3692 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3695 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3698 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3700 # For better backward compatibility. To be removed once Automake 1.9.x
3701 # dies out for good. For more background, see:
3702 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3703 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3704 mkdir_p='$(MKDIR_P)'
3706 # We need awk for the "check" target (and possibly the TAP driver). The
3707 # system "awk" is bad on some platforms.
3708 # Always define AMTAR for backward compatibility. Yes, it's still used
3709 # in the wild :-( We should find a proper way to deprecate it ...
3710 AMTAR='$${TAR-tar}'
3713 # We'll loop over all known methods to create a tar archive until one works.
3714 _am_tools='gnutar pax cpio none'
3716 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3723 # POSIX will say in a future version that running "rm -f" with no argument
3724 # is OK; and we want to be able to make that assumption in our Makefile
3725 # recipes. So use an aggressive probe to check that the usage we want is
3726 # actually supported "in the wild" to an acceptable degree.
3727 # See automake bug#10828.
3728 # To make any issue more visible, cause the running configure to be aborted
3729 # by default if the 'rm' program in use doesn't match our expectations; the
3730 # user can still override this though.
3731 if rm -f && rm -fr && rm -rf; then : OK; else
3732 cat >&2 <<'END'
3733 Oops!
3735 Your 'rm' program seems unable to run without file operands specified
3736 on the command line, even when the '-f' option is present. This is contrary
3737 to the behaviour of most rm programs out there, and not conforming with
3738 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3740 Please tell bug-automake@gnu.org about your system, including the value
3741 of your $PATH and any error possibly output before this message. This
3742 can help us improve future automake versions.
3745 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3746 echo 'Configuration will proceed anyway, since you have set the' >&2
3747 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3748 echo >&2
3749 else
3750 cat >&2 <<'END'
3751 Aborting the configuration process, to ensure you take notice of the issue.
3753 You can download and install GNU coreutils to get an 'rm' implementation
3754 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3756 If you want to complete the configuration process using your problematic
3757 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3758 to "yes", and re-run configure.
3761 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3767 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3768 # Check whether --enable-maintainer-mode was given.
3769 if test "${enable_maintainer_mode+set}" = set; then :
3770 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3771 else
3772 USE_MAINTAINER_MODE=no
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3776 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3777 if test $USE_MAINTAINER_MODE = yes; then
3778 MAINTAINER_MODE_TRUE=
3779 MAINTAINER_MODE_FALSE='#'
3780 else
3781 MAINTAINER_MODE_TRUE='#'
3782 MAINTAINER_MODE_FALSE=
3785 MAINT=$MAINTAINER_MODE_TRUE
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
3789 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
3790 if ${kb_cv_c_prototypes+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <stdarg.h>
3797 main ()
3799 extern void foo(int i,...);
3801 return 0;
3803 _ACEOF
3804 if ac_fn_c_try_link "$LINENO"; then :
3805 kb_cv_c_prototypes=yes
3806 else
3807 kb_cv_c_prototypes=no
3809 rm -f core conftest.err conftest.$ac_objext \
3810 conftest$ac_exeext conftest.$ac_ext
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
3813 $as_echo "$kb_cv_c_prototypes" >&6; }
3814 if test "x$kb_cv_c_prototypes" = xno; then
3815 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
3818 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
3819 if ${kpse_cv_warning_cflags+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 if test "x$GCC" = xyes; then
3823 kpse_cv_warning_cflags=
3824 if test "x$enable_compiler_warnings" != xno; then
3825 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
3826 case `$CC -dumpversion` in #(
3827 3.4.* | 4.* | 5.*) :
3828 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
3829 *) :
3831 esac
3832 case `$CC -dumpversion` in #(
3833 3.[234].* | 4.* | 5.*) :
3834 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
3835 *) :
3837 esac
3838 if test "x$enable_compiler_warnings" != xmin; then
3839 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
3840 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
3841 if test "x$enable_compiler_warnings" != xyes; then
3842 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
3843 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
3844 case `$CC -dumpversion` in #(
3845 3.4.* | 4.* | 5.*) :
3846 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
3847 *) :
3849 esac
3850 if test "x$enable_compiler_warnings" != xmax; then
3851 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
3856 elif test "x$enable_compiler_warnings" = xno; then
3857 kpse_cv_warning_cflags=
3858 else
3859 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
3863 $as_echo "$kpse_cv_warning_cflags" >&6; }
3864 WARNING_CFLAGS=$kpse_cv_warning_cflags
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_CC+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3900 done
3901 done
3902 IFS=$as_save_IFS
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 $as_echo "$CC" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3917 if test -z "$ac_cv_prog_CC"; then
3918 ac_ct_CC=$CC
3919 # Extract the first word of "gcc", so it can be a program name with args.
3920 set dummy gcc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_CC="gcc"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3942 IFS=$as_save_IFS
3946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947 if test -n "$ac_ct_CC"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3949 $as_echo "$ac_ct_CC" >&6; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3955 if test "x$ac_ct_CC" = x; then
3956 CC=""
3957 else
3958 case $cross_compiling:$ac_tool_warned in
3959 yes:)
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3962 ac_tool_warned=yes ;;
3963 esac
3964 CC=$ac_ct_CC
3966 else
3967 CC="$ac_cv_prog_CC"
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}cc; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_CC+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="${ac_tool_prefix}cc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3993 done
3994 done
3995 IFS=$as_save_IFS
3999 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$CC" >&6; }
4003 else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4011 if test -z "$CC"; then
4012 # Extract the first word of "cc", so it can be a program name with args.
4013 set dummy cc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_CC+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$CC"; then
4020 ac_cv_prog_CC="$CC" # Let the user override the test.
4021 else
4022 ac_prog_rejected=no
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4031 ac_prog_rejected=yes
4032 continue
4034 ac_cv_prog_CC="cc"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4038 done
4039 done
4040 IFS=$as_save_IFS
4042 if test $ac_prog_rejected = yes; then
4043 # We found a bogon in the path, so make sure we never use it.
4044 set dummy $ac_cv_prog_CC
4045 shift
4046 if test $# != 0; then
4047 # We chose a different compiler from the bogus one.
4048 # However, it has the same basename, so the bogon will be chosen
4049 # first if we set CC to just the basename; use the full file name.
4050 shift
4051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4056 CC=$ac_cv_prog_CC
4057 if test -n "$CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059 $as_echo "$CC" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4067 if test -z "$CC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 for ac_prog in cl.exe
4071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4108 test -n "$CC" && break
4109 done
4111 if test -z "$CC"; then
4112 ac_ct_CC=$CC
4113 for ac_prog in cl.exe
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$ac_ct_CC"; then
4123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_CC="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4138 IFS=$as_save_IFS
4142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4143 if test -n "$ac_ct_CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4145 $as_echo "$ac_ct_CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4152 test -n "$ac_ct_CC" && break
4153 done
4155 if test "x$ac_ct_CC" = x; then
4156 CC=""
4157 else
4158 case $cross_compiling:$ac_tool_warned in
4159 yes:)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4163 esac
4164 CC=$ac_ct_CC
4171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "no acceptable C compiler found in \$PATH
4174 See \`config.log' for more details" "$LINENO" 5; }
4176 # Provide some information about the compiler.
4177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4178 set X $ac_compile
4179 ac_compiler=$2
4180 for ac_option in --version -v -V -qversion; do
4181 { { ac_try="$ac_compiler $ac_option >&5"
4182 case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187 $as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4189 ac_status=$?
4190 if test -s conftest.err; then
4191 sed '10a\
4192 ... rest of stderr output deleted ...
4193 10q' conftest.err >conftest.er1
4194 cat conftest.er1 >&5
4196 rm -f conftest.er1 conftest.err
4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198 test $ac_status = 0; }
4199 done
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4203 if ${ac_cv_c_compiler_gnu+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4212 #ifndef __GNUC__
4213 choke me
4214 #endif
4217 return 0;
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_compiler_gnu=yes
4222 else
4223 ac_compiler_gnu=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4231 if test $ac_compiler_gnu = yes; then
4232 GCC=yes
4233 else
4234 GCC=
4236 ac_test_CFLAGS=${CFLAGS+set}
4237 ac_save_CFLAGS=$CFLAGS
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4240 if ${ac_cv_prog_cc_g+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 ac_save_c_werror_flag=$ac_c_werror_flag
4244 ac_c_werror_flag=yes
4245 ac_cv_prog_cc_g=no
4246 CFLAGS="-g"
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4251 main ()
4255 return 0;
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_prog_cc_g=yes
4260 else
4261 CFLAGS=""
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4266 main ()
4270 return 0;
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"; then :
4275 else
4276 ac_c_werror_flag=$ac_save_c_werror_flag
4277 CFLAGS="-g"
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4282 main ()
4286 return 0;
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_prog_cc_g=yes
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 ac_c_werror_flag=$ac_save_c_werror_flag
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4300 $as_echo "$ac_cv_prog_cc_g" >&6; }
4301 if test "$ac_test_CFLAGS" = set; then
4302 CFLAGS=$ac_save_CFLAGS
4303 elif test $ac_cv_prog_cc_g = yes; then
4304 if test "$GCC" = yes; then
4305 CFLAGS="-g -O2"
4306 else
4307 CFLAGS="-g"
4309 else
4310 if test "$GCC" = yes; then
4311 CFLAGS="-O2"
4312 else
4313 CFLAGS=
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4318 if ${ac_cv_prog_cc_c89+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 ac_cv_prog_cc_c89=no
4322 ac_save_CC=$CC
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <stdarg.h>
4326 #include <stdio.h>
4327 struct stat;
4328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4329 struct buf { int x; };
4330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4331 static char *e (p, i)
4332 char **p;
4333 int i;
4335 return p[i];
4337 static char *f (char * (*g) (char **, int), char **p, ...)
4339 char *s;
4340 va_list v;
4341 va_start (v,p);
4342 s = g (p, va_arg (v,int));
4343 va_end (v);
4344 return s;
4347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4348 function prototypes and stuff, but not '\xHH' hex character constants.
4349 These don't provoke an error unfortunately, instead are silently treated
4350 as 'x'. The following induces an error, until -std is added to get
4351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4352 array size at least. It's necessary to write '\x00'==0 to get something
4353 that's true only with -std. */
4354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4357 inside strings and character constants. */
4358 #define FOO(x) 'x'
4359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4361 int test (int i, double x);
4362 struct s1 {int (*f) (int a);};
4363 struct s2 {int (*f) (double a);};
4364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4365 int argc;
4366 char **argv;
4368 main ()
4370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4372 return 0;
4374 _ACEOF
4375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4378 CC="$ac_save_CC $ac_arg"
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_prog_cc_c89=$ac_arg
4382 rm -f core conftest.err conftest.$ac_objext
4383 test "x$ac_cv_prog_cc_c89" != "xno" && break
4384 done
4385 rm -f conftest.$ac_ext
4386 CC=$ac_save_CC
4389 # AC_CACHE_VAL
4390 case "x$ac_cv_prog_cc_c89" in
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4393 $as_echo "none needed" >&6; } ;;
4394 xno)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4396 $as_echo "unsupported" >&6; } ;;
4398 CC="$CC $ac_cv_prog_cc_c89"
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4401 esac
4402 if test "x$ac_cv_prog_cc_c89" != xno; then :
4406 ac_ext=c
4407 ac_cpp='$CPP $CPPFLAGS'
4408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4418 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4419 if ${am_cv_prog_cc_c_o+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4426 main ()
4430 return 0;
4432 _ACEOF
4433 # Make sure it works both with $CC and with simple cc.
4434 # Following AC_PROG_CC_C_O, we do the test twice because some
4435 # compilers refuse to overwrite an existing .o file with -o,
4436 # though they will create one.
4437 am_cv_prog_cc_c_o=yes
4438 for am_i in 1 2; do
4439 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4440 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } \
4444 && test -f conftest2.$ac_objext; then
4445 : OK
4446 else
4447 am_cv_prog_cc_c_o=no
4448 break
4450 done
4451 rm -f core conftest*
4452 unset am_i
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4455 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4456 if test "$am_cv_prog_cc_c_o" != yes; then
4457 # Losing compiler, so override with the script.
4458 # FIXME: It is wrong to rewrite CC.
4459 # But if we don't then we get into trouble of one sort or another.
4460 # A longer-term fix would be to have automake use am__CC in this case,
4461 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4462 CC="$am_aux_dir/compile $CC"
4464 ac_ext=c
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 depcc="$CC" am_compiler_list=
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474 $as_echo_n "checking dependency style of $depcc... " >&6; }
4475 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479 # We make a subdir and do the tests there. Otherwise we can end up
4480 # making bogus files that we don't know about and never remove. For
4481 # instance it was reported that on HP-UX the gcc test will end up
4482 # making a dummy file named 'D' -- because '-MD' means "put the output
4483 # in D".
4484 rm -rf conftest.dir
4485 mkdir conftest.dir
4486 # Copy depcomp to subdir because otherwise we won't find it if we're
4487 # using a relative directory.
4488 cp "$am_depcomp" conftest.dir
4489 cd conftest.dir
4490 # We will build objects and dependencies in a subdirectory because
4491 # it helps to detect inapplicable dependency modes. For instance
4492 # both Tru64's cc and ICC support -MD to output dependencies as a
4493 # side effect of compilation, but ICC will put the dependencies in
4494 # the current directory while Tru64 will put them in the object
4495 # directory.
4496 mkdir sub
4498 am_cv_CC_dependencies_compiler_type=none
4499 if test "$am_compiler_list" = ""; then
4500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4502 am__universal=false
4503 case " $depcc " in #(
4504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4505 esac
4507 for depmode in $am_compiler_list; do
4508 # Setup a source with many dependencies, because some compilers
4509 # like to wrap large dependency lists on column 80 (with \), and
4510 # we should not choose a depcomp mode which is confused by this.
4512 # We need to recreate these files for each test, as the compiler may
4513 # overwrite some of them when testing with obscure command lines.
4514 # This happens at least with the AIX C compiler.
4515 : > sub/conftest.c
4516 for i in 1 2 3 4 5 6; do
4517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4519 # Solaris 10 /bin/sh.
4520 echo '/* dummy */' > sub/conftst$i.h
4521 done
4522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4525 # mode. It turns out that the SunPro C++ compiler does not properly
4526 # handle '-M -o', and we need to detect this. Also, some Intel
4527 # versions had trouble with output in subdirs.
4528 am__obj=sub/conftest.${OBJEXT-o}
4529 am__minus_obj="-o $am__obj"
4530 case $depmode in
4531 gcc)
4532 # This depmode causes a compiler race in universal mode.
4533 test "$am__universal" = false || continue
4535 nosideeffect)
4536 # After this tag, mechanisms are not by side-effect, so they'll
4537 # only be used when explicitly requested.
4538 if test "x$enable_dependency_tracking" = xyes; then
4539 continue
4540 else
4541 break
4544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4545 # This compiler won't grok '-c -o', but also, the minuso test has
4546 # not run yet. These depmodes are late enough in the game, and
4547 # so weak that their functioning should not be impacted.
4548 am__obj=conftest.${OBJEXT-o}
4549 am__minus_obj=
4551 none) break ;;
4552 esac
4553 if depmode=$depmode \
4554 source=sub/conftest.c object=$am__obj \
4555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4557 >/dev/null 2>conftest.err &&
4558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562 # icc doesn't choke on unknown options, it will just issue warnings
4563 # or remarks (even with -Werror). So we grep stderr for any message
4564 # that says an option was ignored or not supported.
4565 # When given -MP, icc 7.0 and 7.1 complain thusly:
4566 # icc: Command line warning: ignoring option '-M'; no argument required
4567 # The diagnosis changed in icc 8.0:
4568 # icc: Command line remark: option '-MP' not supported
4569 if (grep 'ignoring option' conftest.err ||
4570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571 am_cv_CC_dependencies_compiler_type=$depmode
4572 break
4575 done
4577 cd ..
4578 rm -rf conftest.dir
4579 else
4580 am_cv_CC_dependencies_compiler_type=none
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4589 test "x$enable_dependency_tracking" != xno \
4590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4591 am__fastdepCC_TRUE=
4592 am__fastdepCC_FALSE='#'
4593 else
4594 am__fastdepCC_TRUE='#'
4595 am__fastdepCC_FALSE=
4599 if test -n "$ac_tool_prefix"; then
4600 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4601 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if ${ac_cv_prog_RANLIB+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$RANLIB"; then
4608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 RANLIB=$ac_cv_prog_RANLIB
4628 if test -n "$RANLIB"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4630 $as_echo "$RANLIB" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4638 if test -z "$ac_cv_prog_RANLIB"; then
4639 ac_ct_RANLIB=$RANLIB
4640 # Extract the first word of "ranlib", so it can be a program name with args.
4641 set dummy ranlib; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$ac_ct_RANLIB"; then
4648 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_RANLIB="ranlib"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4667 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4668 if test -n "$ac_ct_RANLIB"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4670 $as_echo "$ac_ct_RANLIB" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4676 if test "x$ac_ct_RANLIB" = x; then
4677 RANLIB=":"
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4684 esac
4685 RANLIB=$ac_ct_RANLIB
4687 else
4688 RANLIB="$ac_cv_prog_RANLIB"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4692 $as_echo_n "checking whether ln -s works... " >&6; }
4693 LN_S=$as_ln_s
4694 if test "$LN_S" = "ln -s"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4696 $as_echo "yes" >&6; }
4697 else
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4699 $as_echo "no, using $LN_S" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5
4704 $as_echo_n "checking CFLAGS for C to hide external symbols... " >&6; }
4705 if ${kpse_cv_visibility_cflags+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 ac_ext=c
4709 ac_cpp='$CPP $CPPFLAGS'
4710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714 kpse_cv_visibility_cflags=unknown
4715 kpse_save_flags=$CFLAGS
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #include <stdio.h>
4719 extern void foo(void);
4720 void foo(void){printf("foo\n");}
4721 _ACEOF
4722 # FIXME: Add tests for non-GNU compilers
4723 for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility=hidden'; do
4724 CFLAGS="$kpse_save_flags -Werror $kpse_flag"
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 kpse_cv_visibility_cflags=$kpse_flag; break
4728 rm -f core conftest.err conftest.$ac_objext
4729 done
4730 ac_ext=c
4731 ac_cpp='$CPP $CPPFLAGS'
4732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5
4739 $as_echo "$kpse_cv_visibility_cflags" >&6; }
4740 CFLAGS=$kpse_save_flags
4741 case $kpse_cv_visibility_cflags in #(
4742 unknown) :
4743 ;; #(
4744 *) :
4745 VISIBILITY_CFLAGS=$kpse_cv_visibility_cflags
4747 esac
4753 ac_config_headers="$ac_config_headers config.h"
4755 if test "x$enable_build" != xno; then
4756 build_TRUE=
4757 build_FALSE='#'
4758 else
4759 build_TRUE='#'
4760 build_FALSE=
4764 if test "x$GCC" = xyes; then
4765 CFLAGS=${CFLAGS-"-O3"}
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4774 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4775 # On Suns, sometimes $CPP names a directory.
4776 if test -n "$CPP" && test -d "$CPP"; then
4777 CPP=
4779 if test -z "$CPP"; then
4780 if ${ac_cv_prog_CPP+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 # Double quotes because CPP needs to be expanded
4784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4786 ac_preproc_ok=false
4787 for ac_c_preproc_warn_flag in '' yes
4789 # Use a header file that comes with gcc, so configuring glibc
4790 # with a fresh cross-compiler works.
4791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4792 # <limits.h> exists even on freestanding compilers.
4793 # On the NeXT, cc -E runs the code through the compiler's parser,
4794 # not just through cpp. "Syntax error" is here to catch this case.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #ifdef __STDC__
4798 # include <limits.h>
4799 #else
4800 # include <assert.h>
4801 #endif
4802 Syntax error
4803 _ACEOF
4804 if ac_fn_c_try_cpp "$LINENO"; then :
4806 else
4807 # Broken: fails on valid input.
4808 continue
4810 rm -f conftest.err conftest.i conftest.$ac_ext
4812 # OK, works on sane cases. Now check whether nonexistent headers
4813 # can be detected and how.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 #include <ac_nonexistent.h>
4817 _ACEOF
4818 if ac_fn_c_try_cpp "$LINENO"; then :
4819 # Broken: success on invalid input.
4820 continue
4821 else
4822 # Passes both tests.
4823 ac_preproc_ok=:
4824 break
4826 rm -f conftest.err conftest.i conftest.$ac_ext
4828 done
4829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4830 rm -f conftest.i conftest.err conftest.$ac_ext
4831 if $ac_preproc_ok; then :
4832 break
4835 done
4836 ac_cv_prog_CPP=$CPP
4839 CPP=$ac_cv_prog_CPP
4840 else
4841 ac_cv_prog_CPP=$CPP
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4844 $as_echo "$CPP" >&6; }
4845 ac_preproc_ok=false
4846 for ac_c_preproc_warn_flag in '' yes
4848 # Use a header file that comes with gcc, so configuring glibc
4849 # with a fresh cross-compiler works.
4850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851 # <limits.h> exists even on freestanding compilers.
4852 # On the NeXT, cc -E runs the code through the compiler's parser,
4853 # not just through cpp. "Syntax error" is here to catch this case.
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 #ifdef __STDC__
4857 # include <limits.h>
4858 #else
4859 # include <assert.h>
4860 #endif
4861 Syntax error
4862 _ACEOF
4863 if ac_fn_c_try_cpp "$LINENO"; then :
4865 else
4866 # Broken: fails on valid input.
4867 continue
4869 rm -f conftest.err conftest.i conftest.$ac_ext
4871 # OK, works on sane cases. Now check whether nonexistent headers
4872 # can be detected and how.
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #include <ac_nonexistent.h>
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878 # Broken: success on invalid input.
4879 continue
4880 else
4881 # Passes both tests.
4882 ac_preproc_ok=:
4883 break
4885 rm -f conftest.err conftest.i conftest.$ac_ext
4887 done
4888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4889 rm -f conftest.i conftest.err conftest.$ac_ext
4890 if $ac_preproc_ok; then :
4892 else
4893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4895 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4896 See \`config.log' for more details" "$LINENO" 5; }
4899 ac_ext=c
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4907 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4908 if ${ac_cv_path_GREP+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -z "$GREP"; then
4912 ac_path_GREP_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_prog in grep ggrep; do
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4922 as_fn_executable_p "$ac_path_GREP" || continue
4923 # Check for GNU ac_path_GREP and select it if it is found.
4924 # Check for GNU $ac_path_GREP
4925 case `"$ac_path_GREP" --version 2>&1` in
4926 *GNU*)
4927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4929 ac_count=0
4930 $as_echo_n 0123456789 >"conftest.in"
4931 while :
4933 cat "conftest.in" "conftest.in" >"conftest.tmp"
4934 mv "conftest.tmp" "conftest.in"
4935 cp "conftest.in" "conftest.nl"
4936 $as_echo 'GREP' >> "conftest.nl"
4937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939 as_fn_arith $ac_count + 1 && ac_count=$as_val
4940 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4941 # Best one so far, save it but keep looking for a better one
4942 ac_cv_path_GREP="$ac_path_GREP"
4943 ac_path_GREP_max=$ac_count
4945 # 10*(2^10) chars as input seems more than enough
4946 test $ac_count -gt 10 && break
4947 done
4948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949 esac
4951 $ac_path_GREP_found && break 3
4952 done
4953 done
4954 done
4955 IFS=$as_save_IFS
4956 if test -z "$ac_cv_path_GREP"; then
4957 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4959 else
4960 ac_cv_path_GREP=$GREP
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4965 $as_echo "$ac_cv_path_GREP" >&6; }
4966 GREP="$ac_cv_path_GREP"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4970 $as_echo_n "checking for egrep... " >&6; }
4971 if ${ac_cv_path_EGREP+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4975 then ac_cv_path_EGREP="$GREP -E"
4976 else
4977 if test -z "$EGREP"; then
4978 ac_path_EGREP_found=false
4979 # Loop through the user's path and test for each of PROGNAME-LIST
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_prog in egrep; do
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4988 as_fn_executable_p "$ac_path_EGREP" || continue
4989 # Check for GNU ac_path_EGREP and select it if it is found.
4990 # Check for GNU $ac_path_EGREP
4991 case `"$ac_path_EGREP" --version 2>&1` in
4992 *GNU*)
4993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4995 ac_count=0
4996 $as_echo_n 0123456789 >"conftest.in"
4997 while :
4999 cat "conftest.in" "conftest.in" >"conftest.tmp"
5000 mv "conftest.tmp" "conftest.in"
5001 cp "conftest.in" "conftest.nl"
5002 $as_echo 'EGREP' >> "conftest.nl"
5003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5005 as_fn_arith $ac_count + 1 && ac_count=$as_val
5006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5007 # Best one so far, save it but keep looking for a better one
5008 ac_cv_path_EGREP="$ac_path_EGREP"
5009 ac_path_EGREP_max=$ac_count
5011 # 10*(2^10) chars as input seems more than enough
5012 test $ac_count -gt 10 && break
5013 done
5014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5015 esac
5017 $ac_path_EGREP_found && break 3
5018 done
5019 done
5020 done
5021 IFS=$as_save_IFS
5022 if test -z "$ac_cv_path_EGREP"; then
5023 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5025 else
5026 ac_cv_path_EGREP=$EGREP
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5032 $as_echo "$ac_cv_path_EGREP" >&6; }
5033 EGREP="$ac_cv_path_EGREP"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5037 $as_echo_n "checking for ANSI C header files... " >&6; }
5038 if ${ac_cv_header_stdc+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <stdlib.h>
5044 #include <stdarg.h>
5045 #include <string.h>
5046 #include <float.h>
5049 main ()
5053 return 0;
5055 _ACEOF
5056 if ac_fn_c_try_compile "$LINENO"; then :
5057 ac_cv_header_stdc=yes
5058 else
5059 ac_cv_header_stdc=no
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063 if test $ac_cv_header_stdc = yes; then
5064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <string.h>
5069 _ACEOF
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071 $EGREP "memchr" >/dev/null 2>&1; then :
5073 else
5074 ac_cv_header_stdc=no
5076 rm -f conftest*
5080 if test $ac_cv_header_stdc = yes; then
5081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #include <stdlib.h>
5086 _ACEOF
5087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5088 $EGREP "free" >/dev/null 2>&1; then :
5090 else
5091 ac_cv_header_stdc=no
5093 rm -f conftest*
5097 if test $ac_cv_header_stdc = yes; then
5098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5099 if test "$cross_compiling" = yes; then :
5101 else
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 #include <ctype.h>
5105 #include <stdlib.h>
5106 #if ((' ' & 0x0FF) == 0x020)
5107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5109 #else
5110 # define ISLOWER(c) \
5111 (('a' <= (c) && (c) <= 'i') \
5112 || ('j' <= (c) && (c) <= 'r') \
5113 || ('s' <= (c) && (c) <= 'z'))
5114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5115 #endif
5117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5119 main ()
5121 int i;
5122 for (i = 0; i < 256; i++)
5123 if (XOR (islower (i), ISLOWER (i))
5124 || toupper (i) != TOUPPER (i))
5125 return 2;
5126 return 0;
5128 _ACEOF
5129 if ac_fn_c_try_run "$LINENO"; then :
5131 else
5132 ac_cv_header_stdc=no
5134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5135 conftest.$ac_objext conftest.beam conftest.$ac_ext
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5141 $as_echo "$ac_cv_header_stdc" >&6; }
5142 if test $ac_cv_header_stdc = yes; then
5144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5148 if test "x$ac_cv_header_stdc" != xyes; then
5149 as_fn_error $? "Sorry, can't do anything for you without header_stdc" "$LINENO" 5
5152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5154 inttypes.h stdint.h unistd.h
5155 do :
5156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5157 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5160 cat >>confdefs.h <<_ACEOF
5161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5162 _ACEOF
5166 done
5169 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5170 if test "x$ac_cv_header_errno_h" = xyes; then :
5171 ZLIB_DEFINES=
5172 else
5173 ZLIB_DEFINES="-DNO_ERRNO_H"
5178 for ac_header in unistd.h
5179 do :
5180 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5181 if test "x$ac_cv_header_unistd_h" = xyes; then :
5182 cat >>confdefs.h <<_ACEOF
5183 #define HAVE_UNISTD_H 1
5184 _ACEOF
5188 done
5190 ZCONF_SRC=zlib-src/zconf.h.in
5191 if test x"$ac_cv_header_unistd_h" = xyes; then
5192 zconf_sh='sed <$srcdir/'"$ZCONF_SRC"' "/^#ifdef HAVE_UNISTD_H.* may be/s/def HAVE_UNISTD_H\\(.*\\) may be/ 1\\1 was/" >'
5193 else
5194 zconf_sh='cp $srcdir/'"$ZCONF_SRC"
5197 # Check whether --enable-largefile was given.
5198 if test "${enable_largefile+set}" = set; then :
5199 enableval=$enable_largefile;
5202 if test "$enable_largefile" != no; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5205 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5206 if ${ac_cv_sys_largefile_CC+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 ac_cv_sys_largefile_CC=no
5210 if test "$GCC" != yes; then
5211 ac_save_CC=$CC
5212 while :; do
5213 # IRIX 6.2 and later do not support large files by default,
5214 # so use the C compiler's -n32 option if that helps.
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <sys/types.h>
5218 /* Check that off_t can represent 2**63 - 1 correctly.
5219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5220 since some C++ compilers masquerading as C compilers
5221 incorrectly reject 9223372036854775807. */
5222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5224 && LARGE_OFF_T % 2147483647 == 1)
5225 ? 1 : -1];
5227 main ()
5231 return 0;
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5235 break
5237 rm -f core conftest.err conftest.$ac_objext
5238 CC="$CC -n32"
5239 if ac_fn_c_try_compile "$LINENO"; then :
5240 ac_cv_sys_largefile_CC=' -n32'; break
5242 rm -f core conftest.err conftest.$ac_objext
5243 break
5244 done
5245 CC=$ac_save_CC
5246 rm -f conftest.$ac_ext
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5250 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5251 if test "$ac_cv_sys_largefile_CC" != no; then
5252 CC=$CC$ac_cv_sys_largefile_CC
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5256 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5257 if ${ac_cv_sys_file_offset_bits+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 while :; do
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <sys/types.h>
5264 /* Check that off_t can represent 2**63 - 1 correctly.
5265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5266 since some C++ compilers masquerading as C compilers
5267 incorrectly reject 9223372036854775807. */
5268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5270 && LARGE_OFF_T % 2147483647 == 1)
5271 ? 1 : -1];
5273 main ()
5277 return 0;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 ac_cv_sys_file_offset_bits=no; break
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #define _FILE_OFFSET_BITS 64
5287 #include <sys/types.h>
5288 /* Check that off_t can represent 2**63 - 1 correctly.
5289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5290 since some C++ compilers masquerading as C compilers
5291 incorrectly reject 9223372036854775807. */
5292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5294 && LARGE_OFF_T % 2147483647 == 1)
5295 ? 1 : -1];
5297 main ()
5301 return 0;
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 ac_cv_sys_file_offset_bits=64; break
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 ac_cv_sys_file_offset_bits=unknown
5309 break
5310 done
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5313 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5314 case $ac_cv_sys_file_offset_bits in #(
5315 no | unknown) ;;
5317 cat >>confdefs.h <<_ACEOF
5318 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5319 _ACEOF
5321 esac
5322 rm -rf conftest*
5323 if test $ac_cv_sys_file_offset_bits = unknown; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5325 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5326 if ${ac_cv_sys_large_files+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 while :; do
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <sys/types.h>
5333 /* Check that off_t can represent 2**63 - 1 correctly.
5334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5335 since some C++ compilers masquerading as C compilers
5336 incorrectly reject 9223372036854775807. */
5337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5339 && LARGE_OFF_T % 2147483647 == 1)
5340 ? 1 : -1];
5342 main ()
5346 return 0;
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350 ac_cv_sys_large_files=no; break
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #define _LARGE_FILES 1
5356 #include <sys/types.h>
5357 /* Check that off_t can represent 2**63 - 1 correctly.
5358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5359 since some C++ compilers masquerading as C compilers
5360 incorrectly reject 9223372036854775807. */
5361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5363 && LARGE_OFF_T % 2147483647 == 1)
5364 ? 1 : -1];
5366 main ()
5370 return 0;
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 ac_cv_sys_large_files=1; break
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 ac_cv_sys_large_files=unknown
5378 break
5379 done
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5382 $as_echo "$ac_cv_sys_large_files" >&6; }
5383 case $ac_cv_sys_large_files in #(
5384 no | unknown) ;;
5386 cat >>confdefs.h <<_ACEOF
5387 #define _LARGE_FILES $ac_cv_sys_large_files
5388 _ACEOF
5390 esac
5391 rm -rf conftest*
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5398 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5399 if ${ac_cv_sys_largefile_source+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 while :; do
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <sys/types.h> /* for off_t */
5406 #include <stdio.h>
5408 main ()
5410 int (*fp) (FILE *, off_t, int) = fseeko;
5411 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5413 return 0;
5415 _ACEOF
5416 if ac_fn_c_try_link "$LINENO"; then :
5417 ac_cv_sys_largefile_source=no; break
5419 rm -f core conftest.err conftest.$ac_objext \
5420 conftest$ac_exeext conftest.$ac_ext
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #define _LARGEFILE_SOURCE 1
5424 #include <sys/types.h> /* for off_t */
5425 #include <stdio.h>
5427 main ()
5429 int (*fp) (FILE *, off_t, int) = fseeko;
5430 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5432 return 0;
5434 _ACEOF
5435 if ac_fn_c_try_link "$LINENO"; then :
5436 ac_cv_sys_largefile_source=1; break
5438 rm -f core conftest.err conftest.$ac_objext \
5439 conftest$ac_exeext conftest.$ac_ext
5440 ac_cv_sys_largefile_source=unknown
5441 break
5442 done
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5445 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5446 case $ac_cv_sys_largefile_source in #(
5447 no | unknown) ;;
5449 cat >>confdefs.h <<_ACEOF
5450 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5451 _ACEOF
5453 esac
5454 rm -rf conftest*
5456 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5457 # in glibc 2.1.3, but that breaks too many other things.
5458 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5459 if test $ac_cv_sys_largefile_source != unknown; then
5461 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5465 if test "x$enable_largefile" != xno; then
5466 case $ac_cv_sys_file_offset_bits in #(
5467 no) :
5468 ;; #(
5469 unknown) :
5470 case $ac_cv_sys_large_files in #(
5471 no | unknown) :
5472 ;; #(
5473 *) :
5474 ZLIB_DEFINES="$ZLIB_DEFINES -D_LARGE_FILES" ;;
5475 esac ;; #(
5476 *) :
5477 ZLIB_DEFINES="$ZLIB_DEFINES -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" ;;
5478 esac
5480 case $ac_cv_sys_largefile_source in #(
5481 no | unknown) :
5482 ;; #(
5483 *) :
5484 ZLIB_DEFINES="$ZLIB_DEFINES -D_LARGEFILE_SOURCE" ;;
5485 esac
5488 ac_config_commands="$ac_config_commands zconf.h"
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap support" >&5
5492 $as_echo_n "checking for mmap support... " >&6; }
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 #include <sys/mman.h>
5497 #include <sys/stat.h>
5498 caddr_t hello() {
5499 return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
5502 main ()
5506 return 0;
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 $as_echo "yes" >&6; }
5512 ZLIB_DEFINES="$ZLIB_DEFINES -DUSE_MMAP"
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
5520 $as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
5521 if ${kpse_cv_have_win32+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #ifndef WIN32
5527 choke me
5528 #endif
5530 main ()
5534 return 0;
5536 _ACEOF
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #ifndef __MINGW32__
5541 choke me
5542 #endif
5544 main ()
5548 return 0;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 kpse_cv_have_win32=mingw32
5553 else
5554 kpse_cv_have_win32=native
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 else
5558 kpse_cv_have_win32=no
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
5563 $as_echo "$kpse_cv_have_win32" >&6; }
5565 if test "x$kpse_cv_have_win32" != xno; then
5566 ZLIB_DEFINES="$ZLIB_DEFINES -DNO_VIZ"
5571 ZLIB_TREE=zlib-src
5574 if test -f $srcdir/$ZLIB_TREE/zconf.h; then
5575 as_fn_error $? "Sorry, you must remove the file $ZLIB_TREE/zconf.h" "$LINENO" 5
5578 ac_config_files="$ac_config_files Makefile include/Makefile"
5581 cat >confcache <<\_ACEOF
5582 # This file is a shell script that caches the results of configure
5583 # tests run on this system so they can be shared between configure
5584 # scripts and configure runs, see configure's option --config-cache.
5585 # It is not useful on other systems. If it contains results you don't
5586 # want to keep, you may remove or edit it.
5588 # config.status only pays attention to the cache file if you give it
5589 # the --recheck option to rerun configure.
5591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5593 # following values.
5595 _ACEOF
5597 # The following way of writing the cache mishandles newlines in values,
5598 # but we know of no workaround that is simple, portable, and efficient.
5599 # So, we kill variables containing newlines.
5600 # Ultrix sh set writes to stderr and can't be redirected directly,
5601 # and sets the high bit in the cache file unless we assign to the vars.
5603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5604 eval ac_val=\$$ac_var
5605 case $ac_val in #(
5606 *${as_nl}*)
5607 case $ac_var in #(
5608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5610 esac
5611 case $ac_var in #(
5612 _ | IFS | as_nl) ;; #(
5613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5614 *) { eval $ac_var=; unset $ac_var;} ;;
5615 esac ;;
5616 esac
5617 done
5619 (set) 2>&1 |
5620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5621 *${as_nl}ac_space=\ *)
5622 # `set' does not quote correctly, so add quotes: double-quote
5623 # substitution turns \\\\ into \\, and sed turns \\ into \.
5624 sed -n \
5625 "s/'/'\\\\''/g;
5626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5627 ;; #(
5629 # `set' quotes correctly as required by POSIX, so do not add quotes.
5630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5632 esac |
5633 sort
5635 sed '
5636 /^ac_cv_env_/b end
5637 t clear
5638 :clear
5639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5640 t end
5641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5642 :end' >>confcache
5643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5644 if test -w "$cache_file"; then
5645 if test "x$cache_file" != "x/dev/null"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5647 $as_echo "$as_me: updating cache $cache_file" >&6;}
5648 if test ! -f "$cache_file" || test -h "$cache_file"; then
5649 cat confcache >"$cache_file"
5650 else
5651 case $cache_file in #(
5652 */* | ?:*)
5653 mv -f confcache "$cache_file"$$ &&
5654 mv -f "$cache_file"$$ "$cache_file" ;; #(
5656 mv -f confcache "$cache_file" ;;
5657 esac
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5665 rm -f confcache
5667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5668 # Let make expand exec_prefix.
5669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5671 DEFS=-DHAVE_CONFIG_H
5673 ac_libobjs=
5674 ac_ltlibobjs=
5676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5677 # 1. Remove the extension, and $U if already installed.
5678 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5679 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5680 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5681 # will be set to the directory where LIBOBJS objects are built.
5682 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5683 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5684 done
5685 LIBOBJS=$ac_libobjs
5687 LTLIBOBJS=$ac_ltlibobjs
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5691 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5692 if test -n "$am_sleep_pid"; then
5693 # Hide warnings about reused PIDs.
5694 wait $am_sleep_pid 2>/dev/null
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5697 $as_echo "done" >&6; }
5698 if test -n "$EXEEXT"; then
5699 am__EXEEXT_TRUE=
5700 am__EXEEXT_FALSE='#'
5701 else
5702 am__EXEEXT_TRUE='#'
5703 am__EXEEXT_FALSE=
5706 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5707 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5711 as_fn_error $? "conditional \"AMDEP\" was never defined.
5712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5715 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5722 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
5723 as_fn_error $? "conditional \"build\" was never defined.
5724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5727 : "${CONFIG_STATUS=./config.status}"
5728 ac_write_fail=0
5729 ac_clean_files_save=$ac_clean_files
5730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5732 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5733 as_write_fail=0
5734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5735 #! $SHELL
5736 # Generated by $as_me.
5737 # Run this file to recreate the current configuration.
5738 # Compiler output produced by configure, useful for debugging
5739 # configure, is in config.log if it exists.
5741 debug=false
5742 ac_cs_recheck=false
5743 ac_cs_silent=false
5745 SHELL=\${CONFIG_SHELL-$SHELL}
5746 export SHELL
5747 _ASEOF
5748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5749 ## -------------------- ##
5750 ## M4sh Initialization. ##
5751 ## -------------------- ##
5753 # Be more Bourne compatible
5754 DUALCASE=1; export DUALCASE # for MKS sh
5755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5756 emulate sh
5757 NULLCMD=:
5758 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5759 # is contrary to our usage. Disable this feature.
5760 alias -g '${1+"$@"}'='"$@"'
5761 setopt NO_GLOB_SUBST
5762 else
5763 case `(set -o) 2>/dev/null` in #(
5764 *posix*) :
5765 set -o posix ;; #(
5766 *) :
5768 esac
5772 as_nl='
5774 export as_nl
5775 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5776 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5779 # Prefer a ksh shell builtin over an external printf program on Solaris,
5780 # but without wasting forks for bash or zsh.
5781 if test -z "$BASH_VERSION$ZSH_VERSION" \
5782 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5783 as_echo='print -r --'
5784 as_echo_n='print -rn --'
5785 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5786 as_echo='printf %s\n'
5787 as_echo_n='printf %s'
5788 else
5789 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5790 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5791 as_echo_n='/usr/ucb/echo -n'
5792 else
5793 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5794 as_echo_n_body='eval
5795 arg=$1;
5796 case $arg in #(
5797 *"$as_nl"*)
5798 expr "X$arg" : "X\\(.*\\)$as_nl";
5799 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5800 esac;
5801 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5803 export as_echo_n_body
5804 as_echo_n='sh -c $as_echo_n_body as_echo'
5806 export as_echo_body
5807 as_echo='sh -c $as_echo_body as_echo'
5810 # The user is always right.
5811 if test "${PATH_SEPARATOR+set}" != set; then
5812 PATH_SEPARATOR=:
5813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5814 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5815 PATH_SEPARATOR=';'
5820 # IFS
5821 # We need space, tab and new line, in precisely that order. Quoting is
5822 # there to prevent editors from complaining about space-tab.
5823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5824 # splitting by setting IFS to empty value.)
5825 IFS=" "" $as_nl"
5827 # Find who we are. Look in the path if we contain no directory separator.
5828 as_myself=
5829 case $0 in #((
5830 *[\\/]* ) as_myself=$0 ;;
5831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5837 done
5838 IFS=$as_save_IFS
5841 esac
5842 # We did not find ourselves, most probably we were run as `sh COMMAND'
5843 # in which case we are not to be found in the path.
5844 if test "x$as_myself" = x; then
5845 as_myself=$0
5847 if test ! -f "$as_myself"; then
5848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5849 exit 1
5852 # Unset variables that we do not need and which cause bugs (e.g. in
5853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5854 # suppresses any "Segmentation fault" message there. '((' could
5855 # trigger a bug in pdksh 5.2.14.
5856 for as_var in BASH_ENV ENV MAIL MAILPATH
5857 do eval test x\${$as_var+set} = xset \
5858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5859 done
5860 PS1='$ '
5861 PS2='> '
5862 PS4='+ '
5864 # NLS nuisances.
5865 LC_ALL=C
5866 export LC_ALL
5867 LANGUAGE=C
5868 export LANGUAGE
5870 # CDPATH.
5871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5874 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5875 # ----------------------------------------
5876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5878 # script with STATUS, using 1 if that was 0.
5879 as_fn_error ()
5881 as_status=$1; test $as_status -eq 0 && as_status=1
5882 if test "$4"; then
5883 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5886 $as_echo "$as_me: error: $2" >&2
5887 as_fn_exit $as_status
5888 } # as_fn_error
5891 # as_fn_set_status STATUS
5892 # -----------------------
5893 # Set $? to STATUS, without forking.
5894 as_fn_set_status ()
5896 return $1
5897 } # as_fn_set_status
5899 # as_fn_exit STATUS
5900 # -----------------
5901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5902 as_fn_exit ()
5904 set +e
5905 as_fn_set_status $1
5906 exit $1
5907 } # as_fn_exit
5909 # as_fn_unset VAR
5910 # ---------------
5911 # Portably unset VAR.
5912 as_fn_unset ()
5914 { eval $1=; unset $1;}
5916 as_unset=as_fn_unset
5917 # as_fn_append VAR VALUE
5918 # ----------------------
5919 # Append the text in VALUE to the end of the definition contained in VAR. Take
5920 # advantage of any shell optimizations that allow amortized linear growth over
5921 # repeated appends, instead of the typical quadratic growth present in naive
5922 # implementations.
5923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5924 eval 'as_fn_append ()
5926 eval $1+=\$2
5928 else
5929 as_fn_append ()
5931 eval $1=\$$1\$2
5933 fi # as_fn_append
5935 # as_fn_arith ARG...
5936 # ------------------
5937 # Perform arithmetic evaluation on the ARGs, and store the result in the
5938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5939 # must be portable across $(()) and expr.
5940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5941 eval 'as_fn_arith ()
5943 as_val=$(( $* ))
5945 else
5946 as_fn_arith ()
5948 as_val=`expr "$@" || test $? -eq 1`
5950 fi # as_fn_arith
5953 if expr a : '\(a\)' >/dev/null 2>&1 &&
5954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5955 as_expr=expr
5956 else
5957 as_expr=false
5960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5961 as_basename=basename
5962 else
5963 as_basename=false
5966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5967 as_dirname=dirname
5968 else
5969 as_dirname=false
5972 as_me=`$as_basename -- "$0" ||
5973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5974 X"$0" : 'X\(//\)$' \| \
5975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5976 $as_echo X/"$0" |
5977 sed '/^.*\/\([^/][^/]*\)\/*$/{
5978 s//\1/
5981 /^X\/\(\/\/\)$/{
5982 s//\1/
5985 /^X\/\(\/\).*/{
5986 s//\1/
5989 s/.*/./; q'`
5991 # Avoid depending upon Character Ranges.
5992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5995 as_cr_digits='0123456789'
5996 as_cr_alnum=$as_cr_Letters$as_cr_digits
5998 ECHO_C= ECHO_N= ECHO_T=
5999 case `echo -n x` in #(((((
6000 -n*)
6001 case `echo 'xy\c'` in
6002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6003 xy) ECHO_C='\c';;
6004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6005 ECHO_T=' ';;
6006 esac;;
6008 ECHO_N='-n';;
6009 esac
6011 rm -f conf$$ conf$$.exe conf$$.file
6012 if test -d conf$$.dir; then
6013 rm -f conf$$.dir/conf$$.file
6014 else
6015 rm -f conf$$.dir
6016 mkdir conf$$.dir 2>/dev/null
6018 if (echo >conf$$.file) 2>/dev/null; then
6019 if ln -s conf$$.file conf$$ 2>/dev/null; then
6020 as_ln_s='ln -s'
6021 # ... but there are two gotchas:
6022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6024 # In both cases, we have to default to `cp -pR'.
6025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6026 as_ln_s='cp -pR'
6027 elif ln conf$$.file conf$$ 2>/dev/null; then
6028 as_ln_s=ln
6029 else
6030 as_ln_s='cp -pR'
6032 else
6033 as_ln_s='cp -pR'
6035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6036 rmdir conf$$.dir 2>/dev/null
6039 # as_fn_mkdir_p
6040 # -------------
6041 # Create "$as_dir" as a directory, including parents if necessary.
6042 as_fn_mkdir_p ()
6045 case $as_dir in #(
6046 -*) as_dir=./$as_dir;;
6047 esac
6048 test -d "$as_dir" || eval $as_mkdir_p || {
6049 as_dirs=
6050 while :; do
6051 case $as_dir in #(
6052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6053 *) as_qdir=$as_dir;;
6054 esac
6055 as_dirs="'$as_qdir' $as_dirs"
6056 as_dir=`$as_dirname -- "$as_dir" ||
6057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6058 X"$as_dir" : 'X\(//\)[^/]' \| \
6059 X"$as_dir" : 'X\(//\)$' \| \
6060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6061 $as_echo X"$as_dir" |
6062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6063 s//\1/
6066 /^X\(\/\/\)[^/].*/{
6067 s//\1/
6070 /^X\(\/\/\)$/{
6071 s//\1/
6074 /^X\(\/\).*/{
6075 s//\1/
6078 s/.*/./; q'`
6079 test -d "$as_dir" && break
6080 done
6081 test -z "$as_dirs" || eval "mkdir $as_dirs"
6082 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6085 } # as_fn_mkdir_p
6086 if mkdir -p . 2>/dev/null; then
6087 as_mkdir_p='mkdir -p "$as_dir"'
6088 else
6089 test -d ./-p && rmdir ./-p
6090 as_mkdir_p=false
6094 # as_fn_executable_p FILE
6095 # -----------------------
6096 # Test if FILE is an executable regular file.
6097 as_fn_executable_p ()
6099 test -f "$1" && test -x "$1"
6100 } # as_fn_executable_p
6101 as_test_x='test -x'
6102 as_executable_p=as_fn_executable_p
6104 # Sed expression to map a string onto a valid CPP name.
6105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6107 # Sed expression to map a string onto a valid variable name.
6108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6111 exec 6>&1
6112 ## ----------------------------------- ##
6113 ## Main body of $CONFIG_STATUS script. ##
6114 ## ----------------------------------- ##
6115 _ASEOF
6116 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6119 # Save the log message, to keep $0 and so on meaningful, and to
6120 # report actual input values of CONFIG_FILES etc. instead of their
6121 # values after options handling.
6122 ac_log="
6123 This file was extended by zlib (TeX Live) $as_me 1.2.8, which was
6124 generated by GNU Autoconf 2.69. Invocation command line was
6126 CONFIG_FILES = $CONFIG_FILES
6127 CONFIG_HEADERS = $CONFIG_HEADERS
6128 CONFIG_LINKS = $CONFIG_LINKS
6129 CONFIG_COMMANDS = $CONFIG_COMMANDS
6130 $ $0 $@
6132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6135 _ACEOF
6137 case $ac_config_files in *"
6138 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6139 esac
6141 case $ac_config_headers in *"
6142 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6143 esac
6146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6147 # Files that config.status was made for.
6148 config_files="$ac_config_files"
6149 config_headers="$ac_config_headers"
6150 config_commands="$ac_config_commands"
6152 _ACEOF
6154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6155 ac_cs_usage="\
6156 \`$as_me' instantiates files and other configuration actions
6157 from templates according to the current configuration. Unless the files
6158 and actions are specified as TAGs, all are instantiated by default.
6160 Usage: $0 [OPTION]... [TAG]...
6162 -h, --help print this help, then exit
6163 -V, --version print version number and configuration settings, then exit
6164 --config print configuration, then exit
6165 -q, --quiet, --silent
6166 do not print progress messages
6167 -d, --debug don't remove temporary files
6168 --recheck update $as_me by reconfiguring in the same conditions
6169 --file=FILE[:TEMPLATE]
6170 instantiate the configuration file FILE
6171 --header=FILE[:TEMPLATE]
6172 instantiate the configuration header FILE
6174 Configuration files:
6175 $config_files
6177 Configuration headers:
6178 $config_headers
6180 Configuration commands:
6181 $config_commands
6183 Report bugs to <tex-k@tug.org>."
6185 _ACEOF
6186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6187 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6188 ac_cs_version="\\
6189 zlib (TeX Live) config.status 1.2.8
6190 configured by $0, generated by GNU Autoconf 2.69,
6191 with options \\"\$ac_cs_config\\"
6193 Copyright (C) 2012 Free Software Foundation, Inc.
6194 This config.status script is free software; the Free Software Foundation
6195 gives unlimited permission to copy, distribute and modify it."
6197 ac_pwd='$ac_pwd'
6198 srcdir='$srcdir'
6199 INSTALL='$INSTALL'
6200 MKDIR_P='$MKDIR_P'
6201 AWK='$AWK'
6202 test -n "\$AWK" || AWK=awk
6203 _ACEOF
6205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6206 # The default lists apply if the user does not specify any file.
6207 ac_need_defaults=:
6208 while test $# != 0
6210 case $1 in
6211 --*=?*)
6212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6214 ac_shift=:
6216 --*=)
6217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6218 ac_optarg=
6219 ac_shift=:
6222 ac_option=$1
6223 ac_optarg=$2
6224 ac_shift=shift
6226 esac
6228 case $ac_option in
6229 # Handling of the options.
6230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6231 ac_cs_recheck=: ;;
6232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6233 $as_echo "$ac_cs_version"; exit ;;
6234 --config | --confi | --conf | --con | --co | --c )
6235 $as_echo "$ac_cs_config"; exit ;;
6236 --debug | --debu | --deb | --de | --d | -d )
6237 debug=: ;;
6238 --file | --fil | --fi | --f )
6239 $ac_shift
6240 case $ac_optarg in
6241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6242 '') as_fn_error $? "missing file argument" ;;
6243 esac
6244 as_fn_append CONFIG_FILES " '$ac_optarg'"
6245 ac_need_defaults=false;;
6246 --header | --heade | --head | --hea )
6247 $ac_shift
6248 case $ac_optarg in
6249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6250 esac
6251 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6252 ac_need_defaults=false;;
6253 --he | --h)
6254 # Conflict between --help and --header
6255 as_fn_error $? "ambiguous option: \`$1'
6256 Try \`$0 --help' for more information.";;
6257 --help | --hel | -h )
6258 $as_echo "$ac_cs_usage"; exit ;;
6259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6261 ac_cs_silent=: ;;
6263 # This is an error.
6264 -*) as_fn_error $? "unrecognized option: \`$1'
6265 Try \`$0 --help' for more information." ;;
6267 *) as_fn_append ac_config_targets " $1"
6268 ac_need_defaults=false ;;
6270 esac
6271 shift
6272 done
6274 ac_configure_extra_args=
6276 if $ac_cs_silent; then
6277 exec 6>/dev/null
6278 ac_configure_extra_args="$ac_configure_extra_args --silent"
6281 _ACEOF
6282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6283 if \$ac_cs_recheck; then
6284 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6285 shift
6286 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6287 CONFIG_SHELL='$SHELL'
6288 export CONFIG_SHELL
6289 exec "\$@"
6292 _ACEOF
6293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6294 exec 5>>config.log
6296 echo
6297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6298 ## Running $as_me. ##
6299 _ASBOX
6300 $as_echo "$ac_log"
6301 } >&5
6303 _ACEOF
6304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6306 # INIT-COMMANDS
6308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6309 zconf_sh='$zconf_sh'
6311 _ACEOF
6313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6315 # Handling of arguments.
6316 for ac_config_target in $ac_config_targets
6318 case $ac_config_target in
6319 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6320 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6321 "zconf.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zconf.h" ;;
6322 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6323 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6325 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6326 esac
6327 done
6330 # If the user did not use the arguments to specify the items to instantiate,
6331 # then the envvar interface is used. Set only those that are not.
6332 # We use the long form for the default assignment because of an extremely
6333 # bizarre bug on SunOS 4.1.3.
6334 if $ac_need_defaults; then
6335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6336 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6337 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6340 # Have a temporary directory for convenience. Make it in the build tree
6341 # simply because there is no reason against having it here, and in addition,
6342 # creating and moving files from /tmp can sometimes cause problems.
6343 # Hook for its removal unless debugging.
6344 # Note that there is a small window in which the directory will not be cleaned:
6345 # after its creation but before its name has been assigned to `$tmp'.
6346 $debug ||
6348 tmp= ac_tmp=
6349 trap 'exit_status=$?
6350 : "${ac_tmp:=$tmp}"
6351 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6353 trap 'as_fn_exit 1' 1 2 13 15
6355 # Create a (secure) tmp directory for tmp files.
6358 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6359 test -d "$tmp"
6360 } ||
6362 tmp=./conf$$-$RANDOM
6363 (umask 077 && mkdir "$tmp")
6364 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6365 ac_tmp=$tmp
6367 # Set up the scripts for CONFIG_FILES section.
6368 # No need to generate them if there are no CONFIG_FILES.
6369 # This happens for instance with `./config.status config.h'.
6370 if test -n "$CONFIG_FILES"; then
6373 ac_cr=`echo X | tr X '\015'`
6374 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6375 # But we know of no other shell where ac_cr would be empty at this
6376 # point, so we can use a bashism as a fallback.
6377 if test "x$ac_cr" = x; then
6378 eval ac_cr=\$\'\\r\'
6380 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6381 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6382 ac_cs_awk_cr='\\r'
6383 else
6384 ac_cs_awk_cr=$ac_cr
6387 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6388 _ACEOF
6392 echo "cat >conf$$subs.awk <<_ACEOF" &&
6393 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6394 echo "_ACEOF"
6395 } >conf$$subs.sh ||
6396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6397 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6398 ac_delim='%!_!# '
6399 for ac_last_try in false false false false false :; do
6400 . ./conf$$subs.sh ||
6401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6403 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6404 if test $ac_delim_n = $ac_delim_num; then
6405 break
6406 elif $ac_last_try; then
6407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6408 else
6409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6411 done
6412 rm -f conf$$subs.sh
6414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6415 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6416 _ACEOF
6417 sed -n '
6419 s/^/S["/; s/!.*/"]=/
6422 s/^[^!]*!//
6423 :repl
6424 t repl
6425 s/'"$ac_delim"'$//
6426 t delim
6429 s/\(.\{148\}\)..*/\1/
6430 t more1
6431 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6434 b repl
6435 :more1
6436 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6439 s/.\{148\}//
6440 t nl
6441 :delim
6443 s/\(.\{148\}\)..*/\1/
6444 t more2
6445 s/["\\]/\\&/g; s/^/"/; s/$/"/
6448 :more2
6449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6452 s/.\{148\}//
6453 t delim
6454 ' <conf$$subs.awk | sed '
6455 /^[^""]/{
6457 s/\n//
6459 ' >>$CONFIG_STATUS || ac_write_fail=1
6460 rm -f conf$$subs.awk
6461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6462 _ACAWK
6463 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6464 for (key in S) S_is_set[key] = 1
6465 FS = "\a"
6469 line = $ 0
6470 nfields = split(line, field, "@")
6471 substed = 0
6472 len = length(field[1])
6473 for (i = 2; i < nfields; i++) {
6474 key = field[i]
6475 keylen = length(key)
6476 if (S_is_set[key]) {
6477 value = S[key]
6478 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6479 len += length(value) + length(field[++i])
6480 substed = 1
6481 } else
6482 len += 1 + keylen
6485 print line
6488 _ACAWK
6489 _ACEOF
6490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6491 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6492 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6493 else
6495 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6496 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6497 _ACEOF
6499 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6500 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6501 # trailing colons and then remove the whole line if VPATH becomes empty
6502 # (actually we leave an empty line to preserve line numbers).
6503 if test "x$srcdir" = x.; then
6504 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6506 s///
6507 s/^/:/
6508 s/[ ]*$/:/
6509 s/:\$(srcdir):/:/g
6510 s/:\${srcdir}:/:/g
6511 s/:@srcdir@:/:/g
6512 s/^:*//
6513 s/:*$//
6515 s/\(=[ ]*\).*/\1/
6517 s/\n//
6518 s/^[^=]*=[ ]*$//
6522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6523 fi # test -n "$CONFIG_FILES"
6525 # Set up the scripts for CONFIG_HEADERS section.
6526 # No need to generate them if there are no CONFIG_HEADERS.
6527 # This happens for instance with `./config.status Makefile'.
6528 if test -n "$CONFIG_HEADERS"; then
6529 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6530 BEGIN {
6531 _ACEOF
6533 # Transform confdefs.h into an awk script `defines.awk', embedded as
6534 # here-document in config.status, that substitutes the proper values into
6535 # config.h.in to produce config.h.
6537 # Create a delimiter string that does not exist in confdefs.h, to ease
6538 # handling of long lines.
6539 ac_delim='%!_!# '
6540 for ac_last_try in false false :; do
6541 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6542 if test -z "$ac_tt"; then
6543 break
6544 elif $ac_last_try; then
6545 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6546 else
6547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6549 done
6551 # For the awk script, D is an array of macro values keyed by name,
6552 # likewise P contains macro parameters if any. Preserve backslash
6553 # newline sequences.
6555 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6556 sed -n '
6557 s/.\{148\}/&'"$ac_delim"'/g
6558 t rset
6559 :rset
6560 s/^[ ]*#[ ]*define[ ][ ]*/ /
6561 t def
6563 :def
6564 s/\\$//
6565 t bsnl
6566 s/["\\]/\\&/g
6567 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6568 D["\1"]=" \3"/p
6569 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6571 :bsnl
6572 s/["\\]/\\&/g
6573 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6574 D["\1"]=" \3\\\\\\n"\\/p
6575 t cont
6576 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6577 t cont
6579 :cont
6581 s/.\{148\}/&'"$ac_delim"'/g
6582 t clear
6583 :clear
6584 s/\\$//
6585 t bsnlc
6586 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6588 :bsnlc
6589 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6590 b cont
6591 ' <confdefs.h | sed '
6592 s/'"$ac_delim"'/"\\\
6593 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6596 for (key in D) D_is_set[key] = 1
6597 FS = "\a"
6599 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6600 line = \$ 0
6601 split(line, arg, " ")
6602 if (arg[1] == "#") {
6603 defundef = arg[2]
6604 mac1 = arg[3]
6605 } else {
6606 defundef = substr(arg[1], 2)
6607 mac1 = arg[2]
6609 split(mac1, mac2, "(") #)
6610 macro = mac2[1]
6611 prefix = substr(line, 1, index(line, defundef) - 1)
6612 if (D_is_set[macro]) {
6613 # Preserve the white space surrounding the "#".
6614 print prefix "define", macro P[macro] D[macro]
6615 next
6616 } else {
6617 # Replace #undef with comments. This is necessary, for example,
6618 # in the case of _POSIX_SOURCE, which is predefined and required
6619 # on some systems where configure will not decide to define it.
6620 if (defundef == "undef") {
6621 print "/*", prefix defundef, macro, "*/"
6622 next
6626 { print }
6627 _ACAWK
6628 _ACEOF
6629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6630 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6631 fi # test -n "$CONFIG_HEADERS"
6634 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6635 shift
6636 for ac_tag
6638 case $ac_tag in
6639 :[FHLC]) ac_mode=$ac_tag; continue;;
6640 esac
6641 case $ac_mode$ac_tag in
6642 :[FHL]*:*);;
6643 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6644 :[FH]-) ac_tag=-:-;;
6645 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6646 esac
6647 ac_save_IFS=$IFS
6648 IFS=:
6649 set x $ac_tag
6650 IFS=$ac_save_IFS
6651 shift
6652 ac_file=$1
6653 shift
6655 case $ac_mode in
6656 :L) ac_source=$1;;
6657 :[FH])
6658 ac_file_inputs=
6659 for ac_f
6661 case $ac_f in
6662 -) ac_f="$ac_tmp/stdin";;
6663 *) # Look for the file first in the build tree, then in the source tree
6664 # (if the path is not absolute). The absolute path cannot be DOS-style,
6665 # because $ac_f cannot contain `:'.
6666 test -f "$ac_f" ||
6667 case $ac_f in
6668 [\\/$]*) false;;
6669 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6670 esac ||
6671 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6672 esac
6673 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6674 as_fn_append ac_file_inputs " '$ac_f'"
6675 done
6677 # Let's still pretend it is `configure' which instantiates (i.e., don't
6678 # use $as_me), people would be surprised to read:
6679 # /* config.h. Generated by config.status. */
6680 configure_input='Generated from '`
6681 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6682 `' by configure.'
6683 if test x"$ac_file" != x-; then
6684 configure_input="$ac_file. $configure_input"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6686 $as_echo "$as_me: creating $ac_file" >&6;}
6688 # Neutralize special characters interpreted by sed in replacement strings.
6689 case $configure_input in #(
6690 *\&* | *\|* | *\\* )
6691 ac_sed_conf_input=`$as_echo "$configure_input" |
6692 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6693 *) ac_sed_conf_input=$configure_input;;
6694 esac
6696 case $ac_tag in
6697 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6699 esac
6701 esac
6703 ac_dir=`$as_dirname -- "$ac_file" ||
6704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6705 X"$ac_file" : 'X\(//\)[^/]' \| \
6706 X"$ac_file" : 'X\(//\)$' \| \
6707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6708 $as_echo X"$ac_file" |
6709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6710 s//\1/
6713 /^X\(\/\/\)[^/].*/{
6714 s//\1/
6717 /^X\(\/\/\)$/{
6718 s//\1/
6721 /^X\(\/\).*/{
6722 s//\1/
6725 s/.*/./; q'`
6726 as_dir="$ac_dir"; as_fn_mkdir_p
6727 ac_builddir=.
6729 case "$ac_dir" in
6730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6733 # A ".." for each directory in $ac_dir_suffix.
6734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6735 case $ac_top_builddir_sub in
6736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6738 esac ;;
6739 esac
6740 ac_abs_top_builddir=$ac_pwd
6741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6742 # for backward compatibility:
6743 ac_top_builddir=$ac_top_build_prefix
6745 case $srcdir in
6746 .) # We are building in place.
6747 ac_srcdir=.
6748 ac_top_srcdir=$ac_top_builddir_sub
6749 ac_abs_top_srcdir=$ac_pwd ;;
6750 [\\/]* | ?:[\\/]* ) # Absolute name.
6751 ac_srcdir=$srcdir$ac_dir_suffix;
6752 ac_top_srcdir=$srcdir
6753 ac_abs_top_srcdir=$srcdir ;;
6754 *) # Relative name.
6755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6756 ac_top_srcdir=$ac_top_build_prefix$srcdir
6757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6758 esac
6759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6762 case $ac_mode in
6765 # CONFIG_FILE
6768 case $INSTALL in
6769 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6770 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6771 esac
6772 ac_MKDIR_P=$MKDIR_P
6773 case $MKDIR_P in
6774 [\\/$]* | ?:[\\/]* ) ;;
6775 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6776 esac
6777 _ACEOF
6779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6780 # If the template does not know about datarootdir, expand it.
6781 # FIXME: This hack should be removed a few years after 2.60.
6782 ac_datarootdir_hack=; ac_datarootdir_seen=
6783 ac_sed_dataroot='
6784 /datarootdir/ {
6788 /@datadir@/p
6789 /@docdir@/p
6790 /@infodir@/p
6791 /@localedir@/p
6792 /@mandir@/p'
6793 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6794 *datarootdir*) ac_datarootdir_seen=yes;;
6795 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6797 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6798 _ACEOF
6799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6800 ac_datarootdir_hack='
6801 s&@datadir@&$datadir&g
6802 s&@docdir@&$docdir&g
6803 s&@infodir@&$infodir&g
6804 s&@localedir@&$localedir&g
6805 s&@mandir@&$mandir&g
6806 s&\\\${datarootdir}&$datarootdir&g' ;;
6807 esac
6808 _ACEOF
6810 # Neutralize VPATH when `$srcdir' = `.'.
6811 # Shell code in configure.ac might set extrasub.
6812 # FIXME: do we really want to maintain this feature?
6813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6814 ac_sed_extra="$ac_vpsub
6815 $extrasub
6816 _ACEOF
6817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6820 s|@configure_input@|$ac_sed_conf_input|;t t
6821 s&@top_builddir@&$ac_top_builddir_sub&;t t
6822 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6823 s&@srcdir@&$ac_srcdir&;t t
6824 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6825 s&@top_srcdir@&$ac_top_srcdir&;t t
6826 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6827 s&@builddir@&$ac_builddir&;t t
6828 s&@abs_builddir@&$ac_abs_builddir&;t t
6829 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6830 s&@INSTALL@&$ac_INSTALL&;t t
6831 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6832 $ac_datarootdir_hack
6834 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6835 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6837 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6838 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6839 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6840 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6842 which seems to be undefined. Please make sure it is defined" >&5
6843 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6844 which seems to be undefined. Please make sure it is defined" >&2;}
6846 rm -f "$ac_tmp/stdin"
6847 case $ac_file in
6848 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6849 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6850 esac \
6851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6855 # CONFIG_HEADER
6857 if test x"$ac_file" != x-; then
6859 $as_echo "/* $configure_input */" \
6860 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6861 } >"$ac_tmp/config.h" \
6862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6863 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6865 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6866 else
6867 rm -f "$ac_file"
6868 mv "$ac_tmp/config.h" "$ac_file" \
6869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6871 else
6872 $as_echo "/* $configure_input */" \
6873 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6874 || as_fn_error $? "could not create -" "$LINENO" 5
6876 # Compute "$ac_file"'s index in $config_headers.
6877 _am_arg="$ac_file"
6878 _am_stamp_count=1
6879 for _am_header in $config_headers :; do
6880 case $_am_header in
6881 $_am_arg | $_am_arg:* )
6882 break ;;
6884 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6885 esac
6886 done
6887 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6888 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6889 X"$_am_arg" : 'X\(//\)[^/]' \| \
6890 X"$_am_arg" : 'X\(//\)$' \| \
6891 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6892 $as_echo X"$_am_arg" |
6893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6894 s//\1/
6897 /^X\(\/\/\)[^/].*/{
6898 s//\1/
6901 /^X\(\/\/\)$/{
6902 s//\1/
6905 /^X\(\/\).*/{
6906 s//\1/
6909 s/.*/./; q'`/stamp-h$_am_stamp_count
6912 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6913 $as_echo "$as_me: executing $ac_file commands" >&6;}
6915 esac
6918 case $ac_file$ac_mode in
6919 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6920 # Older Autoconf quotes --file arguments for eval, but not when files
6921 # are listed without --file. Let's play safe and only enable the eval
6922 # if we detect the quoting.
6923 case $CONFIG_FILES in
6924 *\'*) eval set x "$CONFIG_FILES" ;;
6925 *) set x $CONFIG_FILES ;;
6926 esac
6927 shift
6928 for mf
6930 # Strip MF so we end up with the name of the file.
6931 mf=`echo "$mf" | sed -e 's/:.*$//'`
6932 # Check whether this is an Automake generated Makefile or not.
6933 # We used to match only the files named 'Makefile.in', but
6934 # some people rename them; so instead we look at the file content.
6935 # Grep'ing the first line is not enough: some people post-process
6936 # each Makefile.in and add a new line on top of each file to say so.
6937 # Grep'ing the whole file is not good either: AIX grep has a line
6938 # limit of 2048, but all sed's we know have understand at least 4000.
6939 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6940 dirpart=`$as_dirname -- "$mf" ||
6941 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6942 X"$mf" : 'X\(//\)[^/]' \| \
6943 X"$mf" : 'X\(//\)$' \| \
6944 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6945 $as_echo X"$mf" |
6946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6947 s//\1/
6950 /^X\(\/\/\)[^/].*/{
6951 s//\1/
6954 /^X\(\/\/\)$/{
6955 s//\1/
6958 /^X\(\/\).*/{
6959 s//\1/
6962 s/.*/./; q'`
6963 else
6964 continue
6966 # Extract the definition of DEPDIR, am__include, and am__quote
6967 # from the Makefile without running 'make'.
6968 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6969 test -z "$DEPDIR" && continue
6970 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6971 test -z "$am__include" && continue
6972 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6973 # Find all dependency output files, they are included files with
6974 # $(DEPDIR) in their names. We invoke sed twice because it is the
6975 # simplest approach to changing $(DEPDIR) to its actual value in the
6976 # expansion.
6977 for file in `sed -n "
6978 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6979 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6980 # Make sure the directory exists.
6981 test -f "$dirpart/$file" && continue
6982 fdir=`$as_dirname -- "$file" ||
6983 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6984 X"$file" : 'X\(//\)[^/]' \| \
6985 X"$file" : 'X\(//\)$' \| \
6986 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6987 $as_echo X"$file" |
6988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6989 s//\1/
6992 /^X\(\/\/\)[^/].*/{
6993 s//\1/
6996 /^X\(\/\/\)$/{
6997 s//\1/
7000 /^X\(\/\).*/{
7001 s//\1/
7004 s/.*/./; q'`
7005 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7006 # echo "creating $dirpart/$file"
7007 echo '# dummy' > "$dirpart/$file"
7008 done
7009 done
7012 "zconf.h":C) eval "$zconf_sh" zconf.h ;;
7014 esac
7015 done # for ac_tag
7018 as_fn_exit 0
7019 _ACEOF
7020 ac_clean_files=$ac_clean_files_save
7022 test $ac_write_fail = 0 ||
7023 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7026 # configure is writing to config.log, and then calls config.status.
7027 # config.status does its own redirection, appending to config.log.
7028 # Unfortunately, on DOS this fails, as config.log is still kept open
7029 # by configure, so config.status won't be able to write to it; its
7030 # output is simply discarded. So we exec the FD to /dev/null,
7031 # effectively closing config.log, so it can be properly (re)opened and
7032 # appended to by config.status. When coming back to configure, we
7033 # need to make the FD available again.
7034 if test "$no_create" != yes; then
7035 ac_cs_success=:
7036 ac_config_status_args=
7037 test "$silent" = yes &&
7038 ac_config_status_args="$ac_config_status_args --quiet"
7039 exec 5>/dev/null
7040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7041 exec 5>>config.log
7042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7043 # would make configure fail if this is the last instruction.
7044 $ac_cs_success || as_fn_exit 1
7046 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7048 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}