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