2004-03-04 Eric Christopher <echristo@redhat.com>
[official-gcc.git] / fastjar / configure
blobb4417364cb0a6434229b49e3a2c707de9195d02b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="jartool.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RM CP CHMOD MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fastjar_warn_cflags CPP EGREP ZLIBS ZDEPS ZINCS gcc_version LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837 _ACEOF
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --disable-dependency-tracking Speeds up one-time builds
848 --enable-dependency-tracking Do not reject slow dependency extractors
849 --enable-maintainer-mode enable make rules and dependencies not useful
850 (and sometimes confusing) to the casual installer
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-system-zlib use installed libz
857 Some influential environment variables:
858 CC C compiler command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861 nonstandard directory <lib dir>
862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863 headers in a nonstandard directory <include dir>
864 CPP C preprocessor
866 Use these variables to override the choices made by `configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
869 _ACEOF
872 if test "$ac_init_help" = "recursive"; then
873 # If there are subdirs, report their specific --help.
874 ac_popdir=`pwd`
875 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876 test -d $ac_dir || continue
877 ac_builddir=.
879 if test "$ac_dir" != .; then
880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881 # A "../" for each directory in $ac_dir_suffix.
882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883 else
884 ac_dir_suffix= ac_top_builddir=
887 case $srcdir in
888 .) # No --srcdir option. We are building in place.
889 ac_srcdir=.
890 if test -z "$ac_top_builddir"; then
891 ac_top_srcdir=.
892 else
893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894 fi ;;
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
898 *) # Relative path.
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 esac
902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
903 # absolute.
904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909 cd $ac_dir
910 # Check for guested configure; otherwise get Cygnus style configure.
911 if test -f $ac_srcdir/configure.gnu; then
912 echo
913 $SHELL $ac_srcdir/configure.gnu --help=recursive
914 elif test -f $ac_srcdir/configure; then
915 echo
916 $SHELL $ac_srcdir/configure --help=recursive
917 elif test -f $ac_srcdir/configure.ac ||
918 test -f $ac_srcdir/configure.in; then
919 echo
920 $ac_configure --help
921 else
922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924 cd $ac_popdir
925 done
928 test -n "$ac_init_help" && exit 0
929 if $ac_init_version; then
930 cat <<\_ACEOF
932 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
933 Free Software Foundation, Inc.
934 This configure script is free software; the Free Software Foundation
935 gives unlimited permission to copy, distribute and modify it.
936 _ACEOF
937 exit 0
939 exec 5>config.log
940 cat >&5 <<_ACEOF
941 This file contains any messages produced by compilers while
942 running configure, to aid debugging if configure makes a mistake.
944 It was created by $as_me, which was
945 generated by GNU Autoconf 2.57. Invocation command line was
947 $ $0 $@
949 _ACEOF
951 cat <<_ASUNAME
952 ## --------- ##
953 ## Platform. ##
954 ## --------- ##
956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973 _ASUNAME
975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
976 for as_dir in $PATH
978 IFS=$as_save_IFS
979 test -z "$as_dir" && as_dir=.
980 echo "PATH: $as_dir"
981 done
983 } >&5
985 cat >&5 <<_ACEOF
988 ## ----------- ##
989 ## Core tests. ##
990 ## ----------- ##
992 _ACEOF
995 # Keep a trace of the command line.
996 # Strip out --no-create and --no-recursion so they do not pile up.
997 # Strip out --silent because we don't want to record it for future runs.
998 # Also quote any args containing shell meta-characters.
999 # Make two passes to allow for proper duplicate-argument suppression.
1000 ac_configure_args=
1001 ac_configure_args0=
1002 ac_configure_args1=
1003 ac_sep=
1004 ac_must_keep_next=false
1005 for ac_pass in 1 2
1007 for ac_arg
1009 case $ac_arg in
1010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1013 continue ;;
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 esac
1017 case $ac_pass in
1018 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1021 if test $ac_must_keep_next = true; then
1022 ac_must_keep_next=false # Got value, back to normal.
1023 else
1024 case $ac_arg in
1025 *=* | --config-cache | -C | -disable-* | --disable-* \
1026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1028 | -with-* | --with-* | -without-* | --without-* | --x)
1029 case "$ac_configure_args0 " in
1030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1031 esac
1033 -* ) ac_must_keep_next=true ;;
1034 esac
1036 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 # Get rid of the leading space.
1038 ac_sep=" "
1040 esac
1041 done
1042 done
1043 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1044 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1054 echo
1056 cat <<\_ASBOX
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1060 _ASBOX
1061 echo
1062 # The following way of writing the cache mishandles newlines in values,
1064 (set) 2>&1 |
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 *ac_space=\ *)
1067 sed -n \
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072 sed -n \
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 esac;
1077 echo
1079 cat <<\_ASBOX
1080 ## ----------------- ##
1081 ## Output variables. ##
1082 ## ----------------- ##
1083 _ASBOX
1084 echo
1085 for ac_var in $ac_subst_vars
1087 eval ac_val=$`echo $ac_var`
1088 echo "$ac_var='"'"'$ac_val'"'"'"
1089 done | sort
1090 echo
1092 if test -n "$ac_subst_files"; then
1093 cat <<\_ASBOX
1094 ## ------------- ##
1095 ## Output files. ##
1096 ## ------------- ##
1097 _ASBOX
1098 echo
1099 for ac_var in $ac_subst_files
1101 eval ac_val=$`echo $ac_var`
1102 echo "$ac_var='"'"'$ac_val'"'"'"
1103 done | sort
1104 echo
1107 if test -s confdefs.h; then
1108 cat <<\_ASBOX
1109 ## ----------- ##
1110 ## confdefs.h. ##
1111 ## ----------- ##
1112 _ASBOX
1113 echo
1114 sed "/^$/d" confdefs.h | sort
1115 echo
1117 test "$ac_signal" != 0 &&
1118 echo "$as_me: caught signal $ac_signal"
1119 echo "$as_me: exit $exit_status"
1120 } >&5
1121 rm -f core core.* *.core &&
1122 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1123 exit $exit_status
1125 for ac_signal in 1 2 13 15; do
1126 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1127 done
1128 ac_signal=0
1130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1131 rm -rf conftest* confdefs.h
1132 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1133 echo >confdefs.h
1135 # Predefined preprocessor variables.
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_NAME "$PACKAGE_NAME"
1139 _ACEOF
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1144 _ACEOF
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_STRING "$PACKAGE_STRING"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1159 _ACEOF
1162 # Let the site file select an alternate cache file if it wants to.
1163 # Prefer explicitly selected file to automatically selected ones.
1164 if test -z "$CONFIG_SITE"; then
1165 if test "x$prefix" != xNONE; then
1166 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1167 else
1168 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1171 for ac_site_file in $CONFIG_SITE; do
1172 if test -r "$ac_site_file"; then
1173 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174 echo "$as_me: loading site script $ac_site_file" >&6;}
1175 sed 's/^/| /' "$ac_site_file" >&5
1176 . "$ac_site_file"
1178 done
1180 if test -r "$cache_file"; then
1181 # Some versions of bash will fail to source /dev/null (special
1182 # files actually), so we avoid doing that.
1183 if test -f "$cache_file"; then
1184 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185 echo "$as_me: loading cache $cache_file" >&6;}
1186 case $cache_file in
1187 [\\/]* | ?:[\\/]* ) . $cache_file;;
1188 *) . ./$cache_file;;
1189 esac
1191 else
1192 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193 echo "$as_me: creating cache $cache_file" >&6;}
1194 >$cache_file
1197 # Check that the precious variables saved in the cache have kept the same
1198 # value.
1199 ac_cache_corrupted=false
1200 for ac_var in `(set) 2>&1 |
1201 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203 eval ac_new_set=\$ac_env_${ac_var}_set
1204 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205 eval ac_new_val="\$ac_env_${ac_var}_value"
1206 case $ac_old_set,$ac_new_set in
1207 set,)
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1211 ,set)
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1215 ,);;
1217 if test "x$ac_old_val" != "x$ac_new_val"; then
1218 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1221 echo "$as_me: former value: $ac_old_val" >&2;}
1222 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1223 echo "$as_me: current value: $ac_new_val" >&2;}
1224 ac_cache_corrupted=:
1225 fi;;
1226 esac
1227 # Pass precious variables to config.status.
1228 if test "$ac_new_set" = set; then
1229 case $ac_new_val in
1230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 *) ac_arg=$ac_var=$ac_new_val ;;
1233 esac
1234 case " $ac_configure_args " in
1235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1236 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1237 esac
1239 done
1240 if $ac_cache_corrupted; then
1241 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245 { (exit 1); exit 1; }; }
1248 ac_ext=c
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272 am__api_version="1.7"
1273 ac_aux_dir=
1274 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1275 if test -f $ac_dir/install-sh; then
1276 ac_aux_dir=$ac_dir
1277 ac_install_sh="$ac_aux_dir/install-sh -c"
1278 break
1279 elif test -f $ac_dir/install.sh; then
1280 ac_aux_dir=$ac_dir
1281 ac_install_sh="$ac_aux_dir/install.sh -c"
1282 break
1283 elif test -f $ac_dir/shtool; then
1284 ac_aux_dir=$ac_dir
1285 ac_install_sh="$ac_aux_dir/shtool install -c"
1286 break
1288 done
1289 if test -z "$ac_aux_dir"; then
1290 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1292 { (exit 1); exit 1; }; }
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298 # Find a good install program. We prefer a C program (faster),
1299 # so one script is as good as another. But avoid the broken or
1300 # incompatible versions:
1301 # SysV /etc/install, /usr/sbin/install
1302 # SunOS /usr/etc/install
1303 # IRIX /sbin/install
1304 # AIX /bin/install
1305 # AmigaOS /C/install, which installs bootblocks on floppy discs
1306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1309 # ./install, which can be erroneously created by make from ./install.sh.
1310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1312 if test -z "$INSTALL"; then
1313 if test "${ac_cv_path_install+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1317 for as_dir in $PATH
1319 IFS=$as_save_IFS
1320 test -z "$as_dir" && as_dir=.
1321 # Account for people who put trailing slashes in PATH elements.
1322 case $as_dir/ in
1323 ./ | .// | /cC/* | \
1324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1325 /usr/ucb/* ) ;;
1327 # OSF1 and SCO ODT 3.0 have their own names for install.
1328 # Don't use installbsd from OSF since it installs stuff as root
1329 # by default.
1330 for ac_prog in ginstall scoinst install; do
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1333 if test $ac_prog = install &&
1334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1335 # AIX install. It has an incompatible calling convention.
1337 elif test $ac_prog = install &&
1338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1339 # program-specific install script used by HP pwplus--don't use.
1341 else
1342 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1343 break 3
1346 done
1347 done
1349 esac
1350 done
1354 if test "${ac_cv_path_install+set}" = set; then
1355 INSTALL=$ac_cv_path_install
1356 else
1357 # As a last resort, use the slow shell script. We don't cache a
1358 # path for INSTALL within a source directory, because that will
1359 # break other packages using the cache if that directory is
1360 # removed, or if the path is relative.
1361 INSTALL=$ac_install_sh
1364 echo "$as_me:$LINENO: result: $INSTALL" >&5
1365 echo "${ECHO_T}$INSTALL" >&6
1367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1368 # It thinks the first close brace ends the variable substitution.
1369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1375 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1376 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1377 # Just in case
1378 sleep 1
1379 echo timestamp > conftest.file
1380 # Do `set' in a subshell so we don't clobber the current shell's
1381 # arguments. Must try -L first in case configure is actually a
1382 # symlink; some systems play weird games with the mod time of symlinks
1383 # (eg FreeBSD returns the mod time of the symlink's containing
1384 # directory).
1385 if (
1386 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1387 if test "$*" = "X"; then
1388 # -L didn't work.
1389 set X `ls -t $srcdir/configure conftest.file`
1391 rm -f conftest.file
1392 if test "$*" != "X $srcdir/configure conftest.file" \
1393 && test "$*" != "X conftest.file $srcdir/configure"; then
1395 # If neither matched, then we have a broken ls. This can happen
1396 # if, for instance, CONFIG_SHELL is bash and it inherits a
1397 # broken ls alias from the environment. This has actually
1398 # happened. Such a system could not be considered "sane".
1399 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1400 alias in your environment" >&5
1401 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1402 alias in your environment" >&2;}
1403 { (exit 1); exit 1; }; }
1406 test "$2" = conftest.file
1408 then
1409 # Ok.
1411 else
1412 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1413 Check your system clock" >&5
1414 echo "$as_me: error: newly created file is older than distributed files!
1415 Check your system clock" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: result: yes" >&5
1419 echo "${ECHO_T}yes" >&6
1420 test "$program_prefix" != NONE &&
1421 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1422 # Use a double $ so make ignores it.
1423 test "$program_suffix" != NONE &&
1424 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1425 # Double any \ or $. echo might interpret backslashes.
1426 # By default was `s,x,x', remove it if useless.
1427 cat <<\_ACEOF >conftest.sed
1428 s/[\\$]/&&/g;s/;s,x,x,$//
1429 _ACEOF
1430 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1431 rm conftest.sed
1434 # expand $ac_aux_dir to an absolute path
1435 am_aux_dir=`cd $ac_aux_dir && pwd`
1437 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1438 # Use eval to expand $SHELL
1439 if eval "$MISSING --run true"; then
1440 am_missing_run="$MISSING --run "
1441 else
1442 am_missing_run=
1443 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1444 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1447 for ac_prog in gawk mawk nawk awk
1449 # Extract the first word of "$ac_prog", so it can be a program name with args.
1450 set dummy $ac_prog; ac_word=$2
1451 echo "$as_me:$LINENO: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_AWK+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456 if test -n "$AWK"; then
1457 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1458 else
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 for as_dir in $PATH
1462 IFS=$as_save_IFS
1463 test -z "$as_dir" && as_dir=.
1464 for ac_exec_ext in '' $ac_executable_extensions; do
1465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1466 ac_cv_prog_AWK="$ac_prog"
1467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468 break 2
1470 done
1471 done
1475 AWK=$ac_cv_prog_AWK
1476 if test -n "$AWK"; then
1477 echo "$as_me:$LINENO: result: $AWK" >&5
1478 echo "${ECHO_T}$AWK" >&6
1479 else
1480 echo "$as_me:$LINENO: result: no" >&5
1481 echo "${ECHO_T}no" >&6
1484 test -n "$AWK" && break
1485 done
1487 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1488 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1489 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1490 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 else
1493 cat >conftest.make <<\_ACEOF
1494 all:
1495 @echo 'ac_maketemp="$(MAKE)"'
1496 _ACEOF
1497 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1498 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1499 if test -n "$ac_maketemp"; then
1500 eval ac_cv_prog_make_${ac_make}_set=yes
1501 else
1502 eval ac_cv_prog_make_${ac_make}_set=no
1504 rm -f conftest.make
1506 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1507 echo "$as_me:$LINENO: result: yes" >&5
1508 echo "${ECHO_T}yes" >&6
1509 SET_MAKE=
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 SET_MAKE="MAKE=${MAKE-make}"
1516 rm -rf .tst 2>/dev/null
1517 mkdir .tst 2>/dev/null
1518 if test -d .tst; then
1519 am__leading_dot=.
1520 else
1521 am__leading_dot=_
1523 rmdir .tst 2>/dev/null
1525 # test to see if srcdir already configured
1526 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1527 test -f $srcdir/config.status; then
1528 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1529 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1530 { (exit 1); exit 1; }; }
1533 # test whether we have cygpath
1534 if test -z "$CYGPATH_W"; then
1535 if (cygpath --version) >/dev/null 2>/dev/null; then
1536 CYGPATH_W='cygpath -w'
1537 else
1538 CYGPATH_W=echo
1543 # Define the identity of the package.
1544 PACKAGE=fastjar
1545 VERSION=0.92-gcc
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE "$PACKAGE"
1550 _ACEOF
1553 cat >>confdefs.h <<_ACEOF
1554 #define VERSION "$VERSION"
1555 _ACEOF
1557 # Some tools Automake needs.
1559 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1562 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1565 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1568 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1571 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1574 AMTAR=${AMTAR-"${am_missing_run}tar"}
1576 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1578 # Installed binaries are usually stripped using `strip' when the user
1579 # run `make install-strip'. However `strip' might not be the right
1580 # tool to use in cross-compilation environments, therefore Automake
1581 # will honor the `STRIP' environment variable to overrule this program.
1582 if test "$cross_compiling" != no; then
1583 if test -n "$ac_tool_prefix"; then
1584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}strip; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_STRIP+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 if test -n "$STRIP"; then
1592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
1605 done
1606 done
1610 STRIP=$ac_cv_prog_STRIP
1611 if test -n "$STRIP"; then
1612 echo "$as_me:$LINENO: result: $STRIP" >&5
1613 echo "${ECHO_T}$STRIP" >&6
1614 else
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1620 if test -z "$ac_cv_prog_STRIP"; then
1621 ac_ct_STRIP=$STRIP
1622 # Extract the first word of "strip", so it can be a program name with args.
1623 set dummy strip; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$ac_ct_STRIP"; then
1630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_ac_ct_STRIP="strip"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1643 done
1644 done
1646 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1649 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1650 if test -n "$ac_ct_STRIP"; then
1651 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1652 echo "${ECHO_T}$ac_ct_STRIP" >&6
1653 else
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1658 STRIP=$ac_ct_STRIP
1659 else
1660 STRIP="$ac_cv_prog_STRIP"
1664 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1666 # We need awk for the "check" target. The system "awk" is bad on
1667 # some platforms.
1671 ac_config_headers="$ac_config_headers config.h"
1674 ac_ext=c
1675 ac_cpp='$CPP $CPPFLAGS'
1676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$CC"; then
1688 ac_cv_prog_CC="$CC" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1706 CC=$ac_cv_prog_CC
1707 if test -n "$CC"; then
1708 echo "$as_me:$LINENO: result: $CC" >&5
1709 echo "${ECHO_T}$CC" >&6
1710 else
1711 echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1716 if test -z "$ac_cv_prog_CC"; then
1717 ac_ct_CC=$CC
1718 # Extract the first word of "gcc", so it can be a program name with args.
1719 set dummy gcc; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 if test -n "$ac_ct_CC"; then
1726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_ac_ct_CC="gcc"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1739 done
1740 done
1744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1745 if test -n "$ac_ct_CC"; then
1746 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1747 echo "${ECHO_T}$ac_ct_CC" >&6
1748 else
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1753 CC=$ac_ct_CC
1754 else
1755 CC="$ac_cv_prog_CC"
1758 if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1761 set dummy ${ac_tool_prefix}cc; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1769 else
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_CC="${ac_tool_prefix}cc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1781 done
1782 done
1786 CC=$ac_cv_prog_CC
1787 if test -n "$CC"; then
1788 echo "$as_me:$LINENO: result: $CC" >&5
1789 echo "${ECHO_T}$CC" >&6
1790 else
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1796 if test -z "$ac_cv_prog_CC"; then
1797 ac_ct_CC=$CC
1798 # Extract the first word of "cc", so it can be a program name with args.
1799 set dummy cc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 if test -n "$ac_ct_CC"; then
1806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_ac_ct_CC="cc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1819 done
1820 done
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1828 else
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1833 CC=$ac_ct_CC
1834 else
1835 CC="$ac_cv_prog_CC"
1839 if test -z "$CC"; then
1840 # Extract the first word of "cc", so it can be a program name with args.
1841 set dummy cc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC="$CC" # Let the user override the test.
1849 else
1850 ac_prog_rejected=no
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1859 ac_prog_rejected=yes
1860 continue
1862 ac_cv_prog_CC="cc"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1869 if test $ac_prog_rejected = yes; then
1870 # We found a bogon in the path, so make sure we never use it.
1871 set dummy $ac_cv_prog_CC
1872 shift
1873 if test $# != 0; then
1874 # We chose a different compiler from the bogus one.
1875 # However, it has the same basename, so the bogon will be chosen
1876 # first if we set CC to just the basename; use the full file name.
1877 shift
1878 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 for ac_prog in cl
1897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1918 done
1919 done
1923 CC=$ac_cv_prog_CC
1924 if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926 echo "${ECHO_T}$CC" >&6
1927 else
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1932 test -n "$CC" && break
1933 done
1935 if test -z "$CC"; then
1936 ac_ct_CC=$CC
1937 for ac_prog in cl
1939 # Extract the first word of "$ac_prog", so it can be a program name with args.
1940 set dummy $ac_prog; ac_word=$2
1941 echo "$as_me:$LINENO: checking for $ac_word" >&5
1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 if test -n "$ac_ct_CC"; then
1947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948 else
1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 for as_dir in $PATH
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1956 ac_cv_prog_ac_ct_CC="$ac_prog"
1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 break 2
1960 done
1961 done
1965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1966 if test -n "$ac_ct_CC"; then
1967 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1968 echo "${ECHO_T}$ac_ct_CC" >&6
1969 else
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1974 test -n "$ac_ct_CC" && break
1975 done
1977 CC=$ac_ct_CC
1983 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: no acceptable C compiler found in \$PATH
1986 See \`config.log' for more details." >&2;}
1987 { (exit 1); exit 1; }; }
1989 # Provide some information about the compiler.
1990 echo "$as_me:$LINENO:" \
1991 "checking for C compiler version" >&5
1992 ac_compiler=`set X $ac_compile; echo $2`
1993 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1994 (eval $ac_compiler --version </dev/null >&5) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1999 (eval $ac_compiler -v </dev/null >&5) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2004 (eval $ac_compiler -V </dev/null >&5) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line $LINENO "configure"
2011 /* confdefs.h. */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2018 main ()
2022 return 0;
2024 _ACEOF
2025 ac_clean_files_save=$ac_clean_files
2026 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2027 # Try to create an executable without -o first, disregard a.out.
2028 # It will help us diagnose broken compilers, and finding out an intuition
2029 # of exeext.
2030 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2031 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2032 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034 (eval $ac_link_default) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; then
2038 # Find the output, starting from the most likely. This scheme is
2039 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2040 # resort.
2042 # Be careful to initialize this variable, since it used to be cached.
2043 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044 ac_cv_exeext=
2045 # b.out is created by i960 compilers.
2046 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2048 test -f "$ac_file" || continue
2049 case $ac_file in
2050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2052 conftest.$ac_ext )
2053 # This is the source file.
2055 [ab].out )
2056 # We found the default executable, but exeext='' is most
2057 # certainly right.
2058 break;;
2059 *.* )
2060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061 # FIXME: I believe we export ac_cv_exeext for Libtool,
2062 # but it would be cool to find out if it's true. Does anybody
2063 # maintain Libtool? --akim.
2064 export ac_cv_exeext
2065 break;;
2067 break;;
2068 esac
2069 done
2070 else
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: C compiler cannot create executables
2077 See \`config.log' for more details." >&2;}
2078 { (exit 77); exit 77; }; }
2081 ac_exeext=$ac_cv_exeext
2082 echo "$as_me:$LINENO: result: $ac_file" >&5
2083 echo "${ECHO_T}$ac_file" >&6
2085 # Check the compiler produces executables we can run. If not, either
2086 # the compiler is broken, or we cross compile.
2087 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2088 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2089 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2090 # If not cross compiling, check that we can run a simple program.
2091 if test "$cross_compiling" != yes; then
2092 if { ac_try='./$ac_file'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 cross_compiling=no
2099 else
2100 if test "$cross_compiling" = maybe; then
2101 cross_compiling=yes
2102 else
2103 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2104 If you meant to cross compile, use \`--host'.
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: cannot run C compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2113 echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6
2116 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2117 ac_clean_files=$ac_clean_files_save
2118 # Check the compiler produces executables we can run. If not, either
2119 # the compiler is broken, or we cross compile.
2120 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123 echo "${ECHO_T}$cross_compiling" >&6
2125 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128 (eval $ac_link) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; then
2132 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2134 # work properly (i.e., refer to `conftest.exe'), while it won't with
2135 # `rm'.
2136 for ac_file in conftest.exe conftest conftest.*; do
2137 test -f "$ac_file" || continue
2138 case $ac_file in
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2140 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141 export ac_cv_exeext
2142 break;;
2143 * ) break;;
2144 esac
2145 done
2146 else
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2150 See \`config.log' for more details." >&2;}
2151 { (exit 1); exit 1; }; }
2154 rm -f conftest$ac_cv_exeext
2155 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2156 echo "${ECHO_T}$ac_cv_exeext" >&6
2158 rm -f conftest.$ac_ext
2159 EXEEXT=$ac_cv_exeext
2160 ac_exeext=$EXEEXT
2161 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2162 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2163 if test "${ac_cv_objext+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 cat >conftest.$ac_ext <<_ACEOF
2167 #line $LINENO "configure"
2168 /* confdefs.h. */
2169 _ACEOF
2170 cat confdefs.h >>conftest.$ac_ext
2171 cat >>conftest.$ac_ext <<_ACEOF
2172 /* end confdefs.h. */
2175 main ()
2179 return 0;
2181 _ACEOF
2182 rm -f conftest.o conftest.obj
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189 case $ac_file in
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2192 break;;
2193 esac
2194 done
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&2;}
2203 { (exit 1); exit 1; }; }
2206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2208 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2209 echo "${ECHO_T}$ac_cv_objext" >&6
2210 OBJEXT=$ac_cv_objext
2211 ac_objext=$OBJEXT
2212 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2213 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2214 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 /* confdefs.h. */
2220 _ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h. */
2226 main ()
2228 #ifndef __GNUC__
2229 choke me
2230 #endif
2233 return 0;
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_compiler_gnu=yes
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 ac_compiler_gnu=no
2255 rm -f conftest.$ac_objext conftest.$ac_ext
2256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2259 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2260 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2261 GCC=`test $ac_compiler_gnu = yes && echo yes`
2262 ac_test_CFLAGS=${CFLAGS+set}
2263 ac_save_CFLAGS=$CFLAGS
2264 CFLAGS="-g"
2265 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2266 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2267 if test "${ac_cv_prog_cc_g+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 /* confdefs.h. */
2273 _ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2279 main ()
2283 return 0;
2285 _ACEOF
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 (eval $ac_try) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cc_g=yes
2299 else
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2303 ac_cv_prog_cc_g=no
2305 rm -f conftest.$ac_objext conftest.$ac_ext
2307 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2308 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2309 if test "$ac_test_CFLAGS" = set; then
2310 CFLAGS=$ac_save_CFLAGS
2311 elif test $ac_cv_prog_cc_g = yes; then
2312 if test "$GCC" = yes; then
2313 CFLAGS="-g -O2"
2314 else
2315 CFLAGS="-g"
2317 else
2318 if test "$GCC" = yes; then
2319 CFLAGS="-O2"
2320 else
2321 CFLAGS=
2324 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2325 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2326 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 ac_cv_prog_cc_stdc=no
2330 ac_save_CC=$CC
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338 #include <stdarg.h>
2339 #include <stdio.h>
2340 #include <sys/types.h>
2341 #include <sys/stat.h>
2342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2343 struct buf { int x; };
2344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2345 static char *e (p, i)
2346 char **p;
2347 int i;
2349 return p[i];
2351 static char *f (char * (*g) (char **, int), char **p, ...)
2353 char *s;
2354 va_list v;
2355 va_start (v,p);
2356 s = g (p, va_arg (v,int));
2357 va_end (v);
2358 return s;
2360 int test (int i, double x);
2361 struct s1 {int (*f) (int a);};
2362 struct s2 {int (*f) (double a);};
2363 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2364 int argc;
2365 char **argv;
2367 main ()
2369 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2371 return 0;
2373 _ACEOF
2374 # Don't try gcc -ansi; that turns off useful extensions and
2375 # breaks some systems' header files.
2376 # AIX -qlanglvl=ansi
2377 # Ultrix and OSF/1 -std1
2378 # HP-UX 10.20 and later -Ae
2379 # HP-UX older versions -Aa -D_HPUX_SOURCE
2380 # SVR4 -Xc -D__EXTENSIONS__
2381 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2383 CC="$ac_save_CC $ac_arg"
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_stdc=$ac_arg
2397 break
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.$ac_objext
2404 done
2405 rm -f conftest.$ac_ext conftest.$ac_objext
2406 CC=$ac_save_CC
2410 case "x$ac_cv_prog_cc_stdc" in
2411 x|xno)
2412 echo "$as_me:$LINENO: result: none needed" >&5
2413 echo "${ECHO_T}none needed" >&6 ;;
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2417 CC="$CC $ac_cv_prog_cc_stdc" ;;
2418 esac
2420 # Some people use a C++ compiler to compile C. Since we use `exit',
2421 # in C++ we need to declare it. In case someone uses the same compiler
2422 # for both compiling C and C++ we need to have the C++ compiler decide
2423 # the declaration of exit, since it's the most demanding environment.
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #ifndef __cplusplus
2426 choke me
2427 #endif
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 for ac_declaration in \
2443 '#include <stdlib.h>' \
2444 'extern "C" void std::exit (int) throw (); using std::exit;' \
2445 'extern "C" void std::exit (int); using std::exit;' \
2446 'extern "C" void exit (int) throw ();' \
2447 'extern "C" void exit (int);' \
2448 'void exit (int);'
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line $LINENO "configure"
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 #include <stdlib.h>
2458 $ac_declaration
2460 main ()
2462 exit (42);
2464 return 0;
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 continue
2486 rm -f conftest.$ac_objext conftest.$ac_ext
2487 cat >conftest.$ac_ext <<_ACEOF
2488 #line $LINENO "configure"
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494 $ac_declaration
2496 main ()
2498 exit (42);
2500 return 0;
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 break
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2521 rm -f conftest.$ac_objext conftest.$ac_ext
2522 done
2523 rm -f conftest*
2524 if test -n "$ac_declaration"; then
2525 echo '#ifdef __cplusplus' >>confdefs.h
2526 echo $ac_declaration >>confdefs.h
2527 echo '#endif' >>confdefs.h
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.$ac_objext conftest.$ac_ext
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 DEPDIR="${am__leading_dot}deps"
2543 ac_config_commands="$ac_config_commands depfiles"
2546 am_make=${MAKE-make}
2547 cat > confinc << 'END'
2548 am__doit:
2549 @echo done
2550 .PHONY: am__doit
2552 # If we don't find an include directive, just comment out the code.
2553 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2554 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2555 am__include="#"
2556 am__quote=
2557 _am_result=none
2558 # First try GNU make style include.
2559 echo "include confinc" > confmf
2560 # We grep out `Entering directory' and `Leaving directory'
2561 # messages which can occur if `w' ends up in MAKEFLAGS.
2562 # In particular we don't look at `^make:' because GNU make might
2563 # be invoked under some other name (usually "gmake"), in which
2564 # case it prints its new name instead of `make'.
2565 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2566 am__include=include
2567 am__quote=
2568 _am_result=GNU
2570 # Now try BSD make style include.
2571 if test "$am__include" = "#"; then
2572 echo '.include "confinc"' > confmf
2573 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2574 am__include=.include
2575 am__quote="\""
2576 _am_result=BSD
2581 echo "$as_me:$LINENO: result: $_am_result" >&5
2582 echo "${ECHO_T}$_am_result" >&6
2583 rm -f confinc confmf
2585 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2586 if test "${enable_dependency_tracking+set}" = set; then
2587 enableval="$enable_dependency_tracking"
2590 if test "x$enable_dependency_tracking" != xno; then
2591 am_depcomp="$ac_aux_dir/depcomp"
2592 AMDEPBACKSLASH='\'
2596 if test "x$enable_dependency_tracking" != xno; then
2597 AMDEP_TRUE=
2598 AMDEP_FALSE='#'
2599 else
2600 AMDEP_TRUE='#'
2601 AMDEP_FALSE=
2607 depcc="$CC" am_compiler_list=
2609 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2610 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2611 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2615 # We make a subdir and do the tests there. Otherwise we can end up
2616 # making bogus files that we don't know about and never remove. For
2617 # instance it was reported that on HP-UX the gcc test will end up
2618 # making a dummy file named `D' -- because `-MD' means `put the output
2619 # in D'.
2620 mkdir conftest.dir
2621 # Copy depcomp to subdir because otherwise we won't find it if we're
2622 # using a relative directory.
2623 cp "$am_depcomp" conftest.dir
2624 cd conftest.dir
2625 # We will build objects and dependencies in a subdirectory because
2626 # it helps to detect inapplicable dependency modes. For instance
2627 # both Tru64's cc and ICC support -MD to output dependencies as a
2628 # side effect of compilation, but ICC will put the dependencies in
2629 # the current directory while Tru64 will put them in the object
2630 # directory.
2631 mkdir sub
2633 am_cv_CC_dependencies_compiler_type=none
2634 if test "$am_compiler_list" = ""; then
2635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2637 for depmode in $am_compiler_list; do
2638 # Setup a source with many dependencies, because some compilers
2639 # like to wrap large dependency lists on column 80 (with \), and
2640 # we should not choose a depcomp mode which is confused by this.
2642 # We need to recreate these files for each test, as the compiler may
2643 # overwrite some of them when testing with obscure command lines.
2644 # This happens at least with the AIX C compiler.
2645 : > sub/conftest.c
2646 for i in 1 2 3 4 5 6; do
2647 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2648 : > sub/conftst$i.h
2649 done
2650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2652 case $depmode in
2653 nosideeffect)
2654 # after this tag, mechanisms are not by side-effect, so they'll
2655 # only be used when explicitly requested
2656 if test "x$enable_dependency_tracking" = xyes; then
2657 continue
2658 else
2659 break
2662 none) break ;;
2663 esac
2664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2665 # mode. It turns out that the SunPro C++ compiler does not properly
2666 # handle `-M -o', and we need to detect this.
2667 if depmode=$depmode \
2668 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2670 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2671 >/dev/null 2>conftest.err &&
2672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2673 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2675 # icc doesn't choke on unknown options, it will just issue warnings
2676 # (even with -Werror). So we grep stderr for any message
2677 # that says an option was ignored.
2678 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2679 am_cv_CC_dependencies_compiler_type=$depmode
2680 break
2683 done
2685 cd ..
2686 rm -rf conftest.dir
2687 else
2688 am_cv_CC_dependencies_compiler_type=none
2692 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2693 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2694 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2699 test "x$enable_dependency_tracking" != xno \
2700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2701 am__fastdepCC_TRUE=
2702 am__fastdepCC_FALSE='#'
2703 else
2704 am__fastdepCC_TRUE='#'
2705 am__fastdepCC_FALSE=
2709 # Find a good install program. We prefer a C program (faster),
2710 # so one script is as good as another. But avoid the broken or
2711 # incompatible versions:
2712 # SysV /etc/install, /usr/sbin/install
2713 # SunOS /usr/etc/install
2714 # IRIX /sbin/install
2715 # AIX /bin/install
2716 # AmigaOS /C/install, which installs bootblocks on floppy discs
2717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2720 # ./install, which can be erroneously created by make from ./install.sh.
2721 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2722 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2723 if test -z "$INSTALL"; then
2724 if test "${ac_cv_path_install+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 # Account for people who put trailing slashes in PATH elements.
2733 case $as_dir/ in
2734 ./ | .// | /cC/* | \
2735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2736 /usr/ucb/* ) ;;
2738 # OSF1 and SCO ODT 3.0 have their own names for install.
2739 # Don't use installbsd from OSF since it installs stuff as root
2740 # by default.
2741 for ac_prog in ginstall scoinst install; do
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2744 if test $ac_prog = install &&
2745 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2746 # AIX install. It has an incompatible calling convention.
2748 elif test $ac_prog = install &&
2749 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2750 # program-specific install script used by HP pwplus--don't use.
2752 else
2753 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2754 break 3
2757 done
2758 done
2760 esac
2761 done
2765 if test "${ac_cv_path_install+set}" = set; then
2766 INSTALL=$ac_cv_path_install
2767 else
2768 # As a last resort, use the slow shell script. We don't cache a
2769 # path for INSTALL within a source directory, because that will
2770 # break other packages using the cache if that directory is
2771 # removed, or if the path is relative.
2772 INSTALL=$ac_install_sh
2775 echo "$as_me:$LINENO: result: $INSTALL" >&5
2776 echo "${ECHO_T}$INSTALL" >&6
2778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2779 # It thinks the first close brace ends the variable substitution.
2780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786 # Extract the first word of "rm", so it can be a program name with args.
2787 set dummy rm; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_path_RM+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 case $RM in
2794 [\\/]* | ?:[\\/]*)
2795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2800 for as_dir in $as_dummy
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2810 done
2811 done
2813 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2815 esac
2817 RM=$ac_cv_path_RM
2819 if test -n "$RM"; then
2820 echo "$as_me:$LINENO: result: $RM" >&5
2821 echo "${ECHO_T}$RM" >&6
2822 else
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2827 # Extract the first word of "cp", so it can be a program name with args.
2828 set dummy cp; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_path_CP+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 case $CP in
2835 [\\/]* | ?:[\\/]*)
2836 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2841 for as_dir in $as_dummy
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2854 test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
2856 esac
2858 CP=$ac_cv_path_CP
2860 if test -n "$CP"; then
2861 echo "$as_me:$LINENO: result: $CP" >&5
2862 echo "${ECHO_T}$CP" >&6
2863 else
2864 echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2868 # Extract the first word of "strip", so it can be a program name with args.
2869 set dummy strip; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_path_STRIP+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 case $STRIP in
2876 [\\/]* | ?:[\\/]*)
2877 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2882 for as_dir in $as_dummy
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2892 done
2893 done
2895 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="/usr/bin/strip"
2897 esac
2899 STRIP=$ac_cv_path_STRIP
2901 if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903 echo "${ECHO_T}$STRIP" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 # Extract the first word of "chmod", so it can be a program name with args.
2910 set dummy chmod; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_path_CHMOD+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 case $CHMOD in
2917 [\\/]* | ?:[\\/]*)
2918 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2923 for as_dir in $as_dummy
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2936 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="/bin/chmod"
2938 esac
2940 CHMOD=$ac_cv_path_CHMOD
2942 if test -n "$CHMOD"; then
2943 echo "$as_me:$LINENO: result: $CHMOD" >&5
2944 echo "${ECHO_T}$CHMOD" >&6
2945 else
2946 echo "$as_me:$LINENO: result: no" >&5
2947 echo "${ECHO_T}no" >&6
2952 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2953 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2954 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2955 if test "${enable_maintainer_mode+set}" = set; then
2956 enableval="$enable_maintainer_mode"
2957 USE_MAINTAINER_MODE=$enableval
2958 else
2959 USE_MAINTAINER_MODE=no
2961 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2962 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2965 if test $USE_MAINTAINER_MODE = yes; then
2966 MAINTAINER_MODE_TRUE=
2967 MAINTAINER_MODE_FALSE='#'
2968 else
2969 MAINTAINER_MODE_TRUE='#'
2970 MAINTAINER_MODE_FALSE=
2973 MAINT=$MAINTAINER_MODE_TRUE
2977 if test "$GCC" = yes; then
2978 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
2988 ac_header_dirent=no
2989 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2990 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2991 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2992 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <sys/types.h>
3004 #include <$ac_hdr>
3007 main ()
3009 if ((DIR *) 0)
3010 return 0;
3012 return 0;
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
3027 eval "$as_ac_Header=yes"
3028 else
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 eval "$as_ac_Header=no"
3034 rm -f conftest.$ac_objext conftest.$ac_ext
3036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3039 cat >>confdefs.h <<_ACEOF
3040 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3041 _ACEOF
3043 ac_header_dirent=$ac_hdr; break
3046 done
3047 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3048 if test $ac_header_dirent = dirent.h; then
3049 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3050 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3051 if test "${ac_cv_search_opendir+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054 ac_func_search_save_LIBS=$LIBS
3055 ac_cv_search_opendir=no
3056 cat >conftest.$ac_ext <<_ACEOF
3057 #line $LINENO "configure"
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3064 /* Override any gcc2 internal prototype to avoid an error. */
3065 #ifdef __cplusplus
3066 extern "C"
3067 #endif
3068 /* We use char because int might match the return type of a gcc2
3069 builtin and then its argument prototype would still apply. */
3070 char opendir ();
3072 main ()
3074 opendir ();
3076 return 0;
3078 _ACEOF
3079 rm -f conftest.$ac_objext conftest$ac_exeext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081 (eval $ac_link) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -s conftest$ac_exeext'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_search_opendir="none required"
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3098 if test "$ac_cv_search_opendir" = no; then
3099 for ac_lib in dir; do
3100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3101 cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3109 /* Override any gcc2 internal prototype to avoid an error. */
3110 #ifdef __cplusplus
3111 extern "C"
3112 #endif
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3115 char opendir ();
3117 main ()
3119 opendir ();
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext conftest$ac_exeext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126 (eval $ac_link) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -s conftest$ac_exeext'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 ac_cv_search_opendir="-l$ac_lib"
3137 break
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3144 done
3146 LIBS=$ac_func_search_save_LIBS
3148 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3149 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3150 if test "$ac_cv_search_opendir" != no; then
3151 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3155 else
3156 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3158 if test "${ac_cv_search_opendir+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 ac_func_search_save_LIBS=$LIBS
3162 ac_cv_search_opendir=no
3163 cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 #ifdef __cplusplus
3173 extern "C"
3174 #endif
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3177 char opendir ();
3179 main ()
3181 opendir ();
3183 return 0;
3185 _ACEOF
3186 rm -f conftest.$ac_objext conftest$ac_exeext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3188 (eval $ac_link) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -s conftest$ac_exeext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_search_opendir="none required"
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3205 if test "$ac_cv_search_opendir" = no; then
3206 for ac_lib in x; do
3207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3216 /* Override any gcc2 internal prototype to avoid an error. */
3217 #ifdef __cplusplus
3218 extern "C"
3219 #endif
3220 /* We use char because int might match the return type of a gcc2
3221 builtin and then its argument prototype would still apply. */
3222 char opendir ();
3224 main ()
3226 opendir ();
3228 return 0;
3230 _ACEOF
3231 rm -f conftest.$ac_objext conftest$ac_exeext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3233 (eval $ac_link) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest$ac_exeext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_cv_search_opendir="-l$ac_lib"
3244 break
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3251 done
3253 LIBS=$ac_func_search_save_LIBS
3255 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3256 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3257 if test "$ac_cv_search_opendir" != no; then
3258 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3273 CPP=
3275 if test -z "$CPP"; then
3276 if test "${ac_cv_prog_CPP+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 # Double quotes because CPP needs to be expanded
3280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3282 ac_preproc_ok=false
3283 for ac_c_preproc_warn_flag in '' yes
3285 # Use a header file that comes with gcc, so configuring glibc
3286 # with a fresh cross-compiler works.
3287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3288 # <limits.h> exists even on freestanding compilers.
3289 # On the NeXT, cc -E runs the code through the compiler's parser,
3290 # not just through cpp. "Syntax error" is here to catch this case.
3291 cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 #ifdef __STDC__
3299 # include <limits.h>
3300 #else
3301 # include <assert.h>
3302 #endif
3303 Syntax error
3304 _ACEOF
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } >/dev/null; then
3313 if test -s conftest.err; then
3314 ac_cpp_err=$ac_c_preproc_warn_flag
3315 else
3316 ac_cpp_err=
3318 else
3319 ac_cpp_err=yes
3321 if test -z "$ac_cpp_err"; then
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 # Broken: fails on valid input.
3328 continue
3330 rm -f conftest.err conftest.$ac_ext
3332 # OK, works on sane cases. Now check whether non-existent headers
3333 # can be detected and how.
3334 cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 /* confdefs.h. */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341 #include <ac_nonexistent.h>
3342 _ACEOF
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null; then
3351 if test -s conftest.err; then
3352 ac_cpp_err=$ac_c_preproc_warn_flag
3353 else
3354 ac_cpp_err=
3356 else
3357 ac_cpp_err=yes
3359 if test -z "$ac_cpp_err"; then
3360 # Broken: success on invalid input.
3361 continue
3362 else
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 # Passes both tests.
3367 ac_preproc_ok=:
3368 break
3370 rm -f conftest.err conftest.$ac_ext
3372 done
3373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3374 rm -f conftest.err conftest.$ac_ext
3375 if $ac_preproc_ok; then
3376 break
3379 done
3380 ac_cv_prog_CPP=$CPP
3383 CPP=$ac_cv_prog_CPP
3384 else
3385 ac_cv_prog_CPP=$CPP
3387 echo "$as_me:$LINENO: result: $CPP" >&5
3388 echo "${ECHO_T}$CPP" >&6
3389 ac_preproc_ok=false
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #line $LINENO "configure"
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 #ifdef __STDC__
3406 # include <limits.h>
3407 #else
3408 # include <assert.h>
3409 #endif
3410 Syntax error
3411 _ACEOF
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null; then
3420 if test -s conftest.err; then
3421 ac_cpp_err=$ac_c_preproc_warn_flag
3422 else
3423 ac_cpp_err=
3425 else
3426 ac_cpp_err=yes
3428 if test -z "$ac_cpp_err"; then
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Broken: fails on valid input.
3435 continue
3437 rm -f conftest.err conftest.$ac_ext
3439 # OK, works on sane cases. Now check whether non-existent headers
3440 # can be detected and how.
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line $LINENO "configure"
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 #include <ac_nonexistent.h>
3449 _ACEOF
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 else
3461 ac_cpp_err=
3463 else
3464 ac_cpp_err=yes
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3468 continue
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3477 rm -f conftest.err conftest.$ac_ext
3479 done
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3484 else
3485 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&5
3487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3488 See \`config.log' for more details." >&2;}
3489 { (exit 1); exit 1; }; }
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 echo "$as_me:$LINENO: checking for egrep" >&5
3500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3501 if test "${ac_cv_prog_egrep+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3505 then ac_cv_prog_egrep='grep -E'
3506 else ac_cv_prog_egrep='egrep'
3509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3511 EGREP=$ac_cv_prog_egrep
3514 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3515 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3516 if test "${ac_cv_header_stdc+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 cat >conftest.$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <stdlib.h>
3527 #include <stdarg.h>
3528 #include <string.h>
3529 #include <float.h>
3532 main ()
3536 return 0;
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_cv_header_stdc=yes
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 ac_cv_header_stdc=no
3558 rm -f conftest.$ac_objext conftest.$ac_ext
3560 if test $ac_cv_header_stdc = yes; then
3561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3562 cat >conftest.$ac_ext <<_ACEOF
3563 #line $LINENO "configure"
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 #include <string.h>
3571 _ACEOF
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 $EGREP "memchr" >/dev/null 2>&1; then
3575 else
3576 ac_cv_header_stdc=no
3578 rm -f conftest*
3582 if test $ac_cv_header_stdc = yes; then
3583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3584 cat >conftest.$ac_ext <<_ACEOF
3585 #line $LINENO "configure"
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 #include <stdlib.h>
3593 _ACEOF
3594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3595 $EGREP "free" >/dev/null 2>&1; then
3597 else
3598 ac_cv_header_stdc=no
3600 rm -f conftest*
3604 if test $ac_cv_header_stdc = yes; then
3605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3606 if test "$cross_compiling" = yes; then
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 #include <ctype.h>
3617 #if ((' ' & 0x0FF) == 0x020)
3618 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3619 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3620 #else
3621 # define ISLOWER(c) \
3622 (('a' <= (c) && (c) <= 'i') \
3623 || ('j' <= (c) && (c) <= 'r') \
3624 || ('s' <= (c) && (c) <= 'z'))
3625 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3626 #endif
3628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3630 main ()
3632 int i;
3633 for (i = 0; i < 256; i++)
3634 if (XOR (islower (i), ISLOWER (i))
3635 || toupper (i) != TOUPPER (i))
3636 exit(2);
3637 exit (0);
3639 _ACEOF
3640 rm -f conftest$ac_exeext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3652 else
3653 echo "$as_me: program exited with status $ac_status" >&5
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 ( exit $ac_status )
3658 ac_cv_header_stdc=no
3660 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3664 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3665 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3666 if test $ac_cv_header_stdc = yes; then
3668 cat >>confdefs.h <<\_ACEOF
3669 #define STDC_HEADERS 1
3670 _ACEOF
3674 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3675 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3676 if test "${ac_cv_struct_tm+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <sys/types.h>
3687 #include <time.h>
3690 main ()
3692 struct tm *tp; tp->tm_sec;
3694 return 0;
3696 _ACEOF
3697 rm -f conftest.$ac_objext
3698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3699 (eval $ac_compile) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_struct_tm=time.h
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 ac_cv_struct_tm=sys/time.h
3716 rm -f conftest.$ac_objext conftest.$ac_ext
3718 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3719 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3720 if test $ac_cv_struct_tm = sys/time.h; then
3722 cat >>confdefs.h <<\_ACEOF
3723 #define TM_IN_SYS_TIME 1
3724 _ACEOF
3728 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3738 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3739 inttypes.h stdint.h unistd.h
3741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3742 echo "$as_me:$LINENO: checking for $ac_header" >&5
3743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 cat >conftest.$ac_ext <<_ACEOF
3748 #line $LINENO "configure"
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3756 #include <$ac_header>
3757 _ACEOF
3758 rm -f conftest.$ac_objext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3760 (eval $ac_compile) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -s conftest.$ac_objext'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3770 eval "$as_ac_Header=yes"
3771 else
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 eval "$as_ac_Header=no"
3777 rm -f conftest.$ac_objext conftest.$ac_ext
3779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3782 cat >>confdefs.h <<_ACEOF
3783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3784 _ACEOF
3788 done
3796 for ac_header in fcntl.h unistd.h sys/param.h stdlib.h limits.h
3798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3800 echo "$as_me:$LINENO: checking for $ac_header" >&5
3801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3807 else
3808 # Is the header compilable?
3809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3812 #line $LINENO "configure"
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3819 #include <$ac_header>
3820 _ACEOF
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
3827 { ac_try='test -s conftest.$ac_objext'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
3833 ac_header_compiler=yes
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 ac_header_compiler=no
3840 rm -f conftest.$ac_objext conftest.$ac_ext
3841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3842 echo "${ECHO_T}$ac_header_compiler" >&6
3844 # Is the header present?
3845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 #include <$ac_header>
3855 _ACEOF
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 else
3867 ac_cpp_err=
3869 else
3870 ac_cpp_err=yes
3872 if test -z "$ac_cpp_err"; then
3873 ac_header_preproc=yes
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 ac_header_preproc=no
3880 rm -f conftest.err conftest.$ac_ext
3881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3882 echo "${ECHO_T}$ac_header_preproc" >&6
3884 # So? What about this header?
3885 case $ac_header_compiler:$ac_header_preproc in
3886 yes:no )
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3892 cat <<\_ASBOX
3893 ## ------------------------------------ ##
3894 ## Report this to bug-autoconf@gnu.org. ##
3895 ## ------------------------------------ ##
3896 _ASBOX
3898 sed "s/^/$as_me: WARNING: /" >&2
3900 no:yes )
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3908 cat <<\_ASBOX
3909 ## ------------------------------------ ##
3910 ## Report this to bug-autoconf@gnu.org. ##
3911 ## ------------------------------------ ##
3912 _ASBOX
3914 sed "s/^/$as_me: WARNING: /" >&2
3916 esac
3917 echo "$as_me:$LINENO: checking for $ac_header" >&5
3918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 eval "$as_ac_Header=$ac_header_preproc"
3924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3929 cat >>confdefs.h <<_ACEOF
3930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931 _ACEOF
3935 done
3938 echo "$as_me:$LINENO: checking for off_t" >&5
3939 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3940 if test "${ac_cv_type_off_t+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3952 main ()
3954 if ((off_t *) 0)
3955 return 0;
3956 if (sizeof (off_t))
3957 return 0;
3959 return 0;
3961 _ACEOF
3962 rm -f conftest.$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 ac_cv_type_off_t=yes
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 ac_cv_type_off_t=no
3981 rm -f conftest.$ac_objext conftest.$ac_ext
3983 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3984 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3985 if test $ac_cv_type_off_t = yes; then
3987 else
3989 cat >>confdefs.h <<_ACEOF
3990 #define off_t long
3991 _ACEOF
3995 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3996 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3997 if test "${ac_cv_struct_tm+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000 cat >conftest.$ac_ext <<_ACEOF
4001 #line $LINENO "configure"
4002 /* confdefs.h. */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <sys/types.h>
4008 #include <time.h>
4011 main ()
4013 struct tm *tp; tp->tm_sec;
4015 return 0;
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -s conftest.$ac_objext'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 (eval $ac_try) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 ac_cv_struct_tm=time.h
4031 else
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 ac_cv_struct_tm=sys/time.h
4037 rm -f conftest.$ac_objext conftest.$ac_ext
4039 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4040 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4041 if test $ac_cv_struct_tm = sys/time.h; then
4043 cat >>confdefs.h <<\_ACEOF
4044 #define TM_IN_SYS_TIME 1
4045 _ACEOF
4050 # mkdir takes a single argument on some systems.
4051 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
4052 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
4053 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 cat >conftest.$ac_ext <<_ACEOF
4057 #line $LINENO "configure"
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4064 #include <sys/types.h>
4065 #ifdef HAVE_SYS_STAT_H
4066 # include <sys/stat.h>
4067 #endif
4068 #ifdef HAVE_UNISTD_H
4069 # include <unistd.h>
4070 #endif
4071 #ifdef HAVE_DIRECT_H
4072 # include <direct.h>
4073 #endif
4075 main ()
4077 mkdir ("foo", 0);
4079 return 0;
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 gcc_cv_mkdir_takes_one_arg=no
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 gcc_cv_mkdir_takes_one_arg=yes
4101 rm -f conftest.$ac_objext conftest.$ac_ext
4103 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
4104 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
4105 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4107 cat >>confdefs.h <<\_ACEOF
4108 #define MKDIR_TAKES_ONE_ARG 1
4109 _ACEOF
4114 echo "$as_me:$LINENO: checking size of char" >&5
4115 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4116 if test "${ac_cv_sizeof_char+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4120 cat >conftest.$ac_ext <<_ACEOF
4121 #line $LINENO "configure"
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include "confdefs.h"
4128 #include <sys/types.h>
4132 main ()
4134 switch (0) case 0: case (sizeof (char) == $ac_size):;
4136 return 0;
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 ac_cv_sizeof_char=$ac_size
4152 else
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4157 rm -f conftest.$ac_objext conftest.$ac_ext
4158 if test x$ac_cv_sizeof_char != x ; then break; fi
4159 done
4163 if test x$ac_cv_sizeof_char = x ; then
4164 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
4165 echo "$as_me: error: cannot determine a size for char" >&2;}
4166 { (exit 1); exit 1; }; }
4168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4169 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4171 cat >>confdefs.h <<_ACEOF
4172 #define SIZEOF_CHAR $ac_cv_sizeof_char
4173 _ACEOF
4176 echo "$as_me:$LINENO: checking size of short" >&5
4177 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4178 if test "${ac_cv_sizeof_short+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4182 cat >conftest.$ac_ext <<_ACEOF
4183 #line $LINENO "configure"
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include "confdefs.h"
4190 #include <sys/types.h>
4194 main ()
4196 switch (0) case 0: case (sizeof (short) == $ac_size):;
4198 return 0;
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_sizeof_short=$ac_size
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4219 rm -f conftest.$ac_objext conftest.$ac_ext
4220 if test x$ac_cv_sizeof_short != x ; then break; fi
4221 done
4225 if test x$ac_cv_sizeof_short = x ; then
4226 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
4227 echo "$as_me: error: cannot determine a size for short" >&2;}
4228 { (exit 1); exit 1; }; }
4230 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4231 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4233 cat >>confdefs.h <<_ACEOF
4234 #define SIZEOF_SHORT $ac_cv_sizeof_short
4235 _ACEOF
4238 echo "$as_me:$LINENO: checking size of int" >&5
4239 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4240 if test "${ac_cv_sizeof_int+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include "confdefs.h"
4252 #include <sys/types.h>
4256 main ()
4258 switch (0) case 0: case (sizeof (int) == $ac_size):;
4260 return 0;
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_sizeof_int=$ac_size
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4281 rm -f conftest.$ac_objext conftest.$ac_ext
4282 if test x$ac_cv_sizeof_int != x ; then break; fi
4283 done
4287 if test x$ac_cv_sizeof_int = x ; then
4288 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
4289 echo "$as_me: error: cannot determine a size for int" >&2;}
4290 { (exit 1); exit 1; }; }
4292 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4293 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4295 cat >>confdefs.h <<_ACEOF
4296 #define SIZEOF_INT $ac_cv_sizeof_int
4297 _ACEOF
4300 echo "$as_me:$LINENO: checking size of long" >&5
4301 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4302 if test "${ac_cv_sizeof_long+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4306 cat >conftest.$ac_ext <<_ACEOF
4307 #line $LINENO "configure"
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include "confdefs.h"
4314 #include <sys/types.h>
4318 main ()
4320 switch (0) case 0: case (sizeof (long) == $ac_size):;
4322 return 0;
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_sizeof_long=$ac_size
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4343 rm -f conftest.$ac_objext conftest.$ac_ext
4344 if test x$ac_cv_sizeof_long != x ; then break; fi
4345 done
4349 if test x$ac_cv_sizeof_long = x ; then
4350 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
4351 echo "$as_me: error: cannot determine a size for long" >&2;}
4352 { (exit 1); exit 1; }; }
4354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4355 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4357 cat >>confdefs.h <<_ACEOF
4358 #define SIZEOF_LONG $ac_cv_sizeof_long
4359 _ACEOF
4362 echo "$as_me:$LINENO: checking size of long long" >&5
4363 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4364 if test "${ac_cv_sizeof_long_long+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4368 cat >conftest.$ac_ext <<_ACEOF
4369 #line $LINENO "configure"
4370 /* confdefs.h. */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 #include "confdefs.h"
4376 #include <sys/types.h>
4380 main ()
4382 switch (0) case 0: case (sizeof (long long) == $ac_size):;
4384 return 0;
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_sizeof_long_long=$ac_size
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4406 if test x$ac_cv_sizeof_long_long != x ; then break; fi
4407 done
4411 if test x$ac_cv_sizeof_long_long = x ; then
4412 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
4413 echo "$as_me: error: cannot determine a size for long long" >&2;}
4414 { (exit 1); exit 1; }; }
4416 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
4417 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4419 cat >>confdefs.h <<_ACEOF
4420 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4421 _ACEOF
4425 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4426 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4427 if test "${ac_cv_c_bigendian+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 ac_cv_c_bigendian=unknown
4431 # See if sys/param.h defines the BYTE_ORDER macro.
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 #include <sys/types.h>
4440 #include <sys/param.h>
4442 main ()
4445 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4446 bogus endian macros
4447 #endif
4449 return 0;
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 # It does; now see whether it defined to BIG_ENDIAN or not.
4465 cat >conftest.$ac_ext <<_ACEOF
4466 #line $LINENO "configure"
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 #include <sys/types.h>
4473 #include <sys/param.h>
4475 main ()
4478 #if BYTE_ORDER != BIG_ENDIAN
4479 not big endian
4480 #endif
4482 return 0;
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -s conftest.$ac_objext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_cv_c_bigendian=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_cv_c_bigendian=no
4504 rm -f conftest.$ac_objext conftest.$ac_ext
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4510 rm -f conftest.$ac_objext conftest.$ac_ext
4511 if test $ac_cv_c_bigendian = unknown; then
4512 if test "$cross_compiling" = yes; then
4513 echo $ac_n "cross-compiling... " 2>&6
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 #line $LINENO "configure"
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 main () {
4523 /* Are we little or big endian? From Harbison&Steele. */
4524 union
4526 long l;
4527 char c[sizeof (long)];
4528 } u;
4529 u.l = 1;
4530 exit (u.c[sizeof (long) - 1] == 1);
4532 _ACEOF
4533 rm -f conftest$ac_exeext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4535 (eval $ac_link) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_c_bigendian=no
4545 else
4546 echo "$as_me: program exited with status $ac_status" >&5
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 ( exit $ac_status )
4551 ac_cv_c_bigendian=yes
4553 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4557 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4558 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4559 if test $ac_cv_c_bigendian = unknown; then
4560 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
4561 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
4563 cat >conftest.c <<EOF
4564 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4565 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4566 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
4567 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4568 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4569 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
4570 int main() { _ascii (); _ebcdic (); return 0; }
4572 if test -f conftest.c ; then
4573 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
4574 if test `grep -l BIGenDianSyS conftest.o` ; then
4575 echo $ac_n ' big endian probe OK, ' 1>&6
4576 ac_cv_c_bigendian=yes
4578 if test `grep -l LiTTleEnDian conftest.o` ; then
4579 echo $ac_n ' little endian probe OK, ' 1>&6
4580 if test $ac_cv_c_bigendian = yes ; then
4581 ac_cv_c_bigendian=unknown;
4582 else
4583 ac_cv_c_bigendian=no
4586 echo $ac_n 'guessing bigendian ... ' >&6
4589 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4590 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4592 if test $ac_cv_c_bigendian = yes; then
4594 cat >>confdefs.h <<\_ACEOF
4595 #define WORDS_BIGENDIAN 1
4596 _ACEOF
4599 cat >>confdefs.h <<\_ACEOF
4600 #define HOST_WORDS_BIG_ENDIAN 1
4601 _ACEOF
4603 BYTEORDER=4321
4604 else
4605 BYTEORDER=1234
4608 cat >>confdefs.h <<_ACEOF
4609 #define BYTEORDER $BYTEORDER
4610 _ACEOF
4612 if test $ac_cv_c_bigendian = unknown; then
4613 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
4614 echo "$as_me: error: unknown endianess - sorry" >&2;}
4615 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
4620 # Check whether --with-system-zlib or --without-system-zlib was given.
4621 if test "${with_system_zlib+set}" = set; then
4622 withval="$with_system_zlib"
4626 ZLIBS=
4627 ZDEPS=
4628 ZINCS=
4629 use_zlib=maybe
4630 if test "$with_system_zlib" = yes; then
4631 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4632 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
4633 if test "${ac_cv_lib_z_deflate+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 ac_check_lib_save_LIBS=$LIBS
4637 LIBS="-lz $LIBS"
4638 cat >conftest.$ac_ext <<_ACEOF
4639 #line $LINENO "configure"
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 #ifdef __cplusplus
4648 extern "C"
4649 #endif
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4652 char deflate ();
4654 main ()
4656 deflate ();
4658 return 0;
4660 _ACEOF
4661 rm -f conftest.$ac_objext conftest$ac_exeext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -s conftest$ac_exeext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_cv_lib_z_deflate=yes
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ac_cv_lib_z_deflate=no
4680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4681 LIBS=$ac_check_lib_save_LIBS
4683 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4684 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
4685 if test $ac_cv_lib_z_deflate = yes; then
4686 ZLIBS=-lz
4687 else
4688 use_zlib=no
4691 else
4692 use_zlib=no
4695 if test "$use_zlib" = no; then
4696 # Brain dead way to find tree's zlib.
4697 ZDEPS='$(top_builddir)/../zlib/libz.a'
4698 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4699 ZINCS='-I$(top_srcdir)/../zlib'
4705 # Get the version trigger filename from the toplevel
4706 if test "${with_gcc_version_trigger+set}" = set; then
4707 gcc_version_trigger=$with_gcc_version_trigger
4708 else
4709 gcc_version_trigger=${srcdir}/version.c
4711 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
4712 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4715 ac_config_files="$ac_config_files Makefile install-defs.sh"
4716 cat >confcache <<\_ACEOF
4717 # This file is a shell script that caches the results of configure
4718 # tests run on this system so they can be shared between configure
4719 # scripts and configure runs, see configure's option --config-cache.
4720 # It is not useful on other systems. If it contains results you don't
4721 # want to keep, you may remove or edit it.
4723 # config.status only pays attention to the cache file if you give it
4724 # the --recheck option to rerun configure.
4726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4728 # following values.
4730 _ACEOF
4732 # The following way of writing the cache mishandles newlines in values,
4733 # but we know of no workaround that is simple, portable, and efficient.
4734 # So, don't put newlines in cache variables' values.
4735 # Ultrix sh set writes to stderr and can't be redirected directly,
4736 # and sets the high bit in the cache file unless we assign to the vars.
4738 (set) 2>&1 |
4739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4740 *ac_space=\ *)
4741 # `set' does not quote correctly, so add quotes (double-quote
4742 # substitution turns \\\\ into \\, and sed turns \\ into \).
4743 sed -n \
4744 "s/'/'\\\\''/g;
4745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4748 # `set' quotes correctly as required by POSIX, so do not add quotes.
4749 sed -n \
4750 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4752 esac;
4754 sed '
4755 t clear
4756 : clear
4757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4758 t end
4759 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4760 : end' >>confcache
4761 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4762 if test -w $cache_file; then
4763 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4764 cat confcache >$cache_file
4765 else
4766 echo "not updating unwritable cache $cache_file"
4769 rm -f confcache
4771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4772 # Let make expand exec_prefix.
4773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4775 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4776 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4777 # trailing colons and then remove the whole line if VPATH becomes empty
4778 # (actually we leave an empty line to preserve line numbers).
4779 if test "x$srcdir" = x.; then
4780 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4781 s/:*\$(srcdir):*/:/;
4782 s/:*\${srcdir}:*/:/;
4783 s/:*@srcdir@:*/:/;
4784 s/^\([^=]*=[ ]*\):*/\1/;
4785 s/:*$//;
4786 s/^[^=]*=[ ]*$//;
4790 DEFS=-DHAVE_CONFIG_H
4792 ac_libobjs=
4793 ac_ltlibobjs=
4794 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4795 # 1. Remove the extension, and $U if already installed.
4796 ac_i=`echo "$ac_i" |
4797 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4798 # 2. Add them.
4799 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4800 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4801 done
4802 LIBOBJS=$ac_libobjs
4804 LTLIBOBJS=$ac_ltlibobjs
4807 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4808 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4809 Usually this means the macro was only invoked conditionally." >&5
4810 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4811 Usually this means the macro was only invoked conditionally." >&2;}
4812 { (exit 1); exit 1; }; }
4814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4815 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4816 Usually this means the macro was only invoked conditionally." >&5
4817 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4818 Usually this means the macro was only invoked conditionally." >&2;}
4819 { (exit 1); exit 1; }; }
4821 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4822 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4823 Usually this means the macro was only invoked conditionally." >&5
4824 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4825 Usually this means the macro was only invoked conditionally." >&2;}
4826 { (exit 1); exit 1; }; }
4829 : ${CONFIG_STATUS=./config.status}
4830 ac_clean_files_save=$ac_clean_files
4831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4832 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4833 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4834 cat >$CONFIG_STATUS <<_ACEOF
4835 #! $SHELL
4836 # Generated by $as_me.
4837 # Run this file to recreate the current configuration.
4838 # Compiler output produced by configure, useful for debugging
4839 # configure, is in config.log if it exists.
4841 debug=false
4842 ac_cs_recheck=false
4843 ac_cs_silent=false
4844 SHELL=\${CONFIG_SHELL-$SHELL}
4845 _ACEOF
4847 cat >>$CONFIG_STATUS <<\_ACEOF
4848 ## --------------------- ##
4849 ## M4sh Initialization. ##
4850 ## --------------------- ##
4852 # Be Bourne compatible
4853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4854 emulate sh
4855 NULLCMD=:
4856 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4857 # is contrary to our usage. Disable this feature.
4858 alias -g '${1+"$@"}'='"$@"'
4859 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4860 set -o posix
4863 # Support unset when possible.
4864 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4865 as_unset=unset
4866 else
4867 as_unset=false
4871 # Work around bugs in pre-3.0 UWIN ksh.
4872 $as_unset ENV MAIL MAILPATH
4873 PS1='$ '
4874 PS2='> '
4875 PS4='+ '
4877 # NLS nuisances.
4878 for as_var in \
4879 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4880 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4881 LC_TELEPHONE LC_TIME
4883 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4884 eval $as_var=C; export $as_var
4885 else
4886 $as_unset $as_var
4888 done
4890 # Required to use basename.
4891 if expr a : '\(a\)' >/dev/null 2>&1; then
4892 as_expr=expr
4893 else
4894 as_expr=false
4897 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4898 as_basename=basename
4899 else
4900 as_basename=false
4904 # Name of the executable.
4905 as_me=`$as_basename "$0" ||
4906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4907 X"$0" : 'X\(//\)$' \| \
4908 X"$0" : 'X\(/\)$' \| \
4909 . : '\(.\)' 2>/dev/null ||
4910 echo X/"$0" |
4911 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4912 /^X\/\(\/\/\)$/{ s//\1/; q; }
4913 /^X\/\(\/\).*/{ s//\1/; q; }
4914 s/.*/./; q'`
4917 # PATH needs CR, and LINENO needs CR and PATH.
4918 # Avoid depending upon Character Ranges.
4919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4922 as_cr_digits='0123456789'
4923 as_cr_alnum=$as_cr_Letters$as_cr_digits
4925 # The user is always right.
4926 if test "${PATH_SEPARATOR+set}" != set; then
4927 echo "#! /bin/sh" >conf$$.sh
4928 echo "exit 0" >>conf$$.sh
4929 chmod +x conf$$.sh
4930 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4931 PATH_SEPARATOR=';'
4932 else
4933 PATH_SEPARATOR=:
4935 rm -f conf$$.sh
4939 as_lineno_1=$LINENO
4940 as_lineno_2=$LINENO
4941 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4942 test "x$as_lineno_1" != "x$as_lineno_2" &&
4943 test "x$as_lineno_3" = "x$as_lineno_2" || {
4944 # Find who we are. Look in the path if we contain no path at all
4945 # relative or not.
4946 case $0 in
4947 *[\\/]* ) as_myself=$0 ;;
4948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4954 done
4957 esac
4958 # We did not find ourselves, most probably we were run as `sh COMMAND'
4959 # in which case we are not to be found in the path.
4960 if test "x$as_myself" = x; then
4961 as_myself=$0
4963 if test ! -f "$as_myself"; then
4964 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4965 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4966 { (exit 1); exit 1; }; }
4968 case $CONFIG_SHELL in
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for as_base in sh bash ksh sh5; do
4976 case $as_dir in
4978 if ("$as_dir/$as_base" -c '
4979 as_lineno_1=$LINENO
4980 as_lineno_2=$LINENO
4981 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4982 test "x$as_lineno_1" != "x$as_lineno_2" &&
4983 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4984 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4985 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4986 CONFIG_SHELL=$as_dir/$as_base
4987 export CONFIG_SHELL
4988 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4989 fi;;
4990 esac
4991 done
4992 done
4994 esac
4996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4997 # uniformly replaced by the line number. The first 'sed' inserts a
4998 # line-number line before each line; the second 'sed' does the real
4999 # work. The second script uses 'N' to pair each line-number line
5000 # with the numbered line, and appends trailing '-' during
5001 # substitution so that $LINENO is not a special case at line end.
5002 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5003 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5004 sed '=' <$as_myself |
5005 sed '
5007 s,$,-,
5008 : loop
5009 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5010 t loop
5011 s,-$,,
5012 s,^['$as_cr_digits']*\n,,
5013 ' >$as_me.lineno &&
5014 chmod +x $as_me.lineno ||
5015 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5016 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5017 { (exit 1); exit 1; }; }
5019 # Don't try to exec as it changes $[0], causing all sort of problems
5020 # (the dirname of $[0] is not the place where we might find the
5021 # original and so on. Autoconf is especially sensible to this).
5022 . ./$as_me.lineno
5023 # Exit status is that of the last command.
5024 exit
5028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5029 *c*,-n*) ECHO_N= ECHO_C='
5030 ' ECHO_T=' ' ;;
5031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5033 esac
5035 if expr a : '\(a\)' >/dev/null 2>&1; then
5036 as_expr=expr
5037 else
5038 as_expr=false
5041 rm -f conf$$ conf$$.exe conf$$.file
5042 echo >conf$$.file
5043 if ln -s conf$$.file conf$$ 2>/dev/null; then
5044 # We could just check for DJGPP; but this test a) works b) is more generic
5045 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5046 if test -f conf$$.exe; then
5047 # Don't use ln at all; we don't have any links
5048 as_ln_s='cp -p'
5049 else
5050 as_ln_s='ln -s'
5052 elif ln conf$$.file conf$$ 2>/dev/null; then
5053 as_ln_s=ln
5054 else
5055 as_ln_s='cp -p'
5057 rm -f conf$$ conf$$.exe conf$$.file
5059 if mkdir -p . 2>/dev/null; then
5060 as_mkdir_p=:
5061 else
5062 as_mkdir_p=false
5065 as_executable_p="test -f"
5067 # Sed expression to map a string onto a valid CPP name.
5068 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5070 # Sed expression to map a string onto a valid variable name.
5071 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5074 # IFS
5075 # We need space, tab and new line, in precisely that order.
5076 as_nl='
5078 IFS=" $as_nl"
5080 # CDPATH.
5081 $as_unset CDPATH
5083 exec 6>&1
5085 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5086 # report actual input values of CONFIG_FILES etc. instead of their
5087 # values after options handling. Logging --version etc. is OK.
5088 exec 5>>config.log
5090 echo
5091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5092 ## Running $as_me. ##
5093 _ASBOX
5094 } >&5
5095 cat >&5 <<_CSEOF
5097 This file was extended by $as_me, which was
5098 generated by GNU Autoconf 2.57. Invocation command line was
5100 CONFIG_FILES = $CONFIG_FILES
5101 CONFIG_HEADERS = $CONFIG_HEADERS
5102 CONFIG_LINKS = $CONFIG_LINKS
5103 CONFIG_COMMANDS = $CONFIG_COMMANDS
5104 $ $0 $@
5106 _CSEOF
5107 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5108 echo >&5
5109 _ACEOF
5111 # Files that config.status was made for.
5112 if test -n "$ac_config_files"; then
5113 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5116 if test -n "$ac_config_headers"; then
5117 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5120 if test -n "$ac_config_links"; then
5121 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5124 if test -n "$ac_config_commands"; then
5125 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5128 cat >>$CONFIG_STATUS <<\_ACEOF
5130 ac_cs_usage="\
5131 \`$as_me' instantiates files from templates according to the
5132 current configuration.
5134 Usage: $0 [OPTIONS] [FILE]...
5136 -h, --help print this help, then exit
5137 -V, --version print version number, then exit
5138 -q, --quiet do not print progress messages
5139 -d, --debug don't remove temporary files
5140 --recheck update $as_me by reconfiguring in the same conditions
5141 --file=FILE[:TEMPLATE]
5142 instantiate the configuration file FILE
5143 --header=FILE[:TEMPLATE]
5144 instantiate the configuration header FILE
5146 Configuration files:
5147 $config_files
5149 Configuration headers:
5150 $config_headers
5152 Configuration commands:
5153 $config_commands
5155 Report bugs to <bug-autoconf@gnu.org>."
5156 _ACEOF
5158 cat >>$CONFIG_STATUS <<_ACEOF
5159 ac_cs_version="\\
5160 config.status
5161 configured by $0, generated by GNU Autoconf 2.57,
5162 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5164 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5165 Free Software Foundation, Inc.
5166 This config.status script is free software; the Free Software Foundation
5167 gives unlimited permission to copy, distribute and modify it."
5168 srcdir=$srcdir
5169 INSTALL="$INSTALL"
5170 _ACEOF
5172 cat >>$CONFIG_STATUS <<\_ACEOF
5173 # If no file are specified by the user, then we need to provide default
5174 # value. By we need to know if files were specified by the user.
5175 ac_need_defaults=:
5176 while test $# != 0
5178 case $1 in
5179 --*=*)
5180 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5181 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5182 ac_shift=:
5185 ac_option=$1
5186 ac_optarg=$2
5187 ac_shift=shift
5189 *) # This is not an option, so the user has probably given explicit
5190 # arguments.
5191 ac_option=$1
5192 ac_need_defaults=false;;
5193 esac
5195 case $ac_option in
5196 # Handling of the options.
5197 _ACEOF
5198 cat >>$CONFIG_STATUS <<\_ACEOF
5199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5200 ac_cs_recheck=: ;;
5201 --version | --vers* | -V )
5202 echo "$ac_cs_version"; exit 0 ;;
5203 --he | --h)
5204 # Conflict between --help and --header
5205 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5206 Try \`$0 --help' for more information." >&5
5207 echo "$as_me: error: ambiguous option: $1
5208 Try \`$0 --help' for more information." >&2;}
5209 { (exit 1); exit 1; }; };;
5210 --help | --hel | -h )
5211 echo "$ac_cs_usage"; exit 0 ;;
5212 --debug | --d* | -d )
5213 debug=: ;;
5214 --file | --fil | --fi | --f )
5215 $ac_shift
5216 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5217 ac_need_defaults=false;;
5218 --header | --heade | --head | --hea )
5219 $ac_shift
5220 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5221 ac_need_defaults=false;;
5222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5224 ac_cs_silent=: ;;
5226 # This is an error.
5227 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5228 Try \`$0 --help' for more information." >&5
5229 echo "$as_me: error: unrecognized option: $1
5230 Try \`$0 --help' for more information." >&2;}
5231 { (exit 1); exit 1; }; } ;;
5233 *) ac_config_targets="$ac_config_targets $1" ;;
5235 esac
5236 shift
5237 done
5239 ac_configure_extra_args=
5241 if $ac_cs_silent; then
5242 exec 6>/dev/null
5243 ac_configure_extra_args="$ac_configure_extra_args --silent"
5246 _ACEOF
5247 cat >>$CONFIG_STATUS <<_ACEOF
5248 if \$ac_cs_recheck; then
5249 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5250 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5253 _ACEOF
5255 cat >>$CONFIG_STATUS <<_ACEOF
5257 # INIT-COMMANDS section.
5260 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5262 _ACEOF
5266 cat >>$CONFIG_STATUS <<\_ACEOF
5267 for ac_config_target in $ac_config_targets
5269 case "$ac_config_target" in
5270 # Handling of arguments.
5271 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5272 "install-defs.sh" ) CONFIG_FILES="$CONFIG_FILES install-defs.sh" ;;
5273 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5274 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5275 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5276 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5277 { (exit 1); exit 1; }; };;
5278 esac
5279 done
5281 # If the user did not use the arguments to specify the items to instantiate,
5282 # then the envvar interface is used. Set only those that are not.
5283 # We use the long form for the default assignment because of an extremely
5284 # bizarre bug on SunOS 4.1.3.
5285 if $ac_need_defaults; then
5286 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5287 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5288 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5291 # Have a temporary directory for convenience. Make it in the build tree
5292 # simply because there is no reason to put it here, and in addition,
5293 # creating and moving files from /tmp can sometimes cause problems.
5294 # Create a temporary directory, and hook for its removal unless debugging.
5295 $debug ||
5297 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5298 trap '{ (exit 1); exit 1; }' 1 2 13 15
5301 # Create a (secure) tmp directory for tmp files.
5304 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5305 test -n "$tmp" && test -d "$tmp"
5306 } ||
5308 tmp=./confstat$$-$RANDOM
5309 (umask 077 && mkdir $tmp)
5310 } ||
5312 echo "$me: cannot create a temporary directory in ." >&2
5313 { (exit 1); exit 1; }
5316 _ACEOF
5318 cat >>$CONFIG_STATUS <<_ACEOF
5321 # CONFIG_FILES section.
5324 # No need to generate the scripts if there are no CONFIG_FILES.
5325 # This happens for instance when ./config.status config.h
5326 if test -n "\$CONFIG_FILES"; then
5327 # Protect against being on the right side of a sed subst in config.status.
5328 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5329 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5330 s,@SHELL@,$SHELL,;t t
5331 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5332 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5333 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5334 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5335 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5336 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5337 s,@exec_prefix@,$exec_prefix,;t t
5338 s,@prefix@,$prefix,;t t
5339 s,@program_transform_name@,$program_transform_name,;t t
5340 s,@bindir@,$bindir,;t t
5341 s,@sbindir@,$sbindir,;t t
5342 s,@libexecdir@,$libexecdir,;t t
5343 s,@datadir@,$datadir,;t t
5344 s,@sysconfdir@,$sysconfdir,;t t
5345 s,@sharedstatedir@,$sharedstatedir,;t t
5346 s,@localstatedir@,$localstatedir,;t t
5347 s,@libdir@,$libdir,;t t
5348 s,@includedir@,$includedir,;t t
5349 s,@oldincludedir@,$oldincludedir,;t t
5350 s,@infodir@,$infodir,;t t
5351 s,@mandir@,$mandir,;t t
5352 s,@build_alias@,$build_alias,;t t
5353 s,@host_alias@,$host_alias,;t t
5354 s,@target_alias@,$target_alias,;t t
5355 s,@DEFS@,$DEFS,;t t
5356 s,@ECHO_C@,$ECHO_C,;t t
5357 s,@ECHO_N@,$ECHO_N,;t t
5358 s,@ECHO_T@,$ECHO_T,;t t
5359 s,@LIBS@,$LIBS,;t t
5360 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5361 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5362 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5363 s,@CYGPATH_W@,$CYGPATH_W,;t t
5364 s,@PACKAGE@,$PACKAGE,;t t
5365 s,@VERSION@,$VERSION,;t t
5366 s,@ACLOCAL@,$ACLOCAL,;t t
5367 s,@AUTOCONF@,$AUTOCONF,;t t
5368 s,@AUTOMAKE@,$AUTOMAKE,;t t
5369 s,@AUTOHEADER@,$AUTOHEADER,;t t
5370 s,@MAKEINFO@,$MAKEINFO,;t t
5371 s,@AMTAR@,$AMTAR,;t t
5372 s,@install_sh@,$install_sh,;t t
5373 s,@STRIP@,$STRIP,;t t
5374 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5375 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5376 s,@AWK@,$AWK,;t t
5377 s,@SET_MAKE@,$SET_MAKE,;t t
5378 s,@am__leading_dot@,$am__leading_dot,;t t
5379 s,@CC@,$CC,;t t
5380 s,@CFLAGS@,$CFLAGS,;t t
5381 s,@LDFLAGS@,$LDFLAGS,;t t
5382 s,@CPPFLAGS@,$CPPFLAGS,;t t
5383 s,@ac_ct_CC@,$ac_ct_CC,;t t
5384 s,@EXEEXT@,$EXEEXT,;t t
5385 s,@OBJEXT@,$OBJEXT,;t t
5386 s,@DEPDIR@,$DEPDIR,;t t
5387 s,@am__include@,$am__include,;t t
5388 s,@am__quote@,$am__quote,;t t
5389 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5390 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5391 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5392 s,@CCDEPMODE@,$CCDEPMODE,;t t
5393 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5394 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5395 s,@RM@,$RM,;t t
5396 s,@CP@,$CP,;t t
5397 s,@CHMOD@,$CHMOD,;t t
5398 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5399 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5400 s,@MAINT@,$MAINT,;t t
5401 s,@fastjar_warn_cflags@,$fastjar_warn_cflags,;t t
5402 s,@CPP@,$CPP,;t t
5403 s,@EGREP@,$EGREP,;t t
5404 s,@ZLIBS@,$ZLIBS,;t t
5405 s,@ZDEPS@,$ZDEPS,;t t
5406 s,@ZINCS@,$ZINCS,;t t
5407 s,@gcc_version@,$gcc_version,;t t
5408 s,@LIBOBJS@,$LIBOBJS,;t t
5409 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5410 CEOF
5412 _ACEOF
5414 cat >>$CONFIG_STATUS <<\_ACEOF
5415 # Split the substitutions into bite-sized pieces for seds with
5416 # small command number limits, like on Digital OSF/1 and HP-UX.
5417 ac_max_sed_lines=48
5418 ac_sed_frag=1 # Number of current file.
5419 ac_beg=1 # First line for current file.
5420 ac_end=$ac_max_sed_lines # Line after last line for current file.
5421 ac_more_lines=:
5422 ac_sed_cmds=
5423 while $ac_more_lines; do
5424 if test $ac_beg -gt 1; then
5425 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5426 else
5427 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5429 if test ! -s $tmp/subs.frag; then
5430 ac_more_lines=false
5431 else
5432 # The purpose of the label and of the branching condition is to
5433 # speed up the sed processing (if there are no `@' at all, there
5434 # is no need to browse any of the substitutions).
5435 # These are the two extra sed commands mentioned above.
5436 (echo ':t
5437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5438 if test -z "$ac_sed_cmds"; then
5439 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5440 else
5441 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5443 ac_sed_frag=`expr $ac_sed_frag + 1`
5444 ac_beg=$ac_end
5445 ac_end=`expr $ac_end + $ac_max_sed_lines`
5447 done
5448 if test -z "$ac_sed_cmds"; then
5449 ac_sed_cmds=cat
5451 fi # test -n "$CONFIG_FILES"
5453 _ACEOF
5454 cat >>$CONFIG_STATUS <<\_ACEOF
5455 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5457 case $ac_file in
5458 - | *:- | *:-:* ) # input from stdin
5459 cat >$tmp/stdin
5460 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5462 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5464 * ) ac_file_in=$ac_file.in ;;
5465 esac
5467 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5468 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5469 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5470 X"$ac_file" : 'X\(//\)[^/]' \| \
5471 X"$ac_file" : 'X\(//\)$' \| \
5472 X"$ac_file" : 'X\(/\)' \| \
5473 . : '\(.\)' 2>/dev/null ||
5474 echo X"$ac_file" |
5475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5477 /^X\(\/\/\)$/{ s//\1/; q; }
5478 /^X\(\/\).*/{ s//\1/; q; }
5479 s/.*/./; q'`
5480 { if $as_mkdir_p; then
5481 mkdir -p "$ac_dir"
5482 else
5483 as_dir="$ac_dir"
5484 as_dirs=
5485 while test ! -d "$as_dir"; do
5486 as_dirs="$as_dir $as_dirs"
5487 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5489 X"$as_dir" : 'X\(//\)[^/]' \| \
5490 X"$as_dir" : 'X\(//\)$' \| \
5491 X"$as_dir" : 'X\(/\)' \| \
5492 . : '\(.\)' 2>/dev/null ||
5493 echo X"$as_dir" |
5494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5496 /^X\(\/\/\)$/{ s//\1/; q; }
5497 /^X\(\/\).*/{ s//\1/; q; }
5498 s/.*/./; q'`
5499 done
5500 test ! -n "$as_dirs" || mkdir $as_dirs
5501 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5502 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5503 { (exit 1); exit 1; }; }; }
5505 ac_builddir=.
5507 if test "$ac_dir" != .; then
5508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5509 # A "../" for each directory in $ac_dir_suffix.
5510 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5511 else
5512 ac_dir_suffix= ac_top_builddir=
5515 case $srcdir in
5516 .) # No --srcdir option. We are building in place.
5517 ac_srcdir=.
5518 if test -z "$ac_top_builddir"; then
5519 ac_top_srcdir=.
5520 else
5521 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5522 fi ;;
5523 [\\/]* | ?:[\\/]* ) # Absolute path.
5524 ac_srcdir=$srcdir$ac_dir_suffix;
5525 ac_top_srcdir=$srcdir ;;
5526 *) # Relative path.
5527 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5528 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5529 esac
5530 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5531 # absolute.
5532 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5533 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5534 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5535 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5538 case $INSTALL in
5539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5540 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5541 esac
5543 if test x"$ac_file" != x-; then
5544 { echo "$as_me:$LINENO: creating $ac_file" >&5
5545 echo "$as_me: creating $ac_file" >&6;}
5546 rm -f "$ac_file"
5548 # Let's still pretend it is `configure' which instantiates (i.e., don't
5549 # use $as_me), people would be surprised to read:
5550 # /* config.h. Generated by config.status. */
5551 if test x"$ac_file" = x-; then
5552 configure_input=
5553 else
5554 configure_input="$ac_file. "
5556 configure_input=$configure_input"Generated from `echo $ac_file_in |
5557 sed 's,.*/,,'` by configure."
5559 # First look for the input files in the build tree, otherwise in the
5560 # src tree.
5561 ac_file_inputs=`IFS=:
5562 for f in $ac_file_in; do
5563 case $f in
5564 -) echo $tmp/stdin ;;
5565 [\\/$]*)
5566 # Absolute (can't be DOS-style, as IFS=:)
5567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5568 echo "$as_me: error: cannot find input file: $f" >&2;}
5569 { (exit 1); exit 1; }; }
5570 echo $f;;
5571 *) # Relative
5572 if test -f "$f"; then
5573 # Build tree
5574 echo $f
5575 elif test -f "$srcdir/$f"; then
5576 # Source tree
5577 echo $srcdir/$f
5578 else
5579 # /dev/null tree
5580 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5581 echo "$as_me: error: cannot find input file: $f" >&2;}
5582 { (exit 1); exit 1; }; }
5583 fi;;
5584 esac
5585 done` || { (exit 1); exit 1; }
5586 _ACEOF
5587 cat >>$CONFIG_STATUS <<_ACEOF
5588 sed "$ac_vpsub
5589 $extrasub
5590 _ACEOF
5591 cat >>$CONFIG_STATUS <<\_ACEOF
5593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5594 s,@configure_input@,$configure_input,;t t
5595 s,@srcdir@,$ac_srcdir,;t t
5596 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5597 s,@top_srcdir@,$ac_top_srcdir,;t t
5598 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5599 s,@builddir@,$ac_builddir,;t t
5600 s,@abs_builddir@,$ac_abs_builddir,;t t
5601 s,@top_builddir@,$ac_top_builddir,;t t
5602 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5603 s,@INSTALL@,$ac_INSTALL,;t t
5604 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5605 rm -f $tmp/stdin
5606 if test x"$ac_file" != x-; then
5607 mv $tmp/out $ac_file
5608 else
5609 cat $tmp/out
5610 rm -f $tmp/out
5613 done
5614 _ACEOF
5615 cat >>$CONFIG_STATUS <<\_ACEOF
5618 # CONFIG_HEADER section.
5621 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5622 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5624 # ac_d sets the value in "#define NAME VALUE" lines.
5625 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5626 ac_dB='[ ].*$,\1#\2'
5627 ac_dC=' '
5628 ac_dD=',;t'
5629 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5630 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5631 ac_uB='$,\1#\2define\3'
5632 ac_uC=' '
5633 ac_uD=',;t'
5635 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5637 case $ac_file in
5638 - | *:- | *:-:* ) # input from stdin
5639 cat >$tmp/stdin
5640 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5642 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5644 * ) ac_file_in=$ac_file.in ;;
5645 esac
5647 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5648 echo "$as_me: creating $ac_file" >&6;}
5650 # First look for the input files in the build tree, otherwise in the
5651 # src tree.
5652 ac_file_inputs=`IFS=:
5653 for f in $ac_file_in; do
5654 case $f in
5655 -) echo $tmp/stdin ;;
5656 [\\/$]*)
5657 # Absolute (can't be DOS-style, as IFS=:)
5658 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5659 echo "$as_me: error: cannot find input file: $f" >&2;}
5660 { (exit 1); exit 1; }; }
5661 echo $f;;
5662 *) # Relative
5663 if test -f "$f"; then
5664 # Build tree
5665 echo $f
5666 elif test -f "$srcdir/$f"; then
5667 # Source tree
5668 echo $srcdir/$f
5669 else
5670 # /dev/null tree
5671 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5672 echo "$as_me: error: cannot find input file: $f" >&2;}
5673 { (exit 1); exit 1; }; }
5674 fi;;
5675 esac
5676 done` || { (exit 1); exit 1; }
5677 # Remove the trailing spaces.
5678 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5680 _ACEOF
5682 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5683 # `conftest.undefs', that substitutes the proper values into
5684 # config.h.in to produce config.h. The first handles `#define'
5685 # templates, and the second `#undef' templates.
5686 # And first: Protect against being on the right side of a sed subst in
5687 # config.status. Protect against being in an unquoted here document
5688 # in config.status.
5689 rm -f conftest.defines conftest.undefs
5690 # Using a here document instead of a string reduces the quoting nightmare.
5691 # Putting comments in sed scripts is not portable.
5693 # `end' is used to avoid that the second main sed command (meant for
5694 # 0-ary CPP macros) applies to n-ary macro definitions.
5695 # See the Autoconf documentation for `clear'.
5696 cat >confdef2sed.sed <<\_ACEOF
5697 s/[\\&,]/\\&/g
5698 s,[\\$`],\\&,g
5699 t clear
5700 : clear
5701 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5702 t end
5703 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5704 : end
5705 _ACEOF
5706 # If some macros were called several times there might be several times
5707 # the same #defines, which is useless. Nevertheless, we may not want to
5708 # sort them, since we want the *last* AC-DEFINE to be honored.
5709 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5710 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5711 rm -f confdef2sed.sed
5713 # This sed command replaces #undef with comments. This is necessary, for
5714 # example, in the case of _POSIX_SOURCE, which is predefined and required
5715 # on some systems where configure will not decide to define it.
5716 cat >>conftest.undefs <<\_ACEOF
5717 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5718 _ACEOF
5720 # Break up conftest.defines because some shells have a limit on the size
5721 # of here documents, and old seds have small limits too (100 cmds).
5722 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5723 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5724 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5725 echo ' :' >>$CONFIG_STATUS
5726 rm -f conftest.tail
5727 while grep . conftest.defines >/dev/null
5729 # Write a limited-size here document to $tmp/defines.sed.
5730 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5731 # Speed up: don't consider the non `#define' lines.
5732 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5733 # Work around the forget-to-reset-the-flag bug.
5734 echo 't clr' >>$CONFIG_STATUS
5735 echo ': clr' >>$CONFIG_STATUS
5736 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5737 echo 'CEOF
5738 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5739 rm -f $tmp/in
5740 mv $tmp/out $tmp/in
5741 ' >>$CONFIG_STATUS
5742 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5743 rm -f conftest.defines
5744 mv conftest.tail conftest.defines
5745 done
5746 rm -f conftest.defines
5747 echo ' fi # grep' >>$CONFIG_STATUS
5748 echo >>$CONFIG_STATUS
5750 # Break up conftest.undefs because some shells have a limit on the size
5751 # of here documents, and old seds have small limits too (100 cmds).
5752 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5753 rm -f conftest.tail
5754 while grep . conftest.undefs >/dev/null
5756 # Write a limited-size here document to $tmp/undefs.sed.
5757 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5758 # Speed up: don't consider the non `#undef'
5759 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5760 # Work around the forget-to-reset-the-flag bug.
5761 echo 't clr' >>$CONFIG_STATUS
5762 echo ': clr' >>$CONFIG_STATUS
5763 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5764 echo 'CEOF
5765 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5766 rm -f $tmp/in
5767 mv $tmp/out $tmp/in
5768 ' >>$CONFIG_STATUS
5769 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5770 rm -f conftest.undefs
5771 mv conftest.tail conftest.undefs
5772 done
5773 rm -f conftest.undefs
5775 cat >>$CONFIG_STATUS <<\_ACEOF
5776 # Let's still pretend it is `configure' which instantiates (i.e., don't
5777 # use $as_me), people would be surprised to read:
5778 # /* config.h. Generated by config.status. */
5779 if test x"$ac_file" = x-; then
5780 echo "/* Generated by configure. */" >$tmp/config.h
5781 else
5782 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5784 cat $tmp/in >>$tmp/config.h
5785 rm -f $tmp/in
5786 if test x"$ac_file" != x-; then
5787 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5789 echo "$as_me: $ac_file is unchanged" >&6;}
5790 else
5791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5793 X"$ac_file" : 'X\(//\)[^/]' \| \
5794 X"$ac_file" : 'X\(//\)$' \| \
5795 X"$ac_file" : 'X\(/\)' \| \
5796 . : '\(.\)' 2>/dev/null ||
5797 echo X"$ac_file" |
5798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5800 /^X\(\/\/\)$/{ s//\1/; q; }
5801 /^X\(\/\).*/{ s//\1/; q; }
5802 s/.*/./; q'`
5803 { if $as_mkdir_p; then
5804 mkdir -p "$ac_dir"
5805 else
5806 as_dir="$ac_dir"
5807 as_dirs=
5808 while test ! -d "$as_dir"; do
5809 as_dirs="$as_dir $as_dirs"
5810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5812 X"$as_dir" : 'X\(//\)[^/]' \| \
5813 X"$as_dir" : 'X\(//\)$' \| \
5814 X"$as_dir" : 'X\(/\)' \| \
5815 . : '\(.\)' 2>/dev/null ||
5816 echo X"$as_dir" |
5817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5819 /^X\(\/\/\)$/{ s//\1/; q; }
5820 /^X\(\/\).*/{ s//\1/; q; }
5821 s/.*/./; q'`
5822 done
5823 test ! -n "$as_dirs" || mkdir $as_dirs
5824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5825 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5826 { (exit 1); exit 1; }; }; }
5828 rm -f $ac_file
5829 mv $tmp/config.h $ac_file
5831 else
5832 cat $tmp/config.h
5833 rm -f $tmp/config.h
5835 # Compute $ac_file's index in $config_headers.
5836 _am_stamp_count=1
5837 for _am_header in $config_headers :; do
5838 case $_am_header in
5839 $ac_file | $ac_file:* )
5840 break ;;
5842 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5843 esac
5844 done
5845 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5846 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5847 X$ac_file : 'X\(//\)[^/]' \| \
5848 X$ac_file : 'X\(//\)$' \| \
5849 X$ac_file : 'X\(/\)' \| \
5850 . : '\(.\)' 2>/dev/null ||
5851 echo X$ac_file |
5852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5854 /^X\(\/\/\)$/{ s//\1/; q; }
5855 /^X\(\/\).*/{ s//\1/; q; }
5856 s/.*/./; q'`/stamp-h$_am_stamp_count
5857 done
5858 _ACEOF
5859 cat >>$CONFIG_STATUS <<\_ACEOF
5862 # CONFIG_COMMANDS section.
5864 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5865 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5866 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5867 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5868 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5869 X"$ac_dest" : 'X\(//\)[^/]' \| \
5870 X"$ac_dest" : 'X\(//\)$' \| \
5871 X"$ac_dest" : 'X\(/\)' \| \
5872 . : '\(.\)' 2>/dev/null ||
5873 echo X"$ac_dest" |
5874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5876 /^X\(\/\/\)$/{ s//\1/; q; }
5877 /^X\(\/\).*/{ s//\1/; q; }
5878 s/.*/./; q'`
5879 ac_builddir=.
5881 if test "$ac_dir" != .; then
5882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5883 # A "../" for each directory in $ac_dir_suffix.
5884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5885 else
5886 ac_dir_suffix= ac_top_builddir=
5889 case $srcdir in
5890 .) # No --srcdir option. We are building in place.
5891 ac_srcdir=.
5892 if test -z "$ac_top_builddir"; then
5893 ac_top_srcdir=.
5894 else
5895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5896 fi ;;
5897 [\\/]* | ?:[\\/]* ) # Absolute path.
5898 ac_srcdir=$srcdir$ac_dir_suffix;
5899 ac_top_srcdir=$srcdir ;;
5900 *) # Relative path.
5901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5903 esac
5904 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5905 # absolute.
5906 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5907 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5908 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5909 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5912 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5913 echo "$as_me: executing $ac_dest commands" >&6;}
5914 case $ac_dest in
5915 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5916 # Strip MF so we end up with the name of the file.
5917 mf=`echo "$mf" | sed -e 's/:.*$//'`
5918 # Check whether this is an Automake generated Makefile or not.
5919 # We used to match only the files named `Makefile.in', but
5920 # some people rename them; so instead we look at the file content.
5921 # Grep'ing the first line is not enough: some people post-process
5922 # each Makefile.in and add a new line on top of each file to say so.
5923 # So let's grep whole file.
5924 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5925 dirpart=`(dirname "$mf") 2>/dev/null ||
5926 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5927 X"$mf" : 'X\(//\)[^/]' \| \
5928 X"$mf" : 'X\(//\)$' \| \
5929 X"$mf" : 'X\(/\)' \| \
5930 . : '\(.\)' 2>/dev/null ||
5931 echo X"$mf" |
5932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5934 /^X\(\/\/\)$/{ s//\1/; q; }
5935 /^X\(\/\).*/{ s//\1/; q; }
5936 s/.*/./; q'`
5937 else
5938 continue
5940 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5941 # Extract the definition of DEP_FILES from the Makefile without
5942 # running `make'.
5943 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5944 test -z "$DEPDIR" && continue
5945 # When using ansi2knr, U may be empty or an underscore; expand it
5946 U=`sed -n -e '/^U = / s///p' < "$mf"`
5947 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5948 # We invoke sed twice because it is the simplest approach to
5949 # changing $(DEPDIR) to its actual value in the expansion.
5950 for file in `sed -n -e '
5951 /^DEP_FILES = .*\\\\$/ {
5952 s/^DEP_FILES = //
5953 :loop
5954 s/\\\\$//
5957 /\\\\$/ b loop
5960 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5961 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5962 # Make sure the directory exists.
5963 test -f "$dirpart/$file" && continue
5964 fdir=`(dirname "$file") 2>/dev/null ||
5965 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5966 X"$file" : 'X\(//\)[^/]' \| \
5967 X"$file" : 'X\(//\)$' \| \
5968 X"$file" : 'X\(/\)' \| \
5969 . : '\(.\)' 2>/dev/null ||
5970 echo X"$file" |
5971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5973 /^X\(\/\/\)$/{ s//\1/; q; }
5974 /^X\(\/\).*/{ s//\1/; q; }
5975 s/.*/./; q'`
5976 { if $as_mkdir_p; then
5977 mkdir -p $dirpart/$fdir
5978 else
5979 as_dir=$dirpart/$fdir
5980 as_dirs=
5981 while test ! -d "$as_dir"; do
5982 as_dirs="$as_dir $as_dirs"
5983 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5985 X"$as_dir" : 'X\(//\)[^/]' \| \
5986 X"$as_dir" : 'X\(//\)$' \| \
5987 X"$as_dir" : 'X\(/\)' \| \
5988 . : '\(.\)' 2>/dev/null ||
5989 echo X"$as_dir" |
5990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5992 /^X\(\/\/\)$/{ s//\1/; q; }
5993 /^X\(\/\).*/{ s//\1/; q; }
5994 s/.*/./; q'`
5995 done
5996 test ! -n "$as_dirs" || mkdir $as_dirs
5997 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5998 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5999 { (exit 1); exit 1; }; }; }
6001 # echo "creating $dirpart/$file"
6002 echo '# dummy' > "$dirpart/$file"
6003 done
6004 done
6006 esac
6007 done
6008 _ACEOF
6010 cat >>$CONFIG_STATUS <<\_ACEOF
6012 { (exit 0); exit 0; }
6013 _ACEOF
6014 chmod +x $CONFIG_STATUS
6015 ac_clean_files=$ac_clean_files_save
6018 # configure is writing to config.log, and then calls config.status.
6019 # config.status does its own redirection, appending to config.log.
6020 # Unfortunately, on DOS this fails, as config.log is still kept open
6021 # by configure, so config.status won't be able to write to it; its
6022 # output is simply discarded. So we exec the FD to /dev/null,
6023 # effectively closing config.log, so it can be properly (re)opened and
6024 # appended to by config.status. When coming back to configure, we
6025 # need to make the FD available again.
6026 if test "$no_create" != yes; then
6027 ac_cs_success=:
6028 ac_config_status_args=
6029 test "$silent" = yes &&
6030 ac_config_status_args="$ac_config_status_args --quiet"
6031 exec 5>/dev/null
6032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6033 exec 5>>config.log
6034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6035 # would make configure fail if this is the last instruction.
6036 $ac_cs_success || { (exit 1); exit 1; }