]> cygwin.com Git - cygwin-apps/setup.git/blob - zlib/configure
b2de96f611e3b0dacd6d47500012c3d81870093c
[cygwin-apps/setup.git] / zlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
148 ;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS=" $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="zlib.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635 done
636
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710 else
711 ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
813
814 cat <<\_ACEOF
815
816 Program names:
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
820
821 System types:
822 --build=BUILD configure for building on BUILD [guessed]
823 --host=HOST cross-compile to build programs to run on HOST [BUILD]
824 --target=TARGET configure for building compilers for TARGET [HOST]
825 _ACEOF
826 fi
827
828 if test -n "$ac_init_help"; then
829
830 cat <<\_ACEOF
831
832 Optional Features:
833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
835 --enable-maintainer-mode enable make rules and dependencies not useful
836 (and sometimes confusing) to the casual installer
837 --disable-dependency-tracking Speeds up one-time builds
838 --enable-dependency-tracking Do not reject slow dependency extractors
839
840 Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-target-subdir=SUBDIR
844 configuring in a subdirectory
845 --with-cross-host=HOST configuring with a cross compiler
846 --with-system-zlib use installed libz
847
848 Some influential environment variables:
849 CC C compiler command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
855 CPP C preprocessor
856
857 Use these variables to override the choices made by `configure' or to help
858 it to find libraries and programs with nonstandard names/locations.
859
860 _ACEOF
861 fi
862
863 if test "$ac_init_help" = "recursive"; then
864 # If there are subdirs, report their specific --help.
865 ac_popdir=`pwd`
866 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
867 test -d $ac_dir || continue
868 ac_builddir=.
869
870 if test "$ac_dir" != .; then
871 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
872 # A "../" for each directory in $ac_dir_suffix.
873 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874 else
875 ac_dir_suffix= ac_top_builddir=
876 fi
877
878 case $srcdir in
879 .) # No --srcdir option. We are building in place.
880 ac_srcdir=.
881 if test -z "$ac_top_builddir"; then
882 ac_top_srcdir=.
883 else
884 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885 fi ;;
886 [\\/]* | ?:[\\/]* ) # Absolute path.
887 ac_srcdir=$srcdir$ac_dir_suffix;
888 ac_top_srcdir=$srcdir ;;
889 *) # Relative path.
890 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
891 ac_top_srcdir=$ac_top_builddir$srcdir ;;
892 esac
893 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
894 # absolute.
895 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
896 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
897 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
898 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
899
900 cd $ac_dir
901 # Check for guested configure; otherwise get Cygnus style configure.
902 if test -f $ac_srcdir/configure.gnu; then
903 echo
904 $SHELL $ac_srcdir/configure.gnu --help=recursive
905 elif test -f $ac_srcdir/configure; then
906 echo
907 $SHELL $ac_srcdir/configure --help=recursive
908 elif test -f $ac_srcdir/configure.ac ||
909 test -f $ac_srcdir/configure.in; then
910 echo
911 $ac_configure --help
912 else
913 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 fi
915 cd $ac_popdir
916 done
917 fi
918
919 test -n "$ac_init_help" && exit 0
920 if $ac_init_version; then
921 cat <<\_ACEOF
922
923 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
924 Free Software Foundation, Inc.
925 This configure script is free software; the Free Software Foundation
926 gives unlimited permission to copy, distribute and modify it.
927 _ACEOF
928 exit 0
929 fi
930 exec 5>config.log
931 cat >&5 <<_ACEOF
932 This file contains any messages produced by compilers while
933 running configure, to aid debugging if configure makes a mistake.
934
935 It was created by $as_me, which was
936 generated by GNU Autoconf 2.53. Invocation command line was
937
938 $ $0 $@
939
940 _ACEOF
941 {
942 cat <<_ASUNAME
943 ## --------- ##
944 ## Platform. ##
945 ## --------- ##
946
947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
952
953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
955
956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
959 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
963
964 _ASUNAME
965
966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
967 for as_dir in $PATH
968 do
969 IFS=$as_save_IFS
970 test -z "$as_dir" && as_dir=.
971 echo "PATH: $as_dir"
972 done
973
974 } >&5
975
976 cat >&5 <<_ACEOF
977
978
979 ## ----------- ##
980 ## Core tests. ##
981 ## ----------- ##
982
983 _ACEOF
984
985
986 # Keep a trace of the command line.
987 # Strip out --no-create and --no-recursion so they do not pile up.
988 # Also quote any args containing shell meta-characters.
989 ac_configure_args=
990 ac_sep=
991 for ac_arg
992 do
993 case $ac_arg in
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n ) continue ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 continue ;;
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1001 esac
1002 case " $ac_configure_args " in
1003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1004 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1005 ac_sep=" " ;;
1006 esac
1007 # Get rid of the leading space.
1008 done
1009
1010 # When interrupted or exit'd, cleanup temporary files, and complete
1011 # config.log. We remove comments because anyway the quotes in there
1012 # would cause problems or look ugly.
1013 # WARNING: Be sure not to use single quotes in there, as some shells,
1014 # such as our DU 5.0 friend, will then `close' the trap.
1015 trap 'exit_status=$?
1016 # Save into config.log some information that might help in debugging.
1017 {
1018 echo
1019 cat <<\_ASBOX
1020 ## ---------------- ##
1021 ## Cache variables. ##
1022 ## ---------------- ##
1023 _ASBOX
1024 echo
1025 # The following way of writing the cache mishandles newlines in values,
1026 {
1027 (set) 2>&1 |
1028 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1029 *ac_space=\ *)
1030 sed -n \
1031 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1033 ;;
1034 *)
1035 sed -n \
1036 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1037 ;;
1038 esac;
1039 }
1040 echo
1041 if test -s confdefs.h; then
1042 cat <<\_ASBOX
1043 ## ----------- ##
1044 ## confdefs.h. ##
1045 ## ----------- ##
1046 _ASBOX
1047 echo
1048 sed "/^$/d" confdefs.h
1049 echo
1050 fi
1051 test "$ac_signal" != 0 &&
1052 echo "$as_me: caught signal $ac_signal"
1053 echo "$as_me: exit $exit_status"
1054 } >&5
1055 rm -f core core.* *.core &&
1056 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1057 exit $exit_status
1058 ' 0
1059 for ac_signal in 1 2 13 15; do
1060 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1061 done
1062 ac_signal=0
1063
1064 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1065 rm -rf conftest* confdefs.h
1066 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1067 echo >confdefs.h
1068
1069 # Predefined preprocessor variables.
1070
1071 cat >>confdefs.h <<_ACEOF
1072 #define PACKAGE_NAME "$PACKAGE_NAME"
1073 _ACEOF
1074
1075
1076 cat >>confdefs.h <<_ACEOF
1077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1078 _ACEOF
1079
1080
1081 cat >>confdefs.h <<_ACEOF
1082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1083 _ACEOF
1084
1085
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_STRING "$PACKAGE_STRING"
1088 _ACEOF
1089
1090
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1093 _ACEOF
1094
1095
1096 # Let the site file select an alternate cache file if it wants to.
1097 # Prefer explicitly selected file to automatically selected ones.
1098 if test -z "$CONFIG_SITE"; then
1099 if test "x$prefix" != xNONE; then
1100 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1101 else
1102 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1103 fi
1104 fi
1105 for ac_site_file in $CONFIG_SITE; do
1106 if test -r "$ac_site_file"; then
1107 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1108 echo "$as_me: loading site script $ac_site_file" >&6;}
1109 sed 's/^/| /' "$ac_site_file" >&5
1110 . "$ac_site_file"
1111 fi
1112 done
1113
1114 if test -r "$cache_file"; then
1115 # Some versions of bash will fail to source /dev/null (special
1116 # files actually), so we avoid doing that.
1117 if test -f "$cache_file"; then
1118 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1119 echo "$as_me: loading cache $cache_file" >&6;}
1120 case $cache_file in
1121 [\\/]* | ?:[\\/]* ) . $cache_file;;
1122 *) . ./$cache_file;;
1123 esac
1124 fi
1125 else
1126 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1127 echo "$as_me: creating cache $cache_file" >&6;}
1128 >$cache_file
1129 fi
1130
1131 # Check that the precious variables saved in the cache have kept the same
1132 # value.
1133 ac_cache_corrupted=false
1134 for ac_var in `(set) 2>&1 |
1135 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1137 eval ac_new_set=\$ac_env_${ac_var}_set
1138 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1139 eval ac_new_val="\$ac_env_${ac_var}_value"
1140 case $ac_old_set,$ac_new_set in
1141 set,)
1142 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1143 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1144 ac_cache_corrupted=: ;;
1145 ,set)
1146 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1147 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1148 ac_cache_corrupted=: ;;
1149 ,);;
1150 *)
1151 if test "x$ac_old_val" != "x$ac_new_val"; then
1152 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1153 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1154 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1155 echo "$as_me: former value: $ac_old_val" >&2;}
1156 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1157 echo "$as_me: current value: $ac_new_val" >&2;}
1158 ac_cache_corrupted=:
1159 fi;;
1160 esac
1161 # Pass precious variables to config.status.
1162 if test "$ac_new_set" = set; then
1163 case $ac_new_val in
1164 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1165 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1166 *) ac_arg=$ac_var=$ac_new_val ;;
1167 esac
1168 case " $ac_configure_args " in
1169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1170 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1171 esac
1172 fi
1173 done
1174 if $ac_cache_corrupted; then
1175 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1176 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1177 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1178 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1179 { (exit 1); exit 1; }; }
1180 fi
1181
1182 ac_ext=c
1183 ac_cpp='$CPP $CPPFLAGS'
1184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207 ac_aux_dir=
1208 for ac_dir in ../cfgaux $srcdir/../cfgaux; do
1209 if test -f $ac_dir/install-sh; then
1210 ac_aux_dir=$ac_dir
1211 ac_install_sh="$ac_aux_dir/install-sh -c"
1212 break
1213 elif test -f $ac_dir/install.sh; then
1214 ac_aux_dir=$ac_dir
1215 ac_install_sh="$ac_aux_dir/install.sh -c"
1216 break
1217 elif test -f $ac_dir/shtool; then
1218 ac_aux_dir=$ac_dir
1219 ac_install_sh="$ac_aux_dir/shtool install -c"
1220 break
1221 fi
1222 done
1223 if test -z "$ac_aux_dir"; then
1224 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../cfgaux $srcdir/../cfgaux" >&5
1225 echo "$as_me: error: cannot find install-sh or install.sh in ../cfgaux $srcdir/../cfgaux" >&2;}
1226 { (exit 1); exit 1; }; }
1227 fi
1228 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1229 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1230 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1231
1232 # Make sure we can run config.sub.
1233 $ac_config_sub sun4 >/dev/null 2>&1 ||
1234 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1235 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1236 { (exit 1); exit 1; }; }
1237
1238 echo "$as_me:$LINENO: checking build system type" >&5
1239 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1240 if test "${ac_cv_build+set}" = set; then
1241 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 else
1243 ac_cv_build_alias=$build_alias
1244 test -z "$ac_cv_build_alias" &&
1245 ac_cv_build_alias=`$ac_config_guess`
1246 test -z "$ac_cv_build_alias" &&
1247 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1248 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1249 { (exit 1); exit 1; }; }
1250 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1251 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1252 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1253 { (exit 1); exit 1; }; }
1254
1255 fi
1256 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1257 echo "${ECHO_T}$ac_cv_build" >&6
1258 build=$ac_cv_build
1259 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1262
1263
1264 echo "$as_me:$LINENO: checking host system type" >&5
1265 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1266 if test "${ac_cv_host+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269 ac_cv_host_alias=$host_alias
1270 test -z "$ac_cv_host_alias" &&
1271 ac_cv_host_alias=$ac_cv_build_alias
1272 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1273 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1274 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1275 { (exit 1); exit 1; }; }
1276
1277 fi
1278 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1279 echo "${ECHO_T}$ac_cv_host" >&6
1280 host=$ac_cv_host
1281 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1282 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1283 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1284
1285
1286 echo "$as_me:$LINENO: checking target system type" >&5
1287 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1288 if test "${ac_cv_target+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 else
1291 ac_cv_target_alias=$target_alias
1292 test "x$ac_cv_target_alias" = "x" &&
1293 ac_cv_target_alias=$ac_cv_host_alias
1294 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1295 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1296 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1297 { (exit 1); exit 1; }; }
1298
1299 fi
1300 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1301 echo "${ECHO_T}$ac_cv_target" >&6
1302 target=$ac_cv_target
1303 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1304 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1305 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1306
1307
1308 # The aliases save the names the user supplied, while $host etc.
1309 # will get canonicalized.
1310 test -n "$target_alias" &&
1311 test "$program_prefix$program_suffix$program_transform_name" = \
1312 NONENONEs,x,x, &&
1313 program_prefix=${target_alias}-
1314 am__api_version="1.6"
1315 # Find a good install program. We prefer a C program (faster),
1316 # so one script is as good as another. But avoid the broken or
1317 # incompatible versions:
1318 # SysV /etc/install, /usr/sbin/install
1319 # SunOS /usr/etc/install
1320 # IRIX /sbin/install
1321 # AIX /bin/install
1322 # AmigaOS /C/install, which installs bootblocks on floppy discs
1323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1326 # ./install, which can be erroneously created by make from ./install.sh.
1327 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1328 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1329 if test -z "$INSTALL"; then
1330 if test "${ac_cv_path_install+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334 for as_dir in $PATH
1335 do
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 # Account for people who put trailing slashes in PATH elements.
1339 case $as_dir/ in
1340 ./ | .// | /cC/* | \
1341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1342 /usr/ucb/* ) ;;
1343 *)
1344 # OSF1 and SCO ODT 3.0 have their own names for install.
1345 # Don't use installbsd from OSF since it installs stuff as root
1346 # by default.
1347 for ac_prog in ginstall scoinst install; do
1348 for ac_exec_ext in '' $ac_executable_extensions; do
1349 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1350 if test $ac_prog = install &&
1351 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1352 # AIX install. It has an incompatible calling convention.
1353 :
1354 elif test $ac_prog = install &&
1355 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1356 # program-specific install script used by HP pwplus--don't use.
1357 :
1358 else
1359 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1360 break 3
1361 fi
1362 fi
1363 done
1364 done
1365 ;;
1366 esac
1367 done
1368
1369
1370 fi
1371 if test "${ac_cv_path_install+set}" = set; then
1372 INSTALL=$ac_cv_path_install
1373 else
1374 # As a last resort, use the slow shell script. We don't cache a
1375 # path for INSTALL within a source directory, because that will
1376 # break other packages using the cache if that directory is
1377 # removed, or if the path is relative.
1378 INSTALL=$ac_install_sh
1379 fi
1380 fi
1381 echo "$as_me:$LINENO: result: $INSTALL" >&5
1382 echo "${ECHO_T}$INSTALL" >&6
1383
1384 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1385 # It thinks the first close brace ends the variable substitution.
1386 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1387
1388 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1389
1390 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1391
1392 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1393 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1394 # Just in case
1395 sleep 1
1396 echo timestamp > conftest.file
1397 # Do `set' in a subshell so we don't clobber the current shell's
1398 # arguments. Must try -L first in case configure is actually a
1399 # symlink; some systems play weird games with the mod time of symlinks
1400 # (eg FreeBSD returns the mod time of the symlink's containing
1401 # directory).
1402 if (
1403 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1404 if test "$*" = "X"; then
1405 # -L didn't work.
1406 set X `ls -t $srcdir/configure conftest.file`
1407 fi
1408 rm -f conftest.file
1409 if test "$*" != "X $srcdir/configure conftest.file" \
1410 && test "$*" != "X conftest.file $srcdir/configure"; then
1411
1412 # If neither matched, then we have a broken ls. This can happen
1413 # if, for instance, CONFIG_SHELL is bash and it inherits a
1414 # broken ls alias from the environment. This has actually
1415 # happened. Such a system could not be considered "sane".
1416 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1417 alias in your environment" >&5
1418 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1419 alias in your environment" >&2;}
1420 { (exit 1); exit 1; }; }
1421 fi
1422
1423 test "$2" = conftest.file
1424 )
1425 then
1426 # Ok.
1427 :
1428 else
1429 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1430 Check your system clock" >&5
1431 echo "$as_me: error: newly created file is older than distributed files!
1432 Check your system clock" >&2;}
1433 { (exit 1); exit 1; }; }
1434 fi
1435 echo "$as_me:$LINENO: result: yes" >&5
1436 echo "${ECHO_T}yes" >&6
1437 test "$program_prefix" != NONE &&
1438 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1439 # Use a double $ so make ignores it.
1440 test "$program_suffix" != NONE &&
1441 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1442 # Double any \ or $. echo might interpret backslashes.
1443 # By default was `s,x,x', remove it if useless.
1444 cat <<\_ACEOF >conftest.sed
1445 s/[\\$]/&&/g;s/;s,x,x,$//
1446 _ACEOF
1447 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1448 rm conftest.sed
1449
1450
1451 # expand $ac_aux_dir to an absolute path
1452 am_aux_dir=`cd $ac_aux_dir && pwd`
1453
1454 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1455 # Use eval to expand $SHELL
1456 if eval "$MISSING --run true"; then
1457 am_missing_run="$MISSING --run "
1458 else
1459 am_missing_run=
1460 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1461 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1462 fi
1463
1464 for ac_prog in gawk mawk nawk awk
1465 do
1466 # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_AWK+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$AWK"; then
1474 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1475 else
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1478 do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_AWK="$ac_prog"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487 done
1488 done
1489
1490 fi
1491 fi
1492 AWK=$ac_cv_prog_AWK
1493 if test -n "$AWK"; then
1494 echo "$as_me:$LINENO: result: $AWK" >&5
1495 echo "${ECHO_T}$AWK" >&6
1496 else
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501 test -n "$AWK" && break
1502 done
1503
1504 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1505 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1506 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1507 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 cat >conftest.make <<\_ACEOF
1511 all:
1512 @echo 'ac_maketemp="${MAKE}"'
1513 _ACEOF
1514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1515 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1516 if test -n "$ac_maketemp"; then
1517 eval ac_cv_prog_make_${ac_make}_set=yes
1518 else
1519 eval ac_cv_prog_make_${ac_make}_set=no
1520 fi
1521 rm -f conftest.make
1522 fi
1523 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1524 echo "$as_me:$LINENO: result: yes" >&5
1525 echo "${ECHO_T}yes" >&6
1526 SET_MAKE=
1527 else
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 SET_MAKE="MAKE=${MAKE-make}"
1531 fi
1532
1533 # test to see if srcdir already configured
1534 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1535 test -f $srcdir/config.status; then
1536 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1537 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1538 { (exit 1); exit 1; }; }
1539 fi
1540
1541 # Define the identity of the package.
1542 PACKAGE=zlib
1543 VERSION=1.1.3
1544
1545
1546 cat >>confdefs.h <<_ACEOF
1547 #define PACKAGE "$PACKAGE"
1548 _ACEOF
1549
1550
1551 cat >>confdefs.h <<_ACEOF
1552 #define VERSION "$VERSION"
1553 _ACEOF
1554
1555 # Some tools Automake needs.
1556
1557 ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1558
1559
1560 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1561
1562
1563 AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1564
1565
1566 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1567
1568
1569 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1570
1571
1572 AMTAR=${AMTAR-"${am_missing_run}tar"}
1573
1574 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1575
1576 # Installed binaries are usually stripped using `strip' when the user
1577 # run `make install-strip'. However `strip' might not be the right
1578 # tool to use in cross-compilation environments, therefore Automake
1579 # will honor the `STRIP' environment variable to overrule this program.
1580 if test "$cross_compiling" != no; then
1581 if test -n "$ac_tool_prefix"; then
1582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1583 set dummy ${ac_tool_prefix}strip; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_STRIP+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$STRIP"; then
1590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1602 fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 STRIP=$ac_cv_prog_STRIP
1609 if test -n "$STRIP"; then
1610 echo "$as_me:$LINENO: result: $STRIP" >&5
1611 echo "${ECHO_T}$STRIP" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617 fi
1618 if test -z "$ac_cv_prog_STRIP"; then
1619 ac_ct_STRIP=$STRIP
1620 # Extract the first word of "strip", so it can be a program name with args.
1621 set dummy strip; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$ac_ct_STRIP"; then
1628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_ac_ct_STRIP="strip"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641 done
1642 done
1643
1644 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1645 fi
1646 fi
1647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1648 if test -n "$ac_ct_STRIP"; then
1649 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1650 echo "${ECHO_T}$ac_ct_STRIP" >&6
1651 else
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1654 fi
1655
1656 STRIP=$ac_ct_STRIP
1657 else
1658 STRIP="$ac_cv_prog_STRIP"
1659 fi
1660
1661 fi
1662 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1663
1664 # We need awk for the "check" target. The system "awk" is bad on
1665 # some platforms.
1666
1667
1668
1669
1670 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1671 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1672 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1673 if test "${enable_maintainer_mode+set}" = set; then
1674 enableval="$enable_maintainer_mode"
1675 USE_MAINTAINER_MODE=$enableval
1676 else
1677 USE_MAINTAINER_MODE=no
1678 fi;
1679 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1680 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1681
1682
1683 if test $USE_MAINTAINER_MODE = yes; then
1684 MAINTAINER_MODE_TRUE=
1685 MAINTAINER_MODE_FALSE='#'
1686 else
1687 MAINTAINER_MODE_TRUE='#'
1688 MAINTAINER_MODE_FALSE=
1689 fi
1690
1691 MAINT=$MAINTAINER_MODE_TRUE
1692
1693
1694
1695
1696 # Check whether --with-target-subdir or --without-target-subdir was given.
1697 if test "${with_target_subdir+set}" = set; then
1698 withval="$with_target_subdir"
1699
1700 fi;
1701
1702 # Check whether --with-cross-host or --without-cross-host was given.
1703 if test "${with_cross_host+set}" = set; then
1704 withval="$with_cross_host"
1705
1706 fi;
1707
1708
1709 # Check whether --with-system-zlib or --without-system-zlib was given.
1710 if test "${with_system_zlib+set}" = set; then
1711 withval="$with_system_zlib"
1712
1713 fi;
1714
1715
1716 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
1717 COMPPATH=.
1718 else
1719 COMPPATH=..
1720 fi
1721
1722
1723 if test -n "$with_cross_host"; then
1724 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
1725 # may not work correctly, because the compiler may not be able to
1726 # link executables.
1727
1728 # We assume newlib. This lets us hard-code the functions we know
1729 # we'll have.
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_MEMCPY 1
1732 _ACEOF
1733
1734 cat >>confdefs.h <<\_ACEOF
1735 #define HAVE_STRERROR 1
1736 _ACEOF
1737
1738
1739 # We ignore --with-system-zlib in this case.
1740 target_all=libzcygw.a
1741 else
1742 rm -f .deps 2>/dev/null
1743 mkdir .deps 2>/dev/null
1744 if test -d .deps; then
1745 DEPDIR=.deps
1746 else
1747 # MS-DOS does not allow filenames that begin with a dot.
1748 DEPDIR=_deps
1749 fi
1750 rmdir .deps 2>/dev/null
1751
1752
1753 ac_config_commands="$ac_config_commands depfiles"
1754
1755
1756 am_make=${MAKE-make}
1757 cat > confinc << 'END'
1758 doit:
1759 @echo done
1760 END
1761 # If we don't find an include directive, just comment out the code.
1762 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1763 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1764 am__include="#"
1765 am__quote=
1766 _am_result=none
1767 # First try GNU make style include.
1768 echo "include confinc" > confmf
1769 # We grep out `Entering directory' and `Leaving directory'
1770 # messages which can occur if `w' ends up in MAKEFLAGS.
1771 # In particular we don't look at `^make:' because GNU make might
1772 # be invoked under some other name (usually "gmake"), in which
1773 # case it prints its new name instead of `make'.
1774 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1775 am__include=include
1776 am__quote=
1777 _am_result=GNU
1778 fi
1779 # Now try BSD make style include.
1780 if test "$am__include" = "#"; then
1781 echo '.include "confinc"' > confmf
1782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1783 am__include=.include
1784 am__quote="\""
1785 _am_result=BSD
1786 fi
1787 fi
1788
1789
1790 echo "$as_me:$LINENO: result: $_am_result" >&5
1791 echo "${ECHO_T}$_am_result" >&6
1792 rm -f confinc confmf
1793
1794 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1795 if test "${enable_dependency_tracking+set}" = set; then
1796 enableval="$enable_dependency_tracking"
1797
1798 fi;
1799 if test "x$enable_dependency_tracking" != xno; then
1800 am_depcomp="$ac_aux_dir/depcomp"
1801 AMDEPBACKSLASH='\'
1802 fi
1803
1804
1805 if test "x$enable_dependency_tracking" != xno; then
1806 AMDEP_TRUE=
1807 AMDEP_FALSE='#'
1808 else
1809 AMDEP_TRUE='#'
1810 AMDEP_FALSE=
1811 fi
1812
1813
1814
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820 if test -n "$ac_tool_prefix"; then
1821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 CC=$ac_cv_prog_CC
1848 if test -n "$CC"; then
1849 echo "$as_me:$LINENO: result: $CC" >&5
1850 echo "${ECHO_T}$CC" >&6
1851 else
1852 echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856 fi
1857 if test -z "$ac_cv_prog_CC"; then
1858 ac_ct_CC=$CC
1859 # Extract the first word of "gcc", so it can be a program name with args.
1860 set dummy gcc; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866 if test -n "$ac_ct_CC"; then
1867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876 ac_cv_prog_ac_ct_CC="gcc"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880 done
1881 done
1882
1883 fi
1884 fi
1885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1886 if test -n "$ac_ct_CC"; then
1887 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1888 echo "${ECHO_T}$ac_ct_CC" >&6
1889 else
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 fi
1893
1894 CC=$ac_ct_CC
1895 else
1896 CC="$ac_cv_prog_CC"
1897 fi
1898
1899 if test -z "$CC"; then
1900 if test -n "$ac_tool_prefix"; then
1901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1902 set dummy ${ac_tool_prefix}cc; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_CC="${ac_tool_prefix}cc"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922 done
1923 done
1924
1925 fi
1926 fi
1927 CC=$ac_cv_prog_CC
1928 if test -n "$CC"; then
1929 echo "$as_me:$LINENO: result: $CC" >&5
1930 echo "${ECHO_T}$CC" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1935
1936 fi
1937 if test -z "$ac_cv_prog_CC"; then
1938 ac_ct_CC=$CC
1939 # Extract the first word of "cc", so it can be a program name with args.
1940 set dummy cc; ac_word=$2
1941 echo "$as_me:$LINENO: checking for $ac_word" >&5
1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 if test -n "$ac_ct_CC"; then
1947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948 else
1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 for as_dir in $PATH
1951 do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1956 ac_cv_prog_ac_ct_CC="cc"
1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 break 2
1959 fi
1960 done
1961 done
1962
1963 fi
1964 fi
1965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1966 if test -n "$ac_ct_CC"; then
1967 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1968 echo "${ECHO_T}$ac_ct_CC" >&6
1969 else
1970 echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6
1972 fi
1973
1974 CC=$ac_ct_CC
1975 else
1976 CC="$ac_cv_prog_CC"
1977 fi
1978
1979 fi
1980 if test -z "$CC"; then
1981 # Extract the first word of "cc", so it can be a program name with args.
1982 set dummy cc; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1990 else
1991 ac_prog_rejected=no
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2000 ac_prog_rejected=yes
2001 continue
2002 fi
2003 ac_cv_prog_CC="cc"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2006 fi
2007 done
2008 done
2009
2010 if test $ac_prog_rejected = yes; then
2011 # We found a bogon in the path, so make sure we never use it.
2012 set dummy $ac_cv_prog_CC
2013 shift
2014 if test $# != 0; then
2015 # We chose a different compiler from the bogus one.
2016 # However, it has the same basename, so the bogon will be chosen
2017 # first if we set CC to just the basename; use the full file name.
2018 shift
2019 set dummy "$as_dir/$ac_word" ${1+"$@"}
2020 shift
2021 ac_cv_prog_CC="$@"
2022 fi
2023 fi
2024 fi
2025 fi
2026 CC=$ac_cv_prog_CC
2027 if test -n "$CC"; then
2028 echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2030 else
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$CC"; then
2037 if test -n "$ac_tool_prefix"; then
2038 for ac_prog in cl
2039 do
2040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2060 fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075 test -n "$CC" && break
2076 done
2077 fi
2078 if test -z "$CC"; then
2079 ac_ct_CC=$CC
2080 for ac_prog in cl
2081 do
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089 if test -n "$ac_ct_CC"; then
2090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_ac_ct_CC="$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2
2102 fi
2103 done
2104 done
2105
2106 fi
2107 fi
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6
2112 else
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2115 fi
2116
2117 test -n "$ac_ct_CC" && break
2118 done
2119
2120 CC=$ac_ct_CC
2121 fi
2122
2123 fi
2124
2125
2126 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2128 { (exit 1); exit 1; }; }
2129
2130 # Provide some information about the compiler.
2131 echo "$as_me:$LINENO:" \
2132 "checking for C compiler version" >&5
2133 ac_compiler=`set X $ac_compile; echo $2`
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2135 (eval $ac_compiler --version </dev/null >&5) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2140 (eval $ac_compiler -v </dev/null >&5) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2145 (eval $ac_compiler -V </dev/null >&5) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149
2150 cat >conftest.$ac_ext <<_ACEOF
2151 #line $LINENO "configure"
2152 #include "confdefs.h"
2153
2154 #ifdef F77_DUMMY_MAIN
2155 # ifdef __cplusplus
2156 extern "C"
2157 # endif
2158 int F77_DUMMY_MAIN() { return 1; }
2159 #endif
2160 int
2161 main ()
2162 {
2163
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2172 # of exeext.
2173 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2174 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177 (eval $ac_link_default) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Find the output, starting from the most likely. This scheme is
2182 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183 # resort.
2184
2185 # Be careful to initialize this variable, since it used to be cached.
2186 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187 ac_cv_exeext=
2188 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2189 ls a.out conftest 2>/dev/null;
2190 ls a.* conftest.* 2>/dev/null`; do
2191 case $ac_file in
2192 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2193 a.out ) # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
2196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2198 export ac_cv_exeext
2199 break;;
2200 * ) break;;
2201 esac
2202 done
2203 else
2204 echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2207 echo "$as_me: error: C compiler cannot create executables" >&2;}
2208 { (exit 77); exit 77; }; }
2209 fi
2210
2211 ac_exeext=$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_file" >&5
2213 echo "${ECHO_T}$ac_file" >&6
2214
2215 # Check the compiler produces executables we can run. If not, either
2216 # the compiler is broken, or we cross compile.
2217 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220 # If not cross compiling, check that we can run a simple program.
2221 if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 cross_compiling=no
2229 else
2230 if test "$cross_compiling" = maybe; then
2231 cross_compiling=yes
2232 else
2233 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'." >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239 fi
2240 fi
2241 echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6
2243
2244 rm -f a.out a.exe conftest$ac_cv_exeext
2245 ac_clean_files=$ac_clean_files_save
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6
2252
2253 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256 (eval $ac_link) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2262 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 # `rm'.
2264 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2265 case $ac_file in
2266 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 export ac_cv_exeext
2269 break;;
2270 * ) break;;
2271 esac
2272 done
2273 else
2274 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2276 { (exit 1); exit 1; }; }
2277 fi
2278
2279 rm -f conftest$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281 echo "${ECHO_T}$ac_cv_exeext" >&6
2282
2283 rm -f conftest.$ac_ext
2284 EXEEXT=$ac_cv_exeext
2285 ac_exeext=$EXEEXT
2286 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288 if test "${ac_cv_objext+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 #include "confdefs.h"
2294
2295 #ifdef F77_DUMMY_MAIN
2296 # ifdef __cplusplus
2297 extern "C"
2298 # endif
2299 int F77_DUMMY_MAIN() { return 1; }
2300 #endif
2301 int
2302 main ()
2303 {
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.o conftest.obj
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316 case $ac_file in
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 break;;
2320 esac
2321 done
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2325 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2327 { (exit 1); exit 1; }; }
2328 fi
2329
2330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331 fi
2332 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333 echo "${ECHO_T}$ac_cv_objext" >&6
2334 OBJEXT=$ac_cv_objext
2335 ac_objext=$OBJEXT
2336 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2344
2345 #ifdef F77_DUMMY_MAIN
2346 # ifdef __cplusplus
2347 extern "C"
2348 # endif
2349 int F77_DUMMY_MAIN() { return 1; }
2350 #endif
2351 int
2352 main ()
2353 {
2354 #ifndef __GNUC__
2355 choke me
2356 #endif
2357
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -s conftest.$ac_objext'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 ac_compiler_gnu=yes
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2378 ac_compiler_gnu=no
2379 fi
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2382
2383 fi
2384 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2385 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2386 GCC=`test $ac_compiler_gnu = yes && echo yes`
2387 ac_test_CFLAGS=${CFLAGS+set}
2388 ac_save_CFLAGS=$CFLAGS
2389 CFLAGS="-g"
2390 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_g+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2397 #include "confdefs.h"
2398
2399 #ifdef F77_DUMMY_MAIN
2400 # ifdef __cplusplus
2401 extern "C"
2402 # endif
2403 int F77_DUMMY_MAIN() { return 1; }
2404 #endif
2405 int
2406 main ()
2407 {
2408
2409 ;
2410 return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 ac_cv_prog_cc_g=yes
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2429 ac_cv_prog_cc_g=no
2430 fi
2431 rm -f conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2435 if test "$ac_test_CFLAGS" = set; then
2436 CFLAGS=$ac_save_CFLAGS
2437 elif test $ac_cv_prog_cc_g = yes; then
2438 if test "$GCC" = yes; then
2439 CFLAGS="-g -O2"
2440 else
2441 CFLAGS="-g"
2442 fi
2443 else
2444 if test "$GCC" = yes; then
2445 CFLAGS="-O2"
2446 else
2447 CFLAGS=
2448 fi
2449 fi
2450 # Some people use a C++ compiler to compile C. Since we use `exit',
2451 # in C++ we need to declare it. In case someone uses the same compiler
2452 # for both compiling C and C++ we need to have the C++ compiler decide
2453 # the declaration of exit, since it's the most demanding environment.
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #ifndef __cplusplus
2456 choke me
2457 #endif
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 for ac_declaration in \
2472 ''\
2473 '#include <stdlib.h>' \
2474 'extern "C" void std::exit (int) throw (); using std::exit;' \
2475 'extern "C" void std::exit (int); using std::exit;' \
2476 'extern "C" void exit (int) throw ();' \
2477 'extern "C" void exit (int);' \
2478 'void exit (int);'
2479 do
2480 cat >conftest.$ac_ext <<_ACEOF
2481 #line $LINENO "configure"
2482 #include "confdefs.h"
2483 #include <stdlib.h>
2484 $ac_declaration
2485 #ifdef F77_DUMMY_MAIN
2486 # ifdef __cplusplus
2487 extern "C"
2488 # endif
2489 int F77_DUMMY_MAIN() { return 1; }
2490 #endif
2491 int
2492 main ()
2493 {
2494 exit (42);
2495 ;
2496 return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 :
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2515 continue
2516 fi
2517 rm -f conftest.$ac_objext conftest.$ac_ext
2518 cat >conftest.$ac_ext <<_ACEOF
2519 #line $LINENO "configure"
2520 #include "confdefs.h"
2521 $ac_declaration
2522 #ifdef F77_DUMMY_MAIN
2523 # ifdef __cplusplus
2524 extern "C"
2525 # endif
2526 int F77_DUMMY_MAIN() { return 1; }
2527 #endif
2528 int
2529 main ()
2530 {
2531 exit (42);
2532 ;
2533 return 0;
2534 }
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 break
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 fi
2553 rm -f conftest.$ac_objext conftest.$ac_ext
2554 done
2555 rm -f conftest*
2556 if test -n "$ac_declaration"; then
2557 echo '#ifdef __cplusplus' >>confdefs.h
2558 echo $ac_declaration >>confdefs.h
2559 echo '#endif' >>confdefs.h
2560 fi
2561
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2565 fi
2566 rm -f conftest.$ac_objext conftest.$ac_ext
2567 ac_ext=c
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572
2573 depcc="$CC" am_compiler_list=
2574
2575 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2577 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2581 # We make a subdir and do the tests there. Otherwise we can end up
2582 # making bogus files that we don't know about and never remove. For
2583 # instance it was reported that on HP-UX the gcc test will end up
2584 # making a dummy file named `D' -- because `-MD' means `put the output
2585 # in D'.
2586 mkdir conftest.dir
2587 # Copy depcomp to subdir because otherwise we won't find it if we're
2588 # using a relative directory.
2589 cp "$am_depcomp" conftest.dir
2590 cd conftest.dir
2591
2592 am_cv_CC_dependencies_compiler_type=none
2593 if test "$am_compiler_list" = ""; then
2594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2595 fi
2596 for depmode in $am_compiler_list; do
2597 # We need to recreate these files for each test, as the compiler may
2598 # overwrite some of them when testing with obscure command lines.
2599 # This happens at least with the AIX C compiler.
2600 echo '#include "conftest.h"' > conftest.c
2601 echo 'int i;' > conftest.h
2602 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2603
2604 case $depmode in
2605 nosideeffect)
2606 # after this tag, mechanisms are not by side-effect, so they'll
2607 # only be used when explicitly requested
2608 if test "x$enable_dependency_tracking" = xyes; then
2609 continue
2610 else
2611 break
2612 fi
2613 ;;
2614 none) break ;;
2615 esac
2616 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2617 # mode. It turns out that the SunPro C++ compiler does not properly
2618 # handle `-M -o', and we need to detect this.
2619 if depmode=$depmode \
2620 source=conftest.c object=conftest.o \
2621 depfile=conftest.Po tmpdepfile=conftest.TPo \
2622 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2623 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2624 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2625 am_cv_CC_dependencies_compiler_type=$depmode
2626 break
2627 fi
2628 done
2629
2630 cd ..
2631 rm -rf conftest.dir
2632 else
2633 am_cv_CC_dependencies_compiler_type=none
2634 fi
2635
2636 fi
2637 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2638 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2640
2641
2642
2643 ac_ext=c
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2650 # On Suns, sometimes $CPP names a directory.
2651 if test -n "$CPP" && test -d "$CPP"; then
2652 CPP=
2653 fi
2654 if test -z "$CPP"; then
2655 if test "${ac_cv_prog_CPP+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 # Double quotes because CPP needs to be expanded
2659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2660 do
2661 ac_preproc_ok=false
2662 for ac_c_preproc_warn_flag in '' yes
2663 do
2664 # Use a header file that comes with gcc, so configuring glibc
2665 # with a fresh cross-compiler works.
2666 # On the NeXT, cc -E runs the code through the compiler's parser,
2667 # not just through cpp. "Syntax error" is here to catch this case.
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 #include "confdefs.h"
2671 #include <assert.h>
2672 Syntax error
2673 _ACEOF
2674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2676 ac_status=$?
2677 egrep -v '^ *\+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } >/dev/null; then
2682 if test -s conftest.err; then
2683 ac_cpp_err=$ac_c_preproc_warn_flag
2684 else
2685 ac_cpp_err=
2686 fi
2687 else
2688 ac_cpp_err=yes
2689 fi
2690 if test -z "$ac_cpp_err"; then
2691 :
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2695 # Broken: fails on valid input.
2696 continue
2697 fi
2698 rm -f conftest.err conftest.$ac_ext
2699
2700 # OK, works on sane cases. Now check whether non-existent headers
2701 # can be detected and how.
2702 cat >conftest.$ac_ext <<_ACEOF
2703 #line $LINENO "configure"
2704 #include "confdefs.h"
2705 #include <ac_nonexistent.h>
2706 _ACEOF
2707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2709 ac_status=$?
2710 egrep -v '^ *\+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } >/dev/null; then
2715 if test -s conftest.err; then
2716 ac_cpp_err=$ac_c_preproc_warn_flag
2717 else
2718 ac_cpp_err=
2719 fi
2720 else
2721 ac_cpp_err=yes
2722 fi
2723 if test -z "$ac_cpp_err"; then
2724 # Broken: success on invalid input.
2725 continue
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 # Passes both tests.
2730 ac_preproc_ok=:
2731 break
2732 fi
2733 rm -f conftest.err conftest.$ac_ext
2734
2735 done
2736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2737 rm -f conftest.err conftest.$ac_ext
2738 if $ac_preproc_ok; then
2739 break
2740 fi
2741
2742 done
2743 ac_cv_prog_CPP=$CPP
2744
2745 fi
2746 CPP=$ac_cv_prog_CPP
2747 else
2748 ac_cv_prog_CPP=$CPP
2749 fi
2750 echo "$as_me:$LINENO: result: $CPP" >&5
2751 echo "${ECHO_T}$CPP" >&6
2752 ac_preproc_ok=false
2753 for ac_c_preproc_warn_flag in '' yes
2754 do
2755 # Use a header file that comes with gcc, so configuring glibc
2756 # with a fresh cross-compiler works.
2757 # On the NeXT, cc -E runs the code through the compiler's parser,
2758 # not just through cpp. "Syntax error" is here to catch this case.
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 #include "confdefs.h"
2762 #include <assert.h>
2763 Syntax error
2764 _ACEOF
2765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2767 ac_status=$?
2768 egrep -v '^ *\+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } >/dev/null; then
2773 if test -s conftest.err; then
2774 ac_cpp_err=$ac_c_preproc_warn_flag
2775 else
2776 ac_cpp_err=
2777 fi
2778 else
2779 ac_cpp_err=yes
2780 fi
2781 if test -z "$ac_cpp_err"; then
2782 :
2783 else
2784 echo "$as_me: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 # Broken: fails on valid input.
2787 continue
2788 fi
2789 rm -f conftest.err conftest.$ac_ext
2790
2791 # OK, works on sane cases. Now check whether non-existent headers
2792 # can be detected and how.
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 #include "confdefs.h"
2796 #include <ac_nonexistent.h>
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800 ac_status=$?
2801 egrep -v '^ *\+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2808 else
2809 ac_cpp_err=
2810 fi
2811 else
2812 ac_cpp_err=yes
2813 fi
2814 if test -z "$ac_cpp_err"; then
2815 # Broken: success on invalid input.
2816 continue
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2820 # Passes both tests.
2821 ac_preproc_ok=:
2822 break
2823 fi
2824 rm -f conftest.err conftest.$ac_ext
2825
2826 done
2827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2828 rm -f conftest.err conftest.$ac_ext
2829 if $ac_preproc_ok; then
2830 :
2831 else
2832 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2833 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2834 { (exit 1); exit 1; }; }
2835 fi
2836
2837 ac_ext=c
2838 ac_cpp='$CPP $CPPFLAGS'
2839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842
2843
2844 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2846 if test "${ac_cv_header_stdc+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line $LINENO "configure"
2851 #include "confdefs.h"
2852 #include <stdlib.h>
2853 #include <stdarg.h>
2854 #include <string.h>
2855 #include <float.h>
2856
2857 _ACEOF
2858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2860 ac_status=$?
2861 egrep -v '^ *\+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } >/dev/null; then
2866 if test -s conftest.err; then
2867 ac_cpp_err=$ac_c_preproc_warn_flag
2868 else
2869 ac_cpp_err=
2870 fi
2871 else
2872 ac_cpp_err=yes
2873 fi
2874 if test -z "$ac_cpp_err"; then
2875 ac_cv_header_stdc=yes
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2879 ac_cv_header_stdc=no
2880 fi
2881 rm -f conftest.err conftest.$ac_ext
2882
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 #include "confdefs.h"
2888 #include <string.h>
2889
2890 _ACEOF
2891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2892 egrep "memchr" >/dev/null 2>&1; then
2893 :
2894 else
2895 ac_cv_header_stdc=no
2896 fi
2897 rm -f conftest*
2898
2899 fi
2900
2901 if test $ac_cv_header_stdc = yes; then
2902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 #include "confdefs.h"
2906 #include <stdlib.h>
2907
2908 _ACEOF
2909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2910 egrep "free" >/dev/null 2>&1; then
2911 :
2912 else
2913 ac_cv_header_stdc=no
2914 fi
2915 rm -f conftest*
2916
2917 fi
2918
2919 if test $ac_cv_header_stdc = yes; then
2920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2921 if test "$cross_compiling" = yes; then
2922 :
2923 else
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 #include "confdefs.h"
2927 #include <ctype.h>
2928 #if ((' ' & 0x0FF) == 0x020)
2929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2931 #else
2932 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2933 || ('j' <= (c) && (c) <= 'r') \
2934 || ('s' <= (c) && (c) <= 'z'))
2935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2936 #endif
2937
2938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2939 int
2940 main ()
2941 {
2942 int i;
2943 for (i = 0; i < 256; i++)
2944 if (XOR (islower (i), ISLOWER (i))
2945 || toupper (i) != TOUPPER (i))
2946 exit(2);
2947 exit (0);
2948 }
2949 _ACEOF
2950 rm -f conftest$ac_exeext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2952 (eval $ac_link) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 (eval $ac_try) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 :
2962 else
2963 echo "$as_me: program exited with status $ac_status" >&5
2964 echo "$as_me: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 ( exit $ac_status )
2967 ac_cv_header_stdc=no
2968 fi
2969 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2970 fi
2971 fi
2972 fi
2973 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2974 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2975 if test $ac_cv_header_stdc = yes; then
2976
2977 cat >>confdefs.h <<\_ACEOF
2978 #define STDC_HEADERS 1
2979 _ACEOF
2980
2981 fi
2982
2983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2994 inttypes.h stdint.h unistd.h
2995 do
2996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2997 echo "$as_me:$LINENO: checking for $ac_header" >&5
2998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 cat >conftest.$ac_ext <<_ACEOF
3003 #line $LINENO "configure"
3004 #include "confdefs.h"
3005 $ac_includes_default
3006
3007 #include <$ac_header>
3008 _ACEOF
3009 rm -f conftest.$ac_objext
3010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3011 (eval $ac_compile) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017 (eval $ac_try) 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3021 eval "$as_ac_Header=yes"
3022 else
3023 echo "$as_me: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 eval "$as_ac_Header=no"
3026 fi
3027 rm -f conftest.$ac_objext conftest.$ac_ext
3028 fi
3029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3032 cat >>confdefs.h <<_ACEOF
3033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3034 _ACEOF
3035
3036 fi
3037
3038 done
3039
3040
3041
3042
3043 for ac_header in stdlib.h unistd.h
3044 do
3045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3047 echo "$as_me:$LINENO: checking for $ac_header" >&5
3048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 fi
3052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3054 else
3055 # Is the header compilable?
3056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3058 cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3060 #include "confdefs.h"
3061 $ac_includes_default
3062 #include <$ac_header>
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_header_compiler=yes
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 ac_header_compiler=no
3081 fi
3082 rm -f conftest.$ac_objext conftest.$ac_ext
3083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3084 echo "${ECHO_T}$ac_header_compiler" >&6
3085
3086 # Is the header present?
3087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3089 cat >conftest.$ac_ext <<_ACEOF
3090 #line $LINENO "configure"
3091 #include "confdefs.h"
3092 #include <$ac_header>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 egrep -v '^ *\+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 else
3105 ac_cpp_err=
3106 fi
3107 else
3108 ac_cpp_err=yes
3109 fi
3110 if test -z "$ac_cpp_err"; then
3111 ac_header_preproc=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3115 ac_header_preproc=no
3116 fi
3117 rm -f conftest.err conftest.$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3119 echo "${ECHO_T}$ac_header_preproc" >&6
3120
3121 # So? What about this header?
3122 case $ac_header_compiler:$ac_header_preproc in
3123 yes:no )
3124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3128 no:yes )
3129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3135 esac
3136 echo "$as_me:$LINENO: checking for $ac_header" >&5
3137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141 eval "$as_ac_Header=$ac_header_preproc"
3142 fi
3143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3145
3146 fi
3147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3148 cat >>confdefs.h <<_ACEOF
3149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3150 _ACEOF
3151
3152 fi
3153
3154 done
3155
3156
3157 for ac_func in getpagesize
3158 do
3159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3160 echo "$as_me:$LINENO: checking for $ac_func" >&5
3161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3162 if eval "test \"\${$as_ac_var+set}\" = set"; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3167 #include "confdefs.h"
3168 /* System header to define __stub macros and hopefully few prototypes,
3169 which can conflict with char $ac_func (); below. */
3170 #include <assert.h>
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 #ifdef __cplusplus
3173 extern "C"
3174 #endif
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3177 char $ac_func ();
3178 char (*f) ();
3179
3180 #ifdef F77_DUMMY_MAIN
3181 # ifdef __cplusplus
3182 extern "C"
3183 # endif
3184 int F77_DUMMY_MAIN() { return 1; }
3185 #endif
3186 int
3187 main ()
3188 {
3189 /* The GNU C library defines this for functions which it implements
3190 to always fail with ENOSYS. Some functions are actually named
3191 something starting with __ and the normal name is an alias. */
3192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3193 choke me
3194 #else
3195 f = $ac_func;
3196 #endif
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext conftest$ac_exeext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3204 (eval $ac_link) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -s conftest$ac_exeext'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 eval "$as_ac_var=yes"
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3218 eval "$as_ac_var=no"
3219 fi
3220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3221 fi
3222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3224 if test `eval echo '${'$as_ac_var'}'` = yes; then
3225 cat >>confdefs.h <<_ACEOF
3226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3227 _ACEOF
3228
3229 fi
3230 done
3231
3232 echo "$as_me:$LINENO: checking for working mmap" >&5
3233 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3234 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 if test "$cross_compiling" = yes; then
3238 ac_cv_func_mmap_fixed_mapped=no
3239 else
3240 cat >conftest.$ac_ext <<_ACEOF
3241 #line $LINENO "configure"
3242 #include "confdefs.h"
3243 $ac_includes_default
3244 /* malloc might have been renamed as rpl_malloc. */
3245 #undef malloc
3246
3247 /* Thanks to Mike Haertel and Jim Avera for this test.
3248 Here is a matrix of mmap possibilities:
3249 mmap private not fixed
3250 mmap private fixed at somewhere currently unmapped
3251 mmap private fixed at somewhere already mapped
3252 mmap shared not fixed
3253 mmap shared fixed at somewhere currently unmapped
3254 mmap shared fixed at somewhere already mapped
3255 For private mappings, we should verify that changes cannot be read()
3256 back from the file, nor mmap's back from the file at a different
3257 address. (There have been systems where private was not correctly
3258 implemented like the infamous i386 svr4.0, and systems where the
3259 VM page cache was not coherent with the file system buffer cache
3260 like early versions of FreeBSD and possibly contemporary NetBSD.)
3261 For shared mappings, we should conversely verify that changes get
3262 propagated back to all the places they're supposed to be.
3263
3264 Grep wants private fixed already mapped.
3265 The main things grep needs to know about mmap are:
3266 * does it exist and is it safe to write into the mmap'd area
3267 * how to use it (BSD variants) */
3268
3269 #include <fcntl.h>
3270 #include <sys/mman.h>
3271
3272 #if !STDC_HEADERS && !HAVE_STDLIB_H
3273 char *malloc ();
3274 #endif
3275
3276 /* This mess was copied from the GNU getpagesize.h. */
3277 #if !HAVE_GETPAGESIZE
3278 /* Assume that all systems that can run configure have sys/param.h. */
3279 # if !HAVE_SYS_PARAM_H
3280 # define HAVE_SYS_PARAM_H 1
3281 # endif
3282
3283 # ifdef _SC_PAGESIZE
3284 # define getpagesize() sysconf(_SC_PAGESIZE)
3285 # else /* no _SC_PAGESIZE */
3286 # if HAVE_SYS_PARAM_H
3287 # include <sys/param.h>
3288 # ifdef EXEC_PAGESIZE
3289 # define getpagesize() EXEC_PAGESIZE
3290 # else /* no EXEC_PAGESIZE */
3291 # ifdef NBPG
3292 # define getpagesize() NBPG * CLSIZE
3293 # ifndef CLSIZE
3294 # define CLSIZE 1
3295 # endif /* no CLSIZE */
3296 # else /* no NBPG */
3297 # ifdef NBPC
3298 # define getpagesize() NBPC
3299 # else /* no NBPC */
3300 # ifdef PAGESIZE
3301 # define getpagesize() PAGESIZE
3302 # endif /* PAGESIZE */
3303 # endif /* no NBPC */
3304 # endif /* no NBPG */
3305 # endif /* no EXEC_PAGESIZE */
3306 # else /* no HAVE_SYS_PARAM_H */
3307 # define getpagesize() 8192 /* punt totally */
3308 # endif /* no HAVE_SYS_PARAM_H */
3309 # endif /* no _SC_PAGESIZE */
3310
3311 #endif /* no HAVE_GETPAGESIZE */
3312
3313 int
3314 main ()
3315 {
3316 char *data, *data2, *data3;
3317 int i, pagesize;
3318 int fd;
3319
3320 pagesize = getpagesize ();
3321
3322 /* First, make a file with some known garbage in it. */
3323 data = (char *) malloc (pagesize);
3324 if (!data)
3325 exit (1);
3326 for (i = 0; i < pagesize; ++i)
3327 *(data + i) = rand ();
3328 umask (0);
3329 fd = creat ("conftest.mmap", 0600);
3330 if (fd < 0)
3331 exit (1);
3332 if (write (fd, data, pagesize) != pagesize)
3333 exit (1);
3334 close (fd);
3335
3336 /* Next, try to mmap the file at a fixed address which already has
3337 something else allocated at it. If we can, also make sure that
3338 we see the same garbage. */
3339 fd = open ("conftest.mmap", O_RDWR);
3340 if (fd < 0)
3341 exit (1);
3342 data2 = (char *) malloc (2 * pagesize);
3343 if (!data2)
3344 exit (1);
3345 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3346 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3347 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3348 exit (1);
3349 for (i = 0; i < pagesize; ++i)
3350 if (*(data + i) != *(data2 + i))
3351 exit (1);
3352
3353 /* Finally, make sure that changes to the mapped area do not
3354 percolate back to the file as seen by read(). (This is a bug on
3355 some variants of i386 svr4.0.) */
3356 for (i = 0; i < pagesize; ++i)
3357 *(data2 + i) = *(data2 + i) + 1;
3358 data3 = (char *) malloc (pagesize);
3359 if (!data3)
3360 exit (1);
3361 if (read (fd, data3, pagesize) != pagesize)
3362 exit (1);
3363 for (i = 0; i < pagesize; ++i)
3364 if (*(data + i) != *(data3 + i))
3365 exit (1);
3366 close (fd);
3367 exit (0);
3368 }
3369 _ACEOF
3370 rm -f conftest$ac_exeext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372 (eval $ac_link) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_func_mmap_fixed_mapped=yes
3382 else
3383 echo "$as_me: program exited with status $ac_status" >&5
3384 echo "$as_me: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3386 ( exit $ac_status )
3387 ac_cv_func_mmap_fixed_mapped=no
3388 fi
3389 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3390 fi
3391 fi
3392 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3393 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3394 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3395
3396 cat >>confdefs.h <<\_ACEOF
3397 #define HAVE_MMAP 1
3398 _ACEOF
3399
3400 fi
3401 rm -f conftest.mmap
3402
3403
3404
3405 for ac_func in memcpy strerror
3406 do
3407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3408 echo "$as_me:$LINENO: checking for $ac_func" >&5
3409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3410 if eval "test \"\${$as_ac_var+set}\" = set"; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line $LINENO "configure"
3415 #include "confdefs.h"
3416 /* System header to define __stub macros and hopefully few prototypes,
3417 which can conflict with char $ac_func (); below. */
3418 #include <assert.h>
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 #ifdef __cplusplus
3421 extern "C"
3422 #endif
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3425 char $ac_func ();
3426 char (*f) ();
3427
3428 #ifdef F77_DUMMY_MAIN
3429 # ifdef __cplusplus
3430 extern "C"
3431 # endif
3432 int F77_DUMMY_MAIN() { return 1; }
3433 #endif
3434 int
3435 main ()
3436 {
3437 /* The GNU C library defines this for functions which it implements
3438 to always fail with ENOSYS. Some functions are actually named
3439 something starting with __ and the normal name is an alias. */
3440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3441 choke me
3442 #else
3443 f = $ac_func;
3444 #endif
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 rm -f conftest.$ac_objext conftest$ac_exeext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3452 (eval $ac_link) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try='test -s conftest$ac_exeext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 eval "$as_ac_var=yes"
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3466 eval "$as_ac_var=no"
3467 fi
3468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3469 fi
3470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3472 if test `eval echo '${'$as_ac_var'}'` = yes; then
3473 cat >>confdefs.h <<_ACEOF
3474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3475 _ACEOF
3476
3477 fi
3478 done
3479
3480
3481 if test "$with_system_zlib" = yes; then
3482 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
3483 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
3484 if test "${ac_cv_lib_z_deflate+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 ac_check_lib_save_LIBS=$LIBS
3488 LIBS="-lz $LIBS"
3489 cat >conftest.$ac_ext <<_ACEOF
3490 #line $LINENO "configure"
3491 #include "confdefs.h"
3492
3493 /* Override any gcc2 internal prototype to avoid an error. */
3494 #ifdef __cplusplus
3495 extern "C"
3496 #endif
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3499 char deflate ();
3500 #ifdef F77_DUMMY_MAIN
3501 # ifdef __cplusplus
3502 extern "C"
3503 # endif
3504 int F77_DUMMY_MAIN() { return 1; }
3505 #endif
3506 int
3507 main ()
3508 {
3509 deflate ();
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext conftest$ac_exeext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516 (eval $ac_link) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -s conftest$ac_exeext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_cv_lib_z_deflate=yes
3527 else
3528 echo "$as_me: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 ac_cv_lib_z_deflate=no
3531 fi
3532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3533 LIBS=$ac_check_lib_save_LIBS
3534 fi
3535 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
3536 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
3537 if test $ac_cv_lib_z_deflate = yes; then
3538 target_all=
3539 else
3540 target_all=libzcygw.a
3541 fi
3542
3543 else
3544 target_all=libzcygw.a
3545 fi
3546 fi
3547
3548
3549
3550
3551 for ac_header in unistd.h
3552 do
3553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3555 echo "$as_me:$LINENO: checking for $ac_header" >&5
3556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 fi
3560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3562 else
3563 # Is the header compilable?
3564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 #include "confdefs.h"
3569 $ac_includes_default
3570 #include <$ac_header>
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_header_compiler=yes
3585 else
3586 echo "$as_me: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 ac_header_compiler=no
3589 fi
3590 rm -f conftest.$ac_objext conftest.$ac_ext
3591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3592 echo "${ECHO_T}$ac_header_compiler" >&6
3593
3594 # Is the header present?
3595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3599 #include "confdefs.h"
3600 #include <$ac_header>
3601 _ACEOF
3602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3604 ac_status=$?
3605 egrep -v '^ *\+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } >/dev/null; then
3610 if test -s conftest.err; then
3611 ac_cpp_err=$ac_c_preproc_warn_flag
3612 else
3613 ac_cpp_err=
3614 fi
3615 else
3616 ac_cpp_err=yes
3617 fi
3618 if test -z "$ac_cpp_err"; then
3619 ac_header_preproc=yes
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3623 ac_header_preproc=no
3624 fi
3625 rm -f conftest.err conftest.$ac_ext
3626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3627 echo "${ECHO_T}$ac_header_preproc" >&6
3628
3629 # So? What about this header?
3630 case $ac_header_compiler:$ac_header_preproc in
3631 yes:no )
3632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3636 no:yes )
3637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3643 esac
3644 echo "$as_me:$LINENO: checking for $ac_header" >&5
3645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 eval "$as_ac_Header=$ac_header_preproc"
3650 fi
3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3653
3654 fi
3655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3656 cat >>confdefs.h <<_ACEOF
3657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3658 _ACEOF
3659
3660 fi
3661
3662 done
3663
3664
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}ar; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_AR+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 if test -n "$AR"; then
3674 ac_cv_prog_AR="$AR" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_AR="${ac_tool_prefix}ar"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689
3690 fi
3691 fi
3692 AR=$ac_cv_prog_AR
3693 if test -n "$AR"; then
3694 echo "$as_me:$LINENO: result: $AR" >&5
3695 echo "${ECHO_T}$AR" >&6
3696 else
3697 echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3699 fi
3700
3701 fi
3702 if test -z "$ac_cv_prog_AR"; then
3703 ac_ct_AR=$AR
3704 # Extract the first word of "ar", so it can be a program name with args.
3705 set dummy ar; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 if test -n "$ac_ct_AR"; then
3712 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_AR="ar"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725 done
3726 done
3727
3728 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3729 fi
3730 fi
3731 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3732 if test -n "$ac_ct_AR"; then
3733 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3734 echo "${ECHO_T}$ac_ct_AR" >&6
3735 else
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3738 fi
3739
3740 AR=$ac_ct_AR
3741 else
3742 AR="$ac_cv_prog_AR"
3743 fi
3744
3745
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}as; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_AS+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 if test -n "$AS"; then
3755 ac_cv_prog_AS="$AS" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_AS="${ac_tool_prefix}as"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770
3771 fi
3772 fi
3773 AS=$ac_cv_prog_AS
3774 if test -n "$AS"; then
3775 echo "$as_me:$LINENO: result: $AS" >&5
3776 echo "${ECHO_T}$AS" >&6
3777 else
3778 echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3780 fi
3781
3782 fi
3783 if test -z "$ac_cv_prog_AS"; then
3784 ac_ct_AS=$AS
3785 # Extract the first word of "as", so it can be a program name with args.
3786 set dummy as; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 if test -n "$ac_ct_AS"; then
3793 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_ac_ct_AS="as"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806 done
3807 done
3808
3809 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as"
3810 fi
3811 fi
3812 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3813 if test -n "$ac_ct_AS"; then
3814 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3815 echo "${ECHO_T}$ac_ct_AS" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3819 fi
3820
3821 AS=$ac_ct_AS
3822 else
3823 AS="$ac_cv_prog_AS"
3824 fi
3825
3826
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_RANLIB+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if test -n "$RANLIB"; then
3836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851
3852 fi
3853 fi
3854 RANLIB=$ac_cv_prog_RANLIB
3855 if test -n "$RANLIB"; then
3856 echo "$as_me:$LINENO: result: $RANLIB" >&5
3857 echo "${ECHO_T}$RANLIB" >&6
3858 else
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863 fi
3864 if test -z "$ac_cv_prog_RANLIB"; then
3865 ac_ct_RANLIB=$RANLIB
3866 # Extract the first word of "ranlib", so it can be a program name with args.
3867 set dummy ranlib; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 if test -n "$ac_ct_RANLIB"; then
3874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_ac_ct_RANLIB="ranlib"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889
3890 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib"
3891 fi
3892 fi
3893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3894 if test -n "$ac_ct_RANLIB"; then
3895 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3896 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3897 else
3898 echo "$as_me:$LINENO: result: no" >&5
3899 echo "${ECHO_T}no" >&6
3900 fi
3901
3902 RANLIB=$ac_ct_RANLIB
3903 else
3904 RANLIB="$ac_cv_prog_RANLIB"
3905 fi
3906
3907
3908 if test -n "$ac_tool_prefix"; then
3909 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3910 set dummy ${ac_tool_prefix}ld; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_LD+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if test -n "$LD"; then
3917 ac_cv_prog_LD="$LD" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_LD="${ac_tool_prefix}ld"
3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930 done
3931 done
3932
3933 fi
3934 fi
3935 LD=$ac_cv_prog_LD
3936 if test -n "$LD"; then
3937 echo "$as_me:$LINENO: result: $LD" >&5
3938 echo "${ECHO_T}$LD" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3942 fi
3943
3944 fi
3945 if test -z "$ac_cv_prog_LD"; then
3946 ac_ct_LD=$LD
3947 # Extract the first word of "ld", so it can be a program name with args.
3948 set dummy ld; ac_word=$2
3949 echo "$as_me:$LINENO: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 if test -n "$ac_ct_LD"; then
3955 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964 ac_cv_prog_ac_ct_LD="ld"
3965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3967 fi
3968 done
3969 done
3970
3971 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3972 fi
3973 fi
3974 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3975 if test -n "$ac_ct_LD"; then
3976 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3977 echo "${ECHO_T}$ac_ct_LD" >&6
3978 else
3979 echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3981 fi
3982
3983 LD=$ac_ct_LD
3984 else
3985 LD="$ac_cv_prog_LD"
3986 fi
3987
3988
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}nm; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_NM+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 if test -n "$NM"; then
3998 ac_cv_prog_NM="$NM" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_NM="${ac_tool_prefix}nm"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013
4014 fi
4015 fi
4016 NM=$ac_cv_prog_NM
4017 if test -n "$NM"; then
4018 echo "$as_me:$LINENO: result: $NM" >&5
4019 echo "${ECHO_T}$NM" >&6
4020 else
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4023 fi
4024
4025 fi
4026 if test -z "$ac_cv_prog_NM"; then
4027 ac_ct_NM=$NM
4028 # Extract the first word of "nm", so it can be a program name with args.
4029 set dummy nm; ac_word=$2
4030 echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 if test -n "$ac_ct_NM"; then
4036 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_NM="nm"
4046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051
4052 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4053 fi
4054 fi
4055 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4056 if test -n "$ac_ct_NM"; then
4057 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
4058 echo "${ECHO_T}$ac_ct_NM" >&6
4059 else
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4062 fi
4063
4064 NM=$ac_ct_NM
4065 else
4066 NM="$ac_cv_prog_NM"
4067 fi
4068
4069
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 if test -n "$DLLTOOL"; then
4079 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092 done
4093 done
4094
4095 fi
4096 fi
4097 DLLTOOL=$ac_cv_prog_DLLTOOL
4098 if test -n "$DLLTOOL"; then
4099 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4100 echo "${ECHO_T}$DLLTOOL" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104 fi
4105
4106 fi
4107 if test -z "$ac_cv_prog_DLLTOOL"; then
4108 ac_ct_DLLTOOL=$DLLTOOL
4109 # Extract the first word of "dlltool", so it can be a program name with args.
4110 set dummy dlltool; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 if test -n "$ac_ct_DLLTOOL"; then
4117 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130 done
4131 done
4132
4133 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4134 fi
4135 fi
4136 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4137 if test -n "$ac_ct_DLLTOOL"; then
4138 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4139 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4140 else
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143 fi
4144
4145 DLLTOOL=$ac_ct_DLLTOOL
4146 else
4147 DLLTOOL="$ac_cv_prog_DLLTOOL"
4148 fi
4149
4150
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}windres; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_WINDRES+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 if test -n "$WINDRES"; then
4160 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173 done
4174 done
4175
4176 fi
4177 fi
4178 WINDRES=$ac_cv_prog_WINDRES
4179 if test -n "$WINDRES"; then
4180 echo "$as_me:$LINENO: result: $WINDRES" >&5
4181 echo "${ECHO_T}$WINDRES" >&6
4182 else
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187 fi
4188 if test -z "$ac_cv_prog_WINDRES"; then
4189 ac_ct_WINDRES=$WINDRES
4190 # Extract the first word of "windres", so it can be a program name with args.
4191 set dummy windres; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if test -n "$ac_ct_WINDRES"; then
4198 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_ac_ct_WINDRES="windres"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4210 fi
4211 done
4212 done
4213
4214 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="windres"
4215 fi
4216 fi
4217 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4218 if test -n "$ac_ct_WINDRES"; then
4219 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4220 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4221 else
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4224 fi
4225
4226 WINDRES=$ac_ct_WINDRES
4227 else
4228 WINDRES="$ac_cv_prog_WINDRES"
4229 fi
4230
4231
4232
4233
4234
4235 if test -z "$with_cross_host"; then
4236 USE_LIBDIR_TRUE=
4237 USE_LIBDIR_FALSE='#'
4238 else
4239 USE_LIBDIR_TRUE='#'
4240 USE_LIBDIR_FALSE=
4241 fi
4242
4243
4244 ac_config_files="$ac_config_files Makefile"
4245
4246 cat >confcache <<\_ACEOF
4247 # This file is a shell script that caches the results of configure
4248 # tests run on this system so they can be shared between configure
4249 # scripts and configure runs, see configure's option --config-cache.
4250 # It is not useful on other systems. If it contains results you don't
4251 # want to keep, you may remove or edit it.
4252 #
4253 # config.status only pays attention to the cache file if you give it
4254 # the --recheck option to rerun configure.
4255 #
4256 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4258 # following values.
4259
4260 _ACEOF
4261
4262 # The following way of writing the cache mishandles newlines in values,
4263 # but we know of no workaround that is simple, portable, and efficient.
4264 # So, don't put newlines in cache variables' values.
4265 # Ultrix sh set writes to stderr and can't be redirected directly,
4266 # and sets the high bit in the cache file unless we assign to the vars.
4267 {
4268 (set) 2>&1 |
4269 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4270 *ac_space=\ *)
4271 # `set' does not quote correctly, so add quotes (double-quote
4272 # substitution turns \\\\ into \\, and sed turns \\ into \).
4273 sed -n \
4274 "s/'/'\\\\''/g;
4275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4276 ;;
4277 *)
4278 # `set' quotes correctly as required by POSIX, so do not add quotes.
4279 sed -n \
4280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4281 ;;
4282 esac;
4283 } |
4284 sed '
4285 t clear
4286 : clear
4287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4288 t end
4289 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4290 : end' >>confcache
4291 if cmp -s $cache_file confcache; then :; else
4292 if test -w $cache_file; then
4293 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4294 cat confcache >$cache_file
4295 else
4296 echo "not updating unwritable cache $cache_file"
4297 fi
4298 fi
4299 rm -f confcache
4300
4301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4302 # Let make expand exec_prefix.
4303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4304
4305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4307 # trailing colons and then remove the whole line if VPATH becomes empty
4308 # (actually we leave an empty line to preserve line numbers).
4309 if test "x$srcdir" = x.; then
4310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4311 s/:*\$(srcdir):*/:/;
4312 s/:*\${srcdir}:*/:/;
4313 s/:*@srcdir@:*/:/;
4314 s/^\([^=]*=[ ]*\):*/\1/;
4315 s/:*$//;
4316 s/^[^=]*=[ ]*$//;
4317 }'
4318 fi
4319
4320 # Transform confdefs.h into DEFS.
4321 # Protect against shell expansion while executing Makefile rules.
4322 # Protect against Makefile macro expansion.
4323 #
4324 # If the first sed substitution is executed (which looks for macros that
4325 # take arguments), then we branch to the quote section. Otherwise,
4326 # look for a macro that doesn't take arguments.
4327 cat >confdef2opt.sed <<\_ACEOF
4328 t clear
4329 : clear
4330 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4331 t quote
4332 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4333 t quote
4334 d
4335 : quote
4336 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4337 s,\[,\\&,g
4338 s,\],\\&,g
4339 s,\$,$$,g
4340 p
4341 _ACEOF
4342 # We use echo to avoid assuming a particular line-breaking character.
4343 # The extra dot is to prevent the shell from consuming trailing
4344 # line-breaks from the sub-command output. A line-break within
4345 # single-quotes doesn't work because, if this script is created in a
4346 # platform that uses two characters for line-breaks (e.g., DOS), tr
4347 # would break.
4348 ac_LF_and_DOT=`echo; echo .`
4349 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4350 rm -f confdef2opt.sed
4351
4352
4353 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4354 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4355 Usually this means the macro was only invoked conditionally." >&5
4356 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4357 Usually this means the macro was only invoked conditionally." >&2;}
4358 { (exit 1); exit 1; }; }
4359 fi
4360 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4361 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4362 Usually this means the macro was only invoked conditionally." >&5
4363 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4364 Usually this means the macro was only invoked conditionally." >&2;}
4365 { (exit 1); exit 1; }; }
4366 fi
4367 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
4368 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
4369 Usually this means the macro was only invoked conditionally." >&5
4370 echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
4371 Usually this means the macro was only invoked conditionally." >&2;}
4372 { (exit 1); exit 1; }; }
4373 fi
4374
4375 : ${CONFIG_STATUS=./config.status}
4376 ac_clean_files_save=$ac_clean_files
4377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4378 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4379 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4380 cat >$CONFIG_STATUS <<_ACEOF
4381 #! $SHELL
4382 # Generated by $as_me.
4383 # Run this file to recreate the current configuration.
4384 # Compiler output produced by configure, useful for debugging
4385 # configure, is in config.log if it exists.
4386
4387 debug=false
4388 SHELL=\${CONFIG_SHELL-$SHELL}
4389 _ACEOF
4390
4391 cat >>$CONFIG_STATUS <<\_ACEOF
4392
4393 ## --------------------- ##
4394 ## M4sh Initialization. ##
4395 ## --------------------- ##
4396
4397 # Be Bourne compatible
4398 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4399 emulate sh
4400 NULLCMD=:
4401 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4402 set -o posix
4403 fi
4404
4405 # NLS nuisances.
4406 # Support unset when possible.
4407 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4408 as_unset=unset
4409 else
4410 as_unset=false
4411 fi
4412
4413 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4414 { $as_unset LANG || test "${LANG+set}" != set; } ||
4415 { LANG=C; export LANG; }
4416 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4417 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4418 { LC_ALL=C; export LC_ALL; }
4419 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4420 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4421 { LC_TIME=C; export LC_TIME; }
4422 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4423 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4424 { LC_CTYPE=C; export LC_CTYPE; }
4425 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4426 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4427 { LANGUAGE=C; export LANGUAGE; }
4428 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4429 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4430 { LC_COLLATE=C; export LC_COLLATE; }
4431 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4432 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4433 { LC_NUMERIC=C; export LC_NUMERIC; }
4434 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4435 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4436 { LC_MESSAGES=C; export LC_MESSAGES; }
4437
4438
4439 # Name of the executable.
4440 as_me=`(basename "$0") 2>/dev/null ||
4441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4442 X"$0" : 'X\(//\)$' \| \
4443 X"$0" : 'X\(/\)$' \| \
4444 . : '\(.\)' 2>/dev/null ||
4445 echo X/"$0" |
4446 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4447 /^X\/\(\/\/\)$/{ s//\1/; q; }
4448 /^X\/\(\/\).*/{ s//\1/; q; }
4449 s/.*/./; q'`
4450
4451 # PATH needs CR, and LINENO needs CR and PATH.
4452 # Avoid depending upon Character Ranges.
4453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4456 as_cr_digits='0123456789'
4457 as_cr_alnum=$as_cr_Letters$as_cr_digits
4458
4459 # The user is always right.
4460 if test "${PATH_SEPARATOR+set}" != set; then
4461 echo "#! /bin/sh" >conftest.sh
4462 echo "exit 0" >>conftest.sh
4463 chmod +x conftest.sh
4464 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4465 PATH_SEPARATOR=';'
4466 else
4467 PATH_SEPARATOR=:
4468 fi
4469 rm -f conftest.sh
4470 fi
4471
4472
4473 as_lineno_1=$LINENO
4474 as_lineno_2=$LINENO
4475 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4476 test "x$as_lineno_1" != "x$as_lineno_2" &&
4477 test "x$as_lineno_3" = "x$as_lineno_2" || {
4478 # Find who we are. Look in the path if we contain no path at all
4479 # relative or not.
4480 case $0 in
4481 *[\\/]* ) as_myself=$0 ;;
4482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4488 done
4489
4490 ;;
4491 esac
4492 # We did not find ourselves, most probably we were run as `sh COMMAND'
4493 # in which case we are not to be found in the path.
4494 if test "x$as_myself" = x; then
4495 as_myself=$0
4496 fi
4497 if test ! -f "$as_myself"; then
4498 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4499 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4500 { (exit 1); exit 1; }; }
4501 fi
4502 case $CONFIG_SHELL in
4503 '')
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4506 do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for as_base in sh bash ksh sh5; do
4510 case $as_dir in
4511 /*)
4512 if ("$as_dir/$as_base" -c '
4513 as_lineno_1=$LINENO
4514 as_lineno_2=$LINENO
4515 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4516 test "x$as_lineno_1" != "x$as_lineno_2" &&
4517 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4518 CONFIG_SHELL=$as_dir/$as_base
4519 export CONFIG_SHELL
4520 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4521 fi;;
4522 esac
4523 done
4524 done
4525 ;;
4526 esac
4527
4528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4529 # uniformly replaced by the line number. The first 'sed' inserts a
4530 # line-number line before each line; the second 'sed' does the real
4531 # work. The second script uses 'N' to pair each line-number line
4532 # with the numbered line, and appends trailing '-' during
4533 # substitution so that $LINENO is not a special case at line end.
4534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4535 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4536 sed '=' <$as_myself |
4537 sed '
4538 N
4539 s,$,-,
4540 : loop
4541 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4542 t loop
4543 s,-$,,
4544 s,^['$as_cr_digits']*\n,,
4545 ' >$as_me.lineno &&
4546 chmod +x $as_me.lineno ||
4547 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4548 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4549 { (exit 1); exit 1; }; }
4550
4551 # Don't try to exec as it changes $[0], causing all sort of problems
4552 # (the dirname of $[0] is not the place where we might find the
4553 # original and so on. Autoconf is especially sensible to this).
4554 . ./$as_me.lineno
4555 # Exit status is that of the last command.
4556 exit
4557 }
4558
4559
4560 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4561 *c*,-n*) ECHO_N= ECHO_C='
4562 ' ECHO_T=' ' ;;
4563 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4564 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4565 esac
4566
4567 if expr a : '\(a\)' >/dev/null 2>&1; then
4568 as_expr=expr
4569 else
4570 as_expr=false
4571 fi
4572
4573 rm -f conf$$ conf$$.exe conf$$.file
4574 echo >conf$$.file
4575 if ln -s conf$$.file conf$$ 2>/dev/null; then
4576 # We could just check for DJGPP; but this test a) works b) is more generic
4577 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4578 if test -f conf$$.exe; then
4579 # Don't use ln at all; we don't have any links
4580 as_ln_s='cp -p'
4581 else
4582 as_ln_s='ln -s'
4583 fi
4584 elif ln conf$$.file conf$$ 2>/dev/null; then
4585 as_ln_s=ln
4586 else
4587 as_ln_s='cp -p'
4588 fi
4589 rm -f conf$$ conf$$.exe conf$$.file
4590
4591 as_executable_p="test -f"
4592
4593 # Sed expression to map a string onto a valid CPP name.
4594 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4595
4596 # Sed expression to map a string onto a valid variable name.
4597 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4598
4599
4600 # IFS
4601 # We need space, tab and new line, in precisely that order.
4602 as_nl='
4603 '
4604 IFS=" $as_nl"
4605
4606 # CDPATH.
4607 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4608
4609 exec 6>&1
4610
4611 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4612 # report actual input values of CONFIG_FILES etc. instead of their
4613 # values after options handling. Logging --version etc. is OK.
4614 exec 5>>config.log
4615 {
4616 echo
4617 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4618 ## Running $as_me. ##
4619 _ASBOX
4620 } >&5
4621 cat >&5 <<_CSEOF
4622
4623 This file was extended by $as_me, which was
4624 generated by GNU Autoconf 2.53. Invocation command line was
4625
4626 CONFIG_FILES = $CONFIG_FILES
4627 CONFIG_HEADERS = $CONFIG_HEADERS
4628 CONFIG_LINKS = $CONFIG_LINKS
4629 CONFIG_COMMANDS = $CONFIG_COMMANDS
4630 $ $0 $@
4631
4632 _CSEOF
4633 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4634 echo >&5
4635 _ACEOF
4636
4637 # Files that config.status was made for.
4638 if test -n "$ac_config_files"; then
4639 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4640 fi
4641
4642 if test -n "$ac_config_headers"; then
4643 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4644 fi
4645
4646 if test -n "$ac_config_links"; then
4647 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4648 fi
4649
4650 if test -n "$ac_config_commands"; then
4651 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4652 fi
4653
4654 cat >>$CONFIG_STATUS <<\_ACEOF
4655
4656 ac_cs_usage="\
4657 \`$as_me' instantiates files from templates according to the
4658 current configuration.
4659
4660 Usage: $0 [OPTIONS] [FILE]...
4661
4662 -h, --help print this help, then exit
4663 -V, --version print version number, then exit
4664 -d, --debug don't remove temporary files
4665 --recheck update $as_me by reconfiguring in the same conditions
4666 --file=FILE[:TEMPLATE]
4667 instantiate the configuration file FILE
4668
4669 Configuration files:
4670 $config_files
4671
4672 Configuration commands:
4673 $config_commands
4674
4675 Report bugs to <bug-autoconf@gnu.org>."
4676 _ACEOF
4677
4678 cat >>$CONFIG_STATUS <<_ACEOF
4679 ac_cs_version="\\
4680 config.status
4681 configured by $0, generated by GNU Autoconf 2.53,
4682 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4683
4684 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4685 Free Software Foundation, Inc.
4686 This config.status script is free software; the Free Software Foundation
4687 gives unlimited permission to copy, distribute and modify it."
4688 srcdir=$srcdir
4689 INSTALL="$INSTALL"
4690 _ACEOF
4691
4692 cat >>$CONFIG_STATUS <<\_ACEOF
4693 # If no file are specified by the user, then we need to provide default
4694 # value. By we need to know if files were specified by the user.
4695 ac_need_defaults=:
4696 while test $# != 0
4697 do
4698 case $1 in
4699 --*=*)
4700 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4701 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4702 shift
4703 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4704 shift
4705 ;;
4706 -*);;
4707 *) # This is not an option, so the user has probably given explicit
4708 # arguments.
4709 ac_need_defaults=false;;
4710 esac
4711
4712 case $1 in
4713 # Handling of the options.
4714 _ACEOF
4715 cat >>$CONFIG_STATUS <<_ACEOF
4716 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4717 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4718 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4719 _ACEOF
4720 cat >>$CONFIG_STATUS <<\_ACEOF
4721 --version | --vers* | -V )
4722 echo "$ac_cs_version"; exit 0 ;;
4723 --he | --h)
4724 # Conflict between --help and --header
4725 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4726 Try \`$0 --help' for more information." >&5
4727 echo "$as_me: error: ambiguous option: $1
4728 Try \`$0 --help' for more information." >&2;}
4729 { (exit 1); exit 1; }; };;
4730 --help | --hel | -h )
4731 echo "$ac_cs_usage"; exit 0 ;;
4732 --debug | --d* | -d )
4733 debug=: ;;
4734 --file | --fil | --fi | --f )
4735 shift
4736 CONFIG_FILES="$CONFIG_FILES $1"
4737 ac_need_defaults=false;;
4738 --header | --heade | --head | --hea )
4739 shift
4740 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4741 ac_need_defaults=false;;
4742
4743 # This is an error.
4744 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4745 Try \`$0 --help' for more information." >&5
4746 echo "$as_me: error: unrecognized option: $1
4747 Try \`$0 --help' for more information." >&2;}
4748 { (exit 1); exit 1; }; } ;;
4749
4750 *) ac_config_targets="$ac_config_targets $1" ;;
4751
4752 esac
4753 shift
4754 done
4755
4756 _ACEOF
4757
4758 cat >>$CONFIG_STATUS <<_ACEOF
4759 #
4760 # INIT-COMMANDS section.
4761 #
4762
4763 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4764
4765 _ACEOF
4766
4767
4768
4769 cat >>$CONFIG_STATUS <<\_ACEOF
4770 for ac_config_target in $ac_config_targets
4771 do
4772 case "$ac_config_target" in
4773 # Handling of arguments.
4774 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4775 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4778 { (exit 1); exit 1; }; };;
4779 esac
4780 done
4781
4782 # If the user did not use the arguments to specify the items to instantiate,
4783 # then the envvar interface is used. Set only those that are not.
4784 # We use the long form for the default assignment because of an extremely
4785 # bizarre bug on SunOS 4.1.3.
4786 if $ac_need_defaults; then
4787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4788 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4789 fi
4790
4791 # Create a temporary directory, and hook for its removal unless debugging.
4792 $debug ||
4793 {
4794 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4795 trap '{ (exit 1); exit 1; }' 1 2 13 15
4796 }
4797
4798 # Create a (secure) tmp directory for tmp files.
4799 : ${TMPDIR=/tmp}
4800 {
4801 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4802 test -n "$tmp" && test -d "$tmp"
4803 } ||
4804 {
4805 tmp=$TMPDIR/cs$$-$RANDOM
4806 (umask 077 && mkdir $tmp)
4807 } ||
4808 {
4809 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4810 { (exit 1); exit 1; }
4811 }
4812
4813 _ACEOF
4814
4815 cat >>$CONFIG_STATUS <<_ACEOF
4816
4817 #
4818 # CONFIG_FILES section.
4819 #
4820
4821 # No need to generate the scripts if there are no CONFIG_FILES.
4822 # This happens for instance when ./config.status config.h
4823 if test -n "\$CONFIG_FILES"; then
4824 # Protect against being on the right side of a sed subst in config.status.
4825 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4826 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4827 s,@SHELL@,$SHELL,;t t
4828 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4829 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4830 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4831 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4832 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4833 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4834 s,@exec_prefix@,$exec_prefix,;t t
4835 s,@prefix@,$prefix,;t t
4836 s,@program_transform_name@,$program_transform_name,;t t
4837 s,@bindir@,$bindir,;t t
4838 s,@sbindir@,$sbindir,;t t
4839 s,@libexecdir@,$libexecdir,;t t
4840 s,@datadir@,$datadir,;t t
4841 s,@sysconfdir@,$sysconfdir,;t t
4842 s,@sharedstatedir@,$sharedstatedir,;t t
4843 s,@localstatedir@,$localstatedir,;t t
4844 s,@libdir@,$libdir,;t t
4845 s,@includedir@,$includedir,;t t
4846 s,@oldincludedir@,$oldincludedir,;t t
4847 s,@infodir@,$infodir,;t t
4848 s,@mandir@,$mandir,;t t
4849 s,@build_alias@,$build_alias,;t t
4850 s,@host_alias@,$host_alias,;t t
4851 s,@target_alias@,$target_alias,;t t
4852 s,@DEFS@,$DEFS,;t t
4853 s,@ECHO_C@,$ECHO_C,;t t
4854 s,@ECHO_N@,$ECHO_N,;t t
4855 s,@ECHO_T@,$ECHO_T,;t t
4856 s,@LIBS@,$LIBS,;t t
4857 s,@build@,$build,;t t
4858 s,@build_cpu@,$build_cpu,;t t
4859 s,@build_vendor@,$build_vendor,;t t
4860 s,@build_os@,$build_os,;t t
4861 s,@host@,$host,;t t
4862 s,@host_cpu@,$host_cpu,;t t
4863 s,@host_vendor@,$host_vendor,;t t
4864 s,@host_os@,$host_os,;t t
4865 s,@target@,$target,;t t
4866 s,@target_cpu@,$target_cpu,;t t
4867 s,@target_vendor@,$target_vendor,;t t
4868 s,@target_os@,$target_os,;t t
4869 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4870 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4871 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4872 s,@PACKAGE@,$PACKAGE,;t t
4873 s,@VERSION@,$VERSION,;t t
4874 s,@ACLOCAL@,$ACLOCAL,;t t
4875 s,@AUTOCONF@,$AUTOCONF,;t t
4876 s,@AUTOMAKE@,$AUTOMAKE,;t t
4877 s,@AUTOHEADER@,$AUTOHEADER,;t t
4878 s,@MAKEINFO@,$MAKEINFO,;t t
4879 s,@AMTAR@,$AMTAR,;t t
4880 s,@install_sh@,$install_sh,;t t
4881 s,@STRIP@,$STRIP,;t t
4882 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4883 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4884 s,@AWK@,$AWK,;t t
4885 s,@SET_MAKE@,$SET_MAKE,;t t
4886 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4887 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4888 s,@MAINT@,$MAINT,;t t
4889 s,@COMPPATH@,$COMPPATH,;t t
4890 s,@CC@,$CC,;t t
4891 s,@CFLAGS@,$CFLAGS,;t t
4892 s,@LDFLAGS@,$LDFLAGS,;t t
4893 s,@CPPFLAGS@,$CPPFLAGS,;t t
4894 s,@ac_ct_CC@,$ac_ct_CC,;t t
4895 s,@EXEEXT@,$EXEEXT,;t t
4896 s,@OBJEXT@,$OBJEXT,;t t
4897 s,@DEPDIR@,$DEPDIR,;t t
4898 s,@am__include@,$am__include,;t t
4899 s,@am__quote@,$am__quote,;t t
4900 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4901 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4902 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4903 s,@CCDEPMODE@,$CCDEPMODE,;t t
4904 s,@CPP@,$CPP,;t t
4905 s,@target_all@,$target_all,;t t
4906 s,@AR@,$AR,;t t
4907 s,@ac_ct_AR@,$ac_ct_AR,;t t
4908 s,@AS@,$AS,;t t
4909 s,@ac_ct_AS@,$ac_ct_AS,;t t
4910 s,@RANLIB@,$RANLIB,;t t
4911 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4912 s,@LD@,$LD,;t t
4913 s,@ac_ct_LD@,$ac_ct_LD,;t t
4914 s,@NM@,$NM,;t t
4915 s,@ac_ct_NM@,$ac_ct_NM,;t t
4916 s,@DLLTOOL@,$DLLTOOL,;t t
4917 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
4918 s,@WINDRES@,$WINDRES,;t t
4919 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
4920 s,@USE_LIBDIR_TRUE@,$USE_LIBDIR_TRUE,;t t
4921 s,@USE_LIBDIR_FALSE@,$USE_LIBDIR_FALSE,;t t
4922 CEOF
4923
4924 _ACEOF
4925
4926 cat >>$CONFIG_STATUS <<\_ACEOF
4927 # Split the substitutions into bite-sized pieces for seds with
4928 # small command number limits, like on Digital OSF/1 and HP-UX.
4929 ac_max_sed_lines=48
4930 ac_sed_frag=1 # Number of current file.
4931 ac_beg=1 # First line for current file.
4932 ac_end=$ac_max_sed_lines # Line after last line for current file.
4933 ac_more_lines=:
4934 ac_sed_cmds=
4935 while $ac_more_lines; do
4936 if test $ac_beg -gt 1; then
4937 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4938 else
4939 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4940 fi
4941 if test ! -s $tmp/subs.frag; then
4942 ac_more_lines=false
4943 else
4944 # The purpose of the label and of the branching condition is to
4945 # speed up the sed processing (if there are no `@' at all, there
4946 # is no need to browse any of the substitutions).
4947 # These are the two extra sed commands mentioned above.
4948 (echo ':t
4949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4950 if test -z "$ac_sed_cmds"; then
4951 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4952 else
4953 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4954 fi
4955 ac_sed_frag=`expr $ac_sed_frag + 1`
4956 ac_beg=$ac_end
4957 ac_end=`expr $ac_end + $ac_max_sed_lines`
4958 fi
4959 done
4960 if test -z "$ac_sed_cmds"; then
4961 ac_sed_cmds=cat
4962 fi
4963 fi # test -n "$CONFIG_FILES"
4964
4965 _ACEOF
4966 cat >>$CONFIG_STATUS <<\_ACEOF
4967 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4969 case $ac_file in
4970 - | *:- | *:-:* ) # input from stdin
4971 cat >$tmp/stdin
4972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4976 * ) ac_file_in=$ac_file.in ;;
4977 esac
4978
4979 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4980 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4982 X"$ac_file" : 'X\(//\)[^/]' \| \
4983 X"$ac_file" : 'X\(//\)$' \| \
4984 X"$ac_file" : 'X\(/\)' \| \
4985 . : '\(.\)' 2>/dev/null ||
4986 echo X"$ac_file" |
4987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4989 /^X\(\/\/\)$/{ s//\1/; q; }
4990 /^X\(\/\).*/{ s//\1/; q; }
4991 s/.*/./; q'`
4992 { case "$ac_dir" in
4993 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4994 *) as_incr_dir=.;;
4995 esac
4996 as_dummy="$ac_dir"
4997 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4998 case $as_mkdir_dir in
4999 # Skip DOS drivespec
5000 ?:) as_incr_dir=$as_mkdir_dir ;;
5001 *)
5002 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5003 test -d "$as_incr_dir" ||
5004 mkdir "$as_incr_dir" ||
5005 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5006 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5007 { (exit 1); exit 1; }; }
5008 ;;
5009 esac
5010 done; }
5011
5012 ac_builddir=.
5013
5014 if test "$ac_dir" != .; then
5015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5016 # A "../" for each directory in $ac_dir_suffix.
5017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5018 else
5019 ac_dir_suffix= ac_top_builddir=
5020 fi
5021
5022 case $srcdir in
5023 .) # No --srcdir option. We are building in place.
5024 ac_srcdir=.
5025 if test -z "$ac_top_builddir"; then
5026 ac_top_srcdir=.
5027 else
5028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5029 fi ;;
5030 [\\/]* | ?:[\\/]* ) # Absolute path.
5031 ac_srcdir=$srcdir$ac_dir_suffix;
5032 ac_top_srcdir=$srcdir ;;
5033 *) # Relative path.
5034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5036 esac
5037 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5038 # absolute.
5039 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5040 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5041 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5042 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5043
5044
5045 case $INSTALL in
5046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5047 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5048 esac
5049
5050 if test x"$ac_file" != x-; then
5051 { echo "$as_me:$LINENO: creating $ac_file" >&5
5052 echo "$as_me: creating $ac_file" >&6;}
5053 rm -f "$ac_file"
5054 fi
5055 # Let's still pretend it is `configure' which instantiates (i.e., don't
5056 # use $as_me), people would be surprised to read:
5057 # /* config.h. Generated by config.status. */
5058 if test x"$ac_file" = x-; then
5059 configure_input=
5060 else
5061 configure_input="$ac_file. "
5062 fi
5063 configure_input=$configure_input"Generated from `echo $ac_file_in |
5064 sed 's,.*/,,'` by configure."
5065
5066 # First look for the input files in the build tree, otherwise in the
5067 # src tree.
5068 ac_file_inputs=`IFS=:
5069 for f in $ac_file_in; do
5070 case $f in
5071 -) echo $tmp/stdin ;;
5072 [\\/$]*)
5073 # Absolute (can't be DOS-style, as IFS=:)
5074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5075 echo "$as_me: error: cannot find input file: $f" >&2;}
5076 { (exit 1); exit 1; }; }
5077 echo $f;;
5078 *) # Relative
5079 if test -f "$f"; then
5080 # Build tree
5081 echo $f
5082 elif test -f "$srcdir/$f"; then
5083 # Source tree
5084 echo $srcdir/$f
5085 else
5086 # /dev/null tree
5087 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5088 echo "$as_me: error: cannot find input file: $f" >&2;}
5089 { (exit 1); exit 1; }; }
5090 fi;;
5091 esac
5092 done` || { (exit 1); exit 1; }
5093 _ACEOF
5094 cat >>$CONFIG_STATUS <<_ACEOF
5095 sed "$ac_vpsub
5096 $extrasub
5097 _ACEOF
5098 cat >>$CONFIG_STATUS <<\_ACEOF
5099 :t
5100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5101 s,@configure_input@,$configure_input,;t t
5102 s,@srcdir@,$ac_srcdir,;t t
5103 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5104 s,@top_srcdir@,$ac_top_srcdir,;t t
5105 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5106 s,@builddir@,$ac_builddir,;t t
5107 s,@abs_builddir@,$ac_abs_builddir,;t t
5108 s,@top_builddir@,$ac_top_builddir,;t t
5109 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5110 s,@INSTALL@,$ac_INSTALL,;t t
5111 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5112 rm -f $tmp/stdin
5113 if test x"$ac_file" != x-; then
5114 mv $tmp/out $ac_file
5115 else
5116 cat $tmp/out
5117 rm -f $tmp/out
5118 fi
5119
5120 done
5121 _ACEOF
5122 cat >>$CONFIG_STATUS <<\_ACEOF
5123
5124 #
5125 # CONFIG_COMMANDS section.
5126 #
5127 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5128 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5129 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5130 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5131 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5132 X"$ac_dest" : 'X\(//\)[^/]' \| \
5133 X"$ac_dest" : 'X\(//\)$' \| \
5134 X"$ac_dest" : 'X\(/\)' \| \
5135 . : '\(.\)' 2>/dev/null ||
5136 echo X"$ac_dest" |
5137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5139 /^X\(\/\/\)$/{ s//\1/; q; }
5140 /^X\(\/\).*/{ s//\1/; q; }
5141 s/.*/./; q'`
5142 ac_builddir=.
5143
5144 if test "$ac_dir" != .; then
5145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5146 # A "../" for each directory in $ac_dir_suffix.
5147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5148 else
5149 ac_dir_suffix= ac_top_builddir=
5150 fi
5151
5152 case $srcdir in
5153 .) # No --srcdir option. We are building in place.
5154 ac_srcdir=.
5155 if test -z "$ac_top_builddir"; then
5156 ac_top_srcdir=.
5157 else
5158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5159 fi ;;
5160 [\\/]* | ?:[\\/]* ) # Absolute path.
5161 ac_srcdir=$srcdir$ac_dir_suffix;
5162 ac_top_srcdir=$srcdir ;;
5163 *) # Relative path.
5164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5166 esac
5167 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5168 # absolute.
5169 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5170 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5171 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5172 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5173
5174
5175 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5176 echo "$as_me: executing $ac_dest commands" >&6;}
5177 case $ac_dest in
5178 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5179 # Strip MF so we end up with the name of the file.
5180 mf=`echo "$mf" | sed -e 's/:.*$//'`
5181 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
5182 dirpart=`(dirname "$mf") 2>/dev/null ||
5183 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5184 X"$mf" : 'X\(//\)[^/]' \| \
5185 X"$mf" : 'X\(//\)$' \| \
5186 X"$mf" : 'X\(/\)' \| \
5187 . : '\(.\)' 2>/dev/null ||
5188 echo X"$mf" |
5189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5191 /^X\(\/\/\)$/{ s//\1/; q; }
5192 /^X\(\/\).*/{ s//\1/; q; }
5193 s/.*/./; q'`
5194 else
5195 continue
5196 fi
5197 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5198 # Extract the definition of DEP_FILES from the Makefile without
5199 # running `make'.
5200 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5201 test -z "$DEPDIR" && continue
5202 # When using ansi2knr, U may be empty or an underscore; expand it
5203 U=`sed -n -e '/^U = / s///p' < "$mf"`
5204 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5205 # We invoke sed twice because it is the simplest approach to
5206 # changing $(DEPDIR) to its actual value in the expansion.
5207 for file in `sed -n -e '
5208 /^DEP_FILES = .*\\\\$/ {
5209 s/^DEP_FILES = //
5210 :loop
5211 s/\\\\$//
5212 p
5213 n
5214 /\\\\$/ b loop
5215 p
5216 }
5217 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5218 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5219 # Make sure the directory exists.
5220 test -f "$dirpart/$file" && continue
5221 fdir=`(dirname "$file") 2>/dev/null ||
5222 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5223 X"$file" : 'X\(//\)[^/]' \| \
5224 X"$file" : 'X\(//\)$' \| \
5225 X"$file" : 'X\(/\)' \| \
5226 . : '\(.\)' 2>/dev/null ||
5227 echo X"$file" |
5228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5230 /^X\(\/\/\)$/{ s//\1/; q; }
5231 /^X\(\/\).*/{ s//\1/; q; }
5232 s/.*/./; q'`
5233 { case $dirpart/$fdir in
5234 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5235 *) as_incr_dir=.;;
5236 esac
5237 as_dummy=$dirpart/$fdir
5238 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5239 case $as_mkdir_dir in
5240 # Skip DOS drivespec
5241 ?:) as_incr_dir=$as_mkdir_dir ;;
5242 *)
5243 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5244 test -d "$as_incr_dir" ||
5245 mkdir "$as_incr_dir" ||
5246 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
5247 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
5248 { (exit 1); exit 1; }; }
5249 ;;
5250 esac
5251 done; }
5252
5253 # echo "creating $dirpart/$file"
5254 echo '# dummy' > "$dirpart/$file"
5255 done
5256 done
5257 ;;
5258 esac
5259 done
5260 _ACEOF
5261
5262 cat >>$CONFIG_STATUS <<\_ACEOF
5263
5264 { (exit 0); exit 0; }
5265 _ACEOF
5266 chmod +x $CONFIG_STATUS
5267 ac_clean_files=$ac_clean_files_save
5268
5269
5270 # configure is writing to config.log, and then calls config.status.
5271 # config.status does its own redirection, appending to config.log.
5272 # Unfortunately, on DOS this fails, as config.log is still kept open
5273 # by configure, so config.status won't be able to write to it; its
5274 # output is simply discarded. So we exec the FD to /dev/null,
5275 # effectively closing config.log, so it can be properly (re)opened and
5276 # appended to by config.status. When coming back to configure, we
5277 # need to make the FD available again.
5278 if test "$no_create" != yes; then
5279 ac_cs_success=:
5280 exec 5>/dev/null
5281 $SHELL $CONFIG_STATUS || ac_cs_success=false
5282 exec 5>>config.log
5283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5284 # would make configure fail if this is the last instruction.
5285 $ac_cs_success || { (exit 1); exit 1; }
5286 fi
5287
This page took 0.32791 seconds and 4 git commands to generate.