]> cygwin.com Git - cygwin-apps/setup.git/blame - bz2lib/configure
2002-04-29 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / bz2lib / configure
CommitLineData
ef6bacff
RC
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
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
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.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo 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.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if 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
94fi
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
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
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
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
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
147done
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
182case `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= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if 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
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_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.
219as_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.
224as_nl='
225'
226IFS=" $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.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${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.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="bzlib.h"
262
263# Initialize some variables set by options.
264ac_init_help=
265ac_init_version=false
266# The variables have the same names as the options, with
267# dashes changed to underlines.
268cache_file=/dev/null
269exec_prefix=NONE
270no_create=
271no_recursion=
272prefix=NONE
273program_prefix=NONE
274program_suffix=NONE
275program_transform_name=s,x,x,
276silent=
277site=
278srcdir=
279verbose=
280x_includes=NONE
281x_libraries=NONE
282
283# Installation directory options.
284# These are left unexpanded so users can "make install exec_prefix=/foo"
285# and all the variables that are supposed to be based on exec_prefix
286# by default will actually change.
287# Use braces instead of parens because sh, perl, etc. also accept them.
288bindir='${exec_prefix}/bin'
289sbindir='${exec_prefix}/sbin'
290libexecdir='${exec_prefix}/libexec'
291datadir='${prefix}/share'
292sysconfdir='${prefix}/etc'
293sharedstatedir='${prefix}/com'
294localstatedir='${prefix}/var'
295libdir='${exec_prefix}/lib'
296includedir='${prefix}/include'
297oldincludedir='/usr/include'
298infodir='${prefix}/info'
299mandir='${prefix}/man'
300
301ac_prev=
302for ac_option
303do
304 # If the previous option needs an argument, assign it.
305 if test -n "$ac_prev"; then
306 eval "$ac_prev=\$ac_option"
307 ac_prev=
308 continue
309 fi
310
311 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
312
313 # Accept the important Cygnus configure options, so we can diagnose typos.
314
315 case $ac_option in
316
317 -bindir | --bindir | --bindi | --bind | --bin | --bi)
318 ac_prev=bindir ;;
319 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
320 bindir=$ac_optarg ;;
321
322 -build | --build | --buil | --bui | --bu)
323 ac_prev=build_alias ;;
324 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
325 build_alias=$ac_optarg ;;
326
327 -cache-file | --cache-file | --cache-fil | --cache-fi \
328 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
329 ac_prev=cache_file ;;
330 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
331 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
332 cache_file=$ac_optarg ;;
333
334 --config-cache | -C)
335 cache_file=config.cache ;;
336
337 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
338 ac_prev=datadir ;;
339 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
340 | --da=*)
341 datadir=$ac_optarg ;;
342
343 -disable-* | --disable-*)
344 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
345 # Reject names that are not valid shell variable names.
346 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
347 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
348 { (exit 1); exit 1; }; }
349 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
350 eval "enable_$ac_feature=no" ;;
351
352 -enable-* | --enable-*)
353 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359 case $ac_option in
360 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "enable_$ac_feature='$ac_optarg'" ;;
364
365 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
366 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
367 | --exec | --exe | --ex)
368 ac_prev=exec_prefix ;;
369 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
370 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
371 | --exec=* | --exe=* | --ex=*)
372 exec_prefix=$ac_optarg ;;
373
374 -gas | --gas | --ga | --g)
375 # Obsolete; use --with-gas.
376 with_gas=yes ;;
377
378 -help | --help | --hel | --he | -h)
379 ac_init_help=long ;;
380 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
381 ac_init_help=recursive ;;
382 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
383 ac_init_help=short ;;
384
385 -host | --host | --hos | --ho)
386 ac_prev=host_alias ;;
387 -host=* | --host=* | --hos=* | --ho=*)
388 host_alias=$ac_optarg ;;
389
390 -includedir | --includedir | --includedi | --included | --include \
391 | --includ | --inclu | --incl | --inc)
392 ac_prev=includedir ;;
393 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
394 | --includ=* | --inclu=* | --incl=* | --inc=*)
395 includedir=$ac_optarg ;;
396
397 -infodir | --infodir | --infodi | --infod | --info | --inf)
398 ac_prev=infodir ;;
399 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
400 infodir=$ac_optarg ;;
401
402 -libdir | --libdir | --libdi | --libd)
403 ac_prev=libdir ;;
404 -libdir=* | --libdir=* | --libdi=* | --libd=*)
405 libdir=$ac_optarg ;;
406
407 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
408 | --libexe | --libex | --libe)
409 ac_prev=libexecdir ;;
410 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
411 | --libexe=* | --libex=* | --libe=*)
412 libexecdir=$ac_optarg ;;
413
414 -localstatedir | --localstatedir | --localstatedi | --localstated \
415 | --localstate | --localstat | --localsta | --localst \
416 | --locals | --local | --loca | --loc | --lo)
417 ac_prev=localstatedir ;;
418 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
419 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
420 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
421 localstatedir=$ac_optarg ;;
422
423 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
424 ac_prev=mandir ;;
425 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
426 mandir=$ac_optarg ;;
427
428 -nfp | --nfp | --nf)
429 # Obsolete; use --without-fp.
430 with_fp=no ;;
431
432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433 | --no-cr | --no-c | -n)
434 no_create=yes ;;
435
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
438 no_recursion=yes ;;
439
440 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
441 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
442 | --oldin | --oldi | --old | --ol | --o)
443 ac_prev=oldincludedir ;;
444 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
445 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
446 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
447 oldincludedir=$ac_optarg ;;
448
449 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
450 ac_prev=prefix ;;
451 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
452 prefix=$ac_optarg ;;
453
454 -program-prefix | --program-prefix | --program-prefi | --program-pref \
455 | --program-pre | --program-pr | --program-p)
456 ac_prev=program_prefix ;;
457 -program-prefix=* | --program-prefix=* | --program-prefi=* \
458 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
459 program_prefix=$ac_optarg ;;
460
461 -program-suffix | --program-suffix | --program-suffi | --program-suff \
462 | --program-suf | --program-su | --program-s)
463 ac_prev=program_suffix ;;
464 -program-suffix=* | --program-suffix=* | --program-suffi=* \
465 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
466 program_suffix=$ac_optarg ;;
467
468 -program-transform-name | --program-transform-name \
469 | --program-transform-nam | --program-transform-na \
470 | --program-transform-n | --program-transform- \
471 | --program-transform | --program-transfor \
472 | --program-transfo | --program-transf \
473 | --program-trans | --program-tran \
474 | --progr-tra | --program-tr | --program-t)
475 ac_prev=program_transform_name ;;
476 -program-transform-name=* | --program-transform-name=* \
477 | --program-transform-nam=* | --program-transform-na=* \
478 | --program-transform-n=* | --program-transform-=* \
479 | --program-transform=* | --program-transfor=* \
480 | --program-transfo=* | --program-transf=* \
481 | --program-trans=* | --program-tran=* \
482 | --progr-tra=* | --program-tr=* | --program-t=*)
483 program_transform_name=$ac_optarg ;;
484
485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
486 | -silent | --silent | --silen | --sile | --sil)
487 silent=yes ;;
488
489 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
490 ac_prev=sbindir ;;
491 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
492 | --sbi=* | --sb=*)
493 sbindir=$ac_optarg ;;
494
495 -sharedstatedir | --sharedstatedir | --sharedstatedi \
496 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
497 | --sharedst | --shareds | --shared | --share | --shar \
498 | --sha | --sh)
499 ac_prev=sharedstatedir ;;
500 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
501 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
502 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
503 | --sha=* | --sh=*)
504 sharedstatedir=$ac_optarg ;;
505
506 -site | --site | --sit)
507 ac_prev=site ;;
508 -site=* | --site=* | --sit=*)
509 site=$ac_optarg ;;
510
511 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
512 ac_prev=srcdir ;;
513 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
514 srcdir=$ac_optarg ;;
515
516 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
517 | --syscon | --sysco | --sysc | --sys | --sy)
518 ac_prev=sysconfdir ;;
519 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
520 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
521 sysconfdir=$ac_optarg ;;
522
523 -target | --target | --targe | --targ | --tar | --ta | --t)
524 ac_prev=target_alias ;;
525 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
526 target_alias=$ac_optarg ;;
527
528 -v | -verbose | --verbose | --verbos | --verbo | --verb)
529 verbose=yes ;;
530
531 -version | --version | --versio | --versi | --vers | -V)
532 ac_init_version=: ;;
533
534 -with-* | --with-*)
535 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
536 # Reject names that are not valid shell variable names.
537 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
538 { echo "$as_me: error: invalid package name: $ac_package" >&2
539 { (exit 1); exit 1; }; }
540 ac_package=`echo $ac_package| sed 's/-/_/g'`
541 case $ac_option in
542 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
543 *) ac_optarg=yes ;;
544 esac
545 eval "with_$ac_package='$ac_optarg'" ;;
546
547 -without-* | --without-*)
548 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid package name: $ac_package" >&2
552 { (exit 1); exit 1; }; }
553 ac_package=`echo $ac_package | sed 's/-/_/g'`
554 eval "with_$ac_package=no" ;;
555
556 --x)
557 # Obsolete; use --with-x.
558 with_x=yes ;;
559
560 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
561 | --x-incl | --x-inc | --x-in | --x-i)
562 ac_prev=x_includes ;;
563 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
564 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
565 x_includes=$ac_optarg ;;
566
567 -x-libraries | --x-libraries | --x-librarie | --x-librari \
568 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
569 ac_prev=x_libraries ;;
570 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
571 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
572 x_libraries=$ac_optarg ;;
573
574 -*) { echo "$as_me: error: unrecognized option: $ac_option
575Try \`$0 --help' for more information." >&2
576 { (exit 1); exit 1; }; }
577 ;;
578
579 *=*)
580 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
581 # Reject names that are not valid shell variable names.
582 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
583 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
584 { (exit 1); exit 1; }; }
585 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
586 eval "$ac_envvar='$ac_optarg'"
587 export $ac_envvar ;;
588
589 *)
590 # FIXME: should be removed in autoconf 3.0.
591 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
592 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
593 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
594 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
595 ;;
596
597 esac
598done
599
600if test -n "$ac_prev"; then
601 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
602 { echo "$as_me: error: missing argument to $ac_option" >&2
603 { (exit 1); exit 1; }; }
604fi
605
606# Be sure to have absolute paths.
607for ac_var in exec_prefix prefix
608do
609 eval ac_val=$`echo $ac_var`
610 case $ac_val in
611 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
612 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
613 { (exit 1); exit 1; }; };;
614 esac
615done
616
617# Be sure to have absolute paths.
618for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
619 localstatedir libdir includedir oldincludedir infodir mandir
620do
621 eval ac_val=$`echo $ac_var`
622 case $ac_val in
623 [\\/$]* | ?:[\\/]* ) ;;
624 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
625 { (exit 1); exit 1; }; };;
626 esac
627done
628
629# There might be people who depend on the old broken behavior: `$host'
630# used to hold the argument of --host etc.
631# FIXME: To remove some day.
632build=$build_alias
633host=$host_alias
634target=$target_alias
635
636# FIXME: To remove some day.
637if test "x$host_alias" != x; then
638 if test "x$build_alias" = x; then
639 cross_compiling=maybe
640 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
641 If a cross compiler is detected then cross compile mode will be used." >&2
642 elif test "x$build_alias" != "x$host_alias"; then
643 cross_compiling=yes
644 fi
645fi
646
647ac_tool_prefix=
648test -n "$host_alias" && ac_tool_prefix=$host_alias-
649
650test "$silent" = yes && exec 6>/dev/null
651
652
653# Find the source files, if location was not specified.
654if test -z "$srcdir"; then
655 ac_srcdir_defaulted=yes
656 # Try the directory containing this script, then its parent.
657 ac_confdir=`(dirname "$0") 2>/dev/null ||
658$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
659 X"$0" : 'X\(//\)[^/]' \| \
660 X"$0" : 'X\(//\)$' \| \
661 X"$0" : 'X\(/\)' \| \
662 . : '\(.\)' 2>/dev/null ||
663echo X"$0" |
664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
666 /^X\(\/\/\)$/{ s//\1/; q; }
667 /^X\(\/\).*/{ s//\1/; q; }
668 s/.*/./; q'`
669 srcdir=$ac_confdir
670 if test ! -r $srcdir/$ac_unique_file; then
671 srcdir=..
672 fi
673else
674 ac_srcdir_defaulted=no
675fi
676if test ! -r $srcdir/$ac_unique_file; then
677 if test "$ac_srcdir_defaulted" = yes; then
678 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
679 { (exit 1); exit 1; }; }
680 else
681 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
682 { (exit 1); exit 1; }; }
683 fi
684fi
685srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
686ac_env_build_alias_set=${build_alias+set}
687ac_env_build_alias_value=$build_alias
688ac_cv_env_build_alias_set=${build_alias+set}
689ac_cv_env_build_alias_value=$build_alias
690ac_env_host_alias_set=${host_alias+set}
691ac_env_host_alias_value=$host_alias
692ac_cv_env_host_alias_set=${host_alias+set}
693ac_cv_env_host_alias_value=$host_alias
694ac_env_target_alias_set=${target_alias+set}
695ac_env_target_alias_value=$target_alias
696ac_cv_env_target_alias_set=${target_alias+set}
697ac_cv_env_target_alias_value=$target_alias
698ac_env_CC_set=${CC+set}
699ac_env_CC_value=$CC
700ac_cv_env_CC_set=${CC+set}
701ac_cv_env_CC_value=$CC
702ac_env_CFLAGS_set=${CFLAGS+set}
703ac_env_CFLAGS_value=$CFLAGS
704ac_cv_env_CFLAGS_set=${CFLAGS+set}
705ac_cv_env_CFLAGS_value=$CFLAGS
706ac_env_LDFLAGS_set=${LDFLAGS+set}
707ac_env_LDFLAGS_value=$LDFLAGS
708ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
709ac_cv_env_LDFLAGS_value=$LDFLAGS
710ac_env_CPPFLAGS_set=${CPPFLAGS+set}
711ac_env_CPPFLAGS_value=$CPPFLAGS
712ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
713ac_cv_env_CPPFLAGS_value=$CPPFLAGS
714ac_env_CPP_set=${CPP+set}
715ac_env_CPP_value=$CPP
716ac_cv_env_CPP_set=${CPP+set}
717ac_cv_env_CPP_value=$CPP
718
719#
720# Report the --help message.
721#
722if test "$ac_init_help" = "long"; then
723 # Omit some internal or obsolete options to make the list less imposing.
724 # This message is too long to be a string in the A/UX 3.1 sh.
725 cat <<_ACEOF
726\`configure' configures this package to adapt to many kinds of systems.
727
728Usage: $0 [OPTION]... [VAR=VALUE]...
729
730To assign environment variables (e.g., CC, CFLAGS...), specify them as
731VAR=VALUE. See below for descriptions of some of the useful variables.
732
733Defaults for the options are specified in brackets.
734
735Configuration:
736 -h, --help display this help and exit
737 --help=short display options specific to this package
738 --help=recursive display the short help of all the included packages
739 -V, --version display version information and exit
740 -q, --quiet, --silent do not print \`checking...' messages
741 --cache-file=FILE cache test results in FILE [disabled]
742 -C, --config-cache alias for \`--cache-file=config.cache'
743 -n, --no-create do not create output files
744 --srcdir=DIR find the sources in DIR [configure dir or \`..']
745
746_ACEOF
747
748 cat <<_ACEOF
749Installation directories:
750 --prefix=PREFIX install architecture-independent files in PREFIX
751 [$ac_default_prefix]
752 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
753 [PREFIX]
754
755By default, \`make install' will install all the files in
756\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
757an installation prefix other than \`$ac_default_prefix' using \`--prefix',
758for instance \`--prefix=\$HOME'.
759
760For better control, use the options below.
761
762Fine tuning of the installation directories:
763 --bindir=DIR user executables [EPREFIX/bin]
764 --sbindir=DIR system admin executables [EPREFIX/sbin]
765 --libexecdir=DIR program executables [EPREFIX/libexec]
766 --datadir=DIR read-only architecture-independent data [PREFIX/share]
767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
769 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
770 --libdir=DIR object code libraries [EPREFIX/lib]
771 --includedir=DIR C header files [PREFIX/include]
772 --oldincludedir=DIR C header files for non-gcc [/usr/include]
773 --infodir=DIR info documentation [PREFIX/info]
774 --mandir=DIR man documentation [PREFIX/man]
775_ACEOF
776
777 cat <<\_ACEOF
778
779Program names:
780 --program-prefix=PREFIX prepend PREFIX to installed program names
781 --program-suffix=SUFFIX append SUFFIX to installed program names
782 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
783
784System types:
785 --build=BUILD configure for building on BUILD [guessed]
786 --host=HOST cross-compile to build programs to run on HOST [BUILD]
787_ACEOF
788fi
789
790if test -n "$ac_init_help"; then
791
792 cat <<\_ACEOF
793
794Optional Features:
795 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
796 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
797 --enable-maintainer-mode enable make rules and dependencies not useful
798 (and sometimes confusing) to the casual installer
799 --disable-dependency-tracking Speeds up one-time builds
800 --enable-dependency-tracking Do not reject slow dependency extractors
801
802Some influential environment variables:
803 CC C compiler command
804 CFLAGS C compiler flags
805 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
806 nonstandard directory <lib dir>
807 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
808 headers in a nonstandard directory <include dir>
809 CPP C preprocessor
810
811Use these variables to override the choices made by `configure' or to help
812it to find libraries and programs with nonstandard names/locations.
813
814_ACEOF
815fi
816
817if test "$ac_init_help" = "recursive"; then
818 # If there are subdirs, report their specific --help.
819 ac_popdir=`pwd`
820 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
821 test -d $ac_dir || continue
822 ac_builddir=.
823
824if test "$ac_dir" != .; then
825 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
826 # A "../" for each directory in $ac_dir_suffix.
827 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
828else
829 ac_dir_suffix= ac_top_builddir=
830fi
831
832case $srcdir in
833 .) # No --srcdir option. We are building in place.
834 ac_srcdir=.
835 if test -z "$ac_top_builddir"; then
836 ac_top_srcdir=.
837 else
838 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
839 fi ;;
840 [\\/]* | ?:[\\/]* ) # Absolute path.
841 ac_srcdir=$srcdir$ac_dir_suffix;
842 ac_top_srcdir=$srcdir ;;
843 *) # Relative path.
844 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
845 ac_top_srcdir=$ac_top_builddir$srcdir ;;
846esac
847# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
848# absolute.
849ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
850ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
851ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
852ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
853
854 cd $ac_dir
855 # Check for guested configure; otherwise get Cygnus style configure.
856 if test -f $ac_srcdir/configure.gnu; then
857 echo
858 $SHELL $ac_srcdir/configure.gnu --help=recursive
859 elif test -f $ac_srcdir/configure; then
860 echo
861 $SHELL $ac_srcdir/configure --help=recursive
862 elif test -f $ac_srcdir/configure.ac ||
863 test -f $ac_srcdir/configure.in; then
864 echo
865 $ac_configure --help
866 else
867 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
868 fi
869 cd $ac_popdir
870 done
871fi
872
873test -n "$ac_init_help" && exit 0
874if $ac_init_version; then
875 cat <<\_ACEOF
876
877Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
878Free Software Foundation, Inc.
879This configure script is free software; the Free Software Foundation
880gives unlimited permission to copy, distribute and modify it.
881_ACEOF
882 exit 0
883fi
884exec 5>config.log
885cat >&5 <<_ACEOF
886This file contains any messages produced by compilers while
887running configure, to aid debugging if configure makes a mistake.
888
889It was created by $as_me, which was
890generated by GNU Autoconf 2.53. Invocation command line was
891
892 $ $0 $@
893
894_ACEOF
895{
896cat <<_ASUNAME
897## --------- ##
898## Platform. ##
899## --------- ##
900
901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
902uname -m = `(uname -m) 2>/dev/null || echo unknown`
903uname -r = `(uname -r) 2>/dev/null || echo unknown`
904uname -s = `(uname -s) 2>/dev/null || echo unknown`
905uname -v = `(uname -v) 2>/dev/null || echo unknown`
906
907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
909
910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
913hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
917
918_ASUNAME
919
920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
921for as_dir in $PATH
922do
923 IFS=$as_save_IFS
924 test -z "$as_dir" && as_dir=.
925 echo "PATH: $as_dir"
926done
927
928} >&5
929
930cat >&5 <<_ACEOF
931
932
933## ----------- ##
934## Core tests. ##
935## ----------- ##
936
937_ACEOF
938
939
940# Keep a trace of the command line.
941# Strip out --no-create and --no-recursion so they do not pile up.
942# Also quote any args containing shell meta-characters.
943ac_configure_args=
944ac_sep=
945for ac_arg
946do
947 case $ac_arg in
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n ) continue ;;
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 continue ;;
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
955 esac
956 case " $ac_configure_args " in
957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
958 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
959 ac_sep=" " ;;
960 esac
961 # Get rid of the leading space.
962done
963
964# When interrupted or exit'd, cleanup temporary files, and complete
965# config.log. We remove comments because anyway the quotes in there
966# would cause problems or look ugly.
967# WARNING: Be sure not to use single quotes in there, as some shells,
968# such as our DU 5.0 friend, will then `close' the trap.
969trap 'exit_status=$?
970 # Save into config.log some information that might help in debugging.
971 {
972 echo
973 cat <<\_ASBOX
974## ---------------- ##
975## Cache variables. ##
976## ---------------- ##
977_ASBOX
978 echo
979 # The following way of writing the cache mishandles newlines in values,
980{
981 (set) 2>&1 |
982 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
983 *ac_space=\ *)
984 sed -n \
985 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
987 ;;
988 *)
989 sed -n \
990 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
991 ;;
992 esac;
993}
994 echo
995 if test -s confdefs.h; then
996 cat <<\_ASBOX
997## ----------- ##
998## confdefs.h. ##
999## ----------- ##
1000_ASBOX
1001 echo
1002 sed "/^$/d" confdefs.h
1003 echo
1004 fi
1005 test "$ac_signal" != 0 &&
1006 echo "$as_me: caught signal $ac_signal"
1007 echo "$as_me: exit $exit_status"
1008 } >&5
1009 rm -f core core.* *.core &&
1010 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1011 exit $exit_status
1012 ' 0
1013for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1015done
1016ac_signal=0
1017
1018# confdefs.h avoids OS command line length limits that DEFS can exceed.
1019rm -rf conftest* confdefs.h
1020# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1021echo >confdefs.h
1022
1023# Predefined preprocessor variables.
1024
1025cat >>confdefs.h <<_ACEOF
1026#define PACKAGE_NAME "$PACKAGE_NAME"
1027_ACEOF
1028
1029
1030cat >>confdefs.h <<_ACEOF
1031#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1032_ACEOF
1033
1034
1035cat >>confdefs.h <<_ACEOF
1036#define PACKAGE_VERSION "$PACKAGE_VERSION"
1037_ACEOF
1038
1039
1040cat >>confdefs.h <<_ACEOF
1041#define PACKAGE_STRING "$PACKAGE_STRING"
1042_ACEOF
1043
1044
1045cat >>confdefs.h <<_ACEOF
1046#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1047_ACEOF
1048
1049
1050# Let the site file select an alternate cache file if it wants to.
1051# Prefer explicitly selected file to automatically selected ones.
1052if test -z "$CONFIG_SITE"; then
1053 if test "x$prefix" != xNONE; then
1054 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1055 else
1056 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1057 fi
1058fi
1059for ac_site_file in $CONFIG_SITE; do
1060 if test -r "$ac_site_file"; then
1061 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1062echo "$as_me: loading site script $ac_site_file" >&6;}
1063 sed 's/^/| /' "$ac_site_file" >&5
1064 . "$ac_site_file"
1065 fi
1066done
1067
1068if test -r "$cache_file"; then
1069 # Some versions of bash will fail to source /dev/null (special
1070 # files actually), so we avoid doing that.
1071 if test -f "$cache_file"; then
1072 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1073echo "$as_me: loading cache $cache_file" >&6;}
1074 case $cache_file in
1075 [\\/]* | ?:[\\/]* ) . $cache_file;;
1076 *) . ./$cache_file;;
1077 esac
1078 fi
1079else
1080 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1081echo "$as_me: creating cache $cache_file" >&6;}
1082 >$cache_file
1083fi
1084
1085# Check that the precious variables saved in the cache have kept the same
1086# value.
1087ac_cache_corrupted=false
1088for ac_var in `(set) 2>&1 |
1089 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1090 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1091 eval ac_new_set=\$ac_env_${ac_var}_set
1092 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1093 eval ac_new_val="\$ac_env_${ac_var}_value"
1094 case $ac_old_set,$ac_new_set in
1095 set,)
1096 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1097echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1098 ac_cache_corrupted=: ;;
1099 ,set)
1100 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1101echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1102 ac_cache_corrupted=: ;;
1103 ,);;
1104 *)
1105 if test "x$ac_old_val" != "x$ac_new_val"; then
1106 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1107echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1108 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1109echo "$as_me: former value: $ac_old_val" >&2;}
1110 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1111echo "$as_me: current value: $ac_new_val" >&2;}
1112 ac_cache_corrupted=:
1113 fi;;
1114 esac
1115 # Pass precious variables to config.status.
1116 if test "$ac_new_set" = set; then
1117 case $ac_new_val in
1118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1119 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1120 *) ac_arg=$ac_var=$ac_new_val ;;
1121 esac
1122 case " $ac_configure_args " in
1123 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1124 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1125 esac
1126 fi
1127done
1128if $ac_cache_corrupted; then
1129 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1130echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1131 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1132echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1133 { (exit 1); exit 1; }; }
1134fi
1135
1136ac_ext=c
1137ac_cpp='$CPP $CPPFLAGS'
1138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1140ac_compiler_gnu=$ac_cv_c_compiler_gnu
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160ac_aux_dir=
1161for ac_dir in ../cfgaux $srcdir/../cfgaux; do
1162 if test -f $ac_dir/install-sh; then
1163 ac_aux_dir=$ac_dir
1164 ac_install_sh="$ac_aux_dir/install-sh -c"
1165 break
1166 elif test -f $ac_dir/install.sh; then
1167 ac_aux_dir=$ac_dir
1168 ac_install_sh="$ac_aux_dir/install.sh -c"
1169 break
1170 elif test -f $ac_dir/shtool; then
1171 ac_aux_dir=$ac_dir
1172 ac_install_sh="$ac_aux_dir/shtool install -c"
1173 break
1174 fi
1175done
1176if test -z "$ac_aux_dir"; then
1177 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../cfgaux $srcdir/../cfgaux" >&5
1178echo "$as_me: error: cannot find install-sh or install.sh in ../cfgaux $srcdir/../cfgaux" >&2;}
1179 { (exit 1); exit 1; }; }
1180fi
1181ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1182ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1183ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1184
1185am__api_version="1.6"
1186# Find a good install program. We prefer a C program (faster),
1187# so one script is as good as another. But avoid the broken or
1188# incompatible versions:
1189# SysV /etc/install, /usr/sbin/install
1190# SunOS /usr/etc/install
1191# IRIX /sbin/install
1192# AIX /bin/install
1193# AmigaOS /C/install, which installs bootblocks on floppy discs
1194# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1195# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1196# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1197# ./install, which can be erroneously created by make from ./install.sh.
1198echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1199echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1200if test -z "$INSTALL"; then
1201if test "${ac_cv_path_install+set}" = set; then
1202 echo $ECHO_N "(cached) $ECHO_C" >&6
1203else
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205for as_dir in $PATH
1206do
1207 IFS=$as_save_IFS
1208 test -z "$as_dir" && as_dir=.
1209 # Account for people who put trailing slashes in PATH elements.
1210case $as_dir/ in
1211 ./ | .// | /cC/* | \
1212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1213 /usr/ucb/* ) ;;
1214 *)
1215 # OSF1 and SCO ODT 3.0 have their own names for install.
1216 # Don't use installbsd from OSF since it installs stuff as root
1217 # by default.
1218 for ac_prog in ginstall scoinst install; do
1219 for ac_exec_ext in '' $ac_executable_extensions; do
1220 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1221 if test $ac_prog = install &&
1222 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1223 # AIX install. It has an incompatible calling convention.
1224 :
1225 elif test $ac_prog = install &&
1226 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1227 # program-specific install script used by HP pwplus--don't use.
1228 :
1229 else
1230 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1231 break 3
1232 fi
1233 fi
1234 done
1235 done
1236 ;;
1237esac
1238done
1239
1240
1241fi
1242 if test "${ac_cv_path_install+set}" = set; then
1243 INSTALL=$ac_cv_path_install
1244 else
1245 # As a last resort, use the slow shell script. We don't cache a
1246 # path for INSTALL within a source directory, because that will
1247 # break other packages using the cache if that directory is
1248 # removed, or if the path is relative.
1249 INSTALL=$ac_install_sh
1250 fi
1251fi
1252echo "$as_me:$LINENO: result: $INSTALL" >&5
1253echo "${ECHO_T}$INSTALL" >&6
1254
1255# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1256# It thinks the first close brace ends the variable substitution.
1257test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1258
1259test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1260
1261test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1262
1263echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1264echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1265# Just in case
1266sleep 1
1267echo timestamp > conftest.file
1268# Do `set' in a subshell so we don't clobber the current shell's
1269# arguments. Must try -L first in case configure is actually a
1270# symlink; some systems play weird games with the mod time of symlinks
1271# (eg FreeBSD returns the mod time of the symlink's containing
1272# directory).
1273if (
1274 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1275 if test "$*" = "X"; then
1276 # -L didn't work.
1277 set X `ls -t $srcdir/configure conftest.file`
1278 fi
1279 rm -f conftest.file
1280 if test "$*" != "X $srcdir/configure conftest.file" \
1281 && test "$*" != "X conftest.file $srcdir/configure"; then
1282
1283 # If neither matched, then we have a broken ls. This can happen
1284 # if, for instance, CONFIG_SHELL is bash and it inherits a
1285 # broken ls alias from the environment. This has actually
1286 # happened. Such a system could not be considered "sane".
1287 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1288alias in your environment" >&5
1289echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1290alias in your environment" >&2;}
1291 { (exit 1); exit 1; }; }
1292 fi
1293
1294 test "$2" = conftest.file
1295 )
1296then
1297 # Ok.
1298 :
1299else
1300 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1301Check your system clock" >&5
1302echo "$as_me: error: newly created file is older than distributed files!
1303Check your system clock" >&2;}
1304 { (exit 1); exit 1; }; }
1305fi
1306echo "$as_me:$LINENO: result: yes" >&5
1307echo "${ECHO_T}yes" >&6
1308test "$program_prefix" != NONE &&
1309 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1310# Use a double $ so make ignores it.
1311test "$program_suffix" != NONE &&
1312 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1313# Double any \ or $. echo might interpret backslashes.
1314# By default was `s,x,x', remove it if useless.
1315cat <<\_ACEOF >conftest.sed
1316s/[\\$]/&&/g;s/;s,x,x,$//
1317_ACEOF
1318program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1319rm conftest.sed
1320
1321
1322# expand $ac_aux_dir to an absolute path
1323am_aux_dir=`cd $ac_aux_dir && pwd`
1324
1325test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1326# Use eval to expand $SHELL
1327if eval "$MISSING --run true"; then
1328 am_missing_run="$MISSING --run "
1329else
1330 am_missing_run=
1331 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1332echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1333fi
1334
1335for ac_prog in gawk mawk nawk awk
1336do
1337 # Extract the first word of "$ac_prog", so it can be a program name with args.
1338set dummy $ac_prog; ac_word=$2
1339echo "$as_me:$LINENO: checking for $ac_word" >&5
1340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341if test "${ac_cv_prog_AWK+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343else
1344 if test -n "$AWK"; then
1345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1346else
1347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348for as_dir in $PATH
1349do
1350 IFS=$as_save_IFS
1351 test -z "$as_dir" && as_dir=.
1352 for ac_exec_ext in '' $ac_executable_extensions; do
1353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1354 ac_cv_prog_AWK="$ac_prog"
1355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1356 break 2
1357 fi
1358done
1359done
1360
1361fi
1362fi
1363AWK=$ac_cv_prog_AWK
1364if test -n "$AWK"; then
1365 echo "$as_me:$LINENO: result: $AWK" >&5
1366echo "${ECHO_T}$AWK" >&6
1367else
1368 echo "$as_me:$LINENO: result: no" >&5
1369echo "${ECHO_T}no" >&6
1370fi
1371
1372 test -n "$AWK" && break
1373done
1374
1375echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1376echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1377set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1378if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381 cat >conftest.make <<\_ACEOF
1382all:
1383 @echo 'ac_maketemp="${MAKE}"'
1384_ACEOF
1385# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1386eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1387if test -n "$ac_maketemp"; then
1388 eval ac_cv_prog_make_${ac_make}_set=yes
1389else
1390 eval ac_cv_prog_make_${ac_make}_set=no
1391fi
1392rm -f conftest.make
1393fi
1394if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1395 echo "$as_me:$LINENO: result: yes" >&5
1396echo "${ECHO_T}yes" >&6
1397 SET_MAKE=
1398else
1399 echo "$as_me:$LINENO: result: no" >&5
1400echo "${ECHO_T}no" >&6
1401 SET_MAKE="MAKE=${MAKE-make}"
1402fi
1403
1404 # test to see if srcdir already configured
1405if test "`cd $srcdir && pwd`" != "`pwd`" &&
1406 test -f $srcdir/config.status; then
1407 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1408echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1409 { (exit 1); exit 1; }; }
1410fi
1411
1412# Define the identity of the package.
1413 PACKAGE=libbz2
1414 VERSION=0.0
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE "$PACKAGE"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define VERSION "$VERSION"
1424_ACEOF
1425
1426# Some tools Automake needs.
1427
1428ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1429
1430
1431AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1432
1433
1434AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1435
1436
1437AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1438
1439
1440MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1441
1442
1443AMTAR=${AMTAR-"${am_missing_run}tar"}
1444
1445install_sh=${install_sh-"$am_aux_dir/install-sh"}
1446
1447# Installed binaries are usually stripped using `strip' when the user
1448# run `make install-strip'. However `strip' might not be the right
1449# tool to use in cross-compilation environments, therefore Automake
1450# will honor the `STRIP' environment variable to overrule this program.
1451if test "$cross_compiling" != no; then
1452 if test -n "$ac_tool_prefix"; then
1453 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1454set dummy ${ac_tool_prefix}strip; ac_word=$2
1455echo "$as_me:$LINENO: checking for $ac_word" >&5
1456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457if test "${ac_cv_prog_STRIP+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1459else
1460 if test -n "$STRIP"; then
1461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1462else
1463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464for as_dir in $PATH
1465do
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 break 2
1473 fi
1474done
1475done
1476
1477fi
1478fi
1479STRIP=$ac_cv_prog_STRIP
1480if test -n "$STRIP"; then
1481 echo "$as_me:$LINENO: result: $STRIP" >&5
1482echo "${ECHO_T}$STRIP" >&6
1483else
1484 echo "$as_me:$LINENO: result: no" >&5
1485echo "${ECHO_T}no" >&6
1486fi
1487
1488fi
1489if test -z "$ac_cv_prog_STRIP"; then
1490 ac_ct_STRIP=$STRIP
1491 # Extract the first word of "strip", so it can be a program name with args.
1492set dummy strip; ac_word=$2
1493echo "$as_me:$LINENO: checking for $ac_word" >&5
1494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1497else
1498 if test -n "$ac_ct_STRIP"; then
1499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1500else
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_ac_ct_STRIP="strip"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 break 2
1511 fi
1512done
1513done
1514
1515 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1516fi
1517fi
1518ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1519if test -n "$ac_ct_STRIP"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1521echo "${ECHO_T}$ac_ct_STRIP" >&6
1522else
1523 echo "$as_me:$LINENO: result: no" >&5
1524echo "${ECHO_T}no" >&6
1525fi
1526
1527 STRIP=$ac_ct_STRIP
1528else
1529 STRIP="$ac_cv_prog_STRIP"
1530fi
1531
1532fi
1533INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1534
1535# We need awk for the "check" target. The system "awk" is bad on
1536# some platforms.
1537
1538
1539
1540echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1541echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1542 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1543if test "${enable_maintainer_mode+set}" = set; then
1544 enableval="$enable_maintainer_mode"
1545 USE_MAINTAINER_MODE=$enableval
1546else
1547 USE_MAINTAINER_MODE=no
1548fi;
1549 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1550echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1551
1552
1553if test $USE_MAINTAINER_MODE = yes; then
1554 MAINTAINER_MODE_TRUE=
1555 MAINTAINER_MODE_FALSE='#'
1556else
1557 MAINTAINER_MODE_TRUE='#'
1558 MAINTAINER_MODE_FALSE=
1559fi
1560
1561 MAINT=$MAINTAINER_MODE_TRUE
1562
1563
1564
1565CPPFLAGS=-U_WIN32
1566# Make sure we can run config.sub.
1567$ac_config_sub sun4 >/dev/null 2>&1 ||
1568 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1569echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572echo "$as_me:$LINENO: checking build system type" >&5
1573echo $ECHO_N "checking build system type... $ECHO_C" >&6
1574if test "${ac_cv_build+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_build_alias=$build_alias
1578test -z "$ac_cv_build_alias" &&
1579 ac_cv_build_alias=`$ac_config_guess`
1580test -z "$ac_cv_build_alias" &&
1581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1582echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1583 { (exit 1); exit 1; }; }
1584ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1588
1589fi
1590echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1591echo "${ECHO_T}$ac_cv_build" >&6
1592build=$ac_cv_build
1593build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
1597
1598echo "$as_me:$LINENO: checking host system type" >&5
1599echo $ECHO_N "checking host system type... $ECHO_C" >&6
1600if test "${ac_cv_host+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 ac_cv_host_alias=$host_alias
1604test -z "$ac_cv_host_alias" &&
1605 ac_cv_host_alias=$ac_cv_build_alias
1606ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1608echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1610
1611fi
1612echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1613echo "${ECHO_T}$ac_cv_host" >&6
1614host=$ac_cv_host
1615host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618
1619
ef6bacff
RC
1620ac_ext=c
1621ac_cpp='$CPP $CPPFLAGS'
1622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1624ac_compiler_gnu=$ac_cv_c_compiler_gnu
1625if test -n "$ac_tool_prefix"; then
1626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1627set dummy ${ac_tool_prefix}gcc; ac_word=$2
1628echo "$as_me:$LINENO: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1635else
1636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637for as_dir in $PATH
1638do
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1646 fi
1647done
1648done
1649
1650fi
1651fi
1652CC=$ac_cv_prog_CC
1653if test -n "$CC"; then
1654 echo "$as_me:$LINENO: result: $CC" >&5
1655echo "${ECHO_T}$CC" >&6
1656else
1657 echo "$as_me:$LINENO: result: no" >&5
1658echo "${ECHO_T}no" >&6
1659fi
1660
1661fi
1662if test -z "$ac_cv_prog_CC"; then
1663 ac_ct_CC=$CC
1664 # Extract the first word of "gcc", so it can be a program name with args.
1665set dummy gcc; ac_word=$2
1666echo "$as_me:$LINENO: checking for $ac_word" >&5
1667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671 if test -n "$ac_ct_CC"; then
1672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1673else
1674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675for as_dir in $PATH
1676do
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_ac_ct_CC="gcc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 break 2
1684 fi
1685done
1686done
1687
1688fi
1689fi
1690ac_ct_CC=$ac_cv_prog_ac_ct_CC
1691if test -n "$ac_ct_CC"; then
1692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1693echo "${ECHO_T}$ac_ct_CC" >&6
1694else
1695 echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697fi
1698
1699 CC=$ac_ct_CC
1700else
1701 CC="$ac_cv_prog_CC"
1702fi
1703
1704if test -z "$CC"; then
1705 if test -n "$ac_tool_prefix"; then
1706 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1707set dummy ${ac_tool_prefix}cc; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_CC="${ac_tool_prefix}cc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727done
1728done
1729
1730fi
1731fi
1732CC=$ac_cv_prog_CC
1733if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735echo "${ECHO_T}$CC" >&6
1736else
1737 echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741fi
1742if test -z "$ac_cv_prog_CC"; then
1743 ac_ct_CC=$CC
1744 # Extract the first word of "cc", so it can be a program name with args.
1745set dummy cc; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751 if test -n "$ac_ct_CC"; then
1752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1753else
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757 IFS=$as_save_IFS
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_ac_ct_CC="cc"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 break 2
1764 fi
1765done
1766done
1767
1768fi
1769fi
1770ac_ct_CC=$ac_cv_prog_ac_ct_CC
1771if test -n "$ac_ct_CC"; then
1772 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1773echo "${ECHO_T}$ac_ct_CC" >&6
1774else
1775 echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
1777fi
1778
1779 CC=$ac_ct_CC
1780else
1781 CC="$ac_cv_prog_CC"
1782fi
1783
1784fi
1785if test -z "$CC"; then
1786 # Extract the first word of "cc", so it can be a program name with args.
1787set dummy cc; ac_word=$2
1788echo "$as_me:$LINENO: checking for $ac_word" >&5
1789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790if test "${ac_cv_prog_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793 if test -n "$CC"; then
1794 ac_cv_prog_CC="$CC" # Let the user override the test.
1795else
1796 ac_prog_rejected=no
1797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798for as_dir in $PATH
1799do
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1805 ac_prog_rejected=yes
1806 continue
1807 fi
1808 ac_cv_prog_CC="cc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 break 2
1811 fi
1812done
1813done
1814
1815if test $ac_prog_rejected = yes; then
1816 # We found a bogon in the path, so make sure we never use it.
1817 set dummy $ac_cv_prog_CC
1818 shift
1819 if test $# != 0; then
1820 # We chose a different compiler from the bogus one.
1821 # However, it has the same basename, so the bogon will be chosen
1822 # first if we set CC to just the basename; use the full file name.
1823 shift
1824 set dummy "$as_dir/$ac_word" ${1+"$@"}
1825 shift
1826 ac_cv_prog_CC="$@"
1827 fi
1828fi
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836 echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840fi
1841if test -z "$CC"; then
1842 if test -n "$ac_tool_prefix"; then
1843 for ac_prog in cl
1844 do
1845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1846set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1847echo "$as_me:$LINENO: checking for $ac_word" >&5
1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849if test "${ac_cv_prog_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852 if test -n "$CC"; then
1853 ac_cv_prog_CC="$CC" # Let the user override the test.
1854else
1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856for as_dir in $PATH
1857do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1865 fi
1866done
1867done
1868
1869fi
1870fi
1871CC=$ac_cv_prog_CC
1872if test -n "$CC"; then
1873 echo "$as_me:$LINENO: result: $CC" >&5
1874echo "${ECHO_T}$CC" >&6
1875else
1876 echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
1878fi
1879
1880 test -n "$CC" && break
1881 done
1882fi
1883if test -z "$CC"; then
1884 ac_ct_CC=$CC
1885 for ac_prog in cl
1886do
1887 # Extract the first word of "$ac_prog", so it can be a program name with args.
1888set dummy $ac_prog; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="$ac_prog"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908done
1909done
1910
1911fi
1912fi
1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916echo "${ECHO_T}$ac_ct_CC" >&6
1917else
1918 echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922 test -n "$ac_ct_CC" && break
1923done
1924
1925 CC=$ac_ct_CC
1926fi
1927
1928fi
1929
1930
1931test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1932echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1933 { (exit 1); exit 1; }; }
1934
1935# Provide some information about the compiler.
1936echo "$as_me:$LINENO:" \
1937 "checking for C compiler version" >&5
1938ac_compiler=`set X $ac_compile; echo $2`
1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1940 (eval $ac_compiler --version </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1945 (eval $ac_compiler -v </dev/null >&5) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }
1949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1950 (eval $ac_compiler -V </dev/null >&5) 2>&5
1951 ac_status=$?
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }
1954
1955cat >conftest.$ac_ext <<_ACEOF
1956#line $LINENO "configure"
1957#include "confdefs.h"
1958
1959#ifdef F77_DUMMY_MAIN
1960# ifdef __cplusplus
1961 extern "C"
1962# endif
1963 int F77_DUMMY_MAIN() { return 1; }
1964#endif
1965int
1966main ()
1967{
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973ac_clean_files_save=$ac_clean_files
1974ac_clean_files="$ac_clean_files a.out a.exe"
1975# Try to create an executable without -o first, disregard a.out.
1976# It will help us diagnose broken compilers, and finding out an intuition
1977# of exeext.
1978echo "$as_me:$LINENO: checking for C compiler default output" >&5
1979echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1980ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1981if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1982 (eval $ac_link_default) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 # Find the output, starting from the most likely. This scheme is
1987# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1988# resort.
1989
1990# Be careful to initialize this variable, since it used to be cached.
1991# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1992ac_cv_exeext=
1993for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1994 ls a.out conftest 2>/dev/null;
1995 ls a.* conftest.* 2>/dev/null`; do
1996 case $ac_file in
1997 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1998 a.out ) # We found the default executable, but exeext='' is most
1999 # certainly right.
2000 break;;
2001 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2002 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2003 export ac_cv_exeext
2004 break;;
2005 * ) break;;
2006 esac
2007done
2008else
2009 echo "$as_me: failed program was:" >&5
2010cat conftest.$ac_ext >&5
2011{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2012echo "$as_me: error: C compiler cannot create executables" >&2;}
2013 { (exit 77); exit 77; }; }
2014fi
2015
2016ac_exeext=$ac_cv_exeext
2017echo "$as_me:$LINENO: result: $ac_file" >&5
2018echo "${ECHO_T}$ac_file" >&6
2019
2020# Check the compiler produces executables we can run. If not, either
2021# the compiler is broken, or we cross compile.
2022echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2023echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2024# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2025# If not cross compiling, check that we can run a simple program.
2026if test "$cross_compiling" != yes; then
2027 if { ac_try='./$ac_file'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 (eval $ac_try) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2033 cross_compiling=no
2034 else
2035 if test "$cross_compiling" = maybe; then
2036 cross_compiling=yes
2037 else
2038 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2039If you meant to cross compile, use \`--host'." >&5
2040echo "$as_me: error: cannot run C compiled programs.
2041If you meant to cross compile, use \`--host'." >&2;}
2042 { (exit 1); exit 1; }; }
2043 fi
2044 fi
2045fi
2046echo "$as_me:$LINENO: result: yes" >&5
2047echo "${ECHO_T}yes" >&6
2048
2049rm -f a.out a.exe conftest$ac_cv_exeext
2050ac_clean_files=$ac_clean_files_save
2051# Check the compiler produces executables we can run. If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2054echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2055echo "$as_me:$LINENO: result: $cross_compiling" >&5
2056echo "${ECHO_T}$cross_compiling" >&6
2057
2058echo "$as_me:$LINENO: checking for suffix of executables" >&5
2059echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2061 (eval $ac_link) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2066# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2067# work properly (i.e., refer to `conftest.exe'), while it won't with
2068# `rm'.
2069for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2070 case $ac_file in
2071 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073 export ac_cv_exeext
2074 break;;
2075 * ) break;;
2076 esac
2077done
2078else
2079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2080echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2081 { (exit 1); exit 1; }; }
2082fi
2083
2084rm -f conftest$ac_cv_exeext
2085echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2086echo "${ECHO_T}$ac_cv_exeext" >&6
2087
2088rm -f conftest.$ac_ext
2089EXEEXT=$ac_cv_exeext
2090ac_exeext=$EXEEXT
2091echo "$as_me:$LINENO: checking for suffix of object files" >&5
2092echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2093if test "${ac_cv_objext+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096 cat >conftest.$ac_ext <<_ACEOF
2097#line $LINENO "configure"
2098#include "confdefs.h"
2099
2100#ifdef F77_DUMMY_MAIN
2101# ifdef __cplusplus
2102 extern "C"
2103# endif
2104 int F77_DUMMY_MAIN() { return 1; }
2105#endif
2106int
2107main ()
2108{
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114rm -f conftest.o conftest.obj
2115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126done
2127else
2128 echo "$as_me: failed program was:" >&5
2129cat conftest.$ac_ext >&5
2130{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2131echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2132 { (exit 1); exit 1; }; }
2133fi
2134
2135rm -f conftest.$ac_cv_objext conftest.$ac_ext
2136fi
2137echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2138echo "${ECHO_T}$ac_cv_objext" >&6
2139OBJEXT=$ac_cv_objext
2140ac_objext=$OBJEXT
2141echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2142echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2143if test "${ac_cv_c_compiler_gnu+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146 cat >conftest.$ac_ext <<_ACEOF
2147#line $LINENO "configure"
2148#include "confdefs.h"
2149
2150#ifdef F77_DUMMY_MAIN
2151# ifdef __cplusplus
2152 extern "C"
2153# endif
2154 int F77_DUMMY_MAIN() { return 1; }
2155#endif
2156int
2157main ()
2158{
2159#ifndef __GNUC__
2160 choke me
2161#endif
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_compiler_gnu=yes
2180else
2181 echo "$as_me: failed program was:" >&5
2182cat conftest.$ac_ext >&5
2183ac_compiler_gnu=no
2184fi
2185rm -f conftest.$ac_objext conftest.$ac_ext
2186ac_cv_c_compiler_gnu=$ac_compiler_gnu
2187
2188fi
2189echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2190echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2191GCC=`test $ac_compiler_gnu = yes && echo yes`
2192ac_test_CFLAGS=${CFLAGS+set}
2193ac_save_CFLAGS=$CFLAGS
2194CFLAGS="-g"
2195echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2196echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2197if test "${ac_cv_prog_cc_g+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200 cat >conftest.$ac_ext <<_ACEOF
2201#line $LINENO "configure"
2202#include "confdefs.h"
2203
2204#ifdef F77_DUMMY_MAIN
2205# ifdef __cplusplus
2206 extern "C"
2207# endif
2208 int F77_DUMMY_MAIN() { return 1; }
2209#endif
2210int
2211main ()
2212{
2213
2214 ;
2215 return 0;
2216}
2217_ACEOF
2218rm -f conftest.$ac_objext
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 ac_cv_prog_cc_g=yes
2231else
2232 echo "$as_me: failed program was:" >&5
2233cat conftest.$ac_ext >&5
2234ac_cv_prog_cc_g=no
2235fi
2236rm -f conftest.$ac_objext conftest.$ac_ext
2237fi
2238echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2239echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2240if test "$ac_test_CFLAGS" = set; then
2241 CFLAGS=$ac_save_CFLAGS
2242elif test $ac_cv_prog_cc_g = yes; then
2243 if test "$GCC" = yes; then
2244 CFLAGS="-g -O2"
2245 else
2246 CFLAGS="-g"
2247 fi
2248else
2249 if test "$GCC" = yes; then
2250 CFLAGS="-O2"
2251 else
2252 CFLAGS=
2253 fi
2254fi
2255# Some people use a C++ compiler to compile C. Since we use `exit',
2256# in C++ we need to declare it. In case someone uses the same compiler
2257# for both compiling C and C++ we need to have the C++ compiler decide
2258# the declaration of exit, since it's the most demanding environment.
2259cat >conftest.$ac_ext <<_ACEOF
2260#ifndef __cplusplus
2261 choke me
2262#endif
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 for ac_declaration in \
2277 ''\
2278 '#include <stdlib.h>' \
2279 'extern "C" void std::exit (int) throw (); using std::exit;' \
2280 'extern "C" void std::exit (int); using std::exit;' \
2281 'extern "C" void exit (int) throw ();' \
2282 'extern "C" void exit (int);' \
2283 'void exit (int);'
2284do
2285 cat >conftest.$ac_ext <<_ACEOF
2286#line $LINENO "configure"
2287#include "confdefs.h"
2288#include <stdlib.h>
2289$ac_declaration
2290#ifdef F77_DUMMY_MAIN
2291# ifdef __cplusplus
2292 extern "C"
2293# endif
2294 int F77_DUMMY_MAIN() { return 1; }
2295#endif
2296int
2297main ()
2298{
2299exit (42);
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304rm -f conftest.$ac_objext
2305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2316 :
2317else
2318 echo "$as_me: failed program was:" >&5
2319cat conftest.$ac_ext >&5
2320continue
2321fi
2322rm -f conftest.$ac_objext conftest.$ac_ext
2323 cat >conftest.$ac_ext <<_ACEOF
2324#line $LINENO "configure"
2325#include "confdefs.h"
2326$ac_declaration
2327#ifdef F77_DUMMY_MAIN
2328# ifdef __cplusplus
2329 extern "C"
2330# endif
2331 int F77_DUMMY_MAIN() { return 1; }
2332#endif
2333int
2334main ()
2335{
2336exit (42);
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341rm -f conftest.$ac_objext
2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 break
2354else
2355 echo "$as_me: failed program was:" >&5
2356cat conftest.$ac_ext >&5
2357fi
2358rm -f conftest.$ac_objext conftest.$ac_ext
2359done
2360rm -f conftest*
2361if test -n "$ac_declaration"; then
2362 echo '#ifdef __cplusplus' >>confdefs.h
2363 echo $ac_declaration >>confdefs.h
2364 echo '#endif' >>confdefs.h
2365fi
2366
2367else
2368 echo "$as_me: failed program was:" >&5
2369cat conftest.$ac_ext >&5
2370fi
2371rm -f conftest.$ac_objext conftest.$ac_ext
2372ac_ext=c
2373ac_cpp='$CPP $CPPFLAGS'
2374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2376ac_compiler_gnu=$ac_cv_c_compiler_gnu
ba95a000
RC
2377rm -f .deps 2>/dev/null
2378mkdir .deps 2>/dev/null
2379if test -d .deps; then
2380 DEPDIR=.deps
2381else
2382 # MS-DOS does not allow filenames that begin with a dot.
2383 DEPDIR=_deps
2384fi
2385rmdir .deps 2>/dev/null
2386
2387
2388ac_config_commands="$ac_config_commands depfiles"
2389
2390
2391am_make=${MAKE-make}
2392cat > confinc << 'END'
2393doit:
2394 @echo done
2395END
2396# If we don't find an include directive, just comment out the code.
2397echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2398echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2399am__include="#"
2400am__quote=
2401_am_result=none
2402# First try GNU make style include.
2403echo "include confinc" > confmf
2404# We grep out `Entering directory' and `Leaving directory'
2405# messages which can occur if `w' ends up in MAKEFLAGS.
2406# In particular we don't look at `^make:' because GNU make might
2407# be invoked under some other name (usually "gmake"), in which
2408# case it prints its new name instead of `make'.
2409if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2410 am__include=include
2411 am__quote=
2412 _am_result=GNU
2413fi
2414# Now try BSD make style include.
2415if test "$am__include" = "#"; then
2416 echo '.include "confinc"' > confmf
2417 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2418 am__include=.include
2419 am__quote="\""
2420 _am_result=BSD
2421 fi
2422fi
2423
2424
2425echo "$as_me:$LINENO: result: $_am_result" >&5
2426echo "${ECHO_T}$_am_result" >&6
2427rm -f confinc confmf
2428
2429# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2430if test "${enable_dependency_tracking+set}" = set; then
2431 enableval="$enable_dependency_tracking"
2432
2433fi;
2434if test "x$enable_dependency_tracking" != xno; then
2435 am_depcomp="$ac_aux_dir/depcomp"
2436 AMDEPBACKSLASH='\'
2437fi
2438
2439
2440if test "x$enable_dependency_tracking" != xno; then
2441 AMDEP_TRUE=
2442 AMDEP_FALSE='#'
2443else
2444 AMDEP_TRUE='#'
2445 AMDEP_FALSE=
2446fi
2447
2448
2449
ef6bacff
RC
2450
2451depcc="$CC" am_compiler_list=
2452
2453echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2454echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2455if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2459 # We make a subdir and do the tests there. Otherwise we can end up
2460 # making bogus files that we don't know about and never remove. For
2461 # instance it was reported that on HP-UX the gcc test will end up
2462 # making a dummy file named `D' -- because `-MD' means `put the output
2463 # in D'.
2464 mkdir conftest.dir
2465 # Copy depcomp to subdir because otherwise we won't find it if we're
2466 # using a relative directory.
2467 cp "$am_depcomp" conftest.dir
2468 cd conftest.dir
2469
2470 am_cv_CC_dependencies_compiler_type=none
2471 if test "$am_compiler_list" = ""; then
2472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2473 fi
2474 for depmode in $am_compiler_list; do
2475 # We need to recreate these files for each test, as the compiler may
2476 # overwrite some of them when testing with obscure command lines.
2477 # This happens at least with the AIX C compiler.
2478 echo '#include "conftest.h"' > conftest.c
2479 echo 'int i;' > conftest.h
2480 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2481
2482 case $depmode in
2483 nosideeffect)
2484 # after this tag, mechanisms are not by side-effect, so they'll
2485 # only be used when explicitly requested
2486 if test "x$enable_dependency_tracking" = xyes; then
2487 continue
2488 else
2489 break
2490 fi
2491 ;;
2492 none) break ;;
2493 esac
2494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2495 # mode. It turns out that the SunPro C++ compiler does not properly
2496 # handle `-M -o', and we need to detect this.
2497 if depmode=$depmode \
2498 source=conftest.c object=conftest.o \
2499 depfile=conftest.Po tmpdepfile=conftest.TPo \
2500 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2501 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2502 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2503 am_cv_CC_dependencies_compiler_type=$depmode
2504 break
2505 fi
2506 done
2507
2508 cd ..
2509 rm -rf conftest.dir
2510else
2511 am_cv_CC_dependencies_compiler_type=none
2512fi
2513
2514fi
2515echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2516echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2517CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2518
2519
ba95a000
RC
2520if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2523echo "$as_me:$LINENO: checking for $ac_word" >&5
2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525if test "${ac_cv_prog_RANLIB+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 if test -n "$RANLIB"; then
2529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543done
2544
2545fi
2546fi
2547RANLIB=$ac_cv_prog_RANLIB
2548if test -n "$RANLIB"; then
2549 echo "$as_me:$LINENO: result: $RANLIB" >&5
2550echo "${ECHO_T}$RANLIB" >&6
2551else
2552 echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6
2554fi
2555
2556fi
2557if test -z "$ac_cv_prog_RANLIB"; then
2558 ac_ct_RANLIB=$RANLIB
2559 # Extract the first word of "ranlib", so it can be a program name with args.
2560set dummy ranlib; ac_word=$2
2561echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2563if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 if test -n "$ac_ct_RANLIB"; then
2567 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 ac_cv_prog_ac_ct_RANLIB="ranlib"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580done
2581done
2582
2583 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2584fi
2585fi
2586ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2587if test -n "$ac_ct_RANLIB"; then
2588 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2589echo "${ECHO_T}$ac_ct_RANLIB" >&6
2590else
2591 echo "$as_me:$LINENO: result: no" >&5
2592echo "${ECHO_T}no" >&6
2593fi
2594
2595 RANLIB=$ac_ct_RANLIB
2596else
2597 RANLIB="$ac_cv_prog_RANLIB"
2598fi
2599
ef6bacff
RC
2600
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2607echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2608# On Suns, sometimes $CPP names a directory.
2609if test -n "$CPP" && test -d "$CPP"; then
2610 CPP=
2611fi
2612if test -z "$CPP"; then
2613 if test "${ac_cv_prog_CPP+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 # Double quotes because CPP needs to be expanded
2617 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2618 do
2619 ac_preproc_ok=false
2620for ac_c_preproc_warn_flag in '' yes
2621do
2622 # Use a header file that comes with gcc, so configuring glibc
2623 # with a fresh cross-compiler works.
2624 # On the NeXT, cc -E runs the code through the compiler's parser,
2625 # not just through cpp. "Syntax error" is here to catch this case.
2626 cat >conftest.$ac_ext <<_ACEOF
2627#line $LINENO "configure"
2628#include "confdefs.h"
2629#include <assert.h>
2630 Syntax error
2631_ACEOF
2632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634 ac_status=$?
2635 egrep -v '^ *\+' conftest.er1 >conftest.err
2636 rm -f conftest.er1
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2642 else
2643 ac_cpp_err=
2644 fi
2645else
2646 ac_cpp_err=yes
2647fi
2648if test -z "$ac_cpp_err"; then
2649 :
2650else
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 # Broken: fails on valid input.
2654continue
2655fi
2656rm -f conftest.err conftest.$ac_ext
2657
2658 # OK, works on sane cases. Now check whether non-existent headers
2659 # can be detected and how.
2660 cat >conftest.$ac_ext <<_ACEOF
2661#line $LINENO "configure"
2662#include "confdefs.h"
2663#include <ac_nonexistent.h>
2664_ACEOF
2665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2667 ac_status=$?
2668 egrep -v '^ *\+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } >/dev/null; then
2673 if test -s conftest.err; then
2674 ac_cpp_err=$ac_c_preproc_warn_flag
2675 else
2676 ac_cpp_err=
2677 fi
2678else
2679 ac_cpp_err=yes
2680fi
2681if test -z "$ac_cpp_err"; then
2682 # Broken: success on invalid input.
2683continue
2684else
2685 echo "$as_me: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 # Passes both tests.
2688ac_preproc_ok=:
2689break
2690fi
2691rm -f conftest.err conftest.$ac_ext
2692
2693done
2694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2695rm -f conftest.err conftest.$ac_ext
2696if $ac_preproc_ok; then
2697 break
2698fi
2699
2700 done
2701 ac_cv_prog_CPP=$CPP
2702
2703fi
2704 CPP=$ac_cv_prog_CPP
2705else
2706 ac_cv_prog_CPP=$CPP
2707fi
2708echo "$as_me:$LINENO: result: $CPP" >&5
2709echo "${ECHO_T}$CPP" >&6
2710ac_preproc_ok=false
2711for ac_c_preproc_warn_flag in '' yes
2712do
2713 # Use a header file that comes with gcc, so configuring glibc
2714 # with a fresh cross-compiler works.
2715 # On the NeXT, cc -E runs the code through the compiler's parser,
2716 # not just through cpp. "Syntax error" is here to catch this case.
2717 cat >conftest.$ac_ext <<_ACEOF
2718#line $LINENO "configure"
2719#include "confdefs.h"
2720#include <assert.h>
2721 Syntax error
2722_ACEOF
2723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2725 ac_status=$?
2726 egrep -v '^ *\+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } >/dev/null; then
2731 if test -s conftest.err; then
2732 ac_cpp_err=$ac_c_preproc_warn_flag
2733 else
2734 ac_cpp_err=
2735 fi
2736else
2737 ac_cpp_err=yes
2738fi
2739if test -z "$ac_cpp_err"; then
2740 :
2741else
2742 echo "$as_me: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 # Broken: fails on valid input.
2745continue
2746fi
2747rm -f conftest.err conftest.$ac_ext
2748
2749 # OK, works on sane cases. Now check whether non-existent headers
2750 # can be detected and how.
2751 cat >conftest.$ac_ext <<_ACEOF
2752#line $LINENO "configure"
2753#include "confdefs.h"
2754#include <ac_nonexistent.h>
2755_ACEOF
2756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2758 ac_status=$?
2759 egrep -v '^ *\+' conftest.er1 >conftest.err
2760 rm -f conftest.er1
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } >/dev/null; then
2764 if test -s conftest.err; then
2765 ac_cpp_err=$ac_c_preproc_warn_flag
2766 else
2767 ac_cpp_err=
2768 fi
2769else
2770 ac_cpp_err=yes
2771fi
2772if test -z "$ac_cpp_err"; then
2773 # Broken: success on invalid input.
2774continue
2775else
2776 echo "$as_me: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2778 # Passes both tests.
2779ac_preproc_ok=:
2780break
2781fi
2782rm -f conftest.err conftest.$ac_ext
2783
2784done
2785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2786rm -f conftest.err conftest.$ac_ext
2787if $ac_preproc_ok; then
2788 :
2789else
2790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2791echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2792 { (exit 1); exit 1; }; }
2793fi
2794
2795ac_ext=c
2796ac_cpp='$CPP $CPPFLAGS'
2797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801
2802echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804if test "${ac_cv_header_stdc+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
2807 cat >conftest.$ac_ext <<_ACEOF
2808#line $LINENO "configure"
2809#include "confdefs.h"
2810#include <stdlib.h>
2811#include <stdarg.h>
2812#include <string.h>
2813#include <float.h>
2814
2815_ACEOF
2816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 ac_status=$?
2819 egrep -v '^ *\+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } >/dev/null; then
2824 if test -s conftest.err; then
2825 ac_cpp_err=$ac_c_preproc_warn_flag
2826 else
2827 ac_cpp_err=
2828 fi
2829else
2830 ac_cpp_err=yes
2831fi
2832if test -z "$ac_cpp_err"; then
2833 ac_cv_header_stdc=yes
2834else
2835 echo "$as_me: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 ac_cv_header_stdc=no
2838fi
2839rm -f conftest.err conftest.$ac_ext
2840
2841if test $ac_cv_header_stdc = yes; then
2842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2843 cat >conftest.$ac_ext <<_ACEOF
2844#line $LINENO "configure"
2845#include "confdefs.h"
2846#include <string.h>
2847
2848_ACEOF
2849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2850 egrep "memchr" >/dev/null 2>&1; then
2851 :
2852else
2853 ac_cv_header_stdc=no
2854fi
2855rm -f conftest*
2856
2857fi
2858
2859if test $ac_cv_header_stdc = yes; then
2860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2861 cat >conftest.$ac_ext <<_ACEOF
2862#line $LINENO "configure"
2863#include "confdefs.h"
2864#include <stdlib.h>
2865
2866_ACEOF
2867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868 egrep "free" >/dev/null 2>&1; then
2869 :
2870else
2871 ac_cv_header_stdc=no
2872fi
2873rm -f conftest*
2874
2875fi
2876
2877if test $ac_cv_header_stdc = yes; then
2878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2879 if test "$cross_compiling" = yes; then
2880 :
2881else
2882 cat >conftest.$ac_ext <<_ACEOF
2883#line $LINENO "configure"
2884#include "confdefs.h"
2885#include <ctype.h>
2886#if ((' ' & 0x0FF) == 0x020)
2887# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2888# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2889#else
2890# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2891 || ('j' <= (c) && (c) <= 'r') \
2892 || ('s' <= (c) && (c) <= 'z'))
2893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2894#endif
2895
2896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2897int
2898main ()
2899{
2900 int i;
2901 for (i = 0; i < 256; i++)
2902 if (XOR (islower (i), ISLOWER (i))
2903 || toupper (i) != TOUPPER (i))
2904 exit(2);
2905 exit (0);
2906}
2907_ACEOF
2908rm -f conftest$ac_exeext
2909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2910 (eval $ac_link) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 :
2920else
2921 echo "$as_me: program exited with status $ac_status" >&5
2922echo "$as_me: failed program was:" >&5
2923cat conftest.$ac_ext >&5
2924( exit $ac_status )
2925ac_cv_header_stdc=no
2926fi
2927rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2928fi
2929fi
2930fi
2931echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2932echo "${ECHO_T}$ac_cv_header_stdc" >&6
2933if test $ac_cv_header_stdc = yes; then
2934
2935cat >>confdefs.h <<\_ACEOF
2936#define STDC_HEADERS 1
2937_ACEOF
2938
2939fi
2940
2941
2942
ef6bacff
RC
2943ac_config_files="$ac_config_files Makefile"
2944
2945cat >confcache <<\_ACEOF
2946# This file is a shell script that caches the results of configure
2947# tests run on this system so they can be shared between configure
2948# scripts and configure runs, see configure's option --config-cache.
2949# It is not useful on other systems. If it contains results you don't
2950# want to keep, you may remove or edit it.
2951#
2952# config.status only pays attention to the cache file if you give it
2953# the --recheck option to rerun configure.
2954#
2955# `ac_cv_env_foo' variables (set or unset) will be overriden when
2956# loading this file, other *unset* `ac_cv_foo' will be assigned the
2957# following values.
2958
2959_ACEOF
2960
2961# The following way of writing the cache mishandles newlines in values,
2962# but we know of no workaround that is simple, portable, and efficient.
2963# So, don't put newlines in cache variables' values.
2964# Ultrix sh set writes to stderr and can't be redirected directly,
2965# and sets the high bit in the cache file unless we assign to the vars.
2966{
2967 (set) 2>&1 |
2968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2969 *ac_space=\ *)
2970 # `set' does not quote correctly, so add quotes (double-quote
2971 # substitution turns \\\\ into \\, and sed turns \\ into \).
2972 sed -n \
2973 "s/'/'\\\\''/g;
2974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2975 ;;
2976 *)
2977 # `set' quotes correctly as required by POSIX, so do not add quotes.
2978 sed -n \
2979 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2980 ;;
2981 esac;
2982} |
2983 sed '
2984 t clear
2985 : clear
2986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2987 t end
2988 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2989 : end' >>confcache
2990if cmp -s $cache_file confcache; then :; else
2991 if test -w $cache_file; then
2992 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2993 cat confcache >$cache_file
2994 else
2995 echo "not updating unwritable cache $cache_file"
2996 fi
2997fi
2998rm -f confcache
2999
3000test "x$prefix" = xNONE && prefix=$ac_default_prefix
3001# Let make expand exec_prefix.
3002test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3003
3004# VPATH may cause trouble with some makes, so we remove $(srcdir),
3005# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3006# trailing colons and then remove the whole line if VPATH becomes empty
3007# (actually we leave an empty line to preserve line numbers).
3008if test "x$srcdir" = x.; then
3009 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3010s/:*\$(srcdir):*/:/;
3011s/:*\${srcdir}:*/:/;
3012s/:*@srcdir@:*/:/;
3013s/^\([^=]*=[ ]*\):*/\1/;
3014s/:*$//;
3015s/^[^=]*=[ ]*$//;
3016}'
3017fi
3018
3019# Transform confdefs.h into DEFS.
3020# Protect against shell expansion while executing Makefile rules.
3021# Protect against Makefile macro expansion.
3022#
3023# If the first sed substitution is executed (which looks for macros that
3024# take arguments), then we branch to the quote section. Otherwise,
3025# look for a macro that doesn't take arguments.
3026cat >confdef2opt.sed <<\_ACEOF
3027t clear
3028: clear
3029s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3030t quote
3031s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3032t quote
3033d
3034: quote
3035s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3036s,\[,\\&,g
3037s,\],\\&,g
3038s,\$,$$,g
3039p
3040_ACEOF
3041# We use echo to avoid assuming a particular line-breaking character.
3042# The extra dot is to prevent the shell from consuming trailing
3043# line-breaks from the sub-command output. A line-break within
3044# single-quotes doesn't work because, if this script is created in a
3045# platform that uses two characters for line-breaks (e.g., DOS), tr
3046# would break.
3047ac_LF_and_DOT=`echo; echo .`
3048DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3049rm -f confdef2opt.sed
3050
3051
3052if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3053 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
3054Usually this means the macro was only invoked conditionally." >&5
3055echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3056Usually this means the macro was only invoked conditionally." >&2;}
3057 { (exit 1); exit 1; }; }
3058fi
3059if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3060 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3061Usually this means the macro was only invoked conditionally." >&5
3062echo "$as_me: error: conditional \"AMDEP\" was never defined.
3063Usually this means the macro was only invoked conditionally." >&2;}
3064 { (exit 1); exit 1; }; }
3065fi
3066
3067: ${CONFIG_STATUS=./config.status}
3068ac_clean_files_save=$ac_clean_files
3069ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3070{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3071echo "$as_me: creating $CONFIG_STATUS" >&6;}
3072cat >$CONFIG_STATUS <<_ACEOF
3073#! $SHELL
3074# Generated by $as_me.
3075# Run this file to recreate the current configuration.
3076# Compiler output produced by configure, useful for debugging
3077# configure, is in config.log if it exists.
3078
3079debug=false
3080SHELL=\${CONFIG_SHELL-$SHELL}
3081_ACEOF
3082
3083cat >>$CONFIG_STATUS <<\_ACEOF
3084
3085## --------------------- ##
3086## M4sh Initialization. ##
3087## --------------------- ##
3088
3089# Be Bourne compatible
3090if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3091 emulate sh
3092 NULLCMD=:
3093elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3094 set -o posix
3095fi
3096
3097# NLS nuisances.
3098# Support unset when possible.
3099if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3100 as_unset=unset
3101else
3102 as_unset=false
3103fi
3104
3105(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3106 { $as_unset LANG || test "${LANG+set}" != set; } ||
3107 { LANG=C; export LANG; }
3108(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3109 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3110 { LC_ALL=C; export LC_ALL; }
3111(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3112 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3113 { LC_TIME=C; export LC_TIME; }
3114(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3115 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3116 { LC_CTYPE=C; export LC_CTYPE; }
3117(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3118 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3119 { LANGUAGE=C; export LANGUAGE; }
3120(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3121 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3122 { LC_COLLATE=C; export LC_COLLATE; }
3123(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3124 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3125 { LC_NUMERIC=C; export LC_NUMERIC; }
3126(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3127 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3128 { LC_MESSAGES=C; export LC_MESSAGES; }
3129
3130
3131# Name of the executable.
3132as_me=`(basename "$0") 2>/dev/null ||
3133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3134 X"$0" : 'X\(//\)$' \| \
3135 X"$0" : 'X\(/\)$' \| \
3136 . : '\(.\)' 2>/dev/null ||
3137echo X/"$0" |
3138 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3139 /^X\/\(\/\/\)$/{ s//\1/; q; }
3140 /^X\/\(\/\).*/{ s//\1/; q; }
3141 s/.*/./; q'`
3142
3143# PATH needs CR, and LINENO needs CR and PATH.
3144# Avoid depending upon Character Ranges.
3145as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3146as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3147as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3148as_cr_digits='0123456789'
3149as_cr_alnum=$as_cr_Letters$as_cr_digits
3150
3151# The user is always right.
3152if test "${PATH_SEPARATOR+set}" != set; then
3153 echo "#! /bin/sh" >conftest.sh
3154 echo "exit 0" >>conftest.sh
3155 chmod +x conftest.sh
3156 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3157 PATH_SEPARATOR=';'
3158 else
3159 PATH_SEPARATOR=:
3160 fi
3161 rm -f conftest.sh
3162fi
3163
3164
3165 as_lineno_1=$LINENO
3166 as_lineno_2=$LINENO
3167 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3168 test "x$as_lineno_1" != "x$as_lineno_2" &&
3169 test "x$as_lineno_3" = "x$as_lineno_2" || {
3170 # Find who we are. Look in the path if we contain no path at all
3171 # relative or not.
3172 case $0 in
3173 *[\\/]* ) as_myself=$0 ;;
3174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3180done
3181
3182 ;;
3183 esac
3184 # We did not find ourselves, most probably we were run as `sh COMMAND'
3185 # in which case we are not to be found in the path.
3186 if test "x$as_myself" = x; then
3187 as_myself=$0
3188 fi
3189 if test ! -f "$as_myself"; then
3190 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3191echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3192 { (exit 1); exit 1; }; }
3193 fi
3194 case $CONFIG_SHELL in
3195 '')
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for as_base in sh bash ksh sh5; do
3202 case $as_dir in
3203 /*)
3204 if ("$as_dir/$as_base" -c '
3205 as_lineno_1=$LINENO
3206 as_lineno_2=$LINENO
3207 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3208 test "x$as_lineno_1" != "x$as_lineno_2" &&
3209 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3210 CONFIG_SHELL=$as_dir/$as_base
3211 export CONFIG_SHELL
3212 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3213 fi;;
3214 esac
3215 done
3216done
3217;;
3218 esac
3219
3220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3221 # uniformly replaced by the line number. The first 'sed' inserts a
3222 # line-number line before each line; the second 'sed' does the real
3223 # work. The second script uses 'N' to pair each line-number line
3224 # with the numbered line, and appends trailing '-' during
3225 # substitution so that $LINENO is not a special case at line end.
3226 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3227 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3228 sed '=' <$as_myself |
3229 sed '
3230 N
3231 s,$,-,
3232 : loop
3233 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3234 t loop
3235 s,-$,,
3236 s,^['$as_cr_digits']*\n,,
3237 ' >$as_me.lineno &&
3238 chmod +x $as_me.lineno ||
3239 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3240echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3241 { (exit 1); exit 1; }; }
3242
3243 # Don't try to exec as it changes $[0], causing all sort of problems
3244 # (the dirname of $[0] is not the place where we might find the
3245 # original and so on. Autoconf is especially sensible to this).
3246 . ./$as_me.lineno
3247 # Exit status is that of the last command.
3248 exit
3249}
3250
3251
3252case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3253 *c*,-n*) ECHO_N= ECHO_C='
3254' ECHO_T=' ' ;;
3255 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3256 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3257esac
3258
3259if expr a : '\(a\)' >/dev/null 2>&1; then
3260 as_expr=expr
3261else
3262 as_expr=false
3263fi
3264
3265rm -f conf$$ conf$$.exe conf$$.file
3266echo >conf$$.file
3267if ln -s conf$$.file conf$$ 2>/dev/null; then
3268 # We could just check for DJGPP; but this test a) works b) is more generic
3269 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3270 if test -f conf$$.exe; then
3271 # Don't use ln at all; we don't have any links
3272 as_ln_s='cp -p'
3273 else
3274 as_ln_s='ln -s'
3275 fi
3276elif ln conf$$.file conf$$ 2>/dev/null; then
3277 as_ln_s=ln
3278else
3279 as_ln_s='cp -p'
3280fi
3281rm -f conf$$ conf$$.exe conf$$.file
3282
3283as_executable_p="test -f"
3284
3285# Sed expression to map a string onto a valid CPP name.
3286as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3287
3288# Sed expression to map a string onto a valid variable name.
3289as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3290
3291
3292# IFS
3293# We need space, tab and new line, in precisely that order.
3294as_nl='
3295'
3296IFS=" $as_nl"
3297
3298# CDPATH.
3299$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3300
3301exec 6>&1
3302
3303# Open the log real soon, to keep \$[0] and so on meaningful, and to
3304# report actual input values of CONFIG_FILES etc. instead of their
3305# values after options handling. Logging --version etc. is OK.
3306exec 5>>config.log
3307{
3308 echo
3309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3310## Running $as_me. ##
3311_ASBOX
3312} >&5
3313cat >&5 <<_CSEOF
3314
3315This file was extended by $as_me, which was
3316generated by GNU Autoconf 2.53. Invocation command line was
3317
3318 CONFIG_FILES = $CONFIG_FILES
3319 CONFIG_HEADERS = $CONFIG_HEADERS
3320 CONFIG_LINKS = $CONFIG_LINKS
3321 CONFIG_COMMANDS = $CONFIG_COMMANDS
3322 $ $0 $@
3323
3324_CSEOF
3325echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3326echo >&5
3327_ACEOF
3328
3329# Files that config.status was made for.
3330if test -n "$ac_config_files"; then
3331 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3332fi
3333
3334if test -n "$ac_config_headers"; then
3335 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3336fi
3337
3338if test -n "$ac_config_links"; then
3339 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3340fi
3341
3342if test -n "$ac_config_commands"; then
3343 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3344fi
3345
3346cat >>$CONFIG_STATUS <<\_ACEOF
3347
3348ac_cs_usage="\
3349\`$as_me' instantiates files from templates according to the
3350current configuration.
3351
3352Usage: $0 [OPTIONS] [FILE]...
3353
3354 -h, --help print this help, then exit
3355 -V, --version print version number, then exit
3356 -d, --debug don't remove temporary files
3357 --recheck update $as_me by reconfiguring in the same conditions
3358 --file=FILE[:TEMPLATE]
3359 instantiate the configuration file FILE
3360
3361Configuration files:
3362$config_files
3363
3364Configuration commands:
3365$config_commands
3366
3367Report bugs to <bug-autoconf@gnu.org>."
3368_ACEOF
3369
3370cat >>$CONFIG_STATUS <<_ACEOF
3371ac_cs_version="\\
3372config.status
3373configured by $0, generated by GNU Autoconf 2.53,
3374 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3375
3376Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3377Free Software Foundation, Inc.
3378This config.status script is free software; the Free Software Foundation
3379gives unlimited permission to copy, distribute and modify it."
3380srcdir=$srcdir
3381INSTALL="$INSTALL"
3382_ACEOF
3383
3384cat >>$CONFIG_STATUS <<\_ACEOF
3385# If no file are specified by the user, then we need to provide default
3386# value. By we need to know if files were specified by the user.
3387ac_need_defaults=:
3388while test $# != 0
3389do
3390 case $1 in
3391 --*=*)
3392 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3393 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3394 shift
3395 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3396 shift
3397 ;;
3398 -*);;
3399 *) # This is not an option, so the user has probably given explicit
3400 # arguments.
3401 ac_need_defaults=false;;
3402 esac
3403
3404 case $1 in
3405 # Handling of the options.
3406_ACEOF
3407cat >>$CONFIG_STATUS <<_ACEOF
3408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3409 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3410 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3411_ACEOF
3412cat >>$CONFIG_STATUS <<\_ACEOF
3413 --version | --vers* | -V )
3414 echo "$ac_cs_version"; exit 0 ;;
3415 --he | --h)
3416 # Conflict between --help and --header
3417 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3418Try \`$0 --help' for more information." >&5
3419echo "$as_me: error: ambiguous option: $1
3420Try \`$0 --help' for more information." >&2;}
3421 { (exit 1); exit 1; }; };;
3422 --help | --hel | -h )
3423 echo "$ac_cs_usage"; exit 0 ;;
3424 --debug | --d* | -d )
3425 debug=: ;;
3426 --file | --fil | --fi | --f )
3427 shift
3428 CONFIG_FILES="$CONFIG_FILES $1"
3429 ac_need_defaults=false;;
3430 --header | --heade | --head | --hea )
3431 shift
3432 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3433 ac_need_defaults=false;;
3434
3435 # This is an error.
3436 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3437Try \`$0 --help' for more information." >&5
3438echo "$as_me: error: unrecognized option: $1
3439Try \`$0 --help' for more information." >&2;}
3440 { (exit 1); exit 1; }; } ;;
3441
3442 *) ac_config_targets="$ac_config_targets $1" ;;
3443
3444 esac
3445 shift
3446done
3447
3448_ACEOF
3449
3450cat >>$CONFIG_STATUS <<_ACEOF
3451#
3452# INIT-COMMANDS section.
3453#
3454
3455AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3456
3457_ACEOF
3458
3459
3460
3461cat >>$CONFIG_STATUS <<\_ACEOF
3462for ac_config_target in $ac_config_targets
3463do
3464 case "$ac_config_target" in
3465 # Handling of arguments.
3466 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3467 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3468 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3469echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3470 { (exit 1); exit 1; }; };;
3471 esac
3472done
3473
3474# If the user did not use the arguments to specify the items to instantiate,
3475# then the envvar interface is used. Set only those that are not.
3476# We use the long form for the default assignment because of an extremely
3477# bizarre bug on SunOS 4.1.3.
3478if $ac_need_defaults; then
3479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3481fi
3482
3483# Create a temporary directory, and hook for its removal unless debugging.
3484$debug ||
3485{
3486 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3487 trap '{ (exit 1); exit 1; }' 1 2 13 15
3488}
3489
3490# Create a (secure) tmp directory for tmp files.
3491: ${TMPDIR=/tmp}
3492{
3493 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3494 test -n "$tmp" && test -d "$tmp"
3495} ||
3496{
3497 tmp=$TMPDIR/cs$$-$RANDOM
3498 (umask 077 && mkdir $tmp)
3499} ||
3500{
3501 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3502 { (exit 1); exit 1; }
3503}
3504
3505_ACEOF
3506
3507cat >>$CONFIG_STATUS <<_ACEOF
3508
3509#
3510# CONFIG_FILES section.
3511#
3512
3513# No need to generate the scripts if there are no CONFIG_FILES.
3514# This happens for instance when ./config.status config.h
3515if test -n "\$CONFIG_FILES"; then
3516 # Protect against being on the right side of a sed subst in config.status.
3517 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3518 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3519s,@SHELL@,$SHELL,;t t
3520s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3521s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3522s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3523s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3524s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3525s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3526s,@exec_prefix@,$exec_prefix,;t t
3527s,@prefix@,$prefix,;t t
3528s,@program_transform_name@,$program_transform_name,;t t
3529s,@bindir@,$bindir,;t t
3530s,@sbindir@,$sbindir,;t t
3531s,@libexecdir@,$libexecdir,;t t
3532s,@datadir@,$datadir,;t t
3533s,@sysconfdir@,$sysconfdir,;t t
3534s,@sharedstatedir@,$sharedstatedir,;t t
3535s,@localstatedir@,$localstatedir,;t t
3536s,@libdir@,$libdir,;t t
3537s,@includedir@,$includedir,;t t
3538s,@oldincludedir@,$oldincludedir,;t t
3539s,@infodir@,$infodir,;t t
3540s,@mandir@,$mandir,;t t
3541s,@build_alias@,$build_alias,;t t
3542s,@host_alias@,$host_alias,;t t
3543s,@target_alias@,$target_alias,;t t
3544s,@DEFS@,$DEFS,;t t
3545s,@ECHO_C@,$ECHO_C,;t t
3546s,@ECHO_N@,$ECHO_N,;t t
3547s,@ECHO_T@,$ECHO_T,;t t
3548s,@LIBS@,$LIBS,;t t
3549s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3550s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3551s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3552s,@PACKAGE@,$PACKAGE,;t t
3553s,@VERSION@,$VERSION,;t t
3554s,@ACLOCAL@,$ACLOCAL,;t t
3555s,@AUTOCONF@,$AUTOCONF,;t t
3556s,@AUTOMAKE@,$AUTOMAKE,;t t
3557s,@AUTOHEADER@,$AUTOHEADER,;t t
3558s,@MAKEINFO@,$MAKEINFO,;t t
3559s,@AMTAR@,$AMTAR,;t t
3560s,@install_sh@,$install_sh,;t t
3561s,@STRIP@,$STRIP,;t t
3562s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3563s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3564s,@AWK@,$AWK,;t t
3565s,@SET_MAKE@,$SET_MAKE,;t t
3566s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3567s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3568s,@MAINT@,$MAINT,;t t
3569s,@build@,$build,;t t
3570s,@build_cpu@,$build_cpu,;t t
3571s,@build_vendor@,$build_vendor,;t t
3572s,@build_os@,$build_os,;t t
3573s,@host@,$host,;t t
3574s,@host_cpu@,$host_cpu,;t t
3575s,@host_vendor@,$host_vendor,;t t
3576s,@host_os@,$host_os,;t t
ef6bacff
RC
3577s,@CC@,$CC,;t t
3578s,@CFLAGS@,$CFLAGS,;t t
3579s,@LDFLAGS@,$LDFLAGS,;t t
3580s,@CPPFLAGS@,$CPPFLAGS,;t t
3581s,@ac_ct_CC@,$ac_ct_CC,;t t
3582s,@EXEEXT@,$EXEEXT,;t t
3583s,@OBJEXT@,$OBJEXT,;t t
3584s,@DEPDIR@,$DEPDIR,;t t
3585s,@am__include@,$am__include,;t t
3586s,@am__quote@,$am__quote,;t t
3587s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3588s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3589s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3590s,@CCDEPMODE@,$CCDEPMODE,;t t
ba95a000
RC
3591s,@RANLIB@,$RANLIB,;t t
3592s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
ef6bacff
RC
3593s,@CPP@,$CPP,;t t
3594s,@installdata@,$installdata,;t t
3595s,@uninstalldata@,$uninstalldata,;t t
3596CEOF
3597
3598_ACEOF
3599
3600 cat >>$CONFIG_STATUS <<\_ACEOF
3601 # Split the substitutions into bite-sized pieces for seds with
3602 # small command number limits, like on Digital OSF/1 and HP-UX.
3603 ac_max_sed_lines=48
3604 ac_sed_frag=1 # Number of current file.
3605 ac_beg=1 # First line for current file.
3606 ac_end=$ac_max_sed_lines # Line after last line for current file.
3607 ac_more_lines=:
3608 ac_sed_cmds=
3609 while $ac_more_lines; do
3610 if test $ac_beg -gt 1; then
3611 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3612 else
3613 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3614 fi
3615 if test ! -s $tmp/subs.frag; then
3616 ac_more_lines=false
3617 else
3618 # The purpose of the label and of the branching condition is to
3619 # speed up the sed processing (if there are no `@' at all, there
3620 # is no need to browse any of the substitutions).
3621 # These are the two extra sed commands mentioned above.
3622 (echo ':t
3623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3624 if test -z "$ac_sed_cmds"; then
3625 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3626 else
3627 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3628 fi
3629 ac_sed_frag=`expr $ac_sed_frag + 1`
3630 ac_beg=$ac_end
3631 ac_end=`expr $ac_end + $ac_max_sed_lines`
3632 fi
3633 done
3634 if test -z "$ac_sed_cmds"; then
3635 ac_sed_cmds=cat
3636 fi
3637fi # test -n "$CONFIG_FILES"
3638
3639_ACEOF
3640cat >>$CONFIG_STATUS <<\_ACEOF
3641for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3642 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3643 case $ac_file in
3644 - | *:- | *:-:* ) # input from stdin
3645 cat >$tmp/stdin
3646 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3648 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3650 * ) ac_file_in=$ac_file.in ;;
3651 esac
3652
3653 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3654 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3655$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3656 X"$ac_file" : 'X\(//\)[^/]' \| \
3657 X"$ac_file" : 'X\(//\)$' \| \
3658 X"$ac_file" : 'X\(/\)' \| \
3659 . : '\(.\)' 2>/dev/null ||
3660echo X"$ac_file" |
3661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3663 /^X\(\/\/\)$/{ s//\1/; q; }
3664 /^X\(\/\).*/{ s//\1/; q; }
3665 s/.*/./; q'`
3666 { case "$ac_dir" in
3667 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3668 *) as_incr_dir=.;;
3669esac
3670as_dummy="$ac_dir"
3671for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3672 case $as_mkdir_dir in
3673 # Skip DOS drivespec
3674 ?:) as_incr_dir=$as_mkdir_dir ;;
3675 *)
3676 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3677 test -d "$as_incr_dir" ||
3678 mkdir "$as_incr_dir" ||
3679 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
3680echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
3681 { (exit 1); exit 1; }; }
3682 ;;
3683 esac
3684done; }
3685
3686 ac_builddir=.
3687
3688if test "$ac_dir" != .; then
3689 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3690 # A "../" for each directory in $ac_dir_suffix.
3691 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3692else
3693 ac_dir_suffix= ac_top_builddir=
3694fi
3695
3696case $srcdir in
3697 .) # No --srcdir option. We are building in place.
3698 ac_srcdir=.
3699 if test -z "$ac_top_builddir"; then
3700 ac_top_srcdir=.
3701 else
3702 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3703 fi ;;
3704 [\\/]* | ?:[\\/]* ) # Absolute path.
3705 ac_srcdir=$srcdir$ac_dir_suffix;
3706 ac_top_srcdir=$srcdir ;;
3707 *) # Relative path.
3708 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3709 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3710esac
3711# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3712# absolute.
3713ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3714ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
3715ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3716ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3717
3718
3719 case $INSTALL in
3720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3721 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3722 esac
3723
3724 if test x"$ac_file" != x-; then
3725 { echo "$as_me:$LINENO: creating $ac_file" >&5
3726echo "$as_me: creating $ac_file" >&6;}
3727 rm -f "$ac_file"
3728 fi
3729 # Let's still pretend it is `configure' which instantiates (i.e., don't
3730 # use $as_me), people would be surprised to read:
3731 # /* config.h. Generated by config.status. */
3732 if test x"$ac_file" = x-; then
3733 configure_input=
3734 else
3735 configure_input="$ac_file. "
3736 fi
3737 configure_input=$configure_input"Generated from `echo $ac_file_in |
3738 sed 's,.*/,,'` by configure."
3739
3740 # First look for the input files in the build tree, otherwise in the
3741 # src tree.
3742 ac_file_inputs=`IFS=:
3743 for f in $ac_file_in; do
3744 case $f in
3745 -) echo $tmp/stdin ;;
3746 [\\/$]*)
3747 # Absolute (can't be DOS-style, as IFS=:)
3748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3749echo "$as_me: error: cannot find input file: $f" >&2;}
3750 { (exit 1); exit 1; }; }
3751 echo $f;;
3752 *) # Relative
3753 if test -f "$f"; then
3754 # Build tree
3755 echo $f
3756 elif test -f "$srcdir/$f"; then
3757 # Source tree
3758 echo $srcdir/$f
3759 else
3760 # /dev/null tree
3761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3762echo "$as_me: error: cannot find input file: $f" >&2;}
3763 { (exit 1); exit 1; }; }
3764 fi;;
3765 esac
3766 done` || { (exit 1); exit 1; }
3767_ACEOF
3768cat >>$CONFIG_STATUS <<_ACEOF
3769 sed "$ac_vpsub
3770$extrasub
3771_ACEOF
3772cat >>$CONFIG_STATUS <<\_ACEOF
3773:t
3774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3775s,@configure_input@,$configure_input,;t t
3776s,@srcdir@,$ac_srcdir,;t t
3777s,@abs_srcdir@,$ac_abs_srcdir,;t t
3778s,@top_srcdir@,$ac_top_srcdir,;t t
3779s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3780s,@builddir@,$ac_builddir,;t t
3781s,@abs_builddir@,$ac_abs_builddir,;t t
3782s,@top_builddir@,$ac_top_builddir,;t t
3783s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3784s,@INSTALL@,$ac_INSTALL,;t t
3785" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3786 rm -f $tmp/stdin
3787 if test x"$ac_file" != x-; then
3788 mv $tmp/out $ac_file
3789 else
3790 cat $tmp/out
3791 rm -f $tmp/out
3792 fi
3793
3794done
3795_ACEOF
3796cat >>$CONFIG_STATUS <<\_ACEOF
3797
3798#
3799# CONFIG_COMMANDS section.
3800#
3801for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3802 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3803 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3804 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
3805$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3806 X"$ac_dest" : 'X\(//\)[^/]' \| \
3807 X"$ac_dest" : 'X\(//\)$' \| \
3808 X"$ac_dest" : 'X\(/\)' \| \
3809 . : '\(.\)' 2>/dev/null ||
3810echo X"$ac_dest" |
3811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3813 /^X\(\/\/\)$/{ s//\1/; q; }
3814 /^X\(\/\).*/{ s//\1/; q; }
3815 s/.*/./; q'`
3816 ac_builddir=.
3817
3818if test "$ac_dir" != .; then
3819 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3820 # A "../" for each directory in $ac_dir_suffix.
3821 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3822else
3823 ac_dir_suffix= ac_top_builddir=
3824fi
3825
3826case $srcdir in
3827 .) # No --srcdir option. We are building in place.
3828 ac_srcdir=.
3829 if test -z "$ac_top_builddir"; then
3830 ac_top_srcdir=.
3831 else
3832 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3833 fi ;;
3834 [\\/]* | ?:[\\/]* ) # Absolute path.
3835 ac_srcdir=$srcdir$ac_dir_suffix;
3836 ac_top_srcdir=$srcdir ;;
3837 *) # Relative path.
3838 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3839 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3840esac
3841# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3842# absolute.
3843ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3844ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
3845ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3846ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3847
3848
3849 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
3850echo "$as_me: executing $ac_dest commands" >&6;}
3851 case $ac_dest in
3852 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
3853 # Strip MF so we end up with the name of the file.
3854 mf=`echo "$mf" | sed -e 's/:.*$//'`
3855 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
3856 dirpart=`(dirname "$mf") 2>/dev/null ||
3857$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3858 X"$mf" : 'X\(//\)[^/]' \| \
3859 X"$mf" : 'X\(//\)$' \| \
3860 X"$mf" : 'X\(/\)' \| \
3861 . : '\(.\)' 2>/dev/null ||
3862echo X"$mf" |
3863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3865 /^X\(\/\/\)$/{ s//\1/; q; }
3866 /^X\(\/\).*/{ s//\1/; q; }
3867 s/.*/./; q'`
3868 else
3869 continue
3870 fi
3871 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
3872 # Extract the definition of DEP_FILES from the Makefile without
3873 # running `make'.
3874 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
3875 test -z "$DEPDIR" && continue
3876 # When using ansi2knr, U may be empty or an underscore; expand it
3877 U=`sed -n -e '/^U = / s///p' < "$mf"`
3878 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
3879 # We invoke sed twice because it is the simplest approach to
3880 # changing $(DEPDIR) to its actual value in the expansion.
3881 for file in `sed -n -e '
3882 /^DEP_FILES = .*\\\\$/ {
3883 s/^DEP_FILES = //
3884 :loop
3885 s/\\\\$//
3886 p
3887 n
3888 /\\\\$/ b loop
3889 p
3890 }
3891 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
3892 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3893 # Make sure the directory exists.
3894 test -f "$dirpart/$file" && continue
3895 fdir=`(dirname "$file") 2>/dev/null ||
3896$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3897 X"$file" : 'X\(//\)[^/]' \| \
3898 X"$file" : 'X\(//\)$' \| \
3899 X"$file" : 'X\(/\)' \| \
3900 . : '\(.\)' 2>/dev/null ||
3901echo X"$file" |
3902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3904 /^X\(\/\/\)$/{ s//\1/; q; }
3905 /^X\(\/\).*/{ s//\1/; q; }
3906 s/.*/./; q'`
3907 { case $dirpart/$fdir in
3908 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3909 *) as_incr_dir=.;;
3910esac
3911as_dummy=$dirpart/$fdir
3912for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3913 case $as_mkdir_dir in
3914 # Skip DOS drivespec
3915 ?:) as_incr_dir=$as_mkdir_dir ;;
3916 *)
3917 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3918 test -d "$as_incr_dir" ||
3919 mkdir "$as_incr_dir" ||
3920 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
3921echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
3922 { (exit 1); exit 1; }; }
3923 ;;
3924 esac
3925done; }
3926
3927 # echo "creating $dirpart/$file"
3928 echo '# dummy' > "$dirpart/$file"
3929 done
3930done
3931 ;;
3932 esac
3933done
3934_ACEOF
3935
3936cat >>$CONFIG_STATUS <<\_ACEOF
3937
3938{ (exit 0); exit 0; }
3939_ACEOF
3940chmod +x $CONFIG_STATUS
3941ac_clean_files=$ac_clean_files_save
3942
3943
3944# configure is writing to config.log, and then calls config.status.
3945# config.status does its own redirection, appending to config.log.
3946# Unfortunately, on DOS this fails, as config.log is still kept open
3947# by configure, so config.status won't be able to write to it; its
3948# output is simply discarded. So we exec the FD to /dev/null,
3949# effectively closing config.log, so it can be properly (re)opened and
3950# appended to by config.status. When coming back to configure, we
3951# need to make the FD available again.
3952if test "$no_create" != yes; then
3953 ac_cs_success=:
3954 exec 5>/dev/null
3955 $SHELL $CONFIG_STATUS || ac_cs_success=false
3956 exec 5>>config.log
3957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3958 # would make configure fail if this is the last instruction.
3959 $ac_cs_success || { (exit 1); exit 1; }
3960fi
3961
This page took 1.904409 seconds and 5 git commands to generate.