re PR bootstrap/15627 (Sun CC cannot bootstrap GCC)
[gcc.git] / fastjar / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
44 if (set +x; test -z "`(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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="jartool.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 mkdir_p 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 GENINSRC_TRUE GENINSRC_FALSE gcc_version LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --disable-dependency-tracking speeds up one-time build
849 --enable-dependency-tracking do not reject slow dependency extractors
850 --enable-maintainer-mode enable make rules and dependencies not useful
851 (and sometimes confusing) to the casual installer
852 --enable-generated-files-in-srcdir
853 put copies of generated files in source dir
854 intended for creating source tarballs for users
855 without texinfo, perl, bison or flex.
856
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-system-zlib use installed libz
861
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CPP C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
883
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
910 case `pwd` in
911 .) ac_abs_builddir="$ac_dir";;
912 *)
913 case "$ac_dir" in
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *)
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
930 *)
931 case $ac_srcdir in
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *)
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944 esac;;
945 esac
946
947 cd $ac_dir
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
950 echo
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
953 echo
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
957 echo
958 $ac_configure --help
959 else
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 fi
962 cd $ac_popdir
963 done
964 fi
965
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968 cat <<\_ACEOF
969
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
975 fi
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
980
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
983
984 $ $0 $@
985
986 _ACEOF
987 {
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
992
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009
1010 _ASUNAME
1011
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1014 do
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1019
1020 } >&5
1021
1022 cat >&5 <<_ACEOF
1023
1024
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1028
1029 _ACEOF
1030
1031
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1043 do
1044 for ac_arg
1045 do
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 2)
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1069 ;;
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1072 fi
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1076 ;;
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1090 {
1091 echo
1092
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1100 {
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 ;;
1108 *)
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ;;
1112 esac;
1113 }
1114 echo
1115
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1123 do
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1128
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142 fi
1143
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1153 fi
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1161 ' 0
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1166
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1171
1172 # Predefined preprocessor variables.
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1197
1198
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 fi
1207 fi
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1214 fi
1215 done
1216
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1227 fi
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1232 fi
1233
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1253 *)
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1275 fi
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1283 fi
1284
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 am__api_version="1.8"
1310 ac_aux_dir=
1311 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1312 if test -f $ac_dir/install-sh; then
1313 ac_aux_dir=$ac_dir
1314 ac_install_sh="$ac_aux_dir/install-sh -c"
1315 break
1316 elif test -f $ac_dir/install.sh; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/install.sh -c"
1319 break
1320 elif test -f $ac_dir/shtool; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/shtool install -c"
1323 break
1324 fi
1325 done
1326 if test -z "$ac_aux_dir"; then
1327 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1328 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1329 { (exit 1); exit 1; }; }
1330 fi
1331 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1332 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1333 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1334
1335 # Find a good install program. We prefer a C program (faster),
1336 # so one script is as good as another. But avoid the broken or
1337 # incompatible versions:
1338 # SysV /etc/install, /usr/sbin/install
1339 # SunOS /usr/etc/install
1340 # IRIX /sbin/install
1341 # AIX /bin/install
1342 # AmigaOS /C/install, which installs bootblocks on floppy discs
1343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1346 # OS/2's system install, which has a completely different semantic
1347 # ./install, which can be erroneously created by make from ./install.sh.
1348 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1349 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1350 if test -z "$INSTALL"; then
1351 if test "${ac_cv_path_install+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355 for as_dir in $PATH
1356 do
1357 IFS=$as_save_IFS
1358 test -z "$as_dir" && as_dir=.
1359 # Account for people who put trailing slashes in PATH elements.
1360 case $as_dir/ in
1361 ./ | .// | /cC/* | \
1362 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1363 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1364 /usr/ucb/* ) ;;
1365 *)
1366 # OSF1 and SCO ODT 3.0 have their own names for install.
1367 # Don't use installbsd from OSF since it installs stuff as root
1368 # by default.
1369 for ac_prog in ginstall scoinst install; do
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1372 if test $ac_prog = install &&
1373 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1374 # AIX install. It has an incompatible calling convention.
1375 :
1376 elif test $ac_prog = install &&
1377 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378 # program-specific install script used by HP pwplus--don't use.
1379 :
1380 else
1381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1382 break 3
1383 fi
1384 fi
1385 done
1386 done
1387 ;;
1388 esac
1389 done
1390
1391
1392 fi
1393 if test "${ac_cv_path_install+set}" = set; then
1394 INSTALL=$ac_cv_path_install
1395 else
1396 # As a last resort, use the slow shell script. We don't cache a
1397 # path for INSTALL within a source directory, because that will
1398 # break other packages using the cache if that directory is
1399 # removed, or if the path is relative.
1400 INSTALL=$ac_install_sh
1401 fi
1402 fi
1403 echo "$as_me:$LINENO: result: $INSTALL" >&5
1404 echo "${ECHO_T}$INSTALL" >&6
1405
1406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1407 # It thinks the first close brace ends the variable substitution.
1408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1409
1410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1411
1412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1413
1414 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1415 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1416 # Just in case
1417 sleep 1
1418 echo timestamp > conftest.file
1419 # Do `set' in a subshell so we don't clobber the current shell's
1420 # arguments. Must try -L first in case configure is actually a
1421 # symlink; some systems play weird games with the mod time of symlinks
1422 # (eg FreeBSD returns the mod time of the symlink's containing
1423 # directory).
1424 if (
1425 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1426 if test "$*" = "X"; then
1427 # -L didn't work.
1428 set X `ls -t $srcdir/configure conftest.file`
1429 fi
1430 rm -f conftest.file
1431 if test "$*" != "X $srcdir/configure conftest.file" \
1432 && test "$*" != "X conftest.file $srcdir/configure"; then
1433
1434 # If neither matched, then we have a broken ls. This can happen
1435 # if, for instance, CONFIG_SHELL is bash and it inherits a
1436 # broken ls alias from the environment. This has actually
1437 # happened. Such a system could not be considered "sane".
1438 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1439 alias in your environment" >&5
1440 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1441 alias in your environment" >&2;}
1442 { (exit 1); exit 1; }; }
1443 fi
1444
1445 test "$2" = conftest.file
1446 )
1447 then
1448 # Ok.
1449 :
1450 else
1451 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1452 Check your system clock" >&5
1453 echo "$as_me: error: newly created file is older than distributed files!
1454 Check your system clock" >&2;}
1455 { (exit 1); exit 1; }; }
1456 fi
1457 echo "$as_me:$LINENO: result: yes" >&5
1458 echo "${ECHO_T}yes" >&6
1459 test "$program_prefix" != NONE &&
1460 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1461 # Use a double $ so make ignores it.
1462 test "$program_suffix" != NONE &&
1463 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1464 # Double any \ or $. echo might interpret backslashes.
1465 # By default was `s,x,x', remove it if useless.
1466 cat <<\_ACEOF >conftest.sed
1467 s/[\\$]/&&/g;s/;s,x,x,$//
1468 _ACEOF
1469 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1470 rm conftest.sed
1471
1472 # expand $ac_aux_dir to an absolute path
1473 am_aux_dir=`cd $ac_aux_dir && pwd`
1474
1475 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1476 # Use eval to expand $SHELL
1477 if eval "$MISSING --run true"; then
1478 am_missing_run="$MISSING --run "
1479 else
1480 am_missing_run=
1481 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1482 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1483 fi
1484
1485 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1486 # Keeping the `.' argument allows $(mkdir_p) to be used without
1487 # argument. Indeed, we sometimes output rules like
1488 # $(mkdir_p) $(somedir)
1489 # where $(somedir) is conditionally defined.
1490 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1491 # expensive solution, as it forces Make to start a sub-shell.)
1492 mkdir_p='mkdir -p -- .'
1493 else
1494 # On NextStep and OpenStep, the `mkdir' command does not
1495 # recognize any option. It will interpret all options as
1496 # directories to create, and then abort because `.' already
1497 # exists.
1498 for d in ./-p ./--version;
1499 do
1500 test -d $d && rmdir $d
1501 done
1502 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1503 if test -f "$ac_aux_dir/mkinstalldirs"; then
1504 mkdir_p='$(mkinstalldirs)'
1505 else
1506 mkdir_p='$(install_sh) -d'
1507 fi
1508 fi
1509
1510 for ac_prog in gawk mawk nawk awk
1511 do
1512 # Extract the first word of "$ac_prog", so it can be a program name with args.
1513 set dummy $ac_prog; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_AWK+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519 if test -n "$AWK"; then
1520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_AWK="$ac_prog"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 break 2
1532 fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 AWK=$ac_cv_prog_AWK
1539 if test -n "$AWK"; then
1540 echo "$as_me:$LINENO: result: $AWK" >&5
1541 echo "${ECHO_T}$AWK" >&6
1542 else
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547 test -n "$AWK" && break
1548 done
1549
1550 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1551 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1552 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1553 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 cat >conftest.make <<\_ACEOF
1557 all:
1558 @echo 'ac_maketemp="$(MAKE)"'
1559 _ACEOF
1560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1561 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1562 if test -n "$ac_maketemp"; then
1563 eval ac_cv_prog_make_${ac_make}_set=yes
1564 else
1565 eval ac_cv_prog_make_${ac_make}_set=no
1566 fi
1567 rm -f conftest.make
1568 fi
1569 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1570 echo "$as_me:$LINENO: result: yes" >&5
1571 echo "${ECHO_T}yes" >&6
1572 SET_MAKE=
1573 else
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1576 SET_MAKE="MAKE=${MAKE-make}"
1577 fi
1578
1579 rm -rf .tst 2>/dev/null
1580 mkdir .tst 2>/dev/null
1581 if test -d .tst; then
1582 am__leading_dot=.
1583 else
1584 am__leading_dot=_
1585 fi
1586 rmdir .tst 2>/dev/null
1587
1588 # test to see if srcdir already configured
1589 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1590 test -f $srcdir/config.status; then
1591 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1592 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1593 { (exit 1); exit 1; }; }
1594 fi
1595
1596 # test whether we have cygpath
1597 if test -z "$CYGPATH_W"; then
1598 if (cygpath --version) >/dev/null 2>/dev/null; then
1599 CYGPATH_W='cygpath -w'
1600 else
1601 CYGPATH_W=echo
1602 fi
1603 fi
1604
1605
1606 # Define the identity of the package.
1607 PACKAGE=fastjar
1608 VERSION=0.92-gcc
1609
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE "$PACKAGE"
1613 _ACEOF
1614
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define VERSION "$VERSION"
1618 _ACEOF
1619
1620 # Some tools Automake needs.
1621
1622 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1623
1624
1625 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1626
1627
1628 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1629
1630
1631 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1632
1633
1634 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1635
1636
1637 AMTAR=${AMTAR-"${am_missing_run}tar"}
1638
1639 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1640
1641 # Installed binaries are usually stripped using `strip' when the user
1642 # run `make install-strip'. However `strip' might not be the right
1643 # tool to use in cross-compilation environments, therefore Automake
1644 # will honor the `STRIP' environment variable to overrule this program.
1645 if test "$cross_compiling" != no; then
1646 if test -n "$ac_tool_prefix"; then
1647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1648 set dummy ${ac_tool_prefix}strip; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_STRIP+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$STRIP"; then
1655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1667 fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 STRIP=$ac_cv_prog_STRIP
1674 if test -n "$STRIP"; then
1675 echo "$as_me:$LINENO: result: $STRIP" >&5
1676 echo "${ECHO_T}$STRIP" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682 fi
1683 if test -z "$ac_cv_prog_STRIP"; then
1684 ac_ct_STRIP=$STRIP
1685 # Extract the first word of "strip", so it can be a program name with args.
1686 set dummy strip; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 if test -n "$ac_ct_STRIP"; then
1693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_ac_ct_STRIP="strip"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1705 fi
1706 done
1707 done
1708
1709 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1710 fi
1711 fi
1712 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1713 if test -n "$ac_ct_STRIP"; then
1714 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1715 echo "${ECHO_T}$ac_ct_STRIP" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1719 fi
1720
1721 STRIP=$ac_ct_STRIP
1722 else
1723 STRIP="$ac_cv_prog_STRIP"
1724 fi
1725
1726 fi
1727 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1728
1729 # We need awk for the "check" target. The system "awk" is bad on
1730 # some platforms.
1731
1732
1733
1734 ac_config_headers="$ac_config_headers config.h"
1735
1736
1737 ac_ext=c
1738 ac_cpp='$CPP $CPPFLAGS'
1739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1742 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 break 2
1763 fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 CC=$ac_cv_prog_CC
1770 if test -n "$CC"; then
1771 echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1773 else
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778 fi
1779 if test -z "$ac_cv_prog_CC"; then
1780 ac_ct_CC=$CC
1781 # Extract the first word of "gcc", so it can be a program name with args.
1782 set dummy gcc; ac_word=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788 if test -n "$ac_ct_CC"; then
1789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1790 else
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794 IFS=$as_save_IFS
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798 ac_cv_prog_ac_ct_CC="gcc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 break 2
1801 fi
1802 done
1803 done
1804
1805 fi
1806 fi
1807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1808 if test -n "$ac_ct_CC"; then
1809 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1810 echo "${ECHO_T}$ac_ct_CC" >&6
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816 CC=$ac_ct_CC
1817 else
1818 CC="$ac_cv_prog_CC"
1819 fi
1820
1821 if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1824 set dummy ${ac_tool_prefix}cc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="${ac_tool_prefix}cc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844 done
1845 done
1846
1847 fi
1848 fi
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1856 fi
1857
1858 fi
1859 if test -z "$ac_cv_prog_CC"; then
1860 ac_ct_CC=$CC
1861 # Extract the first word of "cc", so it can be a program name with args.
1862 set dummy cc; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_ac_ct_CC="cc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1881 fi
1882 done
1883 done
1884
1885 fi
1886 fi
1887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888 if test -n "$ac_ct_CC"; then
1889 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890 echo "${ECHO_T}$ac_ct_CC" >&6
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 fi
1895
1896 CC=$ac_ct_CC
1897 else
1898 CC="$ac_cv_prog_CC"
1899 fi
1900
1901 fi
1902 if test -z "$CC"; then
1903 # Extract the first word of "cc", so it can be a program name with args.
1904 set dummy cc; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 ac_prog_rejected=no
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1922 ac_prog_rejected=yes
1923 continue
1924 fi
1925 ac_cv_prog_CC="cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1928 fi
1929 done
1930 done
1931
1932 if test $ac_prog_rejected = yes; then
1933 # We found a bogon in the path, so make sure we never use it.
1934 set dummy $ac_cv_prog_CC
1935 shift
1936 if test $# != 0; then
1937 # We chose a different compiler from the bogus one.
1938 # However, it has the same basename, so the bogon will be chosen
1939 # first if we set CC to just the basename; use the full file name.
1940 shift
1941 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1942 fi
1943 fi
1944 fi
1945 fi
1946 CC=$ac_cv_prog_CC
1947 if test -n "$CC"; then
1948 echo "$as_me:$LINENO: result: $CC" >&5
1949 echo "${ECHO_T}$CC" >&6
1950 else
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1953 fi
1954
1955 fi
1956 if test -z "$CC"; then
1957 if test -n "$ac_tool_prefix"; then
1958 for ac_prog in cl
1959 do
1960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1980 fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 CC=$ac_cv_prog_CC
1987 if test -n "$CC"; then
1988 echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6
1990 else
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995 test -n "$CC" && break
1996 done
1997 fi
1998 if test -z "$CC"; then
1999 ac_ct_CC=$CC
2000 for ac_prog in cl
2001 do
2002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2003 set dummy $ac_prog; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$ac_ct_CC"; then
2010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_ac_ct_CC="$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2022 fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2029 if test -n "$ac_ct_CC"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031 echo "${ECHO_T}$ac_ct_CC" >&6
2032 else
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 test -n "$ac_ct_CC" && break
2038 done
2039
2040 CC=$ac_ct_CC
2041 fi
2042
2043 fi
2044
2045
2046 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: no acceptable C compiler found in \$PATH
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2051
2052 # Provide some information about the compiler.
2053 echo "$as_me:$LINENO:" \
2054 "checking for C compiler version" >&5
2055 ac_compiler=`set X $ac_compile; echo $2`
2056 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2057 (eval $ac_compiler --version </dev/null >&5) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2062 (eval $ac_compiler -v </dev/null >&5) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2067 (eval $ac_compiler -V </dev/null >&5) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071
2072 cat >conftest.$ac_ext <<_ACEOF
2073 /* confdefs.h. */
2074 _ACEOF
2075 cat confdefs.h >>conftest.$ac_ext
2076 cat >>conftest.$ac_ext <<_ACEOF
2077 /* end confdefs.h. */
2078
2079 int
2080 main ()
2081 {
2082
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 ac_clean_files_save=$ac_clean_files
2088 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2089 # Try to create an executable without -o first, disregard a.out.
2090 # It will help us diagnose broken compilers, and finding out an intuition
2091 # of exeext.
2092 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2093 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2094 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2095 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2096 (eval $ac_link_default) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; then
2100 # Find the output, starting from the most likely. This scheme is
2101 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2102 # resort.
2103
2104 # Be careful to initialize this variable, since it used to be cached.
2105 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2106 ac_cv_exeext=
2107 # b.out is created by i960 compilers.
2108 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2109 do
2110 test -f "$ac_file" || continue
2111 case $ac_file in
2112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2113 ;;
2114 conftest.$ac_ext )
2115 # This is the source file.
2116 ;;
2117 [ab].out )
2118 # We found the default executable, but exeext='' is most
2119 # certainly right.
2120 break;;
2121 *.* )
2122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2123 # FIXME: I believe we export ac_cv_exeext for Libtool,
2124 # but it would be cool to find out if it's true. Does anybody
2125 # maintain Libtool? --akim.
2126 export ac_cv_exeext
2127 break;;
2128 * )
2129 break;;
2130 esac
2131 done
2132 else
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: C compiler cannot create executables
2139 See \`config.log' for more details." >&2;}
2140 { (exit 77); exit 77; }; }
2141 fi
2142
2143 ac_exeext=$ac_cv_exeext
2144 echo "$as_me:$LINENO: result: $ac_file" >&5
2145 echo "${ECHO_T}$ac_file" >&6
2146
2147 # Check the compiler produces executables we can run. If not, either
2148 # the compiler is broken, or we cross compile.
2149 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2150 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2151 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2152 # If not cross compiling, check that we can run a simple program.
2153 if test "$cross_compiling" != yes; then
2154 if { ac_try='./$ac_file'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2160 cross_compiling=no
2161 else
2162 if test "$cross_compiling" = maybe; then
2163 cross_compiling=yes
2164 else
2165 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'.
2167 See \`config.log' for more details." >&5
2168 echo "$as_me: error: cannot run C compiled programs.
2169 If you meant to cross compile, use \`--host'.
2170 See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2172 fi
2173 fi
2174 fi
2175 echo "$as_me:$LINENO: result: yes" >&5
2176 echo "${ECHO_T}yes" >&6
2177
2178 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2179 ac_clean_files=$ac_clean_files_save
2180 # Check the compiler produces executables we can run. If not, either
2181 # the compiler is broken, or we cross compile.
2182 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2183 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2184 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2185 echo "${ECHO_T}$cross_compiling" >&6
2186
2187 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2188 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2190 (eval $ac_link) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; then
2194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2195 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2196 # work properly (i.e., refer to `conftest.exe'), while it won't with
2197 # `rm'.
2198 for ac_file in conftest.exe conftest conftest.*; do
2199 test -f "$ac_file" || continue
2200 case $ac_file in
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2203 export ac_cv_exeext
2204 break;;
2205 * ) break;;
2206 esac
2207 done
2208 else
2209 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2212 See \`config.log' for more details." >&2;}
2213 { (exit 1); exit 1; }; }
2214 fi
2215
2216 rm -f conftest$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2218 echo "${ECHO_T}$ac_cv_exeext" >&6
2219
2220 rm -f conftest.$ac_ext
2221 EXEEXT=$ac_cv_exeext
2222 ac_exeext=$EXEEXT
2223 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2224 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2225 if test "${ac_cv_objext+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228 cat >conftest.$ac_ext <<_ACEOF
2229 /* confdefs.h. */
2230 _ACEOF
2231 cat confdefs.h >>conftest.$ac_ext
2232 cat >>conftest.$ac_ext <<_ACEOF
2233 /* end confdefs.h. */
2234
2235 int
2236 main ()
2237 {
2238
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 rm -f conftest.o conftest.obj
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2250 case $ac_file in
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2253 break;;
2254 esac
2255 done
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2261 See \`config.log' for more details." >&5
2262 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2265 fi
2266
2267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2268 fi
2269 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2270 echo "${ECHO_T}$ac_cv_objext" >&6
2271 OBJEXT=$ac_cv_objext
2272 ac_objext=$OBJEXT
2273 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2274 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2275 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2284
2285 int
2286 main ()
2287 {
2288 #ifndef __GNUC__
2289 choke me
2290 #endif
2291
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 ac_compiler_gnu=yes
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 ac_compiler_gnu=no
2324 fi
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2327
2328 fi
2329 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2330 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2331 GCC=`test $ac_compiler_gnu = yes && echo yes`
2332 ac_test_CFLAGS=${CFLAGS+set}
2333 ac_save_CFLAGS=$CFLAGS
2334 CFLAGS="-g"
2335 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2336 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2337 if test "${ac_cv_prog_cc_g+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h. */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2346
2347 int
2348 main ()
2349 {
2350
2351 ;
2352 return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2358 ac_status=$?
2359 grep -v '^ *+' conftest.er1 >conftest.err
2360 rm -f conftest.er1
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2377 ac_cv_prog_cc_g=yes
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 ac_cv_prog_cc_g=no
2383 fi
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 fi
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2388 if test "$ac_test_CFLAGS" = set; then
2389 CFLAGS=$ac_save_CFLAGS
2390 elif test $ac_cv_prog_cc_g = yes; then
2391 if test "$GCC" = yes; then
2392 CFLAGS="-g -O2"
2393 else
2394 CFLAGS="-g"
2395 fi
2396 else
2397 if test "$GCC" = yes; then
2398 CFLAGS="-O2"
2399 else
2400 CFLAGS=
2401 fi
2402 fi
2403 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2404 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2405 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 ac_cv_prog_cc_stdc=no
2409 ac_save_CC=$CC
2410 cat >conftest.$ac_ext <<_ACEOF
2411 /* confdefs.h. */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2416 #include <stdarg.h>
2417 #include <stdio.h>
2418 #include <sys/types.h>
2419 #include <sys/stat.h>
2420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2421 struct buf { int x; };
2422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2423 static char *e (p, i)
2424 char **p;
2425 int i;
2426 {
2427 return p[i];
2428 }
2429 static char *f (char * (*g) (char **, int), char **p, ...)
2430 {
2431 char *s;
2432 va_list v;
2433 va_start (v,p);
2434 s = g (p, va_arg (v,int));
2435 va_end (v);
2436 return s;
2437 }
2438
2439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2440 function prototypes and stuff, but not '\xHH' hex character constants.
2441 These don't provoke an error unfortunately, instead are silently treated
2442 as 'x'. The following induces an error, until -std1 is added to get
2443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2444 array size at least. It's necessary to write '\x00'==0 to get something
2445 that's true only with -std1. */
2446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2447
2448 int test (int i, double x);
2449 struct s1 {int (*f) (int a);};
2450 struct s2 {int (*f) (double a);};
2451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2452 int argc;
2453 char **argv;
2454 int
2455 main ()
2456 {
2457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2458 ;
2459 return 0;
2460 }
2461 _ACEOF
2462 # Don't try gcc -ansi; that turns off useful extensions and
2463 # breaks some systems' header files.
2464 # AIX -qlanglvl=ansi
2465 # Ultrix and OSF/1 -std1
2466 # HP-UX 10.20 and later -Ae
2467 # HP-UX older versions -Aa -D_HPUX_SOURCE
2468 # SVR4 -Xc -D__EXTENSIONS__
2469 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2470 do
2471 CC="$ac_save_CC $ac_arg"
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>conftest.er1
2475 ac_status=$?
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -z "$ac_c_werror_flag"
2482 || test ! -s conftest.err'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 (eval $ac_try) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 ac_cv_prog_cc_stdc=$ac_arg
2495 break
2496 else
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 fi
2501 rm -f conftest.err conftest.$ac_objext
2502 done
2503 rm -f conftest.$ac_ext conftest.$ac_objext
2504 CC=$ac_save_CC
2505
2506 fi
2507
2508 case "x$ac_cv_prog_cc_stdc" in
2509 x|xno)
2510 echo "$as_me:$LINENO: result: none needed" >&5
2511 echo "${ECHO_T}none needed" >&6 ;;
2512 *)
2513 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2514 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2515 CC="$CC $ac_cv_prog_cc_stdc" ;;
2516 esac
2517
2518 # Some people use a C++ compiler to compile C. Since we use `exit',
2519 # in C++ we need to declare it. In case someone uses the same compiler
2520 # for both compiling C and C++ we need to have the C++ compiler decide
2521 # the declaration of exit, since it's the most demanding environment.
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #ifndef __cplusplus
2524 choke me
2525 #endif
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_c_werror_flag"
2537 || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 for ac_declaration in \
2550 '' \
2551 'extern "C" void std::exit (int) throw (); using std::exit;' \
2552 'extern "C" void std::exit (int); using std::exit;' \
2553 'extern "C" void exit (int) throw ();' \
2554 'extern "C" void exit (int);' \
2555 'void exit (int);'
2556 do
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2563 $ac_declaration
2564 #include <stdlib.h>
2565 int
2566 main ()
2567 {
2568 exit (42);
2569 ;
2570 return 0;
2571 }
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag"
2583 || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 :
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 continue
2601 fi
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2609 $ac_declaration
2610 int
2611 main ()
2612 {
2613 exit (42);
2614 ;
2615 return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag"
2628 || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 break
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 fi
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 done
2648 rm -f conftest*
2649 if test -n "$ac_declaration"; then
2650 echo '#ifdef __cplusplus' >>confdefs.h
2651 echo $ac_declaration >>confdefs.h
2652 echo '#endif' >>confdefs.h
2653 fi
2654
2655 else
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 fi
2660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 DEPDIR="${am__leading_dot}deps"
2667
2668 ac_config_commands="$ac_config_commands depfiles"
2669
2670
2671 am_make=${MAKE-make}
2672 cat > confinc << 'END'
2673 am__doit:
2674 @echo done
2675 .PHONY: am__doit
2676 END
2677 # If we don't find an include directive, just comment out the code.
2678 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2679 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2680 am__include="#"
2681 am__quote=
2682 _am_result=none
2683 # First try GNU make style include.
2684 echo "include confinc" > confmf
2685 # We grep out `Entering directory' and `Leaving directory'
2686 # messages which can occur if `w' ends up in MAKEFLAGS.
2687 # In particular we don't look at `^make:' because GNU make might
2688 # be invoked under some other name (usually "gmake"), in which
2689 # case it prints its new name instead of `make'.
2690 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2691 am__include=include
2692 am__quote=
2693 _am_result=GNU
2694 fi
2695 # Now try BSD make style include.
2696 if test "$am__include" = "#"; then
2697 echo '.include "confinc"' > confmf
2698 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2699 am__include=.include
2700 am__quote="\""
2701 _am_result=BSD
2702 fi
2703 fi
2704
2705
2706 echo "$as_me:$LINENO: result: $_am_result" >&5
2707 echo "${ECHO_T}$_am_result" >&6
2708 rm -f confinc confmf
2709
2710 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2711 if test "${enable_dependency_tracking+set}" = set; then
2712 enableval="$enable_dependency_tracking"
2713
2714 fi;
2715 if test "x$enable_dependency_tracking" != xno; then
2716 am_depcomp="$ac_aux_dir/depcomp"
2717 AMDEPBACKSLASH='\'
2718 fi
2719
2720
2721 if test "x$enable_dependency_tracking" != xno; then
2722 AMDEP_TRUE=
2723 AMDEP_FALSE='#'
2724 else
2725 AMDEP_TRUE='#'
2726 AMDEP_FALSE=
2727 fi
2728
2729
2730
2731
2732 depcc="$CC" am_compiler_list=
2733
2734 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2735 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2736 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2740 # We make a subdir and do the tests there. Otherwise we can end up
2741 # making bogus files that we don't know about and never remove. For
2742 # instance it was reported that on HP-UX the gcc test will end up
2743 # making a dummy file named `D' -- because `-MD' means `put the output
2744 # in D'.
2745 mkdir conftest.dir
2746 # Copy depcomp to subdir because otherwise we won't find it if we're
2747 # using a relative directory.
2748 cp "$am_depcomp" conftest.dir
2749 cd conftest.dir
2750 # We will build objects and dependencies in a subdirectory because
2751 # it helps to detect inapplicable dependency modes. For instance
2752 # both Tru64's cc and ICC support -MD to output dependencies as a
2753 # side effect of compilation, but ICC will put the dependencies in
2754 # the current directory while Tru64 will put them in the object
2755 # directory.
2756 mkdir sub
2757
2758 am_cv_CC_dependencies_compiler_type=none
2759 if test "$am_compiler_list" = ""; then
2760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761 fi
2762 for depmode in $am_compiler_list; do
2763 # Setup a source with many dependencies, because some compilers
2764 # like to wrap large dependency lists on column 80 (with \), and
2765 # we should not choose a depcomp mode which is confused by this.
2766 #
2767 # We need to recreate these files for each test, as the compiler may
2768 # overwrite some of them when testing with obscure command lines.
2769 # This happens at least with the AIX C compiler.
2770 : > sub/conftest.c
2771 for i in 1 2 3 4 5 6; do
2772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2774 # Solaris 8's {/usr,}/bin/sh.
2775 touch sub/conftst$i.h
2776 done
2777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2778
2779 case $depmode in
2780 nosideeffect)
2781 # after this tag, mechanisms are not by side-effect, so they'll
2782 # only be used when explicitly requested
2783 if test "x$enable_dependency_tracking" = xyes; then
2784 continue
2785 else
2786 break
2787 fi
2788 ;;
2789 none) break ;;
2790 esac
2791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2792 # mode. It turns out that the SunPro C++ compiler does not properly
2793 # handle `-M -o', and we need to detect this.
2794 if depmode=$depmode \
2795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2798 >/dev/null 2>conftest.err &&
2799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2802 # icc doesn't choke on unknown options, it will just issue warnings
2803 # or remarks (even with -Werror). So we grep stderr for any message
2804 # that says an option was ignored or not supported.
2805 # When given -MP, icc 7.0 and 7.1 complain thusly:
2806 # icc: Command line warning: ignoring option '-M'; no argument required
2807 # The diagnosis changed in icc 8.0:
2808 # icc: Command line remark: option '-MP' not supported
2809 if (grep 'ignoring option' conftest.err ||
2810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2811 am_cv_CC_dependencies_compiler_type=$depmode
2812 break
2813 fi
2814 fi
2815 done
2816
2817 cd ..
2818 rm -rf conftest.dir
2819 else
2820 am_cv_CC_dependencies_compiler_type=none
2821 fi
2822
2823 fi
2824 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2825 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2827
2828
2829
2830 if
2831 test "x$enable_dependency_tracking" != xno \
2832 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2833 am__fastdepCC_TRUE=
2834 am__fastdepCC_FALSE='#'
2835 else
2836 am__fastdepCC_TRUE='#'
2837 am__fastdepCC_FALSE=
2838 fi
2839
2840
2841 # Find a good install program. We prefer a C program (faster),
2842 # so one script is as good as another. But avoid the broken or
2843 # incompatible versions:
2844 # SysV /etc/install, /usr/sbin/install
2845 # SunOS /usr/etc/install
2846 # IRIX /sbin/install
2847 # AIX /bin/install
2848 # AmigaOS /C/install, which installs bootblocks on floppy discs
2849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2852 # OS/2's system install, which has a completely different semantic
2853 # ./install, which can be erroneously created by make from ./install.sh.
2854 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2855 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2856 if test -z "$INSTALL"; then
2857 if test "${ac_cv_path_install+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 # Account for people who put trailing slashes in PATH elements.
2866 case $as_dir/ in
2867 ./ | .// | /cC/* | \
2868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2870 /usr/ucb/* ) ;;
2871 *)
2872 # OSF1 and SCO ODT 3.0 have their own names for install.
2873 # Don't use installbsd from OSF since it installs stuff as root
2874 # by default.
2875 for ac_prog in ginstall scoinst install; do
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2878 if test $ac_prog = install &&
2879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880 # AIX install. It has an incompatible calling convention.
2881 :
2882 elif test $ac_prog = install &&
2883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2884 # program-specific install script used by HP pwplus--don't use.
2885 :
2886 else
2887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2888 break 3
2889 fi
2890 fi
2891 done
2892 done
2893 ;;
2894 esac
2895 done
2896
2897
2898 fi
2899 if test "${ac_cv_path_install+set}" = set; then
2900 INSTALL=$ac_cv_path_install
2901 else
2902 # As a last resort, use the slow shell script. We don't cache a
2903 # path for INSTALL within a source directory, because that will
2904 # break other packages using the cache if that directory is
2905 # removed, or if the path is relative.
2906 INSTALL=$ac_install_sh
2907 fi
2908 fi
2909 echo "$as_me:$LINENO: result: $INSTALL" >&5
2910 echo "${ECHO_T}$INSTALL" >&6
2911
2912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913 # It thinks the first close brace ends the variable substitution.
2914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915
2916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917
2918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919
2920 # Extract the first word of "rm", so it can be a program name with args.
2921 set dummy rm; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_path_RM+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 case $RM in
2928 [\\/]* | ?:[\\/]*)
2929 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2930 ;;
2931 *)
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2934 for as_dir in $as_dummy
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946
2947 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2948 ;;
2949 esac
2950 fi
2951 RM=$ac_cv_path_RM
2952
2953 if test -n "$RM"; then
2954 echo "$as_me:$LINENO: result: $RM" >&5
2955 echo "${ECHO_T}$RM" >&6
2956 else
2957 echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6
2959 fi
2960
2961 # Extract the first word of "cp", so it can be a program name with args.
2962 set dummy cp; ac_word=$2
2963 echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965 if test "${ac_cv_path_CP+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 case $CP in
2969 [\\/]* | ?:[\\/]*)
2970 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2971 ;;
2972 *)
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2975 for as_dir in $as_dummy
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987
2988 test -z "$ac_cv_path_CP" && ac_cv_path_CP="/bin/cp"
2989 ;;
2990 esac
2991 fi
2992 CP=$ac_cv_path_CP
2993
2994 if test -n "$CP"; then
2995 echo "$as_me:$LINENO: result: $CP" >&5
2996 echo "${ECHO_T}$CP" >&6
2997 else
2998 echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3000 fi
3001
3002 # Extract the first word of "strip", so it can be a program name with args.
3003 set dummy strip; ac_word=$2
3004 echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006 if test "${ac_cv_path_STRIP+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 case $STRIP in
3010 [\\/]* | ?:[\\/]*)
3011 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
3012 ;;
3013 *)
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
3016 for as_dir in $as_dummy
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
3023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028
3029 test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="/usr/bin/strip"
3030 ;;
3031 esac
3032 fi
3033 STRIP=$ac_cv_path_STRIP
3034
3035 if test -n "$STRIP"; then
3036 echo "$as_me:$LINENO: result: $STRIP" >&5
3037 echo "${ECHO_T}$STRIP" >&6
3038 else
3039 echo "$as_me:$LINENO: result: no" >&5
3040 echo "${ECHO_T}no" >&6
3041 fi
3042
3043 # Extract the first word of "chmod", so it can be a program name with args.
3044 set dummy chmod; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_path_CHMOD+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 case $CHMOD in
3051 [\\/]* | ?:[\\/]*)
3052 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3053 ;;
3054 *)
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
3057 for as_dir in $as_dummy
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069
3070 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="/bin/chmod"
3071 ;;
3072 esac
3073 fi
3074 CHMOD=$ac_cv_path_CHMOD
3075
3076 if test -n "$CHMOD"; then
3077 echo "$as_me:$LINENO: result: $CHMOD" >&5
3078 echo "${ECHO_T}$CHMOD" >&6
3079 else
3080 echo "$as_me:$LINENO: result: no" >&5
3081 echo "${ECHO_T}no" >&6
3082 fi
3083
3084
3085
3086 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3087 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3088 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3089 if test "${enable_maintainer_mode+set}" = set; then
3090 enableval="$enable_maintainer_mode"
3091 USE_MAINTAINER_MODE=$enableval
3092 else
3093 USE_MAINTAINER_MODE=no
3094 fi;
3095 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3096 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3097
3098
3099 if test $USE_MAINTAINER_MODE = yes; then
3100 MAINTAINER_MODE_TRUE=
3101 MAINTAINER_MODE_FALSE='#'
3102 else
3103 MAINTAINER_MODE_TRUE='#'
3104 MAINTAINER_MODE_FALSE=
3105 fi
3106
3107 MAINT=$MAINTAINER_MODE_TRUE
3108
3109
3110
3111 if test "$GCC" = yes; then
3112 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
3113 fi
3114
3115
3116
3117
3118
3119
3120
3121
3122 ac_header_dirent=no
3123 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3124 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3125 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3126 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #include <sys/types.h>
3137 #include <$ac_hdr>
3138
3139 int
3140 main ()
3141 {
3142 if ((DIR *) 0)
3143 return 0;
3144 ;
3145 return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>conftest.er1
3151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag"
3158 || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 eval "$as_ac_Header=yes"
3171 else
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 eval "$as_ac_Header=no"
3176 fi
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3182 cat >>confdefs.h <<_ACEOF
3183 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3184 _ACEOF
3185
3186 ac_header_dirent=$ac_hdr; break
3187 fi
3188
3189 done
3190 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3191 if test $ac_header_dirent = dirent.h; then
3192 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3194 if test "${ac_cv_search_opendir+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 ac_func_search_save_LIBS=$LIBS
3198 ac_cv_search_opendir=no
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205
3206 /* Override any gcc2 internal prototype to avoid an error. */
3207 #ifdef __cplusplus
3208 extern "C"
3209 #endif
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3212 char opendir ();
3213 int
3214 main ()
3215 {
3216 opendir ();
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3223 (eval $ac_link) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 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="none required"
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 fi
3249 rm -f conftest.err conftest.$ac_objext \
3250 conftest$ac_exeext conftest.$ac_ext
3251 if test "$ac_cv_search_opendir" = no; then
3252 for ac_lib in dir; do
3253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 #ifdef __cplusplus
3263 extern "C"
3264 #endif
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3267 char opendir ();
3268 int
3269 main ()
3270 {
3271 opendir ();
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.$ac_objext conftest$ac_exeext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3278 (eval $ac_link) 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_c_werror_flag"
3286 || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try='test -s conftest$ac_exeext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_cv_search_opendir="-l$ac_lib"
3299 break
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 fi
3305 rm -f conftest.err conftest.$ac_objext \
3306 conftest$ac_exeext conftest.$ac_ext
3307 done
3308 fi
3309 LIBS=$ac_func_search_save_LIBS
3310 fi
3311 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3312 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3313 if test "$ac_cv_search_opendir" != no; then
3314 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3315
3316 fi
3317
3318 else
3319 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3321 if test "${ac_cv_search_opendir+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 ac_func_search_save_LIBS=$LIBS
3325 ac_cv_search_opendir=no
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332
3333 /* Override any gcc2 internal prototype to avoid an error. */
3334 #ifdef __cplusplus
3335 extern "C"
3336 #endif
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339 char opendir ();
3340 int
3341 main ()
3342 {
3343 opendir ();
3344 ;
3345 return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.$ac_objext conftest$ac_exeext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3350 (eval $ac_link) 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest$ac_exeext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_search_opendir="none required"
3371 else
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 fi
3376 rm -f conftest.err conftest.$ac_objext \
3377 conftest$ac_exeext conftest.$ac_ext
3378 if test "$ac_cv_search_opendir" = no; then
3379 for ac_lib in x; do
3380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 #ifdef __cplusplus
3390 extern "C"
3391 #endif
3392 /* We use char because int might match the return type of a gcc2
3393 builtin and then its argument prototype would still apply. */
3394 char opendir ();
3395 int
3396 main ()
3397 {
3398 opendir ();
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext conftest$ac_exeext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3405 (eval $ac_link) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest$ac_exeext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 ac_cv_search_opendir="-l$ac_lib"
3426 break
3427 else
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 fi
3432 rm -f conftest.err conftest.$ac_objext \
3433 conftest$ac_exeext conftest.$ac_ext
3434 done
3435 fi
3436 LIBS=$ac_func_search_save_LIBS
3437 fi
3438 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3439 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3440 if test "$ac_cv_search_opendir" != no; then
3441 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3442
3443 fi
3444
3445 fi
3446
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3453 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3456 CPP=
3457 fi
3458 if test -z "$CPP"; then
3459 if test "${ac_cv_prog_CPP+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462 # Double quotes because CPP needs to be expanded
3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3464 do
3465 ac_preproc_ok=false
3466 for ac_c_preproc_warn_flag in '' yes
3467 do
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #ifdef __STDC__
3481 # include <limits.h>
3482 #else
3483 # include <assert.h>
3484 #endif
3485 Syntax error
3486 _ACEOF
3487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498 else
3499 ac_cpp_err=
3500 fi
3501 else
3502 ac_cpp_err=yes
3503 fi
3504 if test -z "$ac_cpp_err"; then
3505 :
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 # Broken: fails on valid input.
3511 continue
3512 fi
3513 rm -f conftest.err conftest.$ac_ext
3514
3515 # OK, works on sane cases. Now check whether non-existent headers
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <ac_nonexistent.h>
3524 _ACEOF
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536 else
3537 ac_cpp_err=
3538 fi
3539 else
3540 ac_cpp_err=yes
3541 fi
3542 if test -z "$ac_cpp_err"; then
3543 # Broken: success on invalid input.
3544 continue
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 # Passes both tests.
3550 ac_preproc_ok=:
3551 break
3552 fi
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559 break
3560 fi
3561
3562 done
3563 ac_cv_prog_CPP=$CPP
3564
3565 fi
3566 CPP=$ac_cv_prog_CPP
3567 else
3568 ac_cv_prog_CPP=$CPP
3569 fi
3570 echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3574 do
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592 Syntax error
3593 _ACEOF
3594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3607 fi
3608 else
3609 ac_cpp_err=yes
3610 fi
3611 if test -z "$ac_cpp_err"; then
3612 :
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 # Broken: fails on valid input.
3618 continue
3619 fi
3620 rm -f conftest.err conftest.$ac_ext
3621
3622 # OK, works on sane cases. Now check whether non-existent headers
3623 # can be detected and how.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3631 _ACEOF
3632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev/null; then
3640 if test -s conftest.err; then
3641 ac_cpp_err=$ac_c_preproc_warn_flag
3642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3643 else
3644 ac_cpp_err=
3645 fi
3646 else
3647 ac_cpp_err=yes
3648 fi
3649 if test -z "$ac_cpp_err"; then
3650 # Broken: success on invalid input.
3651 continue
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 # Passes both tests.
3657 ac_preproc_ok=:
3658 break
3659 fi
3660 rm -f conftest.err conftest.$ac_ext
3661
3662 done
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3666 :
3667 else
3668 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&5
3670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3671 See \`config.log' for more details." >&2;}
3672 { (exit 1); exit 1; }; }
3673 fi
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682 echo "$as_me:$LINENO: checking for egrep" >&5
3683 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3684 if test "${ac_cv_prog_egrep+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3688 then ac_cv_prog_egrep='grep -E'
3689 else ac_cv_prog_egrep='egrep'
3690 fi
3691 fi
3692 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3693 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3694 EGREP=$ac_cv_prog_egrep
3695
3696
3697 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3698 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3699 if test "${ac_cv_header_stdc+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #include <stdlib.h>
3709 #include <stdarg.h>
3710 #include <string.h>
3711 #include <float.h>
3712
3713 int
3714 main ()
3715 {
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 rm -f conftest.$ac_objext
3722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_c_werror_flag"
3731 || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_cv_header_stdc=yes
3744 else
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 ac_cv_header_stdc=no
3749 fi
3750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3751
3752 if test $ac_cv_header_stdc = yes; then
3753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 #include <string.h>
3761
3762 _ACEOF
3763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3764 $EGREP "memchr" >/dev/null 2>&1; then
3765 :
3766 else
3767 ac_cv_header_stdc=no
3768 fi
3769 rm -f conftest*
3770
3771 fi
3772
3773 if test $ac_cv_header_stdc = yes; then
3774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #include <stdlib.h>
3782
3783 _ACEOF
3784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785 $EGREP "free" >/dev/null 2>&1; then
3786 :
3787 else
3788 ac_cv_header_stdc=no
3789 fi
3790 rm -f conftest*
3791
3792 fi
3793
3794 if test $ac_cv_header_stdc = yes; then
3795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3796 if test "$cross_compiling" = yes; then
3797 :
3798 else
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #include <ctype.h>
3806 #if ((' ' & 0x0FF) == 0x020)
3807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3809 #else
3810 # define ISLOWER(c) \
3811 (('a' <= (c) && (c) <= 'i') \
3812 || ('j' <= (c) && (c) <= 'r') \
3813 || ('s' <= (c) && (c) <= 'z'))
3814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3815 #endif
3816
3817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3818 int
3819 main ()
3820 {
3821 int i;
3822 for (i = 0; i < 256; i++)
3823 if (XOR (islower (i), ISLOWER (i))
3824 || toupper (i) != TOUPPER (i))
3825 exit(2);
3826 exit (0);
3827 }
3828 _ACEOF
3829 rm -f conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 :
3841 else
3842 echo "$as_me: program exited with status $ac_status" >&5
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 ( exit $ac_status )
3847 ac_cv_header_stdc=no
3848 fi
3849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3850 fi
3851 fi
3852 fi
3853 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3854 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3855 if test $ac_cv_header_stdc = yes; then
3856
3857 cat >>confdefs.h <<\_ACEOF
3858 #define STDC_HEADERS 1
3859 _ACEOF
3860
3861 fi
3862
3863 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3864 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3865 if test "${ac_cv_struct_tm+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h. */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3874 #include <sys/types.h>
3875 #include <time.h>
3876
3877 int
3878 main ()
3879 {
3880 struct tm *tp; tp->tm_sec;
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag"
3895 || test ! -s conftest.err'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; } &&
3901 { ac_try='test -s conftest.$ac_objext'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; }; then
3907 ac_cv_struct_tm=time.h
3908 else
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912 ac_cv_struct_tm=sys/time.h
3913 fi
3914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3917 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3918 if test $ac_cv_struct_tm = sys/time.h; then
3919
3920 cat >>confdefs.h <<\_ACEOF
3921 #define TM_IN_SYS_TIME 1
3922 _ACEOF
3923
3924 fi
3925
3926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937 inttypes.h stdint.h unistd.h
3938 do
3939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 $ac_includes_default
3952
3953 #include <$ac_header>
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957 (eval $ac_compile) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -z "$ac_c_werror_flag"
3965 || test ! -s conftest.err'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 eval "$as_ac_Header=yes"
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 eval "$as_ac_Header=no"
3983 fi
3984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3985 fi
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989 cat >>confdefs.h <<_ACEOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991 _ACEOF
3992
3993 fi
3994
3995 done
3996
3997
3998
3999
4000
4001
4002
4003 for ac_header in fcntl.h unistd.h sys/param.h stdlib.h limits.h
4004 do
4005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4007 echo "$as_me:$LINENO: checking for $ac_header" >&5
4008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 fi
4012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4014 else
4015 # Is the header compilable?
4016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4025 #include <$ac_header>
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest.$ac_objext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 ac_header_compiler=yes
4050 else
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 ac_header_compiler=no
4055 fi
4056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4058 echo "${ECHO_T}$ac_header_compiler" >&6
4059
4060 # Is the header present?
4061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #include <$ac_header>
4070 _ACEOF
4071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } >/dev/null; then
4079 if test -s conftest.err; then
4080 ac_cpp_err=$ac_c_preproc_warn_flag
4081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4082 else
4083 ac_cpp_err=
4084 fi
4085 else
4086 ac_cpp_err=yes
4087 fi
4088 if test -z "$ac_cpp_err"; then
4089 ac_header_preproc=yes
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 ac_header_preproc=no
4095 fi
4096 rm -f conftest.err conftest.$ac_ext
4097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4098 echo "${ECHO_T}$ac_header_preproc" >&6
4099
4100 # So? What about this header?
4101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4102 yes:no: )
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4107 ac_header_preproc=yes
4108 ;;
4109 no:yes:* )
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4122 (
4123 cat <<\_ASBOX
4124 ## ------------------------------------------ ##
4125 ## Report this to the AC_PACKAGE_NAME lists. ##
4126 ## ------------------------------------------ ##
4127 _ASBOX
4128 ) |
4129 sed "s/^/$as_me: WARNING: /" >&2
4130 ;;
4131 esac
4132 echo "$as_me:$LINENO: checking for $ac_header" >&5
4133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 eval "$as_ac_Header=\$ac_header_preproc"
4138 fi
4139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4141
4142 fi
4143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144 cat >>confdefs.h <<_ACEOF
4145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 _ACEOF
4147
4148 fi
4149
4150 done
4151
4152
4153 echo "$as_me:$LINENO: checking for off_t" >&5
4154 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4155 if test "${ac_cv_type_off_t+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 $ac_includes_default
4165 int
4166 main ()
4167 {
4168 if ((off_t *) 0)
4169 return 0;
4170 if (sizeof (off_t))
4171 return 0;
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 rm -f conftest.$ac_objext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178 (eval $ac_compile) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest.$ac_objext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 ac_cv_type_off_t=yes
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 ac_cv_type_off_t=no
4204 fi
4205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4208 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4209 if test $ac_cv_type_off_t = yes; then
4210 :
4211 else
4212
4213 cat >>confdefs.h <<_ACEOF
4214 #define off_t long
4215 _ACEOF
4216
4217 fi
4218
4219 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4220 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4221 if test "${ac_cv_struct_tm+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <sys/types.h>
4231 #include <time.h>
4232
4233 int
4234 main ()
4235 {
4236 struct tm *tp; tp->tm_sec;
4237 ;
4238 return 0;
4239 }
4240 _ACEOF
4241 rm -f conftest.$ac_objext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4243 (eval $ac_compile) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag"
4251 || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try='test -s conftest.$ac_objext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_struct_tm=time.h
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 ac_cv_struct_tm=sys/time.h
4269 fi
4270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4273 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4274 if test $ac_cv_struct_tm = sys/time.h; then
4275
4276 cat >>confdefs.h <<\_ACEOF
4277 #define TM_IN_SYS_TIME 1
4278 _ACEOF
4279
4280 fi
4281
4282
4283 # mkdir takes a single argument on some systems.
4284 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
4285 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
4286 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295
4296 #include <sys/types.h>
4297 #ifdef HAVE_SYS_STAT_H
4298 # include <sys/stat.h>
4299 #endif
4300 #ifdef HAVE_UNISTD_H
4301 # include <unistd.h>
4302 #endif
4303 #ifdef HAVE_DIRECT_H
4304 # include <direct.h>
4305 #endif
4306 int
4307 main ()
4308 {
4309 mkdir ("foo", 0);
4310 ;
4311 return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest.$ac_objext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316 (eval $ac_compile) 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag"
4324 || test ! -s conftest.err'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 gcc_cv_mkdir_takes_one_arg=no
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 gcc_cv_mkdir_takes_one_arg=yes
4342 fi
4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
4346 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
4347 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4348
4349 cat >>confdefs.h <<\_ACEOF
4350 #define MKDIR_TAKES_ONE_ARG 1
4351 _ACEOF
4352
4353 fi
4354
4355
4356 echo "$as_me:$LINENO: checking size of char" >&5
4357 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4358 if test "${ac_cv_sizeof_char+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include "confdefs.h"
4369 #include <sys/types.h>
4370
4371
4372 int
4373 main ()
4374 {
4375 switch (0) case 0: case (sizeof (char) == $ac_size):;
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag"
4390 || test ! -s conftest.err'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_cv_sizeof_char=$ac_size
4403 else
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407 fi
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 if test x$ac_cv_sizeof_char != x ; then break; fi
4410 done
4411
4412 fi
4413
4414 if test x$ac_cv_sizeof_char = x ; then
4415 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
4416 echo "$as_me: error: cannot determine a size for char" >&2;}
4417 { (exit 1); exit 1; }; }
4418 fi
4419 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4420 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4421
4422 cat >>confdefs.h <<_ACEOF
4423 #define SIZEOF_CHAR $ac_cv_sizeof_char
4424 _ACEOF
4425
4426
4427 echo "$as_me:$LINENO: checking size of short" >&5
4428 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4429 if test "${ac_cv_sizeof_short+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 #include "confdefs.h"
4440 #include <sys/types.h>
4441
4442
4443 int
4444 main ()
4445 {
4446 switch (0) case 0: case (sizeof (short) == $ac_size):;
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag"
4461 || test ! -s conftest.err'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_sizeof_short=$ac_size
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 fi
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480 if test x$ac_cv_sizeof_short != x ; then break; fi
4481 done
4482
4483 fi
4484
4485 if test x$ac_cv_sizeof_short = x ; then
4486 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
4487 echo "$as_me: error: cannot determine a size for short" >&2;}
4488 { (exit 1); exit 1; }; }
4489 fi
4490 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4491 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4492
4493 cat >>confdefs.h <<_ACEOF
4494 #define SIZEOF_SHORT $ac_cv_sizeof_short
4495 _ACEOF
4496
4497
4498 echo "$as_me:$LINENO: checking size of int" >&5
4499 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4500 if test "${ac_cv_sizeof_int+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h. */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4510 #include "confdefs.h"
4511 #include <sys/types.h>
4512
4513
4514 int
4515 main ()
4516 {
4517 switch (0) case 0: case (sizeof (int) == $ac_size):;
4518 ;
4519 return 0;
4520 }
4521 _ACEOF
4522 rm -f conftest.$ac_objext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>conftest.er1
4525 ac_status=$?
4526 grep -v '^ *+' conftest.er1 >conftest.err
4527 rm -f conftest.er1
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -z "$ac_c_werror_flag"
4532 || test ! -s conftest.err'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
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_sizeof_int=$ac_size
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 fi
4550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4551 if test x$ac_cv_sizeof_int != x ; then break; fi
4552 done
4553
4554 fi
4555
4556 if test x$ac_cv_sizeof_int = x ; then
4557 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
4558 echo "$as_me: error: cannot determine a size for int" >&2;}
4559 { (exit 1); exit 1; }; }
4560 fi
4561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4562 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4563
4564 cat >>confdefs.h <<_ACEOF
4565 #define SIZEOF_INT $ac_cv_sizeof_int
4566 _ACEOF
4567
4568
4569 echo "$as_me:$LINENO: checking size of long" >&5
4570 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4571 if test "${ac_cv_sizeof_long+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include "confdefs.h"
4582 #include <sys/types.h>
4583
4584
4585 int
4586 main ()
4587 {
4588 switch (0) case 0: case (sizeof (long) == $ac_size):;
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_sizeof_long=$ac_size
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 fi
4621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 if test x$ac_cv_sizeof_long != x ; then break; fi
4623 done
4624
4625 fi
4626
4627 if test x$ac_cv_sizeof_long = x ; then
4628 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
4629 echo "$as_me: error: cannot determine a size for long" >&2;}
4630 { (exit 1); exit 1; }; }
4631 fi
4632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4633 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4634
4635 cat >>confdefs.h <<_ACEOF
4636 #define SIZEOF_LONG $ac_cv_sizeof_long
4637 _ACEOF
4638
4639
4640 echo "$as_me:$LINENO: checking for long long" >&5
4641 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4642 if test "${ac_cv_type_long_long+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655 if ((long long *) 0)
4656 return 0;
4657 if (sizeof (long long))
4658 return 0;
4659 ;
4660 return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 ac_cv_type_long_long=yes
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 ac_cv_type_long_long=no
4691 fi
4692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4695 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4696 if test $ac_cv_type_long_long = yes; then
4697
4698 cat >>confdefs.h <<_ACEOF
4699 #define HAVE_LONG_LONG 1
4700 _ACEOF
4701
4702 echo "$as_me:$LINENO: checking size of long long" >&5
4703 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4704 if test "${ac_cv_sizeof_long_long+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #include "confdefs.h"
4715 #include <sys/types.h>
4716
4717
4718 int
4719 main ()
4720 {
4721 switch (0) case 0: case (sizeof (long long) == $ac_size):;
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest.$ac_objext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728 (eval $ac_compile) 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -z "$ac_c_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_sizeof_long_long=$ac_size
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 fi
4754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4755 if test x$ac_cv_sizeof_long_long != x ; then break; fi
4756 done
4757
4758 fi
4759
4760 if test x$ac_cv_sizeof_long_long = x ; then
4761 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
4762 echo "$as_me: error: cannot determine a size for long long" >&2;}
4763 { (exit 1); exit 1; }; }
4764 fi
4765 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
4766 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4767
4768 cat >>confdefs.h <<_ACEOF
4769 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4770 _ACEOF
4771
4772
4773 fi
4774
4775
4776 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4777 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4778 if test "${ac_cv_c_bigendian+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 ac_cv_c_bigendian=unknown
4782 # See if sys/param.h defines the BYTE_ORDER macro.
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #include <sys/types.h>
4790 #include <sys/param.h>
4791 int
4792 main ()
4793 {
4794
4795 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4796 bogus endian macros
4797 #endif
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 # It does; now see whether it defined to BIG_ENDIAN or not.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <sys/types.h>
4832 #include <sys/param.h>
4833 int
4834 main ()
4835 {
4836
4837 #if BYTE_ORDER != BIG_ENDIAN
4838 not big endian
4839 #endif
4840 ;
4841 return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_c_bigendian=yes
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 ac_cv_c_bigendian=no
4872 fi
4873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874 else
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 fi
4879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880 if test $ac_cv_c_bigendian = unknown; then
4881 if test "$cross_compiling" = yes; then
4882 echo $ac_n "cross-compiling... " 2>&6
4883 else
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 main () {
4891 /* Are we little or big endian? From Harbison&Steele. */
4892 union
4893 {
4894 long l;
4895 char c[sizeof (long)];
4896 } u;
4897 u.l = 1;
4898 exit (u.c[sizeof (long) - 1] == 1);
4899 }
4900 _ACEOF
4901 rm -f conftest$ac_exeext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4903 (eval $ac_link) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_c_bigendian=no
4913 else
4914 echo "$as_me: program exited with status $ac_status" >&5
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918 ( exit $ac_status )
4919 ac_cv_c_bigendian=yes
4920 fi
4921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4922 fi
4923 fi
4924 fi
4925 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4926 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4927 if test $ac_cv_c_bigendian = unknown; then
4928 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
4929 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
4930
4931 cat >conftest.c <<EOF
4932 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4933 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4934 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
4935 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4936 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4937 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
4938 int main() { _ascii (); _ebcdic (); return 0; }
4939 EOF
4940 if test -f conftest.c ; then
4941 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
4942 if test `grep -l BIGenDianSyS conftest.o` ; then
4943 echo $ac_n ' big endian probe OK, ' 1>&6
4944 ac_cv_c_bigendian=yes
4945 fi
4946 if test `grep -l LiTTleEnDian conftest.o` ; then
4947 echo $ac_n ' little endian probe OK, ' 1>&6
4948 if test $ac_cv_c_bigendian = yes ; then
4949 ac_cv_c_bigendian=unknown;
4950 else
4951 ac_cv_c_bigendian=no
4952 fi
4953 fi
4954 echo $ac_n 'guessing bigendian ... ' >&6
4955 fi
4956 fi
4957 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4958 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4959 fi
4960 if test $ac_cv_c_bigendian = yes; then
4961
4962 cat >>confdefs.h <<\_ACEOF
4963 #define WORDS_BIGENDIAN 1
4964 _ACEOF
4965
4966
4967 cat >>confdefs.h <<\_ACEOF
4968 #define HOST_WORDS_BIG_ENDIAN 1
4969 _ACEOF
4970
4971 BYTEORDER=4321
4972 else
4973 BYTEORDER=1234
4974 fi
4975
4976 cat >>confdefs.h <<_ACEOF
4977 #define BYTEORDER $BYTEORDER
4978 _ACEOF
4979
4980 if test $ac_cv_c_bigendian = unknown; then
4981 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
4982 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
4983 { (exit 1); exit 1; }; }
4984 fi
4985
4986
4987
4988 # Check whether --with-system-zlib or --without-system-zlib was given.
4989 if test "${with_system_zlib+set}" = set; then
4990 withval="$with_system_zlib"
4991
4992 fi;
4993
4994 ZLIBS=
4995 ZDEPS=
4996 ZINCS=
4997 use_zlib=maybe
4998 if test "$with_system_zlib" = yes; then
4999 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5000 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5001 if test "${ac_cv_lib_z_deflate+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 ac_check_lib_save_LIBS=$LIBS
5005 LIBS="-lz $LIBS"
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012
5013 /* Override any gcc2 internal prototype to avoid an error. */
5014 #ifdef __cplusplus
5015 extern "C"
5016 #endif
5017 /* We use char because int might match the return type of a gcc2
5018 builtin and then its argument prototype would still apply. */
5019 char deflate ();
5020 int
5021 main ()
5022 {
5023 deflate ();
5024 ;
5025 return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest$ac_exeext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_cv_lib_z_deflate=yes
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 ac_cv_lib_z_deflate=no
5056 fi
5057 rm -f conftest.err conftest.$ac_objext \
5058 conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5060 fi
5061 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5062 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5063 if test $ac_cv_lib_z_deflate = yes; then
5064 ZLIBS=-lz
5065 else
5066 use_zlib=no
5067 fi
5068
5069 else
5070 use_zlib=no
5071 fi
5072
5073 if test "$use_zlib" = no; then
5074 # Brain dead way to find tree's zlib.
5075 ZDEPS='$(top_builddir)/../zlib/libz.a'
5076 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5077 ZINCS='-I$(top_srcdir)/../zlib'
5078 fi
5079
5080
5081
5082
5083 # GCC LOCAL CHANGE
5084 # We would like to our source tree to be readonly. However when releases or
5085 # pre-releases are generated, the man pages need to be included as they are
5086 # converted from the texi files via perl which we don't require end users to
5087 # have installed.
5088 # Therefore we have --enable-generated-files-in-srcdir to do just that.
5089
5090 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
5091 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
5092 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
5093 if test "${enable_generated_files_in_srcdir+set}" = set; then
5094 enableval="$enable_generated_files_in_srcdir"
5095 generated_files_in_srcdir=$enableval
5096 else
5097 generated_files_in_srcdir=no
5098 fi;
5099
5100 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
5101 echo "${ECHO_T}$generated_files_in_srcdir" >&6
5102
5103
5104 if test x$generated_files_in_srcdir = xyes; then
5105 GENINSRC_TRUE=
5106 GENINSRC_FALSE='#'
5107 else
5108 GENINSRC_TRUE='#'
5109 GENINSRC_FALSE=
5110 fi
5111
5112
5113 # Get the version trigger filename from the toplevel
5114 if test "${with_gcc_version_trigger+set}" = set; then
5115 gcc_version_trigger=$with_gcc_version_trigger
5116 else
5117 gcc_version_trigger=${srcdir}/version.c
5118 fi
5119 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5120 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5121
5122
5123 ac_config_files="$ac_config_files Makefile install-defs.sh"
5124 cat >confcache <<\_ACEOF
5125 # This file is a shell script that caches the results of configure
5126 # tests run on this system so they can be shared between configure
5127 # scripts and configure runs, see configure's option --config-cache.
5128 # It is not useful on other systems. If it contains results you don't
5129 # want to keep, you may remove or edit it.
5130 #
5131 # config.status only pays attention to the cache file if you give it
5132 # the --recheck option to rerun configure.
5133 #
5134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5136 # following values.
5137
5138 _ACEOF
5139
5140 # The following way of writing the cache mishandles newlines in values,
5141 # but we know of no workaround that is simple, portable, and efficient.
5142 # So, don't put newlines in cache variables' values.
5143 # Ultrix sh set writes to stderr and can't be redirected directly,
5144 # and sets the high bit in the cache file unless we assign to the vars.
5145 {
5146 (set) 2>&1 |
5147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5148 *ac_space=\ *)
5149 # `set' does not quote correctly, so add quotes (double-quote
5150 # substitution turns \\\\ into \\, and sed turns \\ into \).
5151 sed -n \
5152 "s/'/'\\\\''/g;
5153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5154 ;;
5155 *)
5156 # `set' quotes correctly as required by POSIX, so do not add quotes.
5157 sed -n \
5158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5159 ;;
5160 esac;
5161 } |
5162 sed '
5163 t clear
5164 : clear
5165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5166 t end
5167 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5168 : end' >>confcache
5169 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5170 if test -w $cache_file; then
5171 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5172 cat confcache >$cache_file
5173 else
5174 echo "not updating unwritable cache $cache_file"
5175 fi
5176 fi
5177 rm -f confcache
5178
5179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5180 # Let make expand exec_prefix.
5181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5182
5183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5185 # trailing colons and then remove the whole line if VPATH becomes empty
5186 # (actually we leave an empty line to preserve line numbers).
5187 if test "x$srcdir" = x.; then
5188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5189 s/:*\$(srcdir):*/:/;
5190 s/:*\${srcdir}:*/:/;
5191 s/:*@srcdir@:*/:/;
5192 s/^\([^=]*=[ ]*\):*/\1/;
5193 s/:*$//;
5194 s/^[^=]*=[ ]*$//;
5195 }'
5196 fi
5197
5198 DEFS=-DHAVE_CONFIG_H
5199
5200 ac_libobjs=
5201 ac_ltlibobjs=
5202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5203 # 1. Remove the extension, and $U if already installed.
5204 ac_i=`echo "$ac_i" |
5205 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5206 # 2. Add them.
5207 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5208 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5209 done
5210 LIBOBJS=$ac_libobjs
5211
5212 LTLIBOBJS=$ac_ltlibobjs
5213
5214
5215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5216 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5217 Usually this means the macro was only invoked conditionally." >&5
5218 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5219 Usually this means the macro was only invoked conditionally." >&2;}
5220 { (exit 1); exit 1; }; }
5221 fi
5222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5223 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5224 Usually this means the macro was only invoked conditionally." >&5
5225 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5226 Usually this means the macro was only invoked conditionally." >&2;}
5227 { (exit 1); exit 1; }; }
5228 fi
5229 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5230 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5231 Usually this means the macro was only invoked conditionally." >&5
5232 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5233 Usually this means the macro was only invoked conditionally." >&2;}
5234 { (exit 1); exit 1; }; }
5235 fi
5236 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
5237 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
5238 Usually this means the macro was only invoked conditionally." >&5
5239 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
5240 Usually this means the macro was only invoked conditionally." >&2;}
5241 { (exit 1); exit 1; }; }
5242 fi
5243
5244 : ${CONFIG_STATUS=./config.status}
5245 ac_clean_files_save=$ac_clean_files
5246 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5247 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5248 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5249 cat >$CONFIG_STATUS <<_ACEOF
5250 #! $SHELL
5251 # Generated by $as_me.
5252 # Run this file to recreate the current configuration.
5253 # Compiler output produced by configure, useful for debugging
5254 # configure, is in config.log if it exists.
5255
5256 debug=false
5257 ac_cs_recheck=false
5258 ac_cs_silent=false
5259 SHELL=\${CONFIG_SHELL-$SHELL}
5260 _ACEOF
5261
5262 cat >>$CONFIG_STATUS <<\_ACEOF
5263 ## --------------------- ##
5264 ## M4sh Initialization. ##
5265 ## --------------------- ##
5266
5267 # Be Bourne compatible
5268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5269 emulate sh
5270 NULLCMD=:
5271 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5272 # is contrary to our usage. Disable this feature.
5273 alias -g '${1+"$@"}'='"$@"'
5274 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5275 set -o posix
5276 fi
5277 DUALCASE=1; export DUALCASE # for MKS sh
5278
5279 # Support unset when possible.
5280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5281 as_unset=unset
5282 else
5283 as_unset=false
5284 fi
5285
5286
5287 # Work around bugs in pre-3.0 UWIN ksh.
5288 $as_unset ENV MAIL MAILPATH
5289 PS1='$ '
5290 PS2='> '
5291 PS4='+ '
5292
5293 # NLS nuisances.
5294 for as_var in \
5295 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5296 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5297 LC_TELEPHONE LC_TIME
5298 do
5299 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5300 eval $as_var=C; export $as_var
5301 else
5302 $as_unset $as_var
5303 fi
5304 done
5305
5306 # Required to use basename.
5307 if expr a : '\(a\)' >/dev/null 2>&1; then
5308 as_expr=expr
5309 else
5310 as_expr=false
5311 fi
5312
5313 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5314 as_basename=basename
5315 else
5316 as_basename=false
5317 fi
5318
5319
5320 # Name of the executable.
5321 as_me=`$as_basename "$0" ||
5322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5323 X"$0" : 'X\(//\)$' \| \
5324 X"$0" : 'X\(/\)$' \| \
5325 . : '\(.\)' 2>/dev/null ||
5326 echo X/"$0" |
5327 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5328 /^X\/\(\/\/\)$/{ s//\1/; q; }
5329 /^X\/\(\/\).*/{ s//\1/; q; }
5330 s/.*/./; q'`
5331
5332
5333 # PATH needs CR, and LINENO needs CR and PATH.
5334 # Avoid depending upon Character Ranges.
5335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5338 as_cr_digits='0123456789'
5339 as_cr_alnum=$as_cr_Letters$as_cr_digits
5340
5341 # The user is always right.
5342 if test "${PATH_SEPARATOR+set}" != set; then
5343 echo "#! /bin/sh" >conf$$.sh
5344 echo "exit 0" >>conf$$.sh
5345 chmod +x conf$$.sh
5346 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5347 PATH_SEPARATOR=';'
5348 else
5349 PATH_SEPARATOR=:
5350 fi
5351 rm -f conf$$.sh
5352 fi
5353
5354
5355 as_lineno_1=$LINENO
5356 as_lineno_2=$LINENO
5357 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5358 test "x$as_lineno_1" != "x$as_lineno_2" &&
5359 test "x$as_lineno_3" = "x$as_lineno_2" || {
5360 # Find who we are. Look in the path if we contain no path at all
5361 # relative or not.
5362 case $0 in
5363 *[\\/]* ) as_myself=$0 ;;
5364 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5370 done
5371
5372 ;;
5373 esac
5374 # We did not find ourselves, most probably we were run as `sh COMMAND'
5375 # in which case we are not to be found in the path.
5376 if test "x$as_myself" = x; then
5377 as_myself=$0
5378 fi
5379 if test ! -f "$as_myself"; then
5380 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5381 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5382 { (exit 1); exit 1; }; }
5383 fi
5384 case $CONFIG_SHELL in
5385 '')
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5388 do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for as_base in sh bash ksh sh5; do
5392 case $as_dir in
5393 /*)
5394 if ("$as_dir/$as_base" -c '
5395 as_lineno_1=$LINENO
5396 as_lineno_2=$LINENO
5397 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5398 test "x$as_lineno_1" != "x$as_lineno_2" &&
5399 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5400 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5401 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5402 CONFIG_SHELL=$as_dir/$as_base
5403 export CONFIG_SHELL
5404 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5405 fi;;
5406 esac
5407 done
5408 done
5409 ;;
5410 esac
5411
5412 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5413 # uniformly replaced by the line number. The first 'sed' inserts a
5414 # line-number line before each line; the second 'sed' does the real
5415 # work. The second script uses 'N' to pair each line-number line
5416 # with the numbered line, and appends trailing '-' during
5417 # substitution so that $LINENO is not a special case at line end.
5418 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5419 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5420 sed '=' <$as_myself |
5421 sed '
5422 N
5423 s,$,-,
5424 : loop
5425 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5426 t loop
5427 s,-$,,
5428 s,^['$as_cr_digits']*\n,,
5429 ' >$as_me.lineno &&
5430 chmod +x $as_me.lineno ||
5431 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5432 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5433 { (exit 1); exit 1; }; }
5434
5435 # Don't try to exec as it changes $[0], causing all sort of problems
5436 # (the dirname of $[0] is not the place where we might find the
5437 # original and so on. Autoconf is especially sensible to this).
5438 . ./$as_me.lineno
5439 # Exit status is that of the last command.
5440 exit
5441 }
5442
5443
5444 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5445 *c*,-n*) ECHO_N= ECHO_C='
5446 ' ECHO_T=' ' ;;
5447 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5448 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5449 esac
5450
5451 if expr a : '\(a\)' >/dev/null 2>&1; then
5452 as_expr=expr
5453 else
5454 as_expr=false
5455 fi
5456
5457 rm -f conf$$ conf$$.exe conf$$.file
5458 echo >conf$$.file
5459 if ln -s conf$$.file conf$$ 2>/dev/null; then
5460 # We could just check for DJGPP; but this test a) works b) is more generic
5461 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5462 if test -f conf$$.exe; then
5463 # Don't use ln at all; we don't have any links
5464 as_ln_s='cp -p'
5465 else
5466 as_ln_s='ln -s'
5467 fi
5468 elif ln conf$$.file conf$$ 2>/dev/null; then
5469 as_ln_s=ln
5470 else
5471 as_ln_s='cp -p'
5472 fi
5473 rm -f conf$$ conf$$.exe conf$$.file
5474
5475 if mkdir -p . 2>/dev/null; then
5476 as_mkdir_p=:
5477 else
5478 test -d ./-p && rmdir ./-p
5479 as_mkdir_p=false
5480 fi
5481
5482 as_executable_p="test -f"
5483
5484 # Sed expression to map a string onto a valid CPP name.
5485 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5486
5487 # Sed expression to map a string onto a valid variable name.
5488 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5489
5490
5491 # IFS
5492 # We need space, tab and new line, in precisely that order.
5493 as_nl='
5494 '
5495 IFS=" $as_nl"
5496
5497 # CDPATH.
5498 $as_unset CDPATH
5499
5500 exec 6>&1
5501
5502 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5503 # report actual input values of CONFIG_FILES etc. instead of their
5504 # values after options handling. Logging --version etc. is OK.
5505 exec 5>>config.log
5506 {
5507 echo
5508 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5509 ## Running $as_me. ##
5510 _ASBOX
5511 } >&5
5512 cat >&5 <<_CSEOF
5513
5514 This file was extended by $as_me, which was
5515 generated by GNU Autoconf 2.59. Invocation command line was
5516
5517 CONFIG_FILES = $CONFIG_FILES
5518 CONFIG_HEADERS = $CONFIG_HEADERS
5519 CONFIG_LINKS = $CONFIG_LINKS
5520 CONFIG_COMMANDS = $CONFIG_COMMANDS
5521 $ $0 $@
5522
5523 _CSEOF
5524 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5525 echo >&5
5526 _ACEOF
5527
5528 # Files that config.status was made for.
5529 if test -n "$ac_config_files"; then
5530 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5531 fi
5532
5533 if test -n "$ac_config_headers"; then
5534 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5535 fi
5536
5537 if test -n "$ac_config_links"; then
5538 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5539 fi
5540
5541 if test -n "$ac_config_commands"; then
5542 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5543 fi
5544
5545 cat >>$CONFIG_STATUS <<\_ACEOF
5546
5547 ac_cs_usage="\
5548 \`$as_me' instantiates files from templates according to the
5549 current configuration.
5550
5551 Usage: $0 [OPTIONS] [FILE]...
5552
5553 -h, --help print this help, then exit
5554 -V, --version print version number, then exit
5555 -q, --quiet do not print progress messages
5556 -d, --debug don't remove temporary files
5557 --recheck update $as_me by reconfiguring in the same conditions
5558 --file=FILE[:TEMPLATE]
5559 instantiate the configuration file FILE
5560 --header=FILE[:TEMPLATE]
5561 instantiate the configuration header FILE
5562
5563 Configuration files:
5564 $config_files
5565
5566 Configuration headers:
5567 $config_headers
5568
5569 Configuration commands:
5570 $config_commands
5571
5572 Report bugs to <bug-autoconf@gnu.org>."
5573 _ACEOF
5574
5575 cat >>$CONFIG_STATUS <<_ACEOF
5576 ac_cs_version="\\
5577 config.status
5578 configured by $0, generated by GNU Autoconf 2.59,
5579 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5580
5581 Copyright (C) 2003 Free Software Foundation, Inc.
5582 This config.status script is free software; the Free Software Foundation
5583 gives unlimited permission to copy, distribute and modify it."
5584 srcdir=$srcdir
5585 INSTALL="$INSTALL"
5586 _ACEOF
5587
5588 cat >>$CONFIG_STATUS <<\_ACEOF
5589 # If no file are specified by the user, then we need to provide default
5590 # value. By we need to know if files were specified by the user.
5591 ac_need_defaults=:
5592 while test $# != 0
5593 do
5594 case $1 in
5595 --*=*)
5596 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5597 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5598 ac_shift=:
5599 ;;
5600 -*)
5601 ac_option=$1
5602 ac_optarg=$2
5603 ac_shift=shift
5604 ;;
5605 *) # This is not an option, so the user has probably given explicit
5606 # arguments.
5607 ac_option=$1
5608 ac_need_defaults=false;;
5609 esac
5610
5611 case $ac_option in
5612 # Handling of the options.
5613 _ACEOF
5614 cat >>$CONFIG_STATUS <<\_ACEOF
5615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5616 ac_cs_recheck=: ;;
5617 --version | --vers* | -V )
5618 echo "$ac_cs_version"; exit 0 ;;
5619 --he | --h)
5620 # Conflict between --help and --header
5621 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5622 Try \`$0 --help' for more information." >&5
5623 echo "$as_me: error: ambiguous option: $1
5624 Try \`$0 --help' for more information." >&2;}
5625 { (exit 1); exit 1; }; };;
5626 --help | --hel | -h )
5627 echo "$ac_cs_usage"; exit 0 ;;
5628 --debug | --d* | -d )
5629 debug=: ;;
5630 --file | --fil | --fi | --f )
5631 $ac_shift
5632 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5633 ac_need_defaults=false;;
5634 --header | --heade | --head | --hea )
5635 $ac_shift
5636 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5637 ac_need_defaults=false;;
5638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5639 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5640 ac_cs_silent=: ;;
5641
5642 # This is an error.
5643 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5644 Try \`$0 --help' for more information." >&5
5645 echo "$as_me: error: unrecognized option: $1
5646 Try \`$0 --help' for more information." >&2;}
5647 { (exit 1); exit 1; }; } ;;
5648
5649 *) ac_config_targets="$ac_config_targets $1" ;;
5650
5651 esac
5652 shift
5653 done
5654
5655 ac_configure_extra_args=
5656
5657 if $ac_cs_silent; then
5658 exec 6>/dev/null
5659 ac_configure_extra_args="$ac_configure_extra_args --silent"
5660 fi
5661
5662 _ACEOF
5663 cat >>$CONFIG_STATUS <<_ACEOF
5664 if \$ac_cs_recheck; then
5665 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5666 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5667 fi
5668
5669 _ACEOF
5670
5671 cat >>$CONFIG_STATUS <<_ACEOF
5672 #
5673 # INIT-COMMANDS section.
5674 #
5675
5676 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5677
5678 _ACEOF
5679
5680
5681
5682 cat >>$CONFIG_STATUS <<\_ACEOF
5683 for ac_config_target in $ac_config_targets
5684 do
5685 case "$ac_config_target" in
5686 # Handling of arguments.
5687 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5688 "install-defs.sh" ) CONFIG_FILES="$CONFIG_FILES install-defs.sh" ;;
5689 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5690 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5691 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5692 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5693 { (exit 1); exit 1; }; };;
5694 esac
5695 done
5696
5697 # If the user did not use the arguments to specify the items to instantiate,
5698 # then the envvar interface is used. Set only those that are not.
5699 # We use the long form for the default assignment because of an extremely
5700 # bizarre bug on SunOS 4.1.3.
5701 if $ac_need_defaults; then
5702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5705 fi
5706
5707 # Have a temporary directory for convenience. Make it in the build tree
5708 # simply because there is no reason to put it here, and in addition,
5709 # creating and moving files from /tmp can sometimes cause problems.
5710 # Create a temporary directory, and hook for its removal unless debugging.
5711 $debug ||
5712 {
5713 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5714 trap '{ (exit 1); exit 1; }' 1 2 13 15
5715 }
5716
5717 # Create a (secure) tmp directory for tmp files.
5718
5719 {
5720 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5721 test -n "$tmp" && test -d "$tmp"
5722 } ||
5723 {
5724 tmp=./confstat$$-$RANDOM
5725 (umask 077 && mkdir $tmp)
5726 } ||
5727 {
5728 echo "$me: cannot create a temporary directory in ." >&2
5729 { (exit 1); exit 1; }
5730 }
5731
5732 _ACEOF
5733
5734 cat >>$CONFIG_STATUS <<_ACEOF
5735
5736 #
5737 # CONFIG_FILES section.
5738 #
5739
5740 # No need to generate the scripts if there are no CONFIG_FILES.
5741 # This happens for instance when ./config.status config.h
5742 if test -n "\$CONFIG_FILES"; then
5743 # Protect against being on the right side of a sed subst in config.status.
5744 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5745 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5746 s,@SHELL@,$SHELL,;t t
5747 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5748 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5749 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5750 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5751 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5752 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5753 s,@exec_prefix@,$exec_prefix,;t t
5754 s,@prefix@,$prefix,;t t
5755 s,@program_transform_name@,$program_transform_name,;t t
5756 s,@bindir@,$bindir,;t t
5757 s,@sbindir@,$sbindir,;t t
5758 s,@libexecdir@,$libexecdir,;t t
5759 s,@datadir@,$datadir,;t t
5760 s,@sysconfdir@,$sysconfdir,;t t
5761 s,@sharedstatedir@,$sharedstatedir,;t t
5762 s,@localstatedir@,$localstatedir,;t t
5763 s,@libdir@,$libdir,;t t
5764 s,@includedir@,$includedir,;t t
5765 s,@oldincludedir@,$oldincludedir,;t t
5766 s,@infodir@,$infodir,;t t
5767 s,@mandir@,$mandir,;t t
5768 s,@build_alias@,$build_alias,;t t
5769 s,@host_alias@,$host_alias,;t t
5770 s,@target_alias@,$target_alias,;t t
5771 s,@DEFS@,$DEFS,;t t
5772 s,@ECHO_C@,$ECHO_C,;t t
5773 s,@ECHO_N@,$ECHO_N,;t t
5774 s,@ECHO_T@,$ECHO_T,;t t
5775 s,@LIBS@,$LIBS,;t t
5776 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5777 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5778 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5779 s,@CYGPATH_W@,$CYGPATH_W,;t t
5780 s,@PACKAGE@,$PACKAGE,;t t
5781 s,@VERSION@,$VERSION,;t t
5782 s,@ACLOCAL@,$ACLOCAL,;t t
5783 s,@AUTOCONF@,$AUTOCONF,;t t
5784 s,@AUTOMAKE@,$AUTOMAKE,;t t
5785 s,@AUTOHEADER@,$AUTOHEADER,;t t
5786 s,@MAKEINFO@,$MAKEINFO,;t t
5787 s,@AMTAR@,$AMTAR,;t t
5788 s,@install_sh@,$install_sh,;t t
5789 s,@STRIP@,$STRIP,;t t
5790 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5791 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5792 s,@mkdir_p@,$mkdir_p,;t t
5793 s,@AWK@,$AWK,;t t
5794 s,@SET_MAKE@,$SET_MAKE,;t t
5795 s,@am__leading_dot@,$am__leading_dot,;t t
5796 s,@CC@,$CC,;t t
5797 s,@CFLAGS@,$CFLAGS,;t t
5798 s,@LDFLAGS@,$LDFLAGS,;t t
5799 s,@CPPFLAGS@,$CPPFLAGS,;t t
5800 s,@ac_ct_CC@,$ac_ct_CC,;t t
5801 s,@EXEEXT@,$EXEEXT,;t t
5802 s,@OBJEXT@,$OBJEXT,;t t
5803 s,@DEPDIR@,$DEPDIR,;t t
5804 s,@am__include@,$am__include,;t t
5805 s,@am__quote@,$am__quote,;t t
5806 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5807 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5808 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5809 s,@CCDEPMODE@,$CCDEPMODE,;t t
5810 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5811 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5812 s,@RM@,$RM,;t t
5813 s,@CP@,$CP,;t t
5814 s,@CHMOD@,$CHMOD,;t t
5815 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5816 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5817 s,@MAINT@,$MAINT,;t t
5818 s,@fastjar_warn_cflags@,$fastjar_warn_cflags,;t t
5819 s,@CPP@,$CPP,;t t
5820 s,@EGREP@,$EGREP,;t t
5821 s,@ZLIBS@,$ZLIBS,;t t
5822 s,@ZDEPS@,$ZDEPS,;t t
5823 s,@ZINCS@,$ZINCS,;t t
5824 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
5825 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
5826 s,@gcc_version@,$gcc_version,;t t
5827 s,@LIBOBJS@,$LIBOBJS,;t t
5828 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5829 CEOF
5830
5831 _ACEOF
5832
5833 cat >>$CONFIG_STATUS <<\_ACEOF
5834 # Split the substitutions into bite-sized pieces for seds with
5835 # small command number limits, like on Digital OSF/1 and HP-UX.
5836 ac_max_sed_lines=48
5837 ac_sed_frag=1 # Number of current file.
5838 ac_beg=1 # First line for current file.
5839 ac_end=$ac_max_sed_lines # Line after last line for current file.
5840 ac_more_lines=:
5841 ac_sed_cmds=
5842 while $ac_more_lines; do
5843 if test $ac_beg -gt 1; then
5844 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5845 else
5846 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5847 fi
5848 if test ! -s $tmp/subs.frag; then
5849 ac_more_lines=false
5850 else
5851 # The purpose of the label and of the branching condition is to
5852 # speed up the sed processing (if there are no `@' at all, there
5853 # is no need to browse any of the substitutions).
5854 # These are the two extra sed commands mentioned above.
5855 (echo ':t
5856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5857 if test -z "$ac_sed_cmds"; then
5858 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5859 else
5860 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5861 fi
5862 ac_sed_frag=`expr $ac_sed_frag + 1`
5863 ac_beg=$ac_end
5864 ac_end=`expr $ac_end + $ac_max_sed_lines`
5865 fi
5866 done
5867 if test -z "$ac_sed_cmds"; then
5868 ac_sed_cmds=cat
5869 fi
5870 fi # test -n "$CONFIG_FILES"
5871
5872 _ACEOF
5873 cat >>$CONFIG_STATUS <<\_ACEOF
5874 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5876 case $ac_file in
5877 - | *:- | *:-:* ) # input from stdin
5878 cat >$tmp/stdin
5879 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5881 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5883 * ) ac_file_in=$ac_file.in ;;
5884 esac
5885
5886 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5887 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5889 X"$ac_file" : 'X\(//\)[^/]' \| \
5890 X"$ac_file" : 'X\(//\)$' \| \
5891 X"$ac_file" : 'X\(/\)' \| \
5892 . : '\(.\)' 2>/dev/null ||
5893 echo X"$ac_file" |
5894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5896 /^X\(\/\/\)$/{ s//\1/; q; }
5897 /^X\(\/\).*/{ s//\1/; q; }
5898 s/.*/./; q'`
5899 { if $as_mkdir_p; then
5900 mkdir -p "$ac_dir"
5901 else
5902 as_dir="$ac_dir"
5903 as_dirs=
5904 while test ! -d "$as_dir"; do
5905 as_dirs="$as_dir $as_dirs"
5906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5908 X"$as_dir" : 'X\(//\)[^/]' \| \
5909 X"$as_dir" : 'X\(//\)$' \| \
5910 X"$as_dir" : 'X\(/\)' \| \
5911 . : '\(.\)' 2>/dev/null ||
5912 echo X"$as_dir" |
5913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5915 /^X\(\/\/\)$/{ s//\1/; q; }
5916 /^X\(\/\).*/{ s//\1/; q; }
5917 s/.*/./; q'`
5918 done
5919 test ! -n "$as_dirs" || mkdir $as_dirs
5920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5921 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5922 { (exit 1); exit 1; }; }; }
5923
5924 ac_builddir=.
5925
5926 if test "$ac_dir" != .; then
5927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5928 # A "../" for each directory in $ac_dir_suffix.
5929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5930 else
5931 ac_dir_suffix= ac_top_builddir=
5932 fi
5933
5934 case $srcdir in
5935 .) # No --srcdir option. We are building in place.
5936 ac_srcdir=.
5937 if test -z "$ac_top_builddir"; then
5938 ac_top_srcdir=.
5939 else
5940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5941 fi ;;
5942 [\\/]* | ?:[\\/]* ) # Absolute path.
5943 ac_srcdir=$srcdir$ac_dir_suffix;
5944 ac_top_srcdir=$srcdir ;;
5945 *) # Relative path.
5946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5948 esac
5949
5950 # Do not use `cd foo && pwd` to compute absolute paths, because
5951 # the directories may not exist.
5952 case `pwd` in
5953 .) ac_abs_builddir="$ac_dir";;
5954 *)
5955 case "$ac_dir" in
5956 .) ac_abs_builddir=`pwd`;;
5957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5959 esac;;
5960 esac
5961 case $ac_abs_builddir in
5962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5963 *)
5964 case ${ac_top_builddir}. in
5965 .) ac_abs_top_builddir=$ac_abs_builddir;;
5966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5968 esac;;
5969 esac
5970 case $ac_abs_builddir in
5971 .) ac_abs_srcdir=$ac_srcdir;;
5972 *)
5973 case $ac_srcdir in
5974 .) ac_abs_srcdir=$ac_abs_builddir;;
5975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5977 esac;;
5978 esac
5979 case $ac_abs_builddir in
5980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5981 *)
5982 case $ac_top_srcdir in
5983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5986 esac;;
5987 esac
5988
5989
5990 case $INSTALL in
5991 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5992 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5993 esac
5994
5995 if test x"$ac_file" != x-; then
5996 { echo "$as_me:$LINENO: creating $ac_file" >&5
5997 echo "$as_me: creating $ac_file" >&6;}
5998 rm -f "$ac_file"
5999 fi
6000 # Let's still pretend it is `configure' which instantiates (i.e., don't
6001 # use $as_me), people would be surprised to read:
6002 # /* config.h. Generated by config.status. */
6003 if test x"$ac_file" = x-; then
6004 configure_input=
6005 else
6006 configure_input="$ac_file. "
6007 fi
6008 configure_input=$configure_input"Generated from `echo $ac_file_in |
6009 sed 's,.*/,,'` by configure."
6010
6011 # First look for the input files in the build tree, otherwise in the
6012 # src tree.
6013 ac_file_inputs=`IFS=:
6014 for f in $ac_file_in; do
6015 case $f in
6016 -) echo $tmp/stdin ;;
6017 [\\/$]*)
6018 # Absolute (can't be DOS-style, as IFS=:)
6019 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6020 echo "$as_me: error: cannot find input file: $f" >&2;}
6021 { (exit 1); exit 1; }; }
6022 echo "$f";;
6023 *) # Relative
6024 if test -f "$f"; then
6025 # Build tree
6026 echo "$f"
6027 elif test -f "$srcdir/$f"; then
6028 # Source tree
6029 echo "$srcdir/$f"
6030 else
6031 # /dev/null tree
6032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6033 echo "$as_me: error: cannot find input file: $f" >&2;}
6034 { (exit 1); exit 1; }; }
6035 fi;;
6036 esac
6037 done` || { (exit 1); exit 1; }
6038 _ACEOF
6039 cat >>$CONFIG_STATUS <<_ACEOF
6040 sed "$ac_vpsub
6041 $extrasub
6042 _ACEOF
6043 cat >>$CONFIG_STATUS <<\_ACEOF
6044 :t
6045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6046 s,@configure_input@,$configure_input,;t t
6047 s,@srcdir@,$ac_srcdir,;t t
6048 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6049 s,@top_srcdir@,$ac_top_srcdir,;t t
6050 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6051 s,@builddir@,$ac_builddir,;t t
6052 s,@abs_builddir@,$ac_abs_builddir,;t t
6053 s,@top_builddir@,$ac_top_builddir,;t t
6054 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6055 s,@INSTALL@,$ac_INSTALL,;t t
6056 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6057 rm -f $tmp/stdin
6058 if test x"$ac_file" != x-; then
6059 mv $tmp/out $ac_file
6060 else
6061 cat $tmp/out
6062 rm -f $tmp/out
6063 fi
6064
6065 done
6066 _ACEOF
6067 cat >>$CONFIG_STATUS <<\_ACEOF
6068
6069 #
6070 # CONFIG_HEADER section.
6071 #
6072
6073 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6074 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6075 #
6076 # ac_d sets the value in "#define NAME VALUE" lines.
6077 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6078 ac_dB='[ ].*$,\1#\2'
6079 ac_dC=' '
6080 ac_dD=',;t'
6081 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6082 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6083 ac_uB='$,\1#\2define\3'
6084 ac_uC=' '
6085 ac_uD=',;t'
6086
6087 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6088 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6089 case $ac_file in
6090 - | *:- | *:-:* ) # input from stdin
6091 cat >$tmp/stdin
6092 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6094 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6096 * ) ac_file_in=$ac_file.in ;;
6097 esac
6098
6099 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6100 echo "$as_me: creating $ac_file" >&6;}
6101
6102 # First look for the input files in the build tree, otherwise in the
6103 # src tree.
6104 ac_file_inputs=`IFS=:
6105 for f in $ac_file_in; do
6106 case $f in
6107 -) echo $tmp/stdin ;;
6108 [\\/$]*)
6109 # Absolute (can't be DOS-style, as IFS=:)
6110 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6111 echo "$as_me: error: cannot find input file: $f" >&2;}
6112 { (exit 1); exit 1; }; }
6113 # Do quote $f, to prevent DOS paths from being IFS'd.
6114 echo "$f";;
6115 *) # Relative
6116 if test -f "$f"; then
6117 # Build tree
6118 echo "$f"
6119 elif test -f "$srcdir/$f"; then
6120 # Source tree
6121 echo "$srcdir/$f"
6122 else
6123 # /dev/null tree
6124 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6125 echo "$as_me: error: cannot find input file: $f" >&2;}
6126 { (exit 1); exit 1; }; }
6127 fi;;
6128 esac
6129 done` || { (exit 1); exit 1; }
6130 # Remove the trailing spaces.
6131 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6132
6133 _ACEOF
6134
6135 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6136 # `conftest.undefs', that substitutes the proper values into
6137 # config.h.in to produce config.h. The first handles `#define'
6138 # templates, and the second `#undef' templates.
6139 # And first: Protect against being on the right side of a sed subst in
6140 # config.status. Protect against being in an unquoted here document
6141 # in config.status.
6142 rm -f conftest.defines conftest.undefs
6143 # Using a here document instead of a string reduces the quoting nightmare.
6144 # Putting comments in sed scripts is not portable.
6145 #
6146 # `end' is used to avoid that the second main sed command (meant for
6147 # 0-ary CPP macros) applies to n-ary macro definitions.
6148 # See the Autoconf documentation for `clear'.
6149 cat >confdef2sed.sed <<\_ACEOF
6150 s/[\\&,]/\\&/g
6151 s,[\\$`],\\&,g
6152 t clear
6153 : clear
6154 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6155 t end
6156 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6157 : end
6158 _ACEOF
6159 # If some macros were called several times there might be several times
6160 # the same #defines, which is useless. Nevertheless, we may not want to
6161 # sort them, since we want the *last* AC-DEFINE to be honored.
6162 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6163 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6164 rm -f confdef2sed.sed
6165
6166 # This sed command replaces #undef with comments. This is necessary, for
6167 # example, in the case of _POSIX_SOURCE, which is predefined and required
6168 # on some systems where configure will not decide to define it.
6169 cat >>conftest.undefs <<\_ACEOF
6170 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6171 _ACEOF
6172
6173 # Break up conftest.defines because some shells have a limit on the size
6174 # of here documents, and old seds have small limits too (100 cmds).
6175 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6176 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6177 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6178 echo ' :' >>$CONFIG_STATUS
6179 rm -f conftest.tail
6180 while grep . conftest.defines >/dev/null
6181 do
6182 # Write a limited-size here document to $tmp/defines.sed.
6183 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6184 # Speed up: don't consider the non `#define' lines.
6185 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6186 # Work around the forget-to-reset-the-flag bug.
6187 echo 't clr' >>$CONFIG_STATUS
6188 echo ': clr' >>$CONFIG_STATUS
6189 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6190 echo 'CEOF
6191 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6192 rm -f $tmp/in
6193 mv $tmp/out $tmp/in
6194 ' >>$CONFIG_STATUS
6195 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6196 rm -f conftest.defines
6197 mv conftest.tail conftest.defines
6198 done
6199 rm -f conftest.defines
6200 echo ' fi # grep' >>$CONFIG_STATUS
6201 echo >>$CONFIG_STATUS
6202
6203 # Break up conftest.undefs because some shells have a limit on the size
6204 # of here documents, and old seds have small limits too (100 cmds).
6205 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6206 rm -f conftest.tail
6207 while grep . conftest.undefs >/dev/null
6208 do
6209 # Write a limited-size here document to $tmp/undefs.sed.
6210 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6211 # Speed up: don't consider the non `#undef'
6212 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6213 # Work around the forget-to-reset-the-flag bug.
6214 echo 't clr' >>$CONFIG_STATUS
6215 echo ': clr' >>$CONFIG_STATUS
6216 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6217 echo 'CEOF
6218 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6219 rm -f $tmp/in
6220 mv $tmp/out $tmp/in
6221 ' >>$CONFIG_STATUS
6222 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6223 rm -f conftest.undefs
6224 mv conftest.tail conftest.undefs
6225 done
6226 rm -f conftest.undefs
6227
6228 cat >>$CONFIG_STATUS <<\_ACEOF
6229 # Let's still pretend it is `configure' which instantiates (i.e., don't
6230 # use $as_me), people would be surprised to read:
6231 # /* config.h. Generated by config.status. */
6232 if test x"$ac_file" = x-; then
6233 echo "/* Generated by configure. */" >$tmp/config.h
6234 else
6235 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6236 fi
6237 cat $tmp/in >>$tmp/config.h
6238 rm -f $tmp/in
6239 if test x"$ac_file" != x-; then
6240 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6241 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6242 echo "$as_me: $ac_file is unchanged" >&6;}
6243 else
6244 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6246 X"$ac_file" : 'X\(//\)[^/]' \| \
6247 X"$ac_file" : 'X\(//\)$' \| \
6248 X"$ac_file" : 'X\(/\)' \| \
6249 . : '\(.\)' 2>/dev/null ||
6250 echo X"$ac_file" |
6251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6253 /^X\(\/\/\)$/{ s//\1/; q; }
6254 /^X\(\/\).*/{ s//\1/; q; }
6255 s/.*/./; q'`
6256 { if $as_mkdir_p; then
6257 mkdir -p "$ac_dir"
6258 else
6259 as_dir="$ac_dir"
6260 as_dirs=
6261 while test ! -d "$as_dir"; do
6262 as_dirs="$as_dir $as_dirs"
6263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6265 X"$as_dir" : 'X\(//\)[^/]' \| \
6266 X"$as_dir" : 'X\(//\)$' \| \
6267 X"$as_dir" : 'X\(/\)' \| \
6268 . : '\(.\)' 2>/dev/null ||
6269 echo X"$as_dir" |
6270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6272 /^X\(\/\/\)$/{ s//\1/; q; }
6273 /^X\(\/\).*/{ s//\1/; q; }
6274 s/.*/./; q'`
6275 done
6276 test ! -n "$as_dirs" || mkdir $as_dirs
6277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6279 { (exit 1); exit 1; }; }; }
6280
6281 rm -f $ac_file
6282 mv $tmp/config.h $ac_file
6283 fi
6284 else
6285 cat $tmp/config.h
6286 rm -f $tmp/config.h
6287 fi
6288 # Compute $ac_file's index in $config_headers.
6289 _am_stamp_count=1
6290 for _am_header in $config_headers :; do
6291 case $_am_header in
6292 $ac_file | $ac_file:* )
6293 break ;;
6294 * )
6295 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6296 esac
6297 done
6298 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6299 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6300 X$ac_file : 'X\(//\)[^/]' \| \
6301 X$ac_file : 'X\(//\)$' \| \
6302 X$ac_file : 'X\(/\)' \| \
6303 . : '\(.\)' 2>/dev/null ||
6304 echo X$ac_file |
6305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6307 /^X\(\/\/\)$/{ s//\1/; q; }
6308 /^X\(\/\).*/{ s//\1/; q; }
6309 s/.*/./; q'`/stamp-h$_am_stamp_count
6310 done
6311 _ACEOF
6312 cat >>$CONFIG_STATUS <<\_ACEOF
6313
6314 #
6315 # CONFIG_COMMANDS section.
6316 #
6317 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6318 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6319 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6320 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6321 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6322 X"$ac_dest" : 'X\(//\)[^/]' \| \
6323 X"$ac_dest" : 'X\(//\)$' \| \
6324 X"$ac_dest" : 'X\(/\)' \| \
6325 . : '\(.\)' 2>/dev/null ||
6326 echo X"$ac_dest" |
6327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6329 /^X\(\/\/\)$/{ s//\1/; q; }
6330 /^X\(\/\).*/{ s//\1/; q; }
6331 s/.*/./; q'`
6332 { if $as_mkdir_p; then
6333 mkdir -p "$ac_dir"
6334 else
6335 as_dir="$ac_dir"
6336 as_dirs=
6337 while test ! -d "$as_dir"; do
6338 as_dirs="$as_dir $as_dirs"
6339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6341 X"$as_dir" : 'X\(//\)[^/]' \| \
6342 X"$as_dir" : 'X\(//\)$' \| \
6343 X"$as_dir" : 'X\(/\)' \| \
6344 . : '\(.\)' 2>/dev/null ||
6345 echo X"$as_dir" |
6346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6348 /^X\(\/\/\)$/{ s//\1/; q; }
6349 /^X\(\/\).*/{ s//\1/; q; }
6350 s/.*/./; q'`
6351 done
6352 test ! -n "$as_dirs" || mkdir $as_dirs
6353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6355 { (exit 1); exit 1; }; }; }
6356
6357 ac_builddir=.
6358
6359 if test "$ac_dir" != .; then
6360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6361 # A "../" for each directory in $ac_dir_suffix.
6362 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6363 else
6364 ac_dir_suffix= ac_top_builddir=
6365 fi
6366
6367 case $srcdir in
6368 .) # No --srcdir option. We are building in place.
6369 ac_srcdir=.
6370 if test -z "$ac_top_builddir"; then
6371 ac_top_srcdir=.
6372 else
6373 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6374 fi ;;
6375 [\\/]* | ?:[\\/]* ) # Absolute path.
6376 ac_srcdir=$srcdir$ac_dir_suffix;
6377 ac_top_srcdir=$srcdir ;;
6378 *) # Relative path.
6379 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6380 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6381 esac
6382
6383 # Do not use `cd foo && pwd` to compute absolute paths, because
6384 # the directories may not exist.
6385 case `pwd` in
6386 .) ac_abs_builddir="$ac_dir";;
6387 *)
6388 case "$ac_dir" in
6389 .) ac_abs_builddir=`pwd`;;
6390 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6391 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6392 esac;;
6393 esac
6394 case $ac_abs_builddir in
6395 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6396 *)
6397 case ${ac_top_builddir}. in
6398 .) ac_abs_top_builddir=$ac_abs_builddir;;
6399 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6400 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6401 esac;;
6402 esac
6403 case $ac_abs_builddir in
6404 .) ac_abs_srcdir=$ac_srcdir;;
6405 *)
6406 case $ac_srcdir in
6407 .) ac_abs_srcdir=$ac_abs_builddir;;
6408 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6409 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6410 esac;;
6411 esac
6412 case $ac_abs_builddir in
6413 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6414 *)
6415 case $ac_top_srcdir in
6416 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6417 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6418 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6419 esac;;
6420 esac
6421
6422
6423 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6424 echo "$as_me: executing $ac_dest commands" >&6;}
6425 case $ac_dest in
6426 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6427 # Strip MF so we end up with the name of the file.
6428 mf=`echo "$mf" | sed -e 's/:.*$//'`
6429 # Check whether this is an Automake generated Makefile or not.
6430 # We used to match only the files named `Makefile.in', but
6431 # some people rename them; so instead we look at the file content.
6432 # Grep'ing the first line is not enough: some people post-process
6433 # each Makefile.in and add a new line on top of each file to say so.
6434 # So let's grep whole file.
6435 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6436 dirpart=`(dirname "$mf") 2>/dev/null ||
6437 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6438 X"$mf" : 'X\(//\)[^/]' \| \
6439 X"$mf" : 'X\(//\)$' \| \
6440 X"$mf" : 'X\(/\)' \| \
6441 . : '\(.\)' 2>/dev/null ||
6442 echo X"$mf" |
6443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6445 /^X\(\/\/\)$/{ s//\1/; q; }
6446 /^X\(\/\).*/{ s//\1/; q; }
6447 s/.*/./; q'`
6448 else
6449 continue
6450 fi
6451 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6452 # Extract the definition of DEP_FILES from the Makefile without
6453 # running `make'.
6454 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6455 test -z "$DEPDIR" && continue
6456 # When using ansi2knr, U may be empty or an underscore; expand it
6457 U=`sed -n 's/^U = //p' < "$mf"`
6458 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6459 # We invoke sed twice because it is the simplest approach to
6460 # changing $(DEPDIR) to its actual value in the expansion.
6461 for file in `sed -n '
6462 /^DEP_FILES = .*\\\\$/ {
6463 s/^DEP_FILES = //
6464 :loop
6465 s/\\\\$//
6466 p
6467 n
6468 /\\\\$/ b loop
6469 p
6470 }
6471 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6472 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6473 # Make sure the directory exists.
6474 test -f "$dirpart/$file" && continue
6475 fdir=`(dirname "$file") 2>/dev/null ||
6476 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6477 X"$file" : 'X\(//\)[^/]' \| \
6478 X"$file" : 'X\(//\)$' \| \
6479 X"$file" : 'X\(/\)' \| \
6480 . : '\(.\)' 2>/dev/null ||
6481 echo X"$file" |
6482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6484 /^X\(\/\/\)$/{ s//\1/; q; }
6485 /^X\(\/\).*/{ s//\1/; q; }
6486 s/.*/./; q'`
6487 { if $as_mkdir_p; then
6488 mkdir -p $dirpart/$fdir
6489 else
6490 as_dir=$dirpart/$fdir
6491 as_dirs=
6492 while test ! -d "$as_dir"; do
6493 as_dirs="$as_dir $as_dirs"
6494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6496 X"$as_dir" : 'X\(//\)[^/]' \| \
6497 X"$as_dir" : 'X\(//\)$' \| \
6498 X"$as_dir" : 'X\(/\)' \| \
6499 . : '\(.\)' 2>/dev/null ||
6500 echo X"$as_dir" |
6501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6503 /^X\(\/\/\)$/{ s//\1/; q; }
6504 /^X\(\/\).*/{ s//\1/; q; }
6505 s/.*/./; q'`
6506 done
6507 test ! -n "$as_dirs" || mkdir $as_dirs
6508 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6509 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6510 { (exit 1); exit 1; }; }; }
6511
6512 # echo "creating $dirpart/$file"
6513 echo '# dummy' > "$dirpart/$file"
6514 done
6515 done
6516 ;;
6517 esac
6518 done
6519 _ACEOF
6520
6521 cat >>$CONFIG_STATUS <<\_ACEOF
6522
6523 { (exit 0); exit 0; }
6524 _ACEOF
6525 chmod +x $CONFIG_STATUS
6526 ac_clean_files=$ac_clean_files_save
6527
6528
6529 # configure is writing to config.log, and then calls config.status.
6530 # config.status does its own redirection, appending to config.log.
6531 # Unfortunately, on DOS this fails, as config.log is still kept open
6532 # by configure, so config.status won't be able to write to it; its
6533 # output is simply discarded. So we exec the FD to /dev/null,
6534 # effectively closing config.log, so it can be properly (re)opened and
6535 # appended to by config.status. When coming back to configure, we
6536 # need to make the FD available again.
6537 if test "$no_create" != yes; then
6538 ac_cs_success=:
6539 ac_config_status_args=
6540 test "$silent" = yes &&
6541 ac_config_status_args="$ac_config_status_args --quiet"
6542 exec 5>/dev/null
6543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6544 exec 5>>config.log
6545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6546 # would make configure fail if this is the last instruction.
6547 $ac_cs_success || { (exit 1); exit 1; }
6548 fi
6549