Changes for kernel and Busybox
[tomato.git] / release / src / router / bpalogin / configure
blobb40d3ea6a601b96fc198fb467895fdfd36423eec
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
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; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
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
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; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
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 '
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; }; }
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
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
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}
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
261 ac_unique_file="bpalogin.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634 esac
635 done
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 _ACEOF
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
814 cat <<\_ACEOF
815 _ACEOF
818 if test -n "$ac_init_help"; then
820 cat <<\_ACEOF
822 Some influential environment variables:
823 CC C compiler command
824 CFLAGS C compiler flags
825 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
826 nonstandard directory <lib dir>
827 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
828 headers in a nonstandard directory <include dir>
829 CPP C preprocessor
831 Use these variables to override the choices made by `configure' or to help
832 it to find libraries and programs with nonstandard names/locations.
834 _ACEOF
837 if test "$ac_init_help" = "recursive"; then
838 # If there are subdirs, report their specific --help.
839 ac_popdir=`pwd`
840 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
841 test -d $ac_dir || continue
842 ac_builddir=.
844 if test "$ac_dir" != .; then
845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
846 # A "../" for each directory in $ac_dir_suffix.
847 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
848 else
849 ac_dir_suffix= ac_top_builddir=
852 case $srcdir in
853 .) # No --srcdir option. We are building in place.
854 ac_srcdir=.
855 if test -z "$ac_top_builddir"; then
856 ac_top_srcdir=.
857 else
858 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
859 fi ;;
860 [\\/]* | ?:[\\/]* ) # Absolute path.
861 ac_srcdir=$srcdir$ac_dir_suffix;
862 ac_top_srcdir=$srcdir ;;
863 *) # Relative path.
864 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
865 ac_top_srcdir=$ac_top_builddir$srcdir ;;
866 esac
867 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
868 # absolute.
869 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
870 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
871 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
872 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
874 cd $ac_dir
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_srcdir/configure.gnu; then
877 echo
878 $SHELL $ac_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_srcdir/configure; then
880 echo
881 $SHELL $ac_srcdir/configure --help=recursive
882 elif test -f $ac_srcdir/configure.ac ||
883 test -f $ac_srcdir/configure.in; then
884 echo
885 $ac_configure --help
886 else
887 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
889 cd $ac_popdir
890 done
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
895 cat <<\_ACEOF
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
901 _ACEOF
902 exit 0
904 exec 5>config.log
905 cat >&5 <<_ACEOF
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.53. Invocation command line was
912 $ $0 $@
914 _ACEOF
916 cat <<_ASUNAME
917 ## --------- ##
918 ## Platform. ##
919 ## --------- ##
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
938 _ASUNAME
940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
941 for as_dir in $PATH
943 IFS=$as_save_IFS
944 test -z "$as_dir" && as_dir=.
945 echo "PATH: $as_dir"
946 done
948 } >&5
950 cat >&5 <<_ACEOF
953 ## ----------- ##
954 ## Core tests. ##
955 ## ----------- ##
957 _ACEOF
960 # Keep a trace of the command line.
961 # Strip out --no-create and --no-recursion so they do not pile up.
962 # Also quote any args containing shell meta-characters.
963 ac_configure_args=
964 ac_sep=
965 for ac_arg
967 case $ac_arg in
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969 | --no-cr | --no-c | -n ) continue ;;
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972 continue ;;
973 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
974 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
975 esac
976 case " $ac_configure_args " in
977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
978 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
979 ac_sep=" " ;;
980 esac
981 # Get rid of the leading space.
982 done
984 # When interrupted or exit'd, cleanup temporary files, and complete
985 # config.log. We remove comments because anyway the quotes in there
986 # would cause problems or look ugly.
987 # WARNING: Be sure not to use single quotes in there, as some shells,
988 # such as our DU 5.0 friend, will then `close' the trap.
989 trap 'exit_status=$?
990 # Save into config.log some information that might help in debugging.
992 echo
993 cat <<\_ASBOX
994 ## ---------------- ##
995 ## Cache variables. ##
996 ## ---------------- ##
997 _ASBOX
998 echo
999 # The following way of writing the cache mishandles newlines in values,
1001 (set) 2>&1 |
1002 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1003 *ac_space=\ *)
1004 sed -n \
1005 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1009 sed -n \
1010 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1012 esac;
1014 echo
1015 if test -s confdefs.h; then
1016 cat <<\_ASBOX
1017 ## ----------- ##
1018 ## confdefs.h. ##
1019 ## ----------- ##
1020 _ASBOX
1021 echo
1022 sed "/^$/d" confdefs.h
1023 echo
1025 test "$ac_signal" != 0 &&
1026 echo "$as_me: caught signal $ac_signal"
1027 echo "$as_me: exit $exit_status"
1028 } >&5
1029 rm -f core core.* *.core &&
1030 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1031 exit $exit_status
1033 for ac_signal in 1 2 13 15; do
1034 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1035 done
1036 ac_signal=0
1038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1039 rm -rf conftest* confdefs.h
1040 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1041 echo >confdefs.h
1043 # Predefined preprocessor variables.
1045 cat >>confdefs.h <<_ACEOF
1046 #define PACKAGE_NAME "$PACKAGE_NAME"
1047 _ACEOF
1050 cat >>confdefs.h <<_ACEOF
1051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1052 _ACEOF
1055 cat >>confdefs.h <<_ACEOF
1056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1057 _ACEOF
1060 cat >>confdefs.h <<_ACEOF
1061 #define PACKAGE_STRING "$PACKAGE_STRING"
1062 _ACEOF
1065 cat >>confdefs.h <<_ACEOF
1066 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1067 _ACEOF
1070 # Let the site file select an alternate cache file if it wants to.
1071 # Prefer explicitly selected file to automatically selected ones.
1072 if test -z "$CONFIG_SITE"; then
1073 if test "x$prefix" != xNONE; then
1074 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1075 else
1076 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1079 for ac_site_file in $CONFIG_SITE; do
1080 if test -r "$ac_site_file"; then
1081 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1082 echo "$as_me: loading site script $ac_site_file" >&6;}
1083 sed 's/^/| /' "$ac_site_file" >&5
1084 . "$ac_site_file"
1086 done
1088 if test -r "$cache_file"; then
1089 # Some versions of bash will fail to source /dev/null (special
1090 # files actually), so we avoid doing that.
1091 if test -f "$cache_file"; then
1092 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1093 echo "$as_me: loading cache $cache_file" >&6;}
1094 case $cache_file in
1095 [\\/]* | ?:[\\/]* ) . $cache_file;;
1096 *) . ./$cache_file;;
1097 esac
1099 else
1100 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1101 echo "$as_me: creating cache $cache_file" >&6;}
1102 >$cache_file
1105 # Check that the precious variables saved in the cache have kept the same
1106 # value.
1107 ac_cache_corrupted=false
1108 for ac_var in `(set) 2>&1 |
1109 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1110 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1111 eval ac_new_set=\$ac_env_${ac_var}_set
1112 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1113 eval ac_new_val="\$ac_env_${ac_var}_value"
1114 case $ac_old_set,$ac_new_set in
1115 set,)
1116 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1117 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1118 ac_cache_corrupted=: ;;
1119 ,set)
1120 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1121 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1122 ac_cache_corrupted=: ;;
1123 ,);;
1125 if test "x$ac_old_val" != "x$ac_new_val"; then
1126 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1127 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1128 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1129 echo "$as_me: former value: $ac_old_val" >&2;}
1130 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1131 echo "$as_me: current value: $ac_new_val" >&2;}
1132 ac_cache_corrupted=:
1133 fi;;
1134 esac
1135 # Pass precious variables to config.status.
1136 if test "$ac_new_set" = set; then
1137 case $ac_new_val in
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1140 *) ac_arg=$ac_var=$ac_new_val ;;
1141 esac
1142 case " $ac_configure_args " in
1143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1144 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1145 esac
1147 done
1148 if $ac_cache_corrupted; then
1149 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1150 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1151 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1152 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1153 { (exit 1); exit 1; }; }
1156 ac_ext=c
1157 ac_cpp='$CPP $CPPFLAGS'
1158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1180 ac_ext=c
1181 ac_cpp='$CPP $CPPFLAGS'
1182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1185 if test -n "$ac_tool_prefix"; then
1186 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1187 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1188 echo "$as_me:$LINENO: checking for $ac_word" >&5
1189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1190 if test "${ac_cv_prog_CC+set}" = set; then
1191 echo $ECHO_N "(cached) $ECHO_C" >&6
1192 else
1193 if test -n "$CC"; then
1194 ac_cv_prog_CC="$CC" # Let the user override the test.
1195 else
1196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1197 for as_dir in $PATH
1199 IFS=$as_save_IFS
1200 test -z "$as_dir" && as_dir=.
1201 for ac_exec_ext in '' $ac_executable_extensions; do
1202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1203 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1205 break 2
1207 done
1208 done
1212 CC=$ac_cv_prog_CC
1213 if test -n "$CC"; then
1214 echo "$as_me:$LINENO: result: $CC" >&5
1215 echo "${ECHO_T}$CC" >&6
1216 else
1217 echo "$as_me:$LINENO: result: no" >&5
1218 echo "${ECHO_T}no" >&6
1222 if test -z "$ac_cv_prog_CC"; then
1223 ac_ct_CC=$CC
1224 # Extract the first word of "gcc", so it can be a program name with args.
1225 set dummy gcc; ac_word=$2
1226 echo "$as_me:$LINENO: checking for $ac_word" >&5
1227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
1230 else
1231 if test -n "$ac_ct_CC"; then
1232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1233 else
1234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235 for as_dir in $PATH
1237 IFS=$as_save_IFS
1238 test -z "$as_dir" && as_dir=.
1239 for ac_exec_ext in '' $ac_executable_extensions; do
1240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1241 ac_cv_prog_ac_ct_CC="gcc"
1242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1243 break 2
1245 done
1246 done
1250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1251 if test -n "$ac_ct_CC"; then
1252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1253 echo "${ECHO_T}$ac_ct_CC" >&6
1254 else
1255 echo "$as_me:$LINENO: result: no" >&5
1256 echo "${ECHO_T}no" >&6
1259 CC=$ac_ct_CC
1260 else
1261 CC="$ac_cv_prog_CC"
1264 if test -z "$CC"; then
1265 if test -n "$ac_tool_prefix"; then
1266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1267 set dummy ${ac_tool_prefix}cc; ac_word=$2
1268 echo "$as_me:$LINENO: checking for $ac_word" >&5
1269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1270 if test "${ac_cv_prog_CC+set}" = set; then
1271 echo $ECHO_N "(cached) $ECHO_C" >&6
1272 else
1273 if test -n "$CC"; then
1274 ac_cv_prog_CC="$CC" # Let the user override the test.
1275 else
1276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277 for as_dir in $PATH
1279 IFS=$as_save_IFS
1280 test -z "$as_dir" && as_dir=.
1281 for ac_exec_ext in '' $ac_executable_extensions; do
1282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1283 ac_cv_prog_CC="${ac_tool_prefix}cc"
1284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1285 break 2
1287 done
1288 done
1292 CC=$ac_cv_prog_CC
1293 if test -n "$CC"; then
1294 echo "$as_me:$LINENO: result: $CC" >&5
1295 echo "${ECHO_T}$CC" >&6
1296 else
1297 echo "$as_me:$LINENO: result: no" >&5
1298 echo "${ECHO_T}no" >&6
1302 if test -z "$ac_cv_prog_CC"; then
1303 ac_ct_CC=$CC
1304 # Extract the first word of "cc", so it can be a program name with args.
1305 set dummy cc; ac_word=$2
1306 echo "$as_me:$LINENO: checking for $ac_word" >&5
1307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1309 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 else
1311 if test -n "$ac_ct_CC"; then
1312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1313 else
1314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1315 for as_dir in $PATH
1317 IFS=$as_save_IFS
1318 test -z "$as_dir" && as_dir=.
1319 for ac_exec_ext in '' $ac_executable_extensions; do
1320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1321 ac_cv_prog_ac_ct_CC="cc"
1322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1323 break 2
1325 done
1326 done
1330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1331 if test -n "$ac_ct_CC"; then
1332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1333 echo "${ECHO_T}$ac_ct_CC" >&6
1334 else
1335 echo "$as_me:$LINENO: result: no" >&5
1336 echo "${ECHO_T}no" >&6
1339 CC=$ac_ct_CC
1340 else
1341 CC="$ac_cv_prog_CC"
1345 if test -z "$CC"; then
1346 # Extract the first word of "cc", so it can be a program name with args.
1347 set dummy cc; ac_word=$2
1348 echo "$as_me:$LINENO: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 else
1356 ac_prog_rejected=no
1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 for as_dir in $PATH
1360 IFS=$as_save_IFS
1361 test -z "$as_dir" && as_dir=.
1362 for ac_exec_ext in '' $ac_executable_extensions; do
1363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1365 ac_prog_rejected=yes
1366 continue
1368 ac_cv_prog_CC="cc"
1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370 break 2
1372 done
1373 done
1375 if test $ac_prog_rejected = yes; then
1376 # We found a bogon in the path, so make sure we never use it.
1377 set dummy $ac_cv_prog_CC
1378 shift
1379 if test $# != 0; then
1380 # We chose a different compiler from the bogus one.
1381 # However, it has the same basename, so the bogon will be chosen
1382 # first if we set CC to just the basename; use the full file name.
1383 shift
1384 set dummy "$as_dir/$ac_word" ${1+"$@"}
1385 shift
1386 ac_cv_prog_CC="$@"
1391 CC=$ac_cv_prog_CC
1392 if test -n "$CC"; then
1393 echo "$as_me:$LINENO: result: $CC" >&5
1394 echo "${ECHO_T}$CC" >&6
1395 else
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1401 if test -z "$CC"; then
1402 if test -n "$ac_tool_prefix"; then
1403 for ac_prog in cl
1405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1407 echo "$as_me:$LINENO: checking for $ac_word" >&5
1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409 if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1414 else
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 for as_dir in $PATH
1418 IFS=$as_save_IFS
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424 break 2
1426 done
1427 done
1431 CC=$ac_cv_prog_CC
1432 if test -n "$CC"; then
1433 echo "$as_me:$LINENO: result: $CC" >&5
1434 echo "${ECHO_T}$CC" >&6
1435 else
1436 echo "$as_me:$LINENO: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1440 test -n "$CC" && break
1441 done
1443 if test -z "$CC"; then
1444 ac_ct_CC=$CC
1445 for ac_prog in cl
1447 # Extract the first word of "$ac_prog", so it can be a program name with args.
1448 set dummy $ac_prog; ac_word=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1456 else
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_ac_ct_CC="$ac_prog"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 break 2
1468 done
1469 done
1473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1474 if test -n "$ac_ct_CC"; then
1475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1476 echo "${ECHO_T}$ac_ct_CC" >&6
1477 else
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1482 test -n "$ac_ct_CC" && break
1483 done
1485 CC=$ac_ct_CC
1491 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1492 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1493 { (exit 1); exit 1; }; }
1495 # Provide some information about the compiler.
1496 echo "$as_me:$LINENO:" \
1497 "checking for C compiler version" >&5
1498 ac_compiler=`set X $ac_compile; echo $2`
1499 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1500 (eval $ac_compiler --version </dev/null >&5) 2>&5
1501 ac_status=$?
1502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1503 (exit $ac_status); }
1504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1505 (eval $ac_compiler -v </dev/null >&5) 2>&5
1506 ac_status=$?
1507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1508 (exit $ac_status); }
1509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1510 (eval $ac_compiler -V </dev/null >&5) 2>&5
1511 ac_status=$?
1512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1513 (exit $ac_status); }
1515 cat >conftest.$ac_ext <<_ACEOF
1516 #line $LINENO "configure"
1517 #include "confdefs.h"
1519 #ifdef F77_DUMMY_MAIN
1520 # ifdef __cplusplus
1521 extern "C"
1522 # endif
1523 int F77_DUMMY_MAIN() { return 1; }
1524 #endif
1526 main ()
1530 return 0;
1532 _ACEOF
1533 ac_clean_files_save=$ac_clean_files
1534 ac_clean_files="$ac_clean_files a.out a.exe"
1535 # Try to create an executable without -o first, disregard a.out.
1536 # It will help us diagnose broken compilers, and finding out an intuition
1537 # of exeext.
1538 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1539 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1540 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1541 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1542 (eval $ac_link_default) 2>&5
1543 ac_status=$?
1544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1545 (exit $ac_status); }; then
1546 # Find the output, starting from the most likely. This scheme is
1547 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1548 # resort.
1550 # Be careful to initialize this variable, since it used to be cached.
1551 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1552 ac_cv_exeext=
1553 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1554 ls a.out conftest 2>/dev/null;
1555 ls a.* conftest.* 2>/dev/null`; do
1556 case $ac_file in
1557 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1558 a.out ) # We found the default executable, but exeext='' is most
1559 # certainly right.
1560 break;;
1561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1562 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1563 export ac_cv_exeext
1564 break;;
1565 * ) break;;
1566 esac
1567 done
1568 else
1569 echo "$as_me: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1571 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1572 echo "$as_me: error: C compiler cannot create executables" >&2;}
1573 { (exit 77); exit 77; }; }
1576 ac_exeext=$ac_cv_exeext
1577 echo "$as_me:$LINENO: result: $ac_file" >&5
1578 echo "${ECHO_T}$ac_file" >&6
1580 # Check the compiler produces executables we can run. If not, either
1581 # the compiler is broken, or we cross compile.
1582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1585 # If not cross compiling, check that we can run a simple program.
1586 if test "$cross_compiling" != yes; then
1587 if { ac_try='./$ac_file'
1588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1589 (eval $ac_try) 2>&5
1590 ac_status=$?
1591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1592 (exit $ac_status); }; }; then
1593 cross_compiling=no
1594 else
1595 if test "$cross_compiling" = maybe; then
1596 cross_compiling=yes
1597 else
1598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1599 If you meant to cross compile, use \`--host'." >&5
1600 echo "$as_me: error: cannot run C compiled programs.
1601 If you meant to cross compile, use \`--host'." >&2;}
1602 { (exit 1); exit 1; }; }
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1609 rm -f a.out a.exe conftest$ac_cv_exeext
1610 ac_clean_files=$ac_clean_files_save
1611 # Check the compiler produces executables we can run. If not, either
1612 # the compiler is broken, or we cross compile.
1613 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1614 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1615 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1616 echo "${ECHO_T}$cross_compiling" >&6
1618 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1619 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1621 (eval $ac_link) 2>&5
1622 ac_status=$?
1623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1624 (exit $ac_status); }; then
1625 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1626 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1627 # work properly (i.e., refer to `conftest.exe'), while it won't with
1628 # `rm'.
1629 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1630 case $ac_file in
1631 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1633 export ac_cv_exeext
1634 break;;
1635 * ) break;;
1636 esac
1637 done
1638 else
1639 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1640 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1641 { (exit 1); exit 1; }; }
1644 rm -f conftest$ac_cv_exeext
1645 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1646 echo "${ECHO_T}$ac_cv_exeext" >&6
1648 rm -f conftest.$ac_ext
1649 EXEEXT=$ac_cv_exeext
1650 ac_exeext=$EXEEXT
1651 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1652 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1653 if test "${ac_cv_objext+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656 cat >conftest.$ac_ext <<_ACEOF
1657 #line $LINENO "configure"
1658 #include "confdefs.h"
1660 #ifdef F77_DUMMY_MAIN
1661 # ifdef __cplusplus
1662 extern "C"
1663 # endif
1664 int F77_DUMMY_MAIN() { return 1; }
1665 #endif
1667 main ()
1671 return 0;
1673 _ACEOF
1674 rm -f conftest.o conftest.obj
1675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1676 (eval $ac_compile) 2>&5
1677 ac_status=$?
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1681 case $ac_file in
1682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1684 break;;
1685 esac
1686 done
1687 else
1688 echo "$as_me: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1691 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1692 { (exit 1); exit 1; }; }
1695 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1697 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1698 echo "${ECHO_T}$ac_cv_objext" >&6
1699 OBJEXT=$ac_cv_objext
1700 ac_objext=$OBJEXT
1701 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1702 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1703 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706 cat >conftest.$ac_ext <<_ACEOF
1707 #line $LINENO "configure"
1708 #include "confdefs.h"
1710 #ifdef F77_DUMMY_MAIN
1711 # ifdef __cplusplus
1712 extern "C"
1713 # endif
1714 int F77_DUMMY_MAIN() { return 1; }
1715 #endif
1717 main ()
1719 #ifndef __GNUC__
1720 choke me
1721 #endif
1724 return 0;
1726 _ACEOF
1727 rm -f conftest.$ac_objext
1728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1735 (eval $ac_try) 2>&5
1736 ac_status=$?
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1739 ac_compiler_gnu=yes
1740 else
1741 echo "$as_me: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1743 ac_compiler_gnu=no
1745 rm -f conftest.$ac_objext conftest.$ac_ext
1746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1749 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1751 GCC=`test $ac_compiler_gnu = yes && echo yes`
1752 ac_test_CFLAGS=${CFLAGS+set}
1753 ac_save_CFLAGS=$CFLAGS
1754 CFLAGS="-g"
1755 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1756 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1757 if test "${ac_cv_prog_cc_g+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1762 #include "confdefs.h"
1764 #ifdef F77_DUMMY_MAIN
1765 # ifdef __cplusplus
1766 extern "C"
1767 # endif
1768 int F77_DUMMY_MAIN() { return 1; }
1769 #endif
1771 main ()
1775 return 0;
1777 _ACEOF
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786 (eval $ac_try) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1790 ac_cv_prog_cc_g=yes
1791 else
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 ac_cv_prog_cc_g=no
1796 rm -f conftest.$ac_objext conftest.$ac_ext
1798 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1799 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1800 if test "$ac_test_CFLAGS" = set; then
1801 CFLAGS=$ac_save_CFLAGS
1802 elif test $ac_cv_prog_cc_g = yes; then
1803 if test "$GCC" = yes; then
1804 CFLAGS="-g -O2"
1805 else
1806 CFLAGS="-g"
1808 else
1809 if test "$GCC" = yes; then
1810 CFLAGS="-O2"
1811 else
1812 CFLAGS=
1815 # Some people use a C++ compiler to compile C. Since we use `exit',
1816 # in C++ we need to declare it. In case someone uses the same compiler
1817 # for both compiling C and C++ we need to have the C++ compiler decide
1818 # the declaration of exit, since it's the most demanding environment.
1819 cat >conftest.$ac_ext <<_ACEOF
1820 #ifndef __cplusplus
1821 choke me
1822 #endif
1823 _ACEOF
1824 rm -f conftest.$ac_objext
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); } &&
1830 { ac_try='test -s conftest.$ac_objext'
1831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1832 (eval $ac_try) 2>&5
1833 ac_status=$?
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; }; then
1836 for ac_declaration in \
1838 '#include <stdlib.h>' \
1839 'extern "C" void std::exit (int) throw (); using std::exit;' \
1840 'extern "C" void std::exit (int); using std::exit;' \
1841 'extern "C" void exit (int) throw ();' \
1842 'extern "C" void exit (int);' \
1843 'void exit (int);'
1845 cat >conftest.$ac_ext <<_ACEOF
1846 #line $LINENO "configure"
1847 #include "confdefs.h"
1848 #include <stdlib.h>
1849 $ac_declaration
1850 #ifdef F77_DUMMY_MAIN
1851 # ifdef __cplusplus
1852 extern "C"
1853 # endif
1854 int F77_DUMMY_MAIN() { return 1; }
1855 #endif
1857 main ()
1859 exit (42);
1861 return 0;
1863 _ACEOF
1864 rm -f conftest.$ac_objext
1865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); } &&
1870 { ac_try='test -s conftest.$ac_objext'
1871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872 (eval $ac_try) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1877 else
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 continue
1882 rm -f conftest.$ac_objext conftest.$ac_ext
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line $LINENO "configure"
1885 #include "confdefs.h"
1886 $ac_declaration
1887 #ifdef F77_DUMMY_MAIN
1888 # ifdef __cplusplus
1889 extern "C"
1890 # endif
1891 int F77_DUMMY_MAIN() { return 1; }
1892 #endif
1894 main ()
1896 exit (42);
1898 return 0;
1900 _ACEOF
1901 rm -f conftest.$ac_objext
1902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1903 (eval $ac_compile) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); } &&
1907 { ac_try='test -s conftest.$ac_objext'
1908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909 (eval $ac_try) 2>&5
1910 ac_status=$?
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; }; then
1913 break
1914 else
1915 echo "$as_me: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 rm -f conftest.$ac_objext conftest.$ac_ext
1919 done
1920 rm -f conftest*
1921 if test -n "$ac_declaration"; then
1922 echo '#ifdef __cplusplus' >>confdefs.h
1923 echo $ac_declaration >>confdefs.h
1924 echo '#endif' >>confdefs.h
1927 else
1928 echo "$as_me: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 rm -f conftest.$ac_objext conftest.$ac_ext
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 ac_aux_dir=
1939 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1940 if test -f $ac_dir/install-sh; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 break
1944 elif test -f $ac_dir/install.sh; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 break
1948 elif test -f $ac_dir/shtool; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/shtool install -c"
1951 break
1953 done
1954 if test -z "$ac_aux_dir"; then
1955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1957 { (exit 1); exit 1; }; }
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1961 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1963 # Find a good install program. We prefer a C program (faster),
1964 # so one script is as good as another. But avoid the broken or
1965 # incompatible versions:
1966 # SysV /etc/install, /usr/sbin/install
1967 # SunOS /usr/etc/install
1968 # IRIX /sbin/install
1969 # AIX /bin/install
1970 # AmigaOS /C/install, which installs bootblocks on floppy discs
1971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1974 # ./install, which can be erroneously created by make from ./install.sh.
1975 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1987 case $as_dir/ in
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990 /usr/ucb/* ) ;;
1992 # OSF1 and SCO ODT 3.0 have their own names for install.
1993 # Don't use installbsd from OSF since it installs stuff as root
1994 # by default.
1995 for ac_prog in ginstall scoinst install; do
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1998 if test $ac_prog = install &&
1999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000 # AIX install. It has an incompatible calling convention.
2002 elif test $ac_prog = install &&
2003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # program-specific install script used by HP pwplus--don't use.
2006 else
2007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2008 break 3
2011 done
2012 done
2014 esac
2015 done
2019 if test "${ac_cv_path_install+set}" = set; then
2020 INSTALL=$ac_cv_path_install
2021 else
2022 # As a last resort, use the slow shell script. We don't cache a
2023 # path for INSTALL within a source directory, because that will
2024 # break other packages using the cache if that directory is
2025 # removed, or if the path is relative.
2026 INSTALL=$ac_install_sh
2029 echo "$as_me:$LINENO: result: $INSTALL" >&5
2030 echo "${ECHO_T}$INSTALL" >&6
2032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2033 # It thinks the first close brace ends the variable substitution.
2034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2050 # On Suns, sometimes $CPP names a directory.
2051 if test -n "$CPP" && test -d "$CPP"; then
2052 CPP=
2054 if test -z "$CPP"; then
2055 if test "${ac_cv_prog_CPP+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 # Double quotes because CPP needs to be expanded
2059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2061 ac_preproc_ok=false
2062 for ac_c_preproc_warn_flag in '' yes
2064 # Use a header file that comes with gcc, so configuring glibc
2065 # with a fresh cross-compiler works.
2066 # On the NeXT, cc -E runs the code through the compiler's parser,
2067 # not just through cpp. "Syntax error" is here to catch this case.
2068 cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 #include "confdefs.h"
2071 #include <assert.h>
2072 Syntax error
2073 _ACEOF
2074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2076 ac_status=$?
2077 egrep -v '^ *\+' conftest.er1 >conftest.err
2078 rm -f conftest.er1
2079 cat conftest.err >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); } >/dev/null; then
2082 if test -s conftest.err; then
2083 ac_cpp_err=$ac_c_preproc_warn_flag
2084 else
2085 ac_cpp_err=
2087 else
2088 ac_cpp_err=yes
2090 if test -z "$ac_cpp_err"; then
2092 else
2093 echo "$as_me: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095 # Broken: fails on valid input.
2096 continue
2098 rm -f conftest.err conftest.$ac_ext
2100 # OK, works on sane cases. Now check whether non-existent headers
2101 # can be detected and how.
2102 cat >conftest.$ac_ext <<_ACEOF
2103 #line $LINENO "configure"
2104 #include "confdefs.h"
2105 #include <ac_nonexistent.h>
2106 _ACEOF
2107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2109 ac_status=$?
2110 egrep -v '^ *\+' conftest.er1 >conftest.err
2111 rm -f conftest.er1
2112 cat conftest.err >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); } >/dev/null; then
2115 if test -s conftest.err; then
2116 ac_cpp_err=$ac_c_preproc_warn_flag
2117 else
2118 ac_cpp_err=
2120 else
2121 ac_cpp_err=yes
2123 if test -z "$ac_cpp_err"; then
2124 # Broken: success on invalid input.
2125 continue
2126 else
2127 echo "$as_me: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2129 # Passes both tests.
2130 ac_preproc_ok=:
2131 break
2133 rm -f conftest.err conftest.$ac_ext
2135 done
2136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2137 rm -f conftest.err conftest.$ac_ext
2138 if $ac_preproc_ok; then
2139 break
2142 done
2143 ac_cv_prog_CPP=$CPP
2146 CPP=$ac_cv_prog_CPP
2147 else
2148 ac_cv_prog_CPP=$CPP
2150 echo "$as_me:$LINENO: result: $CPP" >&5
2151 echo "${ECHO_T}$CPP" >&6
2152 ac_preproc_ok=false
2153 for ac_c_preproc_warn_flag in '' yes
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 #include "confdefs.h"
2162 #include <assert.h>
2163 Syntax error
2164 _ACEOF
2165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 ac_status=$?
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2175 else
2176 ac_cpp_err=
2178 else
2179 ac_cpp_err=yes
2181 if test -z "$ac_cpp_err"; then
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Broken: fails on valid input.
2187 continue
2189 rm -f conftest.err conftest.$ac_ext
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2197 _ACEOF
2198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200 ac_status=$?
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2208 else
2209 ac_cpp_err=
2211 else
2212 ac_cpp_err=yes
2214 if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2216 continue
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2221 ac_preproc_ok=:
2222 break
2224 rm -f conftest.err conftest.$ac_ext
2226 done
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2231 else
2232 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2234 { (exit 1); exit 1; }; }
2237 ac_ext=c
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2246 if test "${ac_cv_header_stdc+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #line $LINENO "configure"
2251 #include "confdefs.h"
2252 #include <stdlib.h>
2253 #include <stdarg.h>
2254 #include <string.h>
2255 #include <float.h>
2257 _ACEOF
2258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260 ac_status=$?
2261 egrep -v '^ *\+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } >/dev/null; then
2266 if test -s conftest.err; then
2267 ac_cpp_err=$ac_c_preproc_warn_flag
2268 else
2269 ac_cpp_err=
2271 else
2272 ac_cpp_err=yes
2274 if test -z "$ac_cpp_err"; then
2275 ac_cv_header_stdc=yes
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 ac_cv_header_stdc=no
2281 rm -f conftest.err conftest.$ac_ext
2283 if test $ac_cv_header_stdc = yes; then
2284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 #include "confdefs.h"
2288 #include <string.h>
2290 _ACEOF
2291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2292 egrep "memchr" >/dev/null 2>&1; then
2294 else
2295 ac_cv_header_stdc=no
2297 rm -f conftest*
2301 if test $ac_cv_header_stdc = yes; then
2302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2303 cat >conftest.$ac_ext <<_ACEOF
2304 #line $LINENO "configure"
2305 #include "confdefs.h"
2306 #include <stdlib.h>
2308 _ACEOF
2309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2310 egrep "free" >/dev/null 2>&1; then
2312 else
2313 ac_cv_header_stdc=no
2315 rm -f conftest*
2319 if test $ac_cv_header_stdc = yes; then
2320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2321 if test "$cross_compiling" = yes; then
2323 else
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line $LINENO "configure"
2326 #include "confdefs.h"
2327 #include <ctype.h>
2328 #if ((' ' & 0x0FF) == 0x020)
2329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2331 #else
2332 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2333 || ('j' <= (c) && (c) <= 'r') \
2334 || ('s' <= (c) && (c) <= 'z'))
2335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2336 #endif
2338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2340 main ()
2342 int i;
2343 for (i = 0; i < 256; i++)
2344 if (XOR (islower (i), ISLOWER (i))
2345 || toupper (i) != TOUPPER (i))
2346 exit(2);
2347 exit (0);
2349 _ACEOF
2350 rm -f conftest$ac_exeext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352 (eval $ac_link) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2362 else
2363 echo "$as_me: program exited with status $ac_status" >&5
2364 echo "$as_me: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 ( exit $ac_status )
2367 ac_cv_header_stdc=no
2369 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2373 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2374 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2375 if test $ac_cv_header_stdc = yes; then
2377 cat >>confdefs.h <<\_ACEOF
2378 #define STDC_HEADERS 1
2379 _ACEOF
2383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2394 inttypes.h stdint.h unistd.h
2396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2397 echo "$as_me:$LINENO: checking for $ac_header" >&5
2398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 cat >conftest.$ac_ext <<_ACEOF
2403 #line $LINENO "configure"
2404 #include "confdefs.h"
2405 $ac_includes_default
2407 #include <$ac_header>
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 eval "$as_ac_Header=yes"
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 eval "$as_ac_Header=no"
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2432 cat >>confdefs.h <<_ACEOF
2433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2434 _ACEOF
2438 done
2444 for ac_header in sys/time.h syslog.h unistd.h
2446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2448 echo "$as_me:$LINENO: checking for $ac_header" >&5
2449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2455 else
2456 # Is the header compilable?
2457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2459 cat >conftest.$ac_ext <<_ACEOF
2460 #line $LINENO "configure"
2461 #include "confdefs.h"
2462 $ac_includes_default
2463 #include <$ac_header>
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 ac_header_compiler=yes
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 ac_header_compiler=no
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2485 echo "${ECHO_T}$ac_header_compiler" >&6
2487 # Is the header present?
2488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2490 cat >conftest.$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2492 #include "confdefs.h"
2493 #include <$ac_header>
2494 _ACEOF
2495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497 ac_status=$?
2498 egrep -v '^ *\+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2505 else
2506 ac_cpp_err=
2508 else
2509 ac_cpp_err=yes
2511 if test -z "$ac_cpp_err"; then
2512 ac_header_preproc=yes
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 ac_header_preproc=no
2518 rm -f conftest.err conftest.$ac_ext
2519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2520 echo "${ECHO_T}$ac_header_preproc" >&6
2522 # So? What about this header?
2523 case $ac_header_compiler:$ac_header_preproc in
2524 yes:no )
2525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
2529 no:yes )
2530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
2536 esac
2537 echo "$as_me:$LINENO: checking for $ac_header" >&5
2538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 eval "$as_ac_Header=$ac_header_preproc"
2544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2549 cat >>confdefs.h <<_ACEOF
2550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2551 _ACEOF
2555 done
2558 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2559 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2560 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563 ac_cv_prog_cc_stdc=no
2564 ac_save_CC=$CC
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 #include "confdefs.h"
2568 #include <stdarg.h>
2569 #include <stdio.h>
2570 #include <sys/types.h>
2571 #include <sys/stat.h>
2572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2573 struct buf { int x; };
2574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2575 static char *e (p, i)
2576 char **p;
2577 int i;
2579 return p[i];
2581 static char *f (char * (*g) (char **, int), char **p, ...)
2583 char *s;
2584 va_list v;
2585 va_start (v,p);
2586 s = g (p, va_arg (v,int));
2587 va_end (v);
2588 return s;
2590 int test (int i, double x);
2591 struct s1 {int (*f) (int a);};
2592 struct s2 {int (*f) (double a);};
2593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2594 int argc;
2595 char **argv;
2596 #ifdef F77_DUMMY_MAIN
2597 # ifdef __cplusplus
2598 extern "C"
2599 # endif
2600 int F77_DUMMY_MAIN() { return 1; }
2601 #endif
2603 main ()
2605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2607 return 0;
2609 _ACEOF
2610 # Don't try gcc -ansi; that turns off useful extensions and
2611 # breaks some systems' header files.
2612 # AIX -qlanglvl=ansi
2613 # Ultrix and OSF/1 -std1
2614 # HP-UX 10.20 and later -Ae
2615 # HP-UX older versions -Aa -D_HPUX_SOURCE
2616 # SVR4 -Xc -D__EXTENSIONS__
2617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2619 CC="$ac_save_CC $ac_arg"
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_stdc=$ac_arg
2633 break
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 rm -f conftest.$ac_objext
2639 done
2640 rm -f conftest.$ac_ext conftest.$ac_objext
2641 CC=$ac_save_CC
2645 case "x$ac_cv_prog_cc_stdc" in
2646 x|xno)
2647 echo "$as_me:$LINENO: result: none needed" >&5
2648 echo "${ECHO_T}none needed" >&6 ;;
2650 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2652 CC="$CC $ac_cv_prog_cc_stdc" ;;
2653 esac
2655 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2656 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2657 if test "${ac_cv_c_const+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #line $LINENO "configure"
2662 #include "confdefs.h"
2664 #ifdef F77_DUMMY_MAIN
2665 # ifdef __cplusplus
2666 extern "C"
2667 # endif
2668 int F77_DUMMY_MAIN() { return 1; }
2669 #endif
2671 main ()
2673 /* FIXME: Include the comments suggested by Paul. */
2674 #ifndef __cplusplus
2675 /* Ultrix mips cc rejects this. */
2676 typedef int charset[2];
2677 const charset x;
2678 /* SunOS 4.1.1 cc rejects this. */
2679 char const *const *ccp;
2680 char **p;
2681 /* NEC SVR4.0.2 mips cc rejects this. */
2682 struct point {int x, y;};
2683 static struct point const zero = {0,0};
2684 /* AIX XL C 1.02.0.0 rejects this.
2685 It does not let you subtract one const X* pointer from another in
2686 an arm of an if-expression whose if-part is not a constant
2687 expression */
2688 const char *g = "string";
2689 ccp = &g + (g ? g-g : 0);
2690 /* HPUX 7.0 cc rejects these. */
2691 ++ccp;
2692 p = (char**) ccp;
2693 ccp = (char const *const *) p;
2694 { /* SCO 3.2v4 cc rejects this. */
2695 char *t;
2696 char const *s = 0 ? (char *) 0 : (char const *) 0;
2698 *t++ = 0;
2700 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2701 int x[] = {25, 17};
2702 const int *foo = &x[0];
2703 ++foo;
2705 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2706 typedef const int *iptr;
2707 iptr p = 0;
2708 ++p;
2710 { /* AIX XL C 1.02.0.0 rejects this saying
2711 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2712 struct s { int j; const int *ap[3]; };
2713 struct s *b; b->j = 5;
2715 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2716 const int foo = 10;
2718 #endif
2721 return 0;
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_c_const=yes
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 ac_cv_c_const=no
2742 rm -f conftest.$ac_objext conftest.$ac_ext
2744 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2745 echo "${ECHO_T}$ac_cv_c_const" >&6
2746 if test $ac_cv_c_const = no; then
2748 cat >>confdefs.h <<\_ACEOF
2749 #define const
2750 _ACEOF
2754 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2755 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2756 if test "${ac_cv_header_time+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 #include "confdefs.h"
2762 #include <sys/types.h>
2763 #include <sys/time.h>
2764 #include <time.h>
2766 #ifdef F77_DUMMY_MAIN
2767 # ifdef __cplusplus
2768 extern "C"
2769 # endif
2770 int F77_DUMMY_MAIN() { return 1; }
2771 #endif
2773 main ()
2775 if ((struct tm *) 0)
2776 return 0;
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_header_time=yes
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 ac_cv_header_time=no
2799 rm -f conftest.$ac_objext conftest.$ac_ext
2801 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2802 echo "${ECHO_T}$ac_cv_header_time" >&6
2803 if test $ac_cv_header_time = yes; then
2805 cat >>confdefs.h <<\_ACEOF
2806 #define TIME_WITH_SYS_TIME 1
2807 _ACEOF
2812 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
2813 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2814 if test "${ac_cv_type_signal+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 #include "confdefs.h"
2820 #include <sys/types.h>
2821 #include <signal.h>
2822 #ifdef signal
2823 # undef signal
2824 #endif
2825 #ifdef __cplusplus
2826 extern "C" void (*signal (int, void (*)(int)))(int);
2827 #else
2828 void (*signal ()) ();
2829 #endif
2831 #ifdef F77_DUMMY_MAIN
2832 # ifdef __cplusplus
2833 extern "C"
2834 # endif
2835 int F77_DUMMY_MAIN() { return 1; }
2836 #endif
2838 main ()
2840 int i;
2842 return 0;
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2847 (eval $ac_compile) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_type_signal=void
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2861 ac_cv_type_signal=int
2863 rm -f conftest.$ac_objext conftest.$ac_ext
2865 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
2866 echo "${ECHO_T}$ac_cv_type_signal" >&6
2868 cat >>confdefs.h <<_ACEOF
2869 #define RETSIGTYPE $ac_cv_type_signal
2870 _ACEOF
2874 for ac_func in vprintf
2876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2877 echo "$as_me:$LINENO: checking for $ac_func" >&5
2878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2879 if eval "test \"\${$as_ac_var+set}\" = set"; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2884 #include "confdefs.h"
2885 /* System header to define __stub macros and hopefully few prototypes,
2886 which can conflict with char $ac_func (); below. */
2887 #include <assert.h>
2888 /* Override any gcc2 internal prototype to avoid an error. */
2889 #ifdef __cplusplus
2890 extern "C"
2891 #endif
2892 /* We use char because int might match the return type of a gcc2
2893 builtin and then its argument prototype would still apply. */
2894 char $ac_func ();
2895 char (*f) ();
2897 #ifdef F77_DUMMY_MAIN
2898 # ifdef __cplusplus
2899 extern "C"
2900 # endif
2901 int F77_DUMMY_MAIN() { return 1; }
2902 #endif
2904 main ()
2906 /* The GNU C library defines this for functions which it implements
2907 to always fail with ENOSYS. Some functions are actually named
2908 something starting with __ and the normal name is an alias. */
2909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2910 choke me
2911 #else
2912 f = $ac_func;
2913 #endif
2916 return 0;
2918 _ACEOF
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921 (eval $ac_link) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -s conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 eval "$as_ac_var=yes"
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2935 eval "$as_ac_var=no"
2937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2941 if test `eval echo '${'$as_ac_var'}'` = yes; then
2942 cat >>confdefs.h <<_ACEOF
2943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2944 _ACEOF
2946 echo "$as_me:$LINENO: checking for _doprnt" >&5
2947 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
2948 if test "${ac_cv_func__doprnt+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2954 /* System header to define __stub macros and hopefully few prototypes,
2955 which can conflict with char _doprnt (); below. */
2956 #include <assert.h>
2957 /* Override any gcc2 internal prototype to avoid an error. */
2958 #ifdef __cplusplus
2959 extern "C"
2960 #endif
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char _doprnt ();
2964 char (*f) ();
2966 #ifdef F77_DUMMY_MAIN
2967 # ifdef __cplusplus
2968 extern "C"
2969 # endif
2970 int F77_DUMMY_MAIN() { return 1; }
2971 #endif
2973 main ()
2975 /* The GNU C library defines this for functions which it implements
2976 to always fail with ENOSYS. Some functions are actually named
2977 something starting with __ and the normal name is an alias. */
2978 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2979 choke me
2980 #else
2981 f = _doprnt;
2982 #endif
2985 return 0;
2987 _ACEOF
2988 rm -f conftest.$ac_objext conftest$ac_exeext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2990 (eval $ac_link) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest$ac_exeext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_func__doprnt=yes
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3004 ac_cv_func__doprnt=no
3006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3008 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3009 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3010 if test $ac_cv_func__doprnt = yes; then
3012 cat >>confdefs.h <<\_ACEOF
3013 #define HAVE_DOPRNT 1
3014 _ACEOF
3019 done
3026 for ac_func in select socket strcspn strerror
3028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3029 echo "$as_me:$LINENO: checking for $ac_func" >&5
3030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3031 if eval "test \"\${$as_ac_var+set}\" = set"; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line $LINENO "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char $ac_func (); below. */
3039 #include <assert.h>
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 #ifdef __cplusplus
3042 extern "C"
3043 #endif
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
3046 char $ac_func ();
3047 char (*f) ();
3049 #ifdef F77_DUMMY_MAIN
3050 # ifdef __cplusplus
3051 extern "C"
3052 # endif
3053 int F77_DUMMY_MAIN() { return 1; }
3054 #endif
3056 main ()
3058 /* The GNU C library defines this for functions which it implements
3059 to always fail with ENOSYS. Some functions are actually named
3060 something starting with __ and the normal name is an alias. */
3061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3062 choke me
3063 #else
3064 f = $ac_func;
3065 #endif
3068 return 0;
3070 _ACEOF
3071 rm -f conftest.$ac_objext conftest$ac_exeext
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3073 (eval $ac_link) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -s conftest$ac_exeext'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 eval "$as_ac_var=yes"
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 eval "$as_ac_var=no"
3089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3093 if test `eval echo '${'$as_ac_var'}'` = yes; then
3094 cat >>confdefs.h <<_ACEOF
3095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3096 _ACEOF
3099 done
3102 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3103 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3104 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 ac_check_lib_save_LIBS=$LIBS
3108 LIBS="-lnsl $LIBS"
3109 cat >conftest.$ac_ext <<_ACEOF
3110 #line $LINENO "configure"
3111 #include "confdefs.h"
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 #ifdef __cplusplus
3115 extern "C"
3116 #endif
3117 /* We use char because int might match the return type of a gcc2
3118 builtin and then its argument prototype would still apply. */
3119 char gethostbyname ();
3120 #ifdef F77_DUMMY_MAIN
3121 # ifdef __cplusplus
3122 extern "C"
3123 # endif
3124 int F77_DUMMY_MAIN() { return 1; }
3125 #endif
3127 main ()
3129 gethostbyname ();
3131 return 0;
3133 _ACEOF
3134 rm -f conftest.$ac_objext conftest$ac_exeext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3136 (eval $ac_link) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -s conftest$ac_exeext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_cv_lib_nsl_gethostbyname=yes
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3150 ac_cv_lib_nsl_gethostbyname=no
3152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3153 LIBS=$ac_check_lib_save_LIBS
3155 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3156 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3157 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3158 cat >>confdefs.h <<_ACEOF
3159 #define HAVE_LIBNSL 1
3160 _ACEOF
3162 LIBS="-lnsl $LIBS"
3167 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3168 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3169 if test "${ac_cv_lib_socket_connect+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 ac_check_lib_save_LIBS=$LIBS
3173 LIBS="-lsocket $LIBS"
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 #include "confdefs.h"
3178 /* Override any gcc2 internal prototype to avoid an error. */
3179 #ifdef __cplusplus
3180 extern "C"
3181 #endif
3182 /* We use char because int might match the return type of a gcc2
3183 builtin and then its argument prototype would still apply. */
3184 char connect ();
3185 #ifdef F77_DUMMY_MAIN
3186 # ifdef __cplusplus
3187 extern "C"
3188 # endif
3189 int F77_DUMMY_MAIN() { return 1; }
3190 #endif
3192 main ()
3194 connect ();
3196 return 0;
3198 _ACEOF
3199 rm -f conftest.$ac_objext conftest$ac_exeext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3201 (eval $ac_link) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -s conftest$ac_exeext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 (eval $ac_try) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3211 ac_cv_lib_socket_connect=yes
3212 else
3213 echo "$as_me: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 ac_cv_lib_socket_connect=no
3217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3218 LIBS=$ac_check_lib_save_LIBS
3220 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3221 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3222 if test $ac_cv_lib_socket_connect = yes; then
3223 cat >>confdefs.h <<_ACEOF
3224 #define HAVE_LIBSOCKET 1
3225 _ACEOF
3227 LIBS="-lsocket $LIBS"
3232 # Extract the first word of "chkconfig", so it can be a program name with args.
3233 set dummy chkconfig; ac_word=$2
3234 echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_path_CHKCONFIG+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 case $CHKCONFIG in
3240 [\\/]* | ?:[\\/]*)
3241 ac_cv_path_CHKCONFIG="$CHKCONFIG" # Let the user override the test with a path.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH:/sbin:/usr/sbin:/usr/local/sbin
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_path_CHKCONFIG="$as_dir/$ac_word$ac_exec_ext"
3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3255 done
3256 done
3259 esac
3261 CHKCONFIG=$ac_cv_path_CHKCONFIG
3263 if test -n "$CHKCONFIG"; then
3264 echo "$as_me:$LINENO: result: $CHKCONFIG" >&5
3265 echo "${ECHO_T}$CHKCONFIG" >&6
3266 else
3267 echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3271 # Extract the first word of "sed", so it can be a program name with args.
3272 set dummy sed; ac_word=$2
3273 echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_path_SED+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 case $SED in
3279 [\\/]* | ?:[\\/]*)
3280 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3298 esac
3300 SED=$ac_cv_path_SED
3302 if test -n "$SED"; then
3303 echo "$as_me:$LINENO: result: $SED" >&5
3304 echo "${ECHO_T}$SED" >&6
3305 else
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3310 ac_config_files="$ac_config_files Makefile"
3311 cat >confcache <<\_ACEOF
3312 # This file is a shell script that caches the results of configure
3313 # tests run on this system so they can be shared between configure
3314 # scripts and configure runs, see configure's option --config-cache.
3315 # It is not useful on other systems. If it contains results you don't
3316 # want to keep, you may remove or edit it.
3318 # config.status only pays attention to the cache file if you give it
3319 # the --recheck option to rerun configure.
3321 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3323 # following values.
3325 _ACEOF
3327 # The following way of writing the cache mishandles newlines in values,
3328 # but we know of no workaround that is simple, portable, and efficient.
3329 # So, don't put newlines in cache variables' values.
3330 # Ultrix sh set writes to stderr and can't be redirected directly,
3331 # and sets the high bit in the cache file unless we assign to the vars.
3333 (set) 2>&1 |
3334 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3335 *ac_space=\ *)
3336 # `set' does not quote correctly, so add quotes (double-quote
3337 # substitution turns \\\\ into \\, and sed turns \\ into \).
3338 sed -n \
3339 "s/'/'\\\\''/g;
3340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3343 # `set' quotes correctly as required by POSIX, so do not add quotes.
3344 sed -n \
3345 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3347 esac;
3349 sed '
3350 t clear
3351 : clear
3352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3353 t end
3354 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3355 : end' >>confcache
3356 if cmp -s $cache_file confcache; then :; else
3357 if test -w $cache_file; then
3358 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3359 cat confcache >$cache_file
3360 else
3361 echo "not updating unwritable cache $cache_file"
3364 rm -f confcache
3366 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3367 # Let make expand exec_prefix.
3368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3370 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3371 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3372 # trailing colons and then remove the whole line if VPATH becomes empty
3373 # (actually we leave an empty line to preserve line numbers).
3374 if test "x$srcdir" = x.; then
3375 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3376 s/:*\$(srcdir):*/:/;
3377 s/:*\${srcdir}:*/:/;
3378 s/:*@srcdir@:*/:/;
3379 s/^\([^=]*=[ ]*\):*/\1/;
3380 s/:*$//;
3381 s/^[^=]*=[ ]*$//;
3385 # Transform confdefs.h into DEFS.
3386 # Protect against shell expansion while executing Makefile rules.
3387 # Protect against Makefile macro expansion.
3389 # If the first sed substitution is executed (which looks for macros that
3390 # take arguments), then we branch to the quote section. Otherwise,
3391 # look for a macro that doesn't take arguments.
3392 cat >confdef2opt.sed <<\_ACEOF
3393 t clear
3394 : clear
3395 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3396 t quote
3397 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3398 t quote
3400 : quote
3401 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3402 s,\[,\\&,g
3403 s,\],\\&,g
3404 s,\$,$$,g
3406 _ACEOF
3407 # We use echo to avoid assuming a particular line-breaking character.
3408 # The extra dot is to prevent the shell from consuming trailing
3409 # line-breaks from the sub-command output. A line-break within
3410 # single-quotes doesn't work because, if this script is created in a
3411 # platform that uses two characters for line-breaks (e.g., DOS), tr
3412 # would break.
3413 ac_LF_and_DOT=`echo; echo .`
3414 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3415 rm -f confdef2opt.sed
3419 : ${CONFIG_STATUS=./config.status}
3420 ac_clean_files_save=$ac_clean_files
3421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3422 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3423 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3424 cat >$CONFIG_STATUS <<_ACEOF
3425 #! $SHELL
3426 # Generated by $as_me.
3427 # Run this file to recreate the current configuration.
3428 # Compiler output produced by configure, useful for debugging
3429 # configure, is in config.log if it exists.
3431 debug=false
3432 SHELL=\${CONFIG_SHELL-$SHELL}
3433 _ACEOF
3435 cat >>$CONFIG_STATUS <<\_ACEOF
3437 ## --------------------- ##
3438 ## M4sh Initialization. ##
3439 ## --------------------- ##
3441 # Be Bourne compatible
3442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3443 emulate sh
3444 NULLCMD=:
3445 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3446 set -o posix
3449 # NLS nuisances.
3450 # Support unset when possible.
3451 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3452 as_unset=unset
3453 else
3454 as_unset=false
3457 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3458 { $as_unset LANG || test "${LANG+set}" != set; } ||
3459 { LANG=C; export LANG; }
3460 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3461 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3462 { LC_ALL=C; export LC_ALL; }
3463 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3464 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3465 { LC_TIME=C; export LC_TIME; }
3466 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3467 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3468 { LC_CTYPE=C; export LC_CTYPE; }
3469 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3470 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3471 { LANGUAGE=C; export LANGUAGE; }
3472 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3473 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3474 { LC_COLLATE=C; export LC_COLLATE; }
3475 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3476 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3477 { LC_NUMERIC=C; export LC_NUMERIC; }
3478 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3479 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3480 { LC_MESSAGES=C; export LC_MESSAGES; }
3483 # Name of the executable.
3484 as_me=`(basename "$0") 2>/dev/null ||
3485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3486 X"$0" : 'X\(//\)$' \| \
3487 X"$0" : 'X\(/\)$' \| \
3488 . : '\(.\)' 2>/dev/null ||
3489 echo X/"$0" |
3490 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3491 /^X\/\(\/\/\)$/{ s//\1/; q; }
3492 /^X\/\(\/\).*/{ s//\1/; q; }
3493 s/.*/./; q'`
3495 # PATH needs CR, and LINENO needs CR and PATH.
3496 # Avoid depending upon Character Ranges.
3497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3500 as_cr_digits='0123456789'
3501 as_cr_alnum=$as_cr_Letters$as_cr_digits
3503 # The user is always right.
3504 if test "${PATH_SEPARATOR+set}" != set; then
3505 echo "#! /bin/sh" >conftest.sh
3506 echo "exit 0" >>conftest.sh
3507 chmod +x conftest.sh
3508 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3509 PATH_SEPARATOR=';'
3510 else
3511 PATH_SEPARATOR=:
3513 rm -f conftest.sh
3517 as_lineno_1=$LINENO
3518 as_lineno_2=$LINENO
3519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3520 test "x$as_lineno_1" != "x$as_lineno_2" &&
3521 test "x$as_lineno_3" = "x$as_lineno_2" || {
3522 # Find who we are. Look in the path if we contain no path at all
3523 # relative or not.
3524 case $0 in
3525 *[\\/]* ) as_myself=$0 ;;
3526 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3532 done
3535 esac
3536 # We did not find ourselves, most probably we were run as `sh COMMAND'
3537 # in which case we are not to be found in the path.
3538 if test "x$as_myself" = x; then
3539 as_myself=$0
3541 if test ! -f "$as_myself"; then
3542 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3543 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3544 { (exit 1); exit 1; }; }
3546 case $CONFIG_SHELL in
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for as_base in sh bash ksh sh5; do
3554 case $as_dir in
3556 if ("$as_dir/$as_base" -c '
3557 as_lineno_1=$LINENO
3558 as_lineno_2=$LINENO
3559 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3560 test "x$as_lineno_1" != "x$as_lineno_2" &&
3561 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3562 CONFIG_SHELL=$as_dir/$as_base
3563 export CONFIG_SHELL
3564 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3565 fi;;
3566 esac
3567 done
3568 done
3570 esac
3572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3573 # uniformly replaced by the line number. The first 'sed' inserts a
3574 # line-number line before each line; the second 'sed' does the real
3575 # work. The second script uses 'N' to pair each line-number line
3576 # with the numbered line, and appends trailing '-' during
3577 # substitution so that $LINENO is not a special case at line end.
3578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3579 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3580 sed '=' <$as_myself |
3581 sed '
3583 s,$,-,
3584 : loop
3585 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3586 t loop
3587 s,-$,,
3588 s,^['$as_cr_digits']*\n,,
3589 ' >$as_me.lineno &&
3590 chmod +x $as_me.lineno ||
3591 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3592 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3593 { (exit 1); exit 1; }; }
3595 # Don't try to exec as it changes $[0], causing all sort of problems
3596 # (the dirname of $[0] is not the place where we might find the
3597 # original and so on. Autoconf is especially sensible to this).
3598 . ./$as_me.lineno
3599 # Exit status is that of the last command.
3600 exit
3604 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3605 *c*,-n*) ECHO_N= ECHO_C='
3606 ' ECHO_T=' ' ;;
3607 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3608 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3609 esac
3611 if expr a : '\(a\)' >/dev/null 2>&1; then
3612 as_expr=expr
3613 else
3614 as_expr=false
3617 rm -f conf$$ conf$$.exe conf$$.file
3618 echo >conf$$.file
3619 if ln -s conf$$.file conf$$ 2>/dev/null; then
3620 # We could just check for DJGPP; but this test a) works b) is more generic
3621 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3622 if test -f conf$$.exe; then
3623 # Don't use ln at all; we don't have any links
3624 as_ln_s='cp -p'
3625 else
3626 as_ln_s='ln -s'
3628 elif ln conf$$.file conf$$ 2>/dev/null; then
3629 as_ln_s=ln
3630 else
3631 as_ln_s='cp -p'
3633 rm -f conf$$ conf$$.exe conf$$.file
3635 as_executable_p="test -f"
3637 # Sed expression to map a string onto a valid CPP name.
3638 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3640 # Sed expression to map a string onto a valid variable name.
3641 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3644 # IFS
3645 # We need space, tab and new line, in precisely that order.
3646 as_nl='
3648 IFS=" $as_nl"
3650 # CDPATH.
3651 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3653 exec 6>&1
3655 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3656 # report actual input values of CONFIG_FILES etc. instead of their
3657 # values after options handling. Logging --version etc. is OK.
3658 exec 5>>config.log
3660 echo
3661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3662 ## Running $as_me. ##
3663 _ASBOX
3664 } >&5
3665 cat >&5 <<_CSEOF
3667 This file was extended by $as_me, which was
3668 generated by GNU Autoconf 2.53. Invocation command line was
3670 CONFIG_FILES = $CONFIG_FILES
3671 CONFIG_HEADERS = $CONFIG_HEADERS
3672 CONFIG_LINKS = $CONFIG_LINKS
3673 CONFIG_COMMANDS = $CONFIG_COMMANDS
3674 $ $0 $@
3676 _CSEOF
3677 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3678 echo >&5
3679 _ACEOF
3681 # Files that config.status was made for.
3682 if test -n "$ac_config_files"; then
3683 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3686 if test -n "$ac_config_headers"; then
3687 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3690 if test -n "$ac_config_links"; then
3691 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3694 if test -n "$ac_config_commands"; then
3695 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3698 cat >>$CONFIG_STATUS <<\_ACEOF
3700 ac_cs_usage="\
3701 \`$as_me' instantiates files from templates according to the
3702 current configuration.
3704 Usage: $0 [OPTIONS] [FILE]...
3706 -h, --help print this help, then exit
3707 -V, --version print version number, then exit
3708 -d, --debug don't remove temporary files
3709 --recheck update $as_me by reconfiguring in the same conditions
3710 --file=FILE[:TEMPLATE]
3711 instantiate the configuration file FILE
3713 Configuration files:
3714 $config_files
3716 Report bugs to <bug-autoconf@gnu.org>."
3717 _ACEOF
3719 cat >>$CONFIG_STATUS <<_ACEOF
3720 ac_cs_version="\\
3721 config.status
3722 configured by $0, generated by GNU Autoconf 2.53,
3723 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3725 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3726 Free Software Foundation, Inc.
3727 This config.status script is free software; the Free Software Foundation
3728 gives unlimited permission to copy, distribute and modify it."
3729 srcdir=$srcdir
3730 INSTALL="$INSTALL"
3731 _ACEOF
3733 cat >>$CONFIG_STATUS <<\_ACEOF
3734 # If no file are specified by the user, then we need to provide default
3735 # value. By we need to know if files were specified by the user.
3736 ac_need_defaults=:
3737 while test $# != 0
3739 case $1 in
3740 --*=*)
3741 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3742 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3743 shift
3744 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3745 shift
3747 -*);;
3748 *) # This is not an option, so the user has probably given explicit
3749 # arguments.
3750 ac_need_defaults=false;;
3751 esac
3753 case $1 in
3754 # Handling of the options.
3755 _ACEOF
3756 cat >>$CONFIG_STATUS <<_ACEOF
3757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3758 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3759 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3760 _ACEOF
3761 cat >>$CONFIG_STATUS <<\_ACEOF
3762 --version | --vers* | -V )
3763 echo "$ac_cs_version"; exit 0 ;;
3764 --he | --h)
3765 # Conflict between --help and --header
3766 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3767 Try \`$0 --help' for more information." >&5
3768 echo "$as_me: error: ambiguous option: $1
3769 Try \`$0 --help' for more information." >&2;}
3770 { (exit 1); exit 1; }; };;
3771 --help | --hel | -h )
3772 echo "$ac_cs_usage"; exit 0 ;;
3773 --debug | --d* | -d )
3774 debug=: ;;
3775 --file | --fil | --fi | --f )
3776 shift
3777 CONFIG_FILES="$CONFIG_FILES $1"
3778 ac_need_defaults=false;;
3779 --header | --heade | --head | --hea )
3780 shift
3781 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3782 ac_need_defaults=false;;
3784 # This is an error.
3785 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3786 Try \`$0 --help' for more information." >&5
3787 echo "$as_me: error: unrecognized option: $1
3788 Try \`$0 --help' for more information." >&2;}
3789 { (exit 1); exit 1; }; } ;;
3791 *) ac_config_targets="$ac_config_targets $1" ;;
3793 esac
3794 shift
3795 done
3797 _ACEOF
3803 cat >>$CONFIG_STATUS <<\_ACEOF
3804 for ac_config_target in $ac_config_targets
3806 case "$ac_config_target" in
3807 # Handling of arguments.
3808 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3809 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3810 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3811 { (exit 1); exit 1; }; };;
3812 esac
3813 done
3815 # If the user did not use the arguments to specify the items to instantiate,
3816 # then the envvar interface is used. Set only those that are not.
3817 # We use the long form for the default assignment because of an extremely
3818 # bizarre bug on SunOS 4.1.3.
3819 if $ac_need_defaults; then
3820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3823 # Create a temporary directory, and hook for its removal unless debugging.
3824 $debug ||
3826 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3827 trap '{ (exit 1); exit 1; }' 1 2 13 15
3830 # Create a (secure) tmp directory for tmp files.
3831 : ${TMPDIR=/tmp}
3833 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3834 test -n "$tmp" && test -d "$tmp"
3835 } ||
3837 tmp=$TMPDIR/cs$$-$RANDOM
3838 (umask 077 && mkdir $tmp)
3839 } ||
3841 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3842 { (exit 1); exit 1; }
3845 _ACEOF
3847 cat >>$CONFIG_STATUS <<_ACEOF
3850 # CONFIG_FILES section.
3853 # No need to generate the scripts if there are no CONFIG_FILES.
3854 # This happens for instance when ./config.status config.h
3855 if test -n "\$CONFIG_FILES"; then
3856 # Protect against being on the right side of a sed subst in config.status.
3857 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3858 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3859 s,@SHELL@,$SHELL,;t t
3860 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3861 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3862 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3863 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3864 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3865 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3866 s,@exec_prefix@,$exec_prefix,;t t
3867 s,@prefix@,$prefix,;t t
3868 s,@program_transform_name@,$program_transform_name,;t t
3869 s,@bindir@,$bindir,;t t
3870 s,@sbindir@,$sbindir,;t t
3871 s,@libexecdir@,$libexecdir,;t t
3872 s,@datadir@,$datadir,;t t
3873 s,@sysconfdir@,$sysconfdir,;t t
3874 s,@sharedstatedir@,$sharedstatedir,;t t
3875 s,@localstatedir@,$localstatedir,;t t
3876 s,@libdir@,$libdir,;t t
3877 s,@includedir@,$includedir,;t t
3878 s,@oldincludedir@,$oldincludedir,;t t
3879 s,@infodir@,$infodir,;t t
3880 s,@mandir@,$mandir,;t t
3881 s,@build_alias@,$build_alias,;t t
3882 s,@host_alias@,$host_alias,;t t
3883 s,@target_alias@,$target_alias,;t t
3884 s,@DEFS@,$DEFS,;t t
3885 s,@ECHO_C@,$ECHO_C,;t t
3886 s,@ECHO_N@,$ECHO_N,;t t
3887 s,@ECHO_T@,$ECHO_T,;t t
3888 s,@LIBS@,$LIBS,;t t
3889 s,@CC@,$CC,;t t
3890 s,@CFLAGS@,$CFLAGS,;t t
3891 s,@LDFLAGS@,$LDFLAGS,;t t
3892 s,@CPPFLAGS@,$CPPFLAGS,;t t
3893 s,@ac_ct_CC@,$ac_ct_CC,;t t
3894 s,@EXEEXT@,$EXEEXT,;t t
3895 s,@OBJEXT@,$OBJEXT,;t t
3896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3897 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3898 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3899 s,@CPP@,$CPP,;t t
3900 s,@CHKCONFIG@,$CHKCONFIG,;t t
3901 s,@SED@,$SED,;t t
3902 CEOF
3904 _ACEOF
3906 cat >>$CONFIG_STATUS <<\_ACEOF
3907 # Split the substitutions into bite-sized pieces for seds with
3908 # small command number limits, like on Digital OSF/1 and HP-UX.
3909 ac_max_sed_lines=48
3910 ac_sed_frag=1 # Number of current file.
3911 ac_beg=1 # First line for current file.
3912 ac_end=$ac_max_sed_lines # Line after last line for current file.
3913 ac_more_lines=:
3914 ac_sed_cmds=
3915 while $ac_more_lines; do
3916 if test $ac_beg -gt 1; then
3917 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3918 else
3919 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3921 if test ! -s $tmp/subs.frag; then
3922 ac_more_lines=false
3923 else
3924 # The purpose of the label and of the branching condition is to
3925 # speed up the sed processing (if there are no `@' at all, there
3926 # is no need to browse any of the substitutions).
3927 # These are the two extra sed commands mentioned above.
3928 (echo ':t
3929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3930 if test -z "$ac_sed_cmds"; then
3931 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3932 else
3933 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3935 ac_sed_frag=`expr $ac_sed_frag + 1`
3936 ac_beg=$ac_end
3937 ac_end=`expr $ac_end + $ac_max_sed_lines`
3939 done
3940 if test -z "$ac_sed_cmds"; then
3941 ac_sed_cmds=cat
3943 fi # test -n "$CONFIG_FILES"
3945 _ACEOF
3946 cat >>$CONFIG_STATUS <<\_ACEOF
3947 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3949 case $ac_file in
3950 - | *:- | *:-:* ) # input from stdin
3951 cat >$tmp/stdin
3952 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3954 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3956 * ) ac_file_in=$ac_file.in ;;
3957 esac
3959 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3962 X"$ac_file" : 'X\(//\)[^/]' \| \
3963 X"$ac_file" : 'X\(//\)$' \| \
3964 X"$ac_file" : 'X\(/\)' \| \
3965 . : '\(.\)' 2>/dev/null ||
3966 echo X"$ac_file" |
3967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3969 /^X\(\/\/\)$/{ s//\1/; q; }
3970 /^X\(\/\).*/{ s//\1/; q; }
3971 s/.*/./; q'`
3972 { case "$ac_dir" in
3973 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3974 *) as_incr_dir=.;;
3975 esac
3976 as_dummy="$ac_dir"
3977 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3978 case $as_mkdir_dir in
3979 # Skip DOS drivespec
3980 ?:) as_incr_dir=$as_mkdir_dir ;;
3982 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3983 test -d "$as_incr_dir" ||
3984 mkdir "$as_incr_dir" ||
3985 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
3986 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
3987 { (exit 1); exit 1; }; }
3989 esac
3990 done; }
3992 ac_builddir=.
3994 if test "$ac_dir" != .; then
3995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3996 # A "../" for each directory in $ac_dir_suffix.
3997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3998 else
3999 ac_dir_suffix= ac_top_builddir=
4002 case $srcdir in
4003 .) # No --srcdir option. We are building in place.
4004 ac_srcdir=.
4005 if test -z "$ac_top_builddir"; then
4006 ac_top_srcdir=.
4007 else
4008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4009 fi ;;
4010 [\\/]* | ?:[\\/]* ) # Absolute path.
4011 ac_srcdir=$srcdir$ac_dir_suffix;
4012 ac_top_srcdir=$srcdir ;;
4013 *) # Relative path.
4014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4016 esac
4017 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4018 # absolute.
4019 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4020 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4021 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4022 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4025 case $INSTALL in
4026 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4027 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4028 esac
4030 if test x"$ac_file" != x-; then
4031 { echo "$as_me:$LINENO: creating $ac_file" >&5
4032 echo "$as_me: creating $ac_file" >&6;}
4033 rm -f "$ac_file"
4035 # Let's still pretend it is `configure' which instantiates (i.e., don't
4036 # use $as_me), people would be surprised to read:
4037 # /* config.h. Generated by config.status. */
4038 if test x"$ac_file" = x-; then
4039 configure_input=
4040 else
4041 configure_input="$ac_file. "
4043 configure_input=$configure_input"Generated from `echo $ac_file_in |
4044 sed 's,.*/,,'` by configure."
4046 # First look for the input files in the build tree, otherwise in the
4047 # src tree.
4048 ac_file_inputs=`IFS=:
4049 for f in $ac_file_in; do
4050 case $f in
4051 -) echo $tmp/stdin ;;
4052 [\\/$]*)
4053 # Absolute (can't be DOS-style, as IFS=:)
4054 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4055 echo "$as_me: error: cannot find input file: $f" >&2;}
4056 { (exit 1); exit 1; }; }
4057 echo $f;;
4058 *) # Relative
4059 if test -f "$f"; then
4060 # Build tree
4061 echo $f
4062 elif test -f "$srcdir/$f"; then
4063 # Source tree
4064 echo $srcdir/$f
4065 else
4066 # /dev/null tree
4067 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4068 echo "$as_me: error: cannot find input file: $f" >&2;}
4069 { (exit 1); exit 1; }; }
4070 fi;;
4071 esac
4072 done` || { (exit 1); exit 1; }
4073 _ACEOF
4074 cat >>$CONFIG_STATUS <<_ACEOF
4075 sed "$ac_vpsub
4076 $extrasub
4077 _ACEOF
4078 cat >>$CONFIG_STATUS <<\_ACEOF
4080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4081 s,@configure_input@,$configure_input,;t t
4082 s,@srcdir@,$ac_srcdir,;t t
4083 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4084 s,@top_srcdir@,$ac_top_srcdir,;t t
4085 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4086 s,@builddir@,$ac_builddir,;t t
4087 s,@abs_builddir@,$ac_abs_builddir,;t t
4088 s,@top_builddir@,$ac_top_builddir,;t t
4089 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4090 s,@INSTALL@,$ac_INSTALL,;t t
4091 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4092 rm -f $tmp/stdin
4093 if test x"$ac_file" != x-; then
4094 mv $tmp/out $ac_file
4095 else
4096 cat $tmp/out
4097 rm -f $tmp/out
4100 done
4101 _ACEOF
4103 cat >>$CONFIG_STATUS <<\_ACEOF
4105 { (exit 0); exit 0; }
4106 _ACEOF
4107 chmod +x $CONFIG_STATUS
4108 ac_clean_files=$ac_clean_files_save
4111 # configure is writing to config.log, and then calls config.status.
4112 # config.status does its own redirection, appending to config.log.
4113 # Unfortunately, on DOS this fails, as config.log is still kept open
4114 # by configure, so config.status won't be able to write to it; its
4115 # output is simply discarded. So we exec the FD to /dev/null,
4116 # effectively closing config.log, so it can be properly (re)opened and
4117 # appended to by config.status. When coming back to configure, we
4118 # need to make the FD available again.
4119 if test "$no_create" != yes; then
4120 ac_cs_success=:
4121 exec 5>/dev/null
4122 $SHELL $CONFIG_STATUS || ac_cs_success=false
4123 exec 5>>config.log
4124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4125 # would make configure fail if this is the last instruction.
4126 $ac_cs_success || { (exit 1); exit 1; }