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