source: trunk/gsdl/src/gdbmset/configure@ 12844

Last change on this file since 12844 was 12844, checked in by mdewsnip, 18 years ago

Incremental building and dynamic GDBM updating code, many thanks to John Rowe and John Thompson at DL Consulting Ltd.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 193.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
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 -n "`(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 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="gdbmset.cpp"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_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 PACKAGE VERSION USE_FASTCGI CFLAGS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA LIBOBJS GDBM_LIBPATH GDBM_INCLUDE gsdlos LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CXX_set=${CXX+set}
769ac_env_CXX_value=$CXX
770ac_cv_env_CXX_set=${CXX+set}
771ac_cv_env_CXX_value=$CXX
772ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773ac_env_CXXFLAGS_value=$CXXFLAGS
774ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
780
781#
782# Report the --help message.
783#
784if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
787 cat <<_ACEOF
788\`configure' configures this package to adapt to many kinds of systems.
789
790Usage: $0 [OPTION]... [VAR=VALUE]...
791
792To assign environment variables (e.g., CC, CFLAGS...), specify them as
793VAR=VALUE. See below for descriptions of some of the useful variables.
794
795Defaults for the options are specified in brackets.
796
797Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807
808_ACEOF
809
810 cat <<_ACEOF
811Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
813 [$ac_default_prefix]
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 [PREFIX]
816
817By default, \`make install' will install all the files in
818\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820for instance \`--prefix=\$HOME'.
821
822For better control, use the options below.
823
824Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
837_ACEOF
838
839 cat <<\_ACEOF
840
841Program names:
842 --program-prefix=PREFIX prepend PREFIX to installed program names
843 --program-suffix=SUFFIX append SUFFIX to installed program names
844 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849
850 cat <<\_ACEOF
851
852Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-gdbm=dir Use local gdbm library and headers
856
857Some influential environment variables:
858 CC C compiler command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861 nonstandard directory <lib dir>
862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863 headers in a nonstandard directory <include dir>
864 CXX C++ compiler command
865 CXXFLAGS C++ compiler flags
866 CPP C preprocessor
867
868Use these variables to override the choices made by `configure' or to help
869it to find libraries and programs with nonstandard names/locations.
870
871_ACEOF
872fi
873
874if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
876 ac_popdir=`pwd`
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
879 ac_builddir=.
880
881if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885else
886 ac_dir_suffix= ac_top_builddir=
887fi
888
889case $srcdir in
890 .) # No --srcdir option. We are building in place.
891 ac_srcdir=.
892 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=.
894 else
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 fi ;;
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
900 *) # Relative path.
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903esac
904# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
905# absolute.
906ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
907ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
908ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
909ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
910
911 cd $ac_dir
912 # Check for guested configure; otherwise get Cygnus style configure.
913 if test -f $ac_srcdir/configure.gnu; then
914 echo
915 $SHELL $ac_srcdir/configure.gnu --help=recursive
916 elif test -f $ac_srcdir/configure; then
917 echo
918 $SHELL $ac_srcdir/configure --help=recursive
919 elif test -f $ac_srcdir/configure.ac ||
920 test -f $ac_srcdir/configure.in; then
921 echo
922 $ac_configure --help
923 else
924 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
925 fi
926 cd $ac_popdir
927 done
928fi
929
930test -n "$ac_init_help" && exit 0
931if $ac_init_version; then
932 cat <<\_ACEOF
933
934Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935Free Software Foundation, Inc.
936This configure script is free software; the Free Software Foundation
937gives unlimited permission to copy, distribute and modify it.
938_ACEOF
939 exit 0
940fi
941exec 5>config.log
942cat >&5 <<_ACEOF
943This file contains any messages produced by compilers while
944running configure, to aid debugging if configure makes a mistake.
945
946It was created by $as_me, which was
947generated by GNU Autoconf 2.57. Invocation command line was
948
949 $ $0 $@
950
951_ACEOF
952{
953cat <<_ASUNAME
954## --------- ##
955## Platform. ##
956## --------- ##
957
958hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959uname -m = `(uname -m) 2>/dev/null || echo unknown`
960uname -r = `(uname -r) 2>/dev/null || echo unknown`
961uname -s = `(uname -s) 2>/dev/null || echo unknown`
962uname -v = `(uname -v) 2>/dev/null || echo unknown`
963
964/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
966
967/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
974
975_ASUNAME
976
977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
978for as_dir in $PATH
979do
980 IFS=$as_save_IFS
981 test -z "$as_dir" && as_dir=.
982 echo "PATH: $as_dir"
983done
984
985} >&5
986
987cat >&5 <<_ACEOF
988
989
990## ----------- ##
991## Core tests. ##
992## ----------- ##
993
994_ACEOF
995
996
997# Keep a trace of the command line.
998# Strip out --no-create and --no-recursion so they do not pile up.
999# Strip out --silent because we don't want to record it for future runs.
1000# Also quote any args containing shell meta-characters.
1001# Make two passes to allow for proper duplicate-argument suppression.
1002ac_configure_args=
1003ac_configure_args0=
1004ac_configure_args1=
1005ac_sep=
1006ac_must_keep_next=false
1007for ac_pass in 1 2
1008do
1009 for ac_arg
1010 do
1011 case $ac_arg in
1012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 continue ;;
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 esac
1019 case $ac_pass in
1020 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1021 2)
1022 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023 if test $ac_must_keep_next = true; then
1024 ac_must_keep_next=false # Got value, back to normal.
1025 else
1026 case $ac_arg in
1027 *=* | --config-cache | -C | -disable-* | --disable-* \
1028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030 | -with-* | --with-* | -without-* | --without-* | --x)
1031 case "$ac_configure_args0 " in
1032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1033 esac
1034 ;;
1035 -* ) ac_must_keep_next=true ;;
1036 esac
1037 fi
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1040 ac_sep=" "
1041 ;;
1042 esac
1043 done
1044done
1045$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1047
1048# When interrupted or exit'd, cleanup temporary files, and complete
1049# config.log. We remove comments because anyway the quotes in there
1050# would cause problems or look ugly.
1051# WARNING: Be sure not to use single quotes in there, as some shells,
1052# such as our DU 5.0 friend, will then `close' the trap.
1053trap 'exit_status=$?
1054 # Save into config.log some information that might help in debugging.
1055 {
1056 echo
1057
1058 cat <<\_ASBOX
1059## ---------------- ##
1060## Cache variables. ##
1061## ---------------- ##
1062_ASBOX
1063 echo
1064 # The following way of writing the cache mishandles newlines in values,
1065{
1066 (set) 2>&1 |
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 *ac_space=\ *)
1069 sed -n \
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072 ;;
1073 *)
1074 sed -n \
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 ;;
1077 esac;
1078}
1079 echo
1080
1081 cat <<\_ASBOX
1082## ----------------- ##
1083## Output variables. ##
1084## ----------------- ##
1085_ASBOX
1086 echo
1087 for ac_var in $ac_subst_vars
1088 do
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1091 done | sort
1092 echo
1093
1094 if test -n "$ac_subst_files"; then
1095 cat <<\_ASBOX
1096## ------------- ##
1097## Output files. ##
1098## ------------- ##
1099_ASBOX
1100 echo
1101 for ac_var in $ac_subst_files
1102 do
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1105 done | sort
1106 echo
1107 fi
1108
1109 if test -s confdefs.h; then
1110 cat <<\_ASBOX
1111## ----------- ##
1112## confdefs.h. ##
1113## ----------- ##
1114_ASBOX
1115 echo
1116 sed "/^$/d" confdefs.h | sort
1117 echo
1118 fi
1119 test "$ac_signal" != 0 &&
1120 echo "$as_me: caught signal $ac_signal"
1121 echo "$as_me: exit $exit_status"
1122 } >&5
1123 rm -f core core.* *.core &&
1124 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1125 exit $exit_status
1126 ' 0
1127for ac_signal in 1 2 13 15; do
1128 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1129done
1130ac_signal=0
1131
1132# confdefs.h avoids OS command line length limits that DEFS can exceed.
1133rm -rf conftest* confdefs.h
1134# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1135echo >confdefs.h
1136
1137# Predefined preprocessor variables.
1138
1139cat >>confdefs.h <<_ACEOF
1140#define PACKAGE_NAME "$PACKAGE_NAME"
1141_ACEOF
1142
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1146_ACEOF
1147
1148
1149cat >>confdefs.h <<_ACEOF
1150#define PACKAGE_VERSION "$PACKAGE_VERSION"
1151_ACEOF
1152
1153
1154cat >>confdefs.h <<_ACEOF
1155#define PACKAGE_STRING "$PACKAGE_STRING"
1156_ACEOF
1157
1158
1159cat >>confdefs.h <<_ACEOF
1160#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1161_ACEOF
1162
1163
1164# Let the site file select an alternate cache file if it wants to.
1165# Prefer explicitly selected file to automatically selected ones.
1166if test -z "$CONFIG_SITE"; then
1167 if test "x$prefix" != xNONE; then
1168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1169 else
1170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1171 fi
1172fi
1173for ac_site_file in $CONFIG_SITE; do
1174 if test -r "$ac_site_file"; then
1175 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176echo "$as_me: loading site script $ac_site_file" >&6;}
1177 sed 's/^/| /' "$ac_site_file" >&5
1178 . "$ac_site_file"
1179 fi
1180done
1181
1182if test -r "$cache_file"; then
1183 # Some versions of bash will fail to source /dev/null (special
1184 # files actually), so we avoid doing that.
1185 if test -f "$cache_file"; then
1186 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187echo "$as_me: loading cache $cache_file" >&6;}
1188 case $cache_file in
1189 [\\/]* | ?:[\\/]* ) . $cache_file;;
1190 *) . ./$cache_file;;
1191 esac
1192 fi
1193else
1194 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195echo "$as_me: creating cache $cache_file" >&6;}
1196 >$cache_file
1197fi
1198
1199# Check that the precious variables saved in the cache have kept the same
1200# value.
1201ac_cache_corrupted=false
1202for ac_var in `(set) 2>&1 |
1203 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205 eval ac_new_set=\$ac_env_${ac_var}_set
1206 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207 eval ac_new_val="\$ac_env_${ac_var}_value"
1208 case $ac_old_set,$ac_new_set in
1209 set,)
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1211echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1213 ,set)
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1215echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1217 ,);;
1218 *)
1219 if test "x$ac_old_val" != "x$ac_new_val"; then
1220 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1221echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1222 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1223echo "$as_me: former value: $ac_old_val" >&2;}
1224 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1225echo "$as_me: current value: $ac_new_val" >&2;}
1226 ac_cache_corrupted=:
1227 fi;;
1228 esac
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1231 case $ac_new_val in
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1235 esac
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1239 esac
1240 fi
1241done
1242if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1246echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247 { (exit 1); exit 1; }; }
1248fi
1249
1250ac_ext=c
1251ac_cpp='$CPP $CPPFLAGS'
1252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1254ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274 ac_config_headers="$ac_config_headers config.h"
1275
1276test "$program_prefix" != NONE &&
1277 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1278# Use a double $ so make ignores it.
1279test "$program_suffix" != NONE &&
1280 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1281# Double any \ or $. echo might interpret backslashes.
1282# By default was `s,x,x', remove it if useless.
1283cat <<\_ACEOF >conftest.sed
1284s/[\\$]/&&/g;s/;s,x,x,$//
1285_ACEOF
1286program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1287rm conftest.sed
1288
1289
1290PACKAGE=gsdl
1291VERSION=2.1
1292cat >>confdefs.h <<_ACEOF
1293#define PACKAGE "$PACKAGE"
1294_ACEOF
1295
1296cat >>confdefs.h <<_ACEOF
1297#define VERSION "$VERSION"
1298_ACEOF
1299
1300
1301
1302
1303USE_FASTCGI=0
1304if test USE_FASTCGI = 1; then
1305cat >>confdefs.h <<\_ACEOF
1306#define USE_FASTCGI 1
1307_ACEOF
1308
1309
1310fi
1311
1312
1313# Check whether --with-gdbm or --without-gdbm was given.
1314if test "${with_gdbm+set}" = set; then
1315 withval="$with_gdbm"
1316 gdbmdir=$withval
1317fi;
1318
1319LDFLAGS=
1320CFLAGS=-O2
1321
1322
1323ac_ext=c
1324ac_cpp='$CPP $CPPFLAGS'
1325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1330set dummy ${ac_tool_prefix}gcc; ac_word=$2
1331echo "$as_me:$LINENO: checking for $ac_word" >&5
1332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1335else
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1338else
1339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340for as_dir in $PATH
1341do
1342 IFS=$as_save_IFS
1343 test -z "$as_dir" && as_dir=.
1344 for ac_exec_ext in '' $ac_executable_extensions; do
1345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 2
1349 fi
1350done
1351done
1352
1353fi
1354fi
1355CC=$ac_cv_prog_CC
1356if test -n "$CC"; then
1357 echo "$as_me:$LINENO: result: $CC" >&5
1358echo "${ECHO_T}$CC" >&6
1359else
1360 echo "$as_me:$LINENO: result: no" >&5
1361echo "${ECHO_T}no" >&6
1362fi
1363
1364fi
1365if test -z "$ac_cv_prog_CC"; then
1366 ac_ct_CC=$CC
1367 # Extract the first word of "gcc", so it can be a program name with args.
1368set dummy gcc; ac_word=$2
1369echo "$as_me:$LINENO: checking for $ac_word" >&5
1370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373else
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1376else
1377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378for as_dir in $PATH
1379do
1380 IFS=$as_save_IFS
1381 test -z "$as_dir" && as_dir=.
1382 for ac_exec_ext in '' $ac_executable_extensions; do
1383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1384 ac_cv_prog_ac_ct_CC="gcc"
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1386 break 2
1387 fi
1388done
1389done
1390
1391fi
1392fi
1393ac_ct_CC=$ac_cv_prog_ac_ct_CC
1394if test -n "$ac_ct_CC"; then
1395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1396echo "${ECHO_T}$ac_ct_CC" >&6
1397else
1398 echo "$as_me:$LINENO: result: no" >&5
1399echo "${ECHO_T}no" >&6
1400fi
1401
1402 CC=$ac_ct_CC
1403else
1404 CC="$ac_cv_prog_CC"
1405fi
1406
1407if test -z "$CC"; then
1408 if test -n "$ac_tool_prefix"; then
1409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1410set dummy ${ac_tool_prefix}cc; ac_word=$2
1411echo "$as_me:$LINENO: checking for $ac_word" >&5
1412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413if test "${ac_cv_prog_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1415else
1416 if test -n "$CC"; then
1417 ac_cv_prog_CC="$CC" # Let the user override the test.
1418else
1419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420for as_dir in $PATH
1421do
1422 IFS=$as_save_IFS
1423 test -z "$as_dir" && as_dir=.
1424 for ac_exec_ext in '' $ac_executable_extensions; do
1425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1426 ac_cv_prog_CC="${ac_tool_prefix}cc"
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 break 2
1429 fi
1430done
1431done
1432
1433fi
1434fi
1435CC=$ac_cv_prog_CC
1436if test -n "$CC"; then
1437 echo "$as_me:$LINENO: result: $CC" >&5
1438echo "${ECHO_T}$CC" >&6
1439else
1440 echo "$as_me:$LINENO: result: no" >&5
1441echo "${ECHO_T}no" >&6
1442fi
1443
1444fi
1445if test -z "$ac_cv_prog_CC"; then
1446 ac_ct_CC=$CC
1447 # Extract the first word of "cc", so it can be a program name with args.
1448set dummy cc; ac_word=$2
1449echo "$as_me:$LINENO: checking for $ac_word" >&5
1450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453else
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1456else
1457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458for as_dir in $PATH
1459do
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_ac_ct_CC="cc"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 break 2
1467 fi
1468done
1469done
1470
1471fi
1472fi
1473ac_ct_CC=$ac_cv_prog_ac_ct_CC
1474if test -n "$ac_ct_CC"; then
1475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1476echo "${ECHO_T}$ac_ct_CC" >&6
1477else
1478 echo "$as_me:$LINENO: result: no" >&5
1479echo "${ECHO_T}no" >&6
1480fi
1481
1482 CC=$ac_ct_CC
1483else
1484 CC="$ac_cv_prog_CC"
1485fi
1486
1487fi
1488if test -z "$CC"; then
1489 # Extract the first word of "cc", so it can be a program name with args.
1490set dummy cc; ac_word=$2
1491echo "$as_me:$LINENO: checking for $ac_word" >&5
1492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493if test "${ac_cv_prog_CC+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1495else
1496 if test -n "$CC"; then
1497 ac_cv_prog_CC="$CC" # Let the user override the test.
1498else
1499 ac_prog_rejected=no
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1508 ac_prog_rejected=yes
1509 continue
1510 fi
1511 ac_cv_prog_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
1514 fi
1515done
1516done
1517
1518if test $ac_prog_rejected = yes; then
1519 # We found a bogon in the path, so make sure we never use it.
1520 set dummy $ac_cv_prog_CC
1521 shift
1522 if test $# != 0; then
1523 # We chose a different compiler from the bogus one.
1524 # However, it has the same basename, so the bogon will be chosen
1525 # first if we set CC to just the basename; use the full file name.
1526 shift
1527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1528 fi
1529fi
1530fi
1531fi
1532CC=$ac_cv_prog_CC
1533if test -n "$CC"; then
1534 echo "$as_me:$LINENO: result: $CC" >&5
1535echo "${ECHO_T}$CC" >&6
1536else
1537 echo "$as_me:$LINENO: result: no" >&5
1538echo "${ECHO_T}no" >&6
1539fi
1540
1541fi
1542if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 for ac_prog in cl
1545 do
1546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1548echo "$as_me:$LINENO: checking for $ac_word" >&5
1549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555else
1556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557for as_dir in $PATH
1558do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1566 fi
1567done
1568done
1569
1570fi
1571fi
1572CC=$ac_cv_prog_CC
1573if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575echo "${ECHO_T}$CC" >&6
1576else
1577 echo "$as_me:$LINENO: result: no" >&5
1578echo "${ECHO_T}no" >&6
1579fi
1580
1581 test -n "$CC" && break
1582 done
1583fi
1584if test -z "$CC"; then
1585 ac_ct_CC=$CC
1586 for ac_prog in cl
1587do
1588 # Extract the first word of "$ac_prog", so it can be a program name with args.
1589set dummy $ac_prog; ac_word=$2
1590echo "$as_me:$LINENO: checking for $ac_word" >&5
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597else
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="$ac_prog"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1608 fi
1609done
1610done
1611
1612fi
1613fi
1614ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615if test -n "$ac_ct_CC"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617echo "${ECHO_T}$ac_ct_CC" >&6
1618else
1619 echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623 test -n "$ac_ct_CC" && break
1624done
1625
1626 CC=$ac_ct_CC
1627fi
1628
1629fi
1630
1631
1632test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1633See \`config.log' for more details." >&5
1634echo "$as_me: error: no acceptable C compiler found in \$PATH
1635See \`config.log' for more details." >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638# Provide some information about the compiler.
1639echo "$as_me:$LINENO:" \
1640 "checking for C compiler version" >&5
1641ac_compiler=`set X $ac_compile; echo $2`
1642{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1643 (eval $ac_compiler --version </dev/null >&5) 2>&5
1644 ac_status=$?
1645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1646 (exit $ac_status); }
1647{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1648 (eval $ac_compiler -v </dev/null >&5) 2>&5
1649 ac_status=$?
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); }
1652{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1653 (eval $ac_compiler -V </dev/null >&5) 2>&5
1654 ac_status=$?
1655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1656 (exit $ac_status); }
1657
1658cat >conftest.$ac_ext <<_ACEOF
1659#line $LINENO "configure"
1660/* confdefs.h. */
1661_ACEOF
1662cat confdefs.h >>conftest.$ac_ext
1663cat >>conftest.$ac_ext <<_ACEOF
1664/* end confdefs.h. */
1665
1666int
1667main ()
1668{
1669
1670 ;
1671 return 0;
1672}
1673_ACEOF
1674ac_clean_files_save=$ac_clean_files
1675ac_clean_files="$ac_clean_files a.out a.exe b.out"
1676# Try to create an executable without -o first, disregard a.out.
1677# It will help us diagnose broken compilers, and finding out an intuition
1678# of exeext.
1679echo "$as_me:$LINENO: checking for C compiler default output" >&5
1680echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1681ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1682if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1683 (eval $ac_link_default) 2>&5
1684 ac_status=$?
1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686 (exit $ac_status); }; then
1687 # Find the output, starting from the most likely. This scheme is
1688# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1689# resort.
1690
1691# Be careful to initialize this variable, since it used to be cached.
1692# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1693ac_cv_exeext=
1694# b.out is created by i960 compilers.
1695for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1696do
1697 test -f "$ac_file" || continue
1698 case $ac_file in
1699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1700 ;;
1701 conftest.$ac_ext )
1702 # This is the source file.
1703 ;;
1704 [ab].out )
1705 # We found the default executable, but exeext='' is most
1706 # certainly right.
1707 break;;
1708 *.* )
1709 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1710 # FIXME: I believe we export ac_cv_exeext for Libtool,
1711 # but it would be cool to find out if it's true. Does anybody
1712 # maintain Libtool? --akim.
1713 export ac_cv_exeext
1714 break;;
1715 * )
1716 break;;
1717 esac
1718done
1719else
1720 echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1724See \`config.log' for more details." >&5
1725echo "$as_me: error: C compiler cannot create executables
1726See \`config.log' for more details." >&2;}
1727 { (exit 77); exit 77; }; }
1728fi
1729
1730ac_exeext=$ac_cv_exeext
1731echo "$as_me:$LINENO: result: $ac_file" >&5
1732echo "${ECHO_T}$ac_file" >&6
1733
1734# Check the compiler produces executables we can run. If not, either
1735# the compiler is broken, or we cross compile.
1736echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1737echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1738# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1739# If not cross compiling, check that we can run a simple program.
1740if test "$cross_compiling" != yes; then
1741 if { ac_try='./$ac_file'
1742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1743 (eval $ac_try) 2>&5
1744 ac_status=$?
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }; }; then
1747 cross_compiling=no
1748 else
1749 if test "$cross_compiling" = maybe; then
1750 cross_compiling=yes
1751 else
1752 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1753If you meant to cross compile, use \`--host'.
1754See \`config.log' for more details." >&5
1755echo "$as_me: error: cannot run C compiled programs.
1756If you meant to cross compile, use \`--host'.
1757See \`config.log' for more details." >&2;}
1758 { (exit 1); exit 1; }; }
1759 fi
1760 fi
1761fi
1762echo "$as_me:$LINENO: result: yes" >&5
1763echo "${ECHO_T}yes" >&6
1764
1765rm -f a.out a.exe conftest$ac_cv_exeext b.out
1766ac_clean_files=$ac_clean_files_save
1767# Check the compiler produces executables we can run. If not, either
1768# the compiler is broken, or we cross compile.
1769echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1770echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1771echo "$as_me:$LINENO: result: $cross_compiling" >&5
1772echo "${ECHO_T}$cross_compiling" >&6
1773
1774echo "$as_me:$LINENO: checking for suffix of executables" >&5
1775echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1777 (eval $ac_link) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }; then
1781 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1782# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1783# work properly (i.e., refer to `conftest.exe'), while it won't with
1784# `rm'.
1785for ac_file in conftest.exe conftest conftest.*; do
1786 test -f "$ac_file" || continue
1787 case $ac_file in
1788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1789 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1790 export ac_cv_exeext
1791 break;;
1792 * ) break;;
1793 esac
1794done
1795else
1796 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1797See \`config.log' for more details." >&5
1798echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1799See \`config.log' for more details." >&2;}
1800 { (exit 1); exit 1; }; }
1801fi
1802
1803rm -f conftest$ac_cv_exeext
1804echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1805echo "${ECHO_T}$ac_cv_exeext" >&6
1806
1807rm -f conftest.$ac_ext
1808EXEEXT=$ac_cv_exeext
1809ac_exeext=$EXEEXT
1810echo "$as_me:$LINENO: checking for suffix of object files" >&5
1811echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1812if test "${ac_cv_objext+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 cat >conftest.$ac_ext <<_ACEOF
1816#line $LINENO "configure"
1817/* confdefs.h. */
1818_ACEOF
1819cat confdefs.h >>conftest.$ac_ext
1820cat >>conftest.$ac_ext <<_ACEOF
1821/* end confdefs.h. */
1822
1823int
1824main ()
1825{
1826
1827 ;
1828 return 0;
1829}
1830_ACEOF
1831rm -f conftest.o conftest.obj
1832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1833 (eval $ac_compile) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; then
1837 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1838 case $ac_file in
1839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1840 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1841 break;;
1842 esac
1843done
1844else
1845 echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1849See \`config.log' for more details." >&5
1850echo "$as_me: error: cannot compute suffix of object files: cannot compile
1851See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1853fi
1854
1855rm -f conftest.$ac_cv_objext conftest.$ac_ext
1856fi
1857echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1858echo "${ECHO_T}$ac_cv_objext" >&6
1859OBJEXT=$ac_cv_objext
1860ac_objext=$OBJEXT
1861echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1862echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1863if test "${ac_cv_c_compiler_gnu+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866 cat >conftest.$ac_ext <<_ACEOF
1867#line $LINENO "configure"
1868/* confdefs.h. */
1869_ACEOF
1870cat confdefs.h >>conftest.$ac_ext
1871cat >>conftest.$ac_ext <<_ACEOF
1872/* end confdefs.h. */
1873
1874int
1875main ()
1876{
1877#ifndef __GNUC__
1878 choke me
1879#endif
1880
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885rm -f conftest.$ac_objext
1886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887 (eval $ac_compile) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); } &&
1891 { ac_try='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 (eval $ac_try) 2>&5
1894 ac_status=$?
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1897 ac_compiler_gnu=yes
1898else
1899 echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902ac_compiler_gnu=no
1903fi
1904rm -f conftest.$ac_objext conftest.$ac_ext
1905ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906
1907fi
1908echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1909echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1910GCC=`test $ac_compiler_gnu = yes && echo yes`
1911ac_test_CFLAGS=${CFLAGS+set}
1912ac_save_CFLAGS=$CFLAGS
1913CFLAGS="-g"
1914echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1915echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1916if test "${ac_cv_prog_cc_g+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919 cat >conftest.$ac_ext <<_ACEOF
1920#line $LINENO "configure"
1921/* confdefs.h. */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h. */
1926
1927int
1928main ()
1929{
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935rm -f conftest.$ac_objext
1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 ac_cv_prog_cc_g=yes
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952ac_cv_prog_cc_g=no
1953fi
1954rm -f conftest.$ac_objext conftest.$ac_ext
1955fi
1956echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1957echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1958if test "$ac_test_CFLAGS" = set; then
1959 CFLAGS=$ac_save_CFLAGS
1960elif test $ac_cv_prog_cc_g = yes; then
1961 if test "$GCC" = yes; then
1962 CFLAGS="-g -O2"
1963 else
1964 CFLAGS="-g"
1965 fi
1966else
1967 if test "$GCC" = yes; then
1968 CFLAGS="-O2"
1969 else
1970 CFLAGS=
1971 fi
1972fi
1973echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1974echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1975if test "${ac_cv_prog_cc_stdc+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978 ac_cv_prog_cc_stdc=no
1979ac_save_CC=$CC
1980cat >conftest.$ac_ext <<_ACEOF
1981#line $LINENO "configure"
1982/* confdefs.h. */
1983_ACEOF
1984cat confdefs.h >>conftest.$ac_ext
1985cat >>conftest.$ac_ext <<_ACEOF
1986/* end confdefs.h. */
1987#include <stdarg.h>
1988#include <stdio.h>
1989#include <sys/types.h>
1990#include <sys/stat.h>
1991/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1992struct buf { int x; };
1993FILE * (*rcsopen) (struct buf *, struct stat *, int);
1994static char *e (p, i)
1995 char **p;
1996 int i;
1997{
1998 return p[i];
1999}
2000static char *f (char * (*g) (char **, int), char **p, ...)
2001{
2002 char *s;
2003 va_list v;
2004 va_start (v,p);
2005 s = g (p, va_arg (v,int));
2006 va_end (v);
2007 return s;
2008}
2009int test (int i, double x);
2010struct s1 {int (*f) (int a);};
2011struct s2 {int (*f) (double a);};
2012int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2013int argc;
2014char **argv;
2015int
2016main ()
2017{
2018return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023# Don't try gcc -ansi; that turns off useful extensions and
2024# breaks some systems' header files.
2025# AIX -qlanglvl=ansi
2026# Ultrix and OSF/1 -std1
2027# HP-UX 10.20 and later -Ae
2028# HP-UX older versions -Aa -D_HPUX_SOURCE
2029# SVR4 -Xc -D__EXTENSIONS__
2030for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2031do
2032 CC="$ac_save_CC $ac_arg"
2033 rm -f conftest.$ac_objext
2034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_cv_prog_cc_stdc=$ac_arg
2046break
2047else
2048 echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051fi
2052rm -f conftest.$ac_objext
2053done
2054rm -f conftest.$ac_ext conftest.$ac_objext
2055CC=$ac_save_CC
2056
2057fi
2058
2059case "x$ac_cv_prog_cc_stdc" in
2060 x|xno)
2061 echo "$as_me:$LINENO: result: none needed" >&5
2062echo "${ECHO_T}none needed" >&6 ;;
2063 *)
2064 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2065echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2066 CC="$CC $ac_cv_prog_cc_stdc" ;;
2067esac
2068
2069# Some people use a C++ compiler to compile C. Since we use `exit',
2070# in C++ we need to declare it. In case someone uses the same compiler
2071# for both compiling C and C++ we need to have the C++ compiler decide
2072# the declaration of exit, since it's the most demanding environment.
2073cat >conftest.$ac_ext <<_ACEOF
2074#ifndef __cplusplus
2075 choke me
2076#endif
2077_ACEOF
2078rm -f conftest.$ac_objext
2079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 for ac_declaration in \
2091 ''\
2092 '#include <stdlib.h>' \
2093 'extern "C" void std::exit (int) throw (); using std::exit;' \
2094 'extern "C" void std::exit (int); using std::exit;' \
2095 'extern "C" void exit (int) throw ();' \
2096 'extern "C" void exit (int);' \
2097 'void exit (int);'
2098do
2099 cat >conftest.$ac_ext <<_ACEOF
2100#line $LINENO "configure"
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106#include <stdlib.h>
2107$ac_declaration
2108int
2109main ()
2110{
2111exit (42);
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116rm -f conftest.$ac_objext
2117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); } &&
2122 { ac_try='test -s conftest.$ac_objext'
2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124 (eval $ac_try) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; }; then
2128 :
2129else
2130 echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133continue
2134fi
2135rm -f conftest.$ac_objext conftest.$ac_ext
2136 cat >conftest.$ac_ext <<_ACEOF
2137#line $LINENO "configure"
2138/* confdefs.h. */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
2142/* end confdefs.h. */
2143$ac_declaration
2144int
2145main ()
2146{
2147exit (42);
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152rm -f conftest.$ac_objext
2153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 break
2165else
2166 echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
2168
2169fi
2170rm -f conftest.$ac_objext conftest.$ac_ext
2171done
2172rm -f conftest*
2173if test -n "$ac_declaration"; then
2174 echo '#ifdef __cplusplus' >>confdefs.h
2175 echo $ac_declaration >>confdefs.h
2176 echo '#endif' >>confdefs.h
2177fi
2178
2179else
2180 echo "$as_me: failed program was:" >&5
2181sed 's/^/| /' conftest.$ac_ext >&5
2182
2183fi
2184rm -f conftest.$ac_objext conftest.$ac_ext
2185ac_ext=c
2186ac_cpp='$CPP $CPPFLAGS'
2187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191ac_ext=cc
2192ac_cpp='$CXXCPP $CPPFLAGS'
2193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2196if test -n "$ac_tool_prefix"; then
2197 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2198 do
2199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2201echo "$as_me:$LINENO: checking for $ac_word" >&5
2202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203if test "${ac_cv_prog_CXX+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206 if test -n "$CXX"; then
2207 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2208else
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2219 fi
2220done
2221done
2222
2223fi
2224fi
2225CXX=$ac_cv_prog_CXX
2226if test -n "$CXX"; then
2227 echo "$as_me:$LINENO: result: $CXX" >&5
2228echo "${ECHO_T}$CXX" >&6
2229else
2230 echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6
2232fi
2233
2234 test -n "$CXX" && break
2235 done
2236fi
2237if test -z "$CXX"; then
2238 ac_ct_CXX=$CXX
2239 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2240do
2241 # Extract the first word of "$ac_prog", so it can be a program name with args.
2242set dummy $ac_prog; ac_word=$2
2243echo "$as_me:$LINENO: checking for $ac_word" >&5
2244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248 if test -n "$ac_ct_CXX"; then
2249 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2250else
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_ac_ct_CXX="$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262done
2263done
2264
2265fi
2266fi
2267ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2268if test -n "$ac_ct_CXX"; then
2269 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2270echo "${ECHO_T}$ac_ct_CXX" >&6
2271else
2272 echo "$as_me:$LINENO: result: no" >&5
2273echo "${ECHO_T}no" >&6
2274fi
2275
2276 test -n "$ac_ct_CXX" && break
2277done
2278test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2279
2280 CXX=$ac_ct_CXX
2281fi
2282
2283
2284# Provide some information about the compiler.
2285echo "$as_me:$LINENO:" \
2286 "checking for C++ compiler version" >&5
2287ac_compiler=`set X $ac_compile; echo $2`
2288{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2289 (eval $ac_compiler --version </dev/null >&5) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2294 (eval $ac_compiler -v </dev/null >&5) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }
2298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2299 (eval $ac_compiler -V </dev/null >&5) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }
2303
2304echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2305echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2306if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309 cat >conftest.$ac_ext <<_ACEOF
2310#line $LINENO "configure"
2311/* confdefs.h. */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h. */
2316
2317int
2318main ()
2319{
2320#ifndef __GNUC__
2321 choke me
2322#endif
2323
2324 ;
2325 return 0;
2326}
2327_ACEOF
2328rm -f conftest.$ac_objext
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 ac_compiler_gnu=yes
2341else
2342 echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345ac_compiler_gnu=no
2346fi
2347rm -f conftest.$ac_objext conftest.$ac_ext
2348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2349
2350fi
2351echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2353GXX=`test $ac_compiler_gnu = yes && echo yes`
2354ac_test_CXXFLAGS=${CXXFLAGS+set}
2355ac_save_CXXFLAGS=$CXXFLAGS
2356CXXFLAGS="-g"
2357echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2358echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2359if test "${ac_cv_prog_cxx_g+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362 cat >conftest.$ac_ext <<_ACEOF
2363#line $LINENO "configure"
2364/* confdefs.h. */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h. */
2369
2370int
2371main ()
2372{
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_cv_prog_cxx_g=yes
2391else
2392 echo "$as_me: failed program was:" >&5
2393sed 's/^/| /' conftest.$ac_ext >&5
2394
2395ac_cv_prog_cxx_g=no
2396fi
2397rm -f conftest.$ac_objext conftest.$ac_ext
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2400echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2401if test "$ac_test_CXXFLAGS" = set; then
2402 CXXFLAGS=$ac_save_CXXFLAGS
2403elif test $ac_cv_prog_cxx_g = yes; then
2404 if test "$GXX" = yes; then
2405 CXXFLAGS="-g -O2"
2406 else
2407 CXXFLAGS="-g"
2408 fi
2409else
2410 if test "$GXX" = yes; then
2411 CXXFLAGS="-O2"
2412 else
2413 CXXFLAGS=
2414 fi
2415fi
2416for ac_declaration in \
2417 ''\
2418 '#include <stdlib.h>' \
2419 'extern "C" void std::exit (int) throw (); using std::exit;' \
2420 'extern "C" void std::exit (int); using std::exit;' \
2421 'extern "C" void exit (int) throw ();' \
2422 'extern "C" void exit (int);' \
2423 'void exit (int);'
2424do
2425 cat >conftest.$ac_ext <<_ACEOF
2426#line $LINENO "configure"
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432#include <stdlib.h>
2433$ac_declaration
2434int
2435main ()
2436{
2437exit (42);
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 :
2455else
2456 echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459continue
2460fi
2461rm -f conftest.$ac_objext conftest.$ac_ext
2462 cat >conftest.$ac_ext <<_ACEOF
2463#line $LINENO "configure"
2464/* confdefs.h. */
2465_ACEOF
2466cat confdefs.h >>conftest.$ac_ext
2467cat >>conftest.$ac_ext <<_ACEOF
2468/* end confdefs.h. */
2469$ac_declaration
2470int
2471main ()
2472{
2473exit (42);
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478rm -f conftest.$ac_objext
2479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 break
2491else
2492 echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495fi
2496rm -f conftest.$ac_objext conftest.$ac_ext
2497done
2498rm -f conftest*
2499if test -n "$ac_declaration"; then
2500 echo '#ifdef __cplusplus' >>confdefs.h
2501 echo $ac_declaration >>confdefs.h
2502 echo '#endif' >>confdefs.h
2503fi
2504
2505ac_ext=c
2506ac_cpp='$CPP $CPPFLAGS'
2507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511for ac_prog in gawk mawk nawk awk
2512do
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514set dummy $ac_prog; ac_word=$2
2515echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517if test "${ac_cv_prog_AWK+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520 if test -n "$AWK"; then
2521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_AWK="$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534done
2535done
2536
2537fi
2538fi
2539AWK=$ac_cv_prog_AWK
2540if test -n "$AWK"; then
2541 echo "$as_me:$LINENO: result: $AWK" >&5
2542echo "${ECHO_T}$AWK" >&6
2543else
2544 echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6
2546fi
2547
2548 test -n "$AWK" && break
2549done
2550
2551for ac_prog in 'bison -y' byacc
2552do
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554set dummy $ac_prog; ac_word=$2
2555echo "$as_me:$LINENO: checking for $ac_word" >&5
2556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557if test "${ac_cv_prog_YACC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559else
2560 if test -n "$YACC"; then
2561 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570 ac_cv_prog_YACC="$ac_prog"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574done
2575done
2576
2577fi
2578fi
2579YACC=$ac_cv_prog_YACC
2580if test -n "$YACC"; then
2581 echo "$as_me:$LINENO: result: $YACC" >&5
2582echo "${ECHO_T}$YACC" >&6
2583else
2584 echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6
2586fi
2587
2588 test -n "$YACC" && break
2589done
2590test -n "$YACC" || YACC="yacc"
2591
2592ac_aux_dir=
2593for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2594 if test -f $ac_dir/install-sh; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/install-sh -c"
2597 break
2598 elif test -f $ac_dir/install.sh; then
2599 ac_aux_dir=$ac_dir
2600 ac_install_sh="$ac_aux_dir/install.sh -c"
2601 break
2602 elif test -f $ac_dir/shtool; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/shtool install -c"
2605 break
2606 fi
2607done
2608if test -z "$ac_aux_dir"; then
2609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2610echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2611 { (exit 1); exit 1; }; }
2612fi
2613ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2614ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2615ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2616
2617# Find a good install program. We prefer a C program (faster),
2618# so one script is as good as another. But avoid the broken or
2619# incompatible versions:
2620# SysV /etc/install, /usr/sbin/install
2621# SunOS /usr/etc/install
2622# IRIX /sbin/install
2623# AIX /bin/install
2624# AmigaOS /C/install, which installs bootblocks on floppy discs
2625# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2626# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2627# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2628# ./install, which can be erroneously created by make from ./install.sh.
2629echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2630echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2631if test -z "$INSTALL"; then
2632if test "${ac_cv_path_install+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 # Account for people who put trailing slashes in PATH elements.
2641case $as_dir/ in
2642 ./ | .// | /cC/* | \
2643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2644 /usr/ucb/* ) ;;
2645 *)
2646 # OSF1 and SCO ODT 3.0 have their own names for install.
2647 # Don't use installbsd from OSF since it installs stuff as root
2648 # by default.
2649 for ac_prog in ginstall scoinst install; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2652 if test $ac_prog = install &&
2653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # AIX install. It has an incompatible calling convention.
2655 :
2656 elif test $ac_prog = install &&
2657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658 # program-specific install script used by HP pwplus--don't use.
2659 :
2660 else
2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2662 break 3
2663 fi
2664 fi
2665 done
2666 done
2667 ;;
2668esac
2669done
2670
2671
2672fi
2673 if test "${ac_cv_path_install+set}" = set; then
2674 INSTALL=$ac_cv_path_install
2675 else
2676 # As a last resort, use the slow shell script. We don't cache a
2677 # path for INSTALL within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the path is relative.
2680 INSTALL=$ac_install_sh
2681 fi
2682fi
2683echo "$as_me:$LINENO: result: $INSTALL" >&5
2684echo "${ECHO_T}$INSTALL" >&6
2685
2686# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687# It thinks the first close brace ends the variable substitution.
2688test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2689
2690test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2691
2692test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2693
2694echo "$as_me:$LINENO: checking whether ln -s works" >&5
2695echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2696LN_S=$as_ln_s
2697if test "$LN_S" = "ln -s"; then
2698 echo "$as_me:$LINENO: result: yes" >&5
2699echo "${ECHO_T}yes" >&6
2700else
2701 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2702echo "${ECHO_T}no, using $LN_S" >&6
2703fi
2704
2705echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2706echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2707set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2708if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711 cat >conftest.make <<\_ACEOF
2712all:
2713 @echo 'ac_maketemp="$(MAKE)"'
2714_ACEOF
2715# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2716eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2717if test -n "$ac_maketemp"; then
2718 eval ac_cv_prog_make_${ac_make}_set=yes
2719else
2720 eval ac_cv_prog_make_${ac_make}_set=no
2721fi
2722rm -f conftest.make
2723fi
2724if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2725 echo "$as_me:$LINENO: result: yes" >&5
2726echo "${ECHO_T}yes" >&6
2727 SET_MAKE=
2728else
2729 echo "$as_me:$LINENO: result: no" >&5
2730echo "${ECHO_T}no" >&6
2731 SET_MAKE="MAKE=${MAKE-make}"
2732fi
2733
2734if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2737echo "$as_me:$LINENO: checking for $ac_word" >&5
2738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739if test "${ac_cv_prog_RANLIB+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741else
2742 if test -n "$RANLIB"; then
2743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756done
2757done
2758
2759fi
2760fi
2761RANLIB=$ac_cv_prog_RANLIB
2762if test -n "$RANLIB"; then
2763 echo "$as_me:$LINENO: result: $RANLIB" >&5
2764echo "${ECHO_T}$RANLIB" >&6
2765else
2766 echo "$as_me:$LINENO: result: no" >&5
2767echo "${ECHO_T}no" >&6
2768fi
2769
2770fi
2771if test -z "$ac_cv_prog_RANLIB"; then
2772 ac_ct_RANLIB=$RANLIB
2773 # Extract the first word of "ranlib", so it can be a program name with args.
2774set dummy ranlib; ac_word=$2
2775echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 if test -n "$ac_ct_RANLIB"; then
2781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_ac_ct_RANLIB="ranlib"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795done
2796
2797 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2798fi
2799fi
2800ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2801if test -n "$ac_ct_RANLIB"; then
2802 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2803echo "${ECHO_T}$ac_ct_RANLIB" >&6
2804else
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807fi
2808
2809 RANLIB=$ac_ct_RANLIB
2810else
2811 RANLIB="$ac_cv_prog_RANLIB"
2812fi
2813
2814
2815
2816
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2823echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2824# On Suns, sometimes $CPP names a directory.
2825if test -n "$CPP" && test -d "$CPP"; then
2826 CPP=
2827fi
2828if test -z "$CPP"; then
2829 if test "${ac_cv_prog_CPP+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
2832 # Double quotes because CPP needs to be expanded
2833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2834 do
2835 ac_preproc_ok=false
2836for ac_c_preproc_warn_flag in '' yes
2837do
2838 # Use a header file that comes with gcc, so configuring glibc
2839 # with a fresh cross-compiler works.
2840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2841 # <limits.h> exists even on freestanding compilers.
2842 # On the NeXT, cc -E runs the code through the compiler's parser,
2843 # not just through cpp. "Syntax error" is here to catch this case.
2844 cat >conftest.$ac_ext <<_ACEOF
2845#line $LINENO "configure"
2846/* confdefs.h. */
2847_ACEOF
2848cat confdefs.h >>conftest.$ac_ext
2849cat >>conftest.$ac_ext <<_ACEOF
2850/* end confdefs.h. */
2851#ifdef __STDC__
2852# include <limits.h>
2853#else
2854# include <assert.h>
2855#endif
2856 Syntax error
2857_ACEOF
2858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2860 ac_status=$?
2861 grep -v '^ *+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } >/dev/null; then
2866 if test -s conftest.err; then
2867 ac_cpp_err=$ac_c_preproc_warn_flag
2868 else
2869 ac_cpp_err=
2870 fi
2871else
2872 ac_cpp_err=yes
2873fi
2874if test -z "$ac_cpp_err"; then
2875 :
2876else
2877 echo "$as_me: failed program was:" >&5
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 # Broken: fails on valid input.
2881continue
2882fi
2883rm -f conftest.err conftest.$ac_ext
2884
2885 # OK, works on sane cases. Now check whether non-existent headers
2886 # can be detected and how.
2887 cat >conftest.$ac_ext <<_ACEOF
2888#line $LINENO "configure"
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894#include <ac_nonexistent.h>
2895_ACEOF
2896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } >/dev/null; then
2904 if test -s conftest.err; then
2905 ac_cpp_err=$ac_c_preproc_warn_flag
2906 else
2907 ac_cpp_err=
2908 fi
2909else
2910 ac_cpp_err=yes
2911fi
2912if test -z "$ac_cpp_err"; then
2913 # Broken: success on invalid input.
2914continue
2915else
2916 echo "$as_me: failed program was:" >&5
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 # Passes both tests.
2920ac_preproc_ok=:
2921break
2922fi
2923rm -f conftest.err conftest.$ac_ext
2924
2925done
2926# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2927rm -f conftest.err conftest.$ac_ext
2928if $ac_preproc_ok; then
2929 break
2930fi
2931
2932 done
2933 ac_cv_prog_CPP=$CPP
2934
2935fi
2936 CPP=$ac_cv_prog_CPP
2937else
2938 ac_cv_prog_CPP=$CPP
2939fi
2940echo "$as_me:$LINENO: result: $CPP" >&5
2941echo "${ECHO_T}$CPP" >&6
2942ac_preproc_ok=false
2943for ac_c_preproc_warn_flag in '' yes
2944do
2945 # Use a header file that comes with gcc, so configuring glibc
2946 # with a fresh cross-compiler works.
2947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948 # <limits.h> exists even on freestanding compilers.
2949 # On the NeXT, cc -E runs the code through the compiler's parser,
2950 # not just through cpp. "Syntax error" is here to catch this case.
2951 cat >conftest.$ac_ext <<_ACEOF
2952#line $LINENO "configure"
2953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
2958#ifdef __STDC__
2959# include <limits.h>
2960#else
2961# include <assert.h>
2962#endif
2963 Syntax error
2964_ACEOF
2965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } >/dev/null; then
2973 if test -s conftest.err; then
2974 ac_cpp_err=$ac_c_preproc_warn_flag
2975 else
2976 ac_cpp_err=
2977 fi
2978else
2979 ac_cpp_err=yes
2980fi
2981if test -z "$ac_cpp_err"; then
2982 :
2983else
2984 echo "$as_me: failed program was:" >&5
2985sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 # Broken: fails on valid input.
2988continue
2989fi
2990rm -f conftest.err conftest.$ac_ext
2991
2992 # OK, works on sane cases. Now check whether non-existent headers
2993 # can be detected and how.
2994 cat >conftest.$ac_ext <<_ACEOF
2995#line $LINENO "configure"
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001#include <ac_nonexistent.h>
3002_ACEOF
3003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null; then
3011 if test -s conftest.err; then
3012 ac_cpp_err=$ac_c_preproc_warn_flag
3013 else
3014 ac_cpp_err=
3015 fi
3016else
3017 ac_cpp_err=yes
3018fi
3019if test -z "$ac_cpp_err"; then
3020 # Broken: success on invalid input.
3021continue
3022else
3023 echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 # Passes both tests.
3027ac_preproc_ok=:
3028break
3029fi
3030rm -f conftest.err conftest.$ac_ext
3031
3032done
3033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3034rm -f conftest.err conftest.$ac_ext
3035if $ac_preproc_ok; then
3036 :
3037else
3038 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3039See \`config.log' for more details." >&5
3040echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3041See \`config.log' for more details." >&2;}
3042 { (exit 1); exit 1; }; }
3043fi
3044
3045ac_ext=c
3046ac_cpp='$CPP $CPPFLAGS'
3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050
3051
3052echo "$as_me:$LINENO: checking for egrep" >&5
3053echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3054if test "${ac_cv_prog_egrep+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3058 then ac_cv_prog_egrep='grep -E'
3059 else ac_cv_prog_egrep='egrep'
3060 fi
3061fi
3062echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3063echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3064 EGREP=$ac_cv_prog_egrep
3065
3066
3067
3068echo "$as_me:$LINENO: checking for AIX" >&5
3069echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3070cat >conftest.$ac_ext <<_ACEOF
3071#line $LINENO "configure"
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077#ifdef _AIX
3078 yes
3079#endif
3080
3081_ACEOF
3082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 $EGREP "yes" >/dev/null 2>&1; then
3084 echo "$as_me:$LINENO: result: yes" >&5
3085echo "${ECHO_T}yes" >&6
3086cat >>confdefs.h <<\_ACEOF
3087#define _ALL_SOURCE 1
3088_ACEOF
3089
3090else
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
3093fi
3094rm -f conftest*
3095
3096
3097echo "$as_me:$LINENO: checking for library containing strerror" >&5
3098echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3099if test "${ac_cv_search_strerror+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101else
3102 ac_func_search_save_LIBS=$LIBS
3103ac_cv_search_strerror=no
3104cat >conftest.$ac_ext <<_ACEOF
3105#line $LINENO "configure"
3106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h. */
3111
3112/* Override any gcc2 internal prototype to avoid an error. */
3113#ifdef __cplusplus
3114extern "C"
3115#endif
3116/* We use char because int might match the return type of a gcc2
3117 builtin and then its argument prototype would still apply. */
3118char strerror ();
3119int
3120main ()
3121{
3122strerror ();
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext conftest$ac_exeext
3128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3129 (eval $ac_link) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -s conftest$ac_exeext'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 ac_cv_search_strerror="none required"
3140else
3141 echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144fi
3145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3146if test "$ac_cv_search_strerror" = no; then
3147 for ac_lib in cposix; do
3148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3149 cat >conftest.$ac_ext <<_ACEOF
3150#line $LINENO "configure"
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */
3156
3157/* Override any gcc2 internal prototype to avoid an error. */
3158#ifdef __cplusplus
3159extern "C"
3160#endif
3161/* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3163char strerror ();
3164int
3165main ()
3166{
3167strerror ();
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext conftest$ac_exeext
3173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -s conftest$ac_exeext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_search_strerror="-l$ac_lib"
3185break
3186else
3187 echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190fi
3191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3192 done
3193fi
3194LIBS=$ac_func_search_save_LIBS
3195fi
3196echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3197echo "${ECHO_T}$ac_cv_search_strerror" >&6
3198if test "$ac_cv_search_strerror" != no; then
3199 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3200
3201fi
3202
3203echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3204echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3205if test "${ac_cv_header_stdc+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 cat >conftest.$ac_ext <<_ACEOF
3209#line $LINENO "configure"
3210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h. */
3215#include <stdlib.h>
3216#include <stdarg.h>
3217#include <string.h>
3218#include <float.h>
3219
3220int
3221main ()
3222{
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
3228rm -f conftest.$ac_objext
3229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_header_stdc=yes
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245ac_cv_header_stdc=no
3246fi
3247rm -f conftest.$ac_objext conftest.$ac_ext
3248
3249if test $ac_cv_header_stdc = yes; then
3250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3251 cat >conftest.$ac_ext <<_ACEOF
3252#line $LINENO "configure"
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258#include <string.h>
3259
3260_ACEOF
3261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 $EGREP "memchr" >/dev/null 2>&1; then
3263 :
3264else
3265 ac_cv_header_stdc=no
3266fi
3267rm -f conftest*
3268
3269fi
3270
3271if test $ac_cv_header_stdc = yes; then
3272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3273 cat >conftest.$ac_ext <<_ACEOF
3274#line $LINENO "configure"
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280#include <stdlib.h>
3281
3282_ACEOF
3283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3284 $EGREP "free" >/dev/null 2>&1; then
3285 :
3286else
3287 ac_cv_header_stdc=no
3288fi
3289rm -f conftest*
3290
3291fi
3292
3293if test $ac_cv_header_stdc = yes; then
3294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3295 if test "$cross_compiling" = yes; then
3296 :
3297else
3298 cat >conftest.$ac_ext <<_ACEOF
3299#line $LINENO "configure"
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h. */
3305#include <ctype.h>
3306#if ((' ' & 0x0FF) == 0x020)
3307# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3308# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3309#else
3310# define ISLOWER(c) \
3311 (('a' <= (c) && (c) <= 'i') \
3312 || ('j' <= (c) && (c) <= 'r') \
3313 || ('s' <= (c) && (c) <= 'z'))
3314# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3315#endif
3316
3317#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3318int
3319main ()
3320{
3321 int i;
3322 for (i = 0; i < 256; i++)
3323 if (XOR (islower (i), ISLOWER (i))
3324 || toupper (i) != TOUPPER (i))
3325 exit(2);
3326 exit (0);
3327}
3328_ACEOF
3329rm -f conftest$ac_exeext
3330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3331 (eval $ac_link) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 :
3341else
3342 echo "$as_me: program exited with status $ac_status" >&5
3343echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346( exit $ac_status )
3347ac_cv_header_stdc=no
3348fi
3349rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3350fi
3351fi
3352fi
3353echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3354echo "${ECHO_T}$ac_cv_header_stdc" >&6
3355if test $ac_cv_header_stdc = yes; then
3356
3357cat >>confdefs.h <<\_ACEOF
3358#define STDC_HEADERS 1
3359_ACEOF
3360
3361fi
3362
3363# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3374 inttypes.h stdint.h unistd.h
3375do
3376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3377echo "$as_me:$LINENO: checking for $ac_header" >&5
3378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3379if eval "test \"\${$as_ac_Header+set}\" = set"; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382 cat >conftest.$ac_ext <<_ACEOF
3383#line $LINENO "configure"
3384/* confdefs.h. */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h. */
3389$ac_includes_default
3390
3391#include <$ac_header>
3392_ACEOF
3393rm -f conftest.$ac_objext
3394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 eval "$as_ac_Header=yes"
3406else
3407 echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410eval "$as_ac_Header=no"
3411fi
3412rm -f conftest.$ac_objext conftest.$ac_ext
3413fi
3414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3416if test `eval echo '${'$as_ac_Header'}'` = yes; then
3417 cat >>confdefs.h <<_ACEOF
3418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3419_ACEOF
3420
3421fi
3422
3423done
3424
3425
3426if test "${ac_cv_header_minix_config_h+set}" = set; then
3427 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3428echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3429if test "${ac_cv_header_minix_config_h+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3433echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3434else
3435 # Is the header compilable?
3436echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3437echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3438cat >conftest.$ac_ext <<_ACEOF
3439#line $LINENO "configure"
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445$ac_includes_default
3446#include <minix/config.h>
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_header_compiler=yes
3461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465ac_header_compiler=no
3466fi
3467rm -f conftest.$ac_objext conftest.$ac_ext
3468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3469echo "${ECHO_T}$ac_header_compiler" >&6
3470
3471# Is the header present?
3472echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3473echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3474cat >conftest.$ac_ext <<_ACEOF
3475#line $LINENO "configure"
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#include <minix/config.h>
3482_ACEOF
3483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 else
3494 ac_cpp_err=
3495 fi
3496else
3497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
3500 ac_header_preproc=yes
3501else
3502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 ac_header_preproc=no
3506fi
3507rm -f conftest.err conftest.$ac_ext
3508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3509echo "${ECHO_T}$ac_header_preproc" >&6
3510
3511# So? What about this header?
3512case $ac_header_compiler:$ac_header_preproc in
3513 yes:no )
3514 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3515echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3516 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3517echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3518 (
3519 cat <<\_ASBOX
3520## ------------------------------------ ##
3521## Report this to [email protected]. ##
3522## ------------------------------------ ##
3523_ASBOX
3524 ) |
3525 sed "s/^/$as_me: WARNING: /" >&2
3526 ;;
3527 no:yes )
3528 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3529echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3530 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3531echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3532 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3533echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3534 (
3535 cat <<\_ASBOX
3536## ------------------------------------ ##
3537## Report this to [email protected]. ##
3538## ------------------------------------ ##
3539_ASBOX
3540 ) |
3541 sed "s/^/$as_me: WARNING: /" >&2
3542 ;;
3543esac
3544echo "$as_me:$LINENO: checking for minix/config.h" >&5
3545echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3546if test "${ac_cv_header_minix_config_h+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 ac_cv_header_minix_config_h=$ac_header_preproc
3550fi
3551echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3552echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3553
3554fi
3555if test $ac_cv_header_minix_config_h = yes; then
3556 MINIX=yes
3557else
3558 MINIX=
3559fi
3560
3561
3562if test "$MINIX" = yes; then
3563
3564cat >>confdefs.h <<\_ACEOF
3565#define _POSIX_SOURCE 1
3566_ACEOF
3567
3568
3569cat >>confdefs.h <<\_ACEOF
3570#define _POSIX_1_SOURCE 2
3571_ACEOF
3572
3573
3574cat >>confdefs.h <<\_ACEOF
3575#define _MINIX 1
3576_ACEOF
3577
3578fi
3579
3580fp_C_PROTOTYPES
3581echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3582echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3583if test "${ac_cv_c_const+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 cat >conftest.$ac_ext <<_ACEOF
3587#line $LINENO "configure"
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593
3594int
3595main ()
3596{
3597/* FIXME: Include the comments suggested by Paul. */
3598#ifndef __cplusplus
3599 /* Ultrix mips cc rejects this. */
3600 typedef int charset[2];
3601 const charset x;
3602 /* SunOS 4.1.1 cc rejects this. */
3603 char const *const *ccp;
3604 char **p;
3605 /* NEC SVR4.0.2 mips cc rejects this. */
3606 struct point {int x, y;};
3607 static struct point const zero = {0,0};
3608 /* AIX XL C 1.02.0.0 rejects this.
3609 It does not let you subtract one const X* pointer from another in
3610 an arm of an if-expression whose if-part is not a constant
3611 expression */
3612 const char *g = "string";
3613 ccp = &g + (g ? g-g : 0);
3614 /* HPUX 7.0 cc rejects these. */
3615 ++ccp;
3616 p = (char**) ccp;
3617 ccp = (char const *const *) p;
3618 { /* SCO 3.2v4 cc rejects this. */
3619 char *t;
3620 char const *s = 0 ? (char *) 0 : (char const *) 0;
3621
3622 *t++ = 0;
3623 }
3624 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3625 int x[] = {25, 17};
3626 const int *foo = &x[0];
3627 ++foo;
3628 }
3629 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3630 typedef const int *iptr;
3631 iptr p = 0;
3632 ++p;
3633 }
3634 { /* AIX XL C 1.02.0.0 rejects this saying
3635 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3636 struct s { int j; const int *ap[3]; };
3637 struct s *b; b->j = 5;
3638 }
3639 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3640 const int foo = 10;
3641 }
3642#endif
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 ac_cv_c_const=yes
3661else
3662 echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
3665ac_cv_c_const=no
3666fi
3667rm -f conftest.$ac_objext conftest.$ac_ext
3668fi
3669echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3670echo "${ECHO_T}$ac_cv_c_const" >&6
3671if test $ac_cv_c_const = no; then
3672
3673cat >>confdefs.h <<\_ACEOF
3674#define const
3675_ACEOF
3676
3677fi
3678
3679echo "$as_me:$LINENO: checking for off_t" >&5
3680echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3681if test "${ac_cv_type_off_t+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684 cat >conftest.$ac_ext <<_ACEOF
3685#line $LINENO "configure"
3686/* confdefs.h. */
3687_ACEOF
3688cat confdefs.h >>conftest.$ac_ext
3689cat >>conftest.$ac_ext <<_ACEOF
3690/* end confdefs.h. */
3691$ac_includes_default
3692int
3693main ()
3694{
3695if ((off_t *) 0)
3696 return 0;
3697if (sizeof (off_t))
3698 return 0;
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext
3704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_type_off_t=yes
3716else
3717 echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720ac_cv_type_off_t=no
3721fi
3722rm -f conftest.$ac_objext conftest.$ac_ext
3723fi
3724echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3725echo "${ECHO_T}$ac_cv_type_off_t" >&6
3726if test $ac_cv_type_off_t = yes; then
3727 :
3728else
3729
3730cat >>confdefs.h <<_ACEOF
3731#define off_t long
3732_ACEOF
3733
3734fi
3735
3736echo "$as_me:$LINENO: checking for size_t" >&5
3737echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3738if test "${ac_cv_type_size_t+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 cat >conftest.$ac_ext <<_ACEOF
3742#line $LINENO "configure"
3743/* confdefs.h. */
3744_ACEOF
3745cat confdefs.h >>conftest.$ac_ext
3746cat >>conftest.$ac_ext <<_ACEOF
3747/* end confdefs.h. */
3748$ac_includes_default
3749int
3750main ()
3751{
3752if ((size_t *) 0)
3753 return 0;
3754if (sizeof (size_t))
3755 return 0;
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760rm -f conftest.$ac_objext
3761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 ac_cv_type_size_t=yes
3773else
3774 echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777ac_cv_type_size_t=no
3778fi
3779rm -f conftest.$ac_objext conftest.$ac_ext
3780fi
3781echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3782echo "${ECHO_T}$ac_cv_type_size_t" >&6
3783if test $ac_cv_type_size_t = yes; then
3784 :
3785else
3786
3787cat >>confdefs.h <<_ACEOF
3788#define size_t unsigned
3789_ACEOF
3790
3791fi
3792
3793echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3794echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3795if test "${ac_cv_header_time+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 cat >conftest.$ac_ext <<_ACEOF
3799#line $LINENO "configure"
3800/* confdefs.h. */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h. */
3805#include <sys/types.h>
3806#include <sys/time.h>
3807#include <time.h>
3808
3809int
3810main ()
3811{
3812if ((struct tm *) 0)
3813return 0;
3814 ;
3815 return 0;
3816}
3817_ACEOF
3818rm -f conftest.$ac_objext
3819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820 (eval $ac_compile) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3830 ac_cv_header_time=yes
3831else
3832 echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835ac_cv_header_time=no
3836fi
3837rm -f conftest.$ac_objext conftest.$ac_ext
3838fi
3839echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3840echo "${ECHO_T}$ac_cv_header_time" >&6
3841if test $ac_cv_header_time = yes; then
3842
3843cat >>confdefs.h <<\_ACEOF
3844#define TIME_WITH_SYS_TIME 1
3845_ACEOF
3846
3847fi
3848
3849echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3850echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3851if test "${ac_cv_struct_tm+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 cat >conftest.$ac_ext <<_ACEOF
3855#line $LINENO "configure"
3856/* confdefs.h. */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h. */
3861#include <sys/types.h>
3862#include <time.h>
3863
3864int
3865main ()
3866{
3867struct tm *tp; tp->tm_sec;
3868 ;
3869 return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext
3873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874 (eval $ac_compile) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_struct_tm=time.h
3885else
3886 echo "$as_me: failed program was:" >&5
3887sed 's/^/| /' conftest.$ac_ext >&5
3888
3889ac_cv_struct_tm=sys/time.h
3890fi
3891rm -f conftest.$ac_objext conftest.$ac_ext
3892fi
3893echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3894echo "${ECHO_T}$ac_cv_struct_tm" >&6
3895if test $ac_cv_struct_tm = sys/time.h; then
3896
3897cat >>confdefs.h <<\_ACEOF
3898#define TM_IN_SYS_TIME 1
3899_ACEOF
3900
3901fi
3902
3903
3904if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
3905cat >conftest.$ac_ext <<_ACEOF
3906#line $LINENO "configure"
3907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
3912#include <stdio.h>
3913
3914int
3915main ()
3916{
3917 FILE *rubbish = popen("yes", "r");
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922rm -f conftest.$ac_objext
3923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 :
3935else
3936 echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
3940fi
3941rm -f conftest.$ac_objext conftest.$ac_ext
3942fi
3943
3944
3945
3946echo "$as_me:$LINENO: checking for main in -lg" >&5
3947echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
3948if test "${ac_cv_lib_g_main+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 ac_check_lib_save_LIBS=$LIBS
3952LIBS="-lg $LIBS"
3953cat >conftest.$ac_ext <<_ACEOF
3954#line $LINENO "configure"
3955/* confdefs.h. */
3956_ACEOF
3957cat confdefs.h >>conftest.$ac_ext
3958cat >>conftest.$ac_ext <<_ACEOF
3959/* end confdefs.h. */
3960
3961
3962int
3963main ()
3964{
3965main ();
3966 ;
3967 return 0;
3968}
3969_ACEOF
3970rm -f conftest.$ac_objext conftest$ac_exeext
3971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -s conftest$ac_exeext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_lib_g_main=yes
3983else
3984 echo "$as_me: failed program was:" >&5
3985sed 's/^/| /' conftest.$ac_ext >&5
3986
3987ac_cv_lib_g_main=no
3988fi
3989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3990LIBS=$ac_check_lib_save_LIBS
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
3993echo "${ECHO_T}$ac_cv_lib_g_main" >&6
3994if test $ac_cv_lib_g_main = yes; then
3995 cat >>confdefs.h <<_ACEOF
3996#define HAVE_LIBG 1
3997_ACEOF
3998
3999 LIBS="-lg $LIBS"
4000
4001fi
4002
4003
4004echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
4005echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
4006if test "${ac_cv_lib_gdbm_main+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 ac_check_lib_save_LIBS=$LIBS
4010LIBS="-lgdbm $LIBS"
4011cat >conftest.$ac_ext <<_ACEOF
4012#line $LINENO "configure"
4013/* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
4018
4019
4020int
4021main ()
4022{
4023main ();
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028rm -f conftest.$ac_objext conftest$ac_exeext
4029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -s conftest$ac_exeext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_lib_gdbm_main=yes
4041else
4042 echo "$as_me: failed program was:" >&5
4043sed 's/^/| /' conftest.$ac_ext >&5
4044
4045ac_cv_lib_gdbm_main=no
4046fi
4047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4048LIBS=$ac_check_lib_save_LIBS
4049fi
4050echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
4051echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
4052if test $ac_cv_lib_gdbm_main = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054#define HAVE_LIBGDBM 1
4055_ACEOF
4056
4057 LIBS="-lgdbm $LIBS"
4058
4059fi
4060
4061
4062echo "$as_me:$LINENO: checking for main in -lm" >&5
4063echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4064if test "${ac_cv_lib_m_main+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067 ac_check_lib_save_LIBS=$LIBS
4068LIBS="-lm $LIBS"
4069cat >conftest.$ac_ext <<_ACEOF
4070#line $LINENO "configure"
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
4076
4077
4078int
4079main ()
4080{
4081main ();
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext conftest$ac_exeext
4087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4088 (eval $ac_link) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -s conftest$ac_exeext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_cv_lib_m_main=yes
4099else
4100 echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103ac_cv_lib_m_main=no
4104fi
4105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4106LIBS=$ac_check_lib_save_LIBS
4107fi
4108echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4109echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4110if test $ac_cv_lib_m_main = yes; then
4111 cat >>confdefs.h <<_ACEOF
4112#define HAVE_LIBM 1
4113_ACEOF
4114
4115 LIBS="-lm $LIBS"
4116
4117fi
4118
4119
4120echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
4121echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
4122if test "${ac_cv_lib_stdcpp_main+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 ac_check_lib_save_LIBS=$LIBS
4126LIBS="-lstdc++ $LIBS"
4127cat >conftest.$ac_ext <<_ACEOF
4128#line $LINENO "configure"
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134
4135
4136int
4137main ()
4138{
4139main ();
4140 ;
4141 return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext conftest$ac_exeext
4145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -s conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_lib_stdcpp_main=yes
4157else
4158 echo "$as_me: failed program was:" >&5
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
4161ac_cv_lib_stdcpp_main=no
4162fi
4163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4164LIBS=$ac_check_lib_save_LIBS
4165fi
4166echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
4167echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
4168if test $ac_cv_lib_stdcpp_main = yes; then
4169 cat >>confdefs.h <<_ACEOF
4170#define HAVE_LIBSTDC__ 1
4171_ACEOF
4172
4173 LIBS="-lstdc++ $LIBS"
4174
4175fi
4176
4177
4178echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
4179echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
4180if test "${ac_cv_lib_crypt_main+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 ac_check_lib_save_LIBS=$LIBS
4184LIBS="-lcrypt $LIBS"
4185cat >conftest.$ac_ext <<_ACEOF
4186#line $LINENO "configure"
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
4192
4193
4194int
4195main ()
4196{
4197main ();
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext conftest$ac_exeext
4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -s conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_lib_crypt_main=yes
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219ac_cv_lib_crypt_main=no
4220fi
4221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4222LIBS=$ac_check_lib_save_LIBS
4223fi
4224echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
4225echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
4226if test $ac_cv_lib_crypt_main = yes; then
4227 cat >>confdefs.h <<_ACEOF
4228#define HAVE_LIBCRYPT 1
4229_ACEOF
4230
4231 LIBS="-lcrypt $LIBS"
4232
4233fi
4234
4235
4236
4237
4238
4239
4240
4241
4242ac_header_dirent=no
4243for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4244 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4245echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4246echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4247if eval "test \"\${$as_ac_Header+set}\" = set"; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 cat >conftest.$ac_ext <<_ACEOF
4251#line $LINENO "configure"
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257#include <sys/types.h>
4258#include <$ac_hdr>
4259
4260int
4261main ()
4262{
4263if ((DIR *) 0)
4264return 0;
4265 ;
4266 return 0;
4267}
4268_ACEOF
4269rm -f conftest.$ac_objext
4270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 eval "$as_ac_Header=yes"
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286eval "$as_ac_Header=no"
4287fi
4288rm -f conftest.$ac_objext conftest.$ac_ext
4289fi
4290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4292if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4295_ACEOF
4296
4297ac_header_dirent=$ac_hdr; break
4298fi
4299
4300done
4301# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4302if test $ac_header_dirent = dirent.h; then
4303 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4304echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4305if test "${ac_cv_search_opendir+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308 ac_func_search_save_LIBS=$LIBS
4309ac_cv_search_opendir=no
4310cat >conftest.$ac_ext <<_ACEOF
4311#line $LINENO "configure"
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317
4318/* Override any gcc2 internal prototype to avoid an error. */
4319#ifdef __cplusplus
4320extern "C"
4321#endif
4322/* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4324char opendir ();
4325int
4326main ()
4327{
4328opendir ();
4329 ;
4330 return 0;
4331}
4332_ACEOF
4333rm -f conftest.$ac_objext conftest$ac_exeext
4334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -s conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 ac_cv_search_opendir="none required"
4346else
4347 echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350fi
4351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4352if test "$ac_cv_search_opendir" = no; then
4353 for ac_lib in dir; do
4354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4355 cat >conftest.$ac_ext <<_ACEOF
4356#line $LINENO "configure"
4357/* confdefs.h. */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h. */
4362
4363/* Override any gcc2 internal prototype to avoid an error. */
4364#ifdef __cplusplus
4365extern "C"
4366#endif
4367/* We use char because int might match the return type of a gcc2
4368 builtin and then its argument prototype would still apply. */
4369char opendir ();
4370int
4371main ()
4372{
4373opendir ();
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext conftest$ac_exeext
4379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380 (eval $ac_link) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -s conftest$ac_exeext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_search_opendir="-l$ac_lib"
4391break
4392else
4393 echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396fi
4397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4398 done
4399fi
4400LIBS=$ac_func_search_save_LIBS
4401fi
4402echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4403echo "${ECHO_T}$ac_cv_search_opendir" >&6
4404if test "$ac_cv_search_opendir" != no; then
4405 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4406
4407fi
4408
4409else
4410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4411echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4412if test "${ac_cv_search_opendir+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 ac_func_search_save_LIBS=$LIBS
4416ac_cv_search_opendir=no
4417cat >conftest.$ac_ext <<_ACEOF
4418#line $LINENO "configure"
4419/* confdefs.h. */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h. */
4424
4425/* Override any gcc2 internal prototype to avoid an error. */
4426#ifdef __cplusplus
4427extern "C"
4428#endif
4429/* We use char because int might match the return type of a gcc2
4430 builtin and then its argument prototype would still apply. */
4431char opendir ();
4432int
4433main ()
4434{
4435opendir ();
4436 ;
4437 return 0;
4438}
4439_ACEOF
4440rm -f conftest.$ac_objext conftest$ac_exeext
4441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442 (eval $ac_link) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -s conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_search_opendir="none required"
4453else
4454 echo "$as_me: failed program was:" >&5
4455sed 's/^/| /' conftest.$ac_ext >&5
4456
4457fi
4458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4459if test "$ac_cv_search_opendir" = no; then
4460 for ac_lib in x; do
4461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4462 cat >conftest.$ac_ext <<_ACEOF
4463#line $LINENO "configure"
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469
4470/* Override any gcc2 internal prototype to avoid an error. */
4471#ifdef __cplusplus
4472extern "C"
4473#endif
4474/* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476char opendir ();
4477int
4478main ()
4479{
4480opendir ();
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485rm -f conftest.$ac_objext conftest$ac_exeext
4486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -s conftest$ac_exeext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_cv_search_opendir="-l$ac_lib"
4498break
4499else
4500 echo "$as_me: failed program was:" >&5
4501sed 's/^/| /' conftest.$ac_ext >&5
4502
4503fi
4504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4505 done
4506fi
4507LIBS=$ac_func_search_save_LIBS
4508fi
4509echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4510echo "${ECHO_T}$ac_cv_search_opendir" >&6
4511if test "$ac_cv_search_opendir" != no; then
4512 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4513
4514fi
4515
4516fi
4517
4518echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4519echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4520if test "${ac_cv_header_stdc+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523 cat >conftest.$ac_ext <<_ACEOF
4524#line $LINENO "configure"
4525/* confdefs.h. */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h. */
4530#include <stdlib.h>
4531#include <stdarg.h>
4532#include <string.h>
4533#include <float.h>
4534
4535int
4536main ()
4537{
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -s conftest.$ac_objext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_header_stdc=yes
4556else
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560ac_cv_header_stdc=no
4561fi
4562rm -f conftest.$ac_objext conftest.$ac_ext
4563
4564if test $ac_cv_header_stdc = yes; then
4565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4566 cat >conftest.$ac_ext <<_ACEOF
4567#line $LINENO "configure"
4568/* confdefs.h. */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h. */
4573#include <string.h>
4574
4575_ACEOF
4576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "memchr" >/dev/null 2>&1; then
4578 :
4579else
4580 ac_cv_header_stdc=no
4581fi
4582rm -f conftest*
4583
4584fi
4585
4586if test $ac_cv_header_stdc = yes; then
4587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4588 cat >conftest.$ac_ext <<_ACEOF
4589#line $LINENO "configure"
4590/* confdefs.h. */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h. */
4595#include <stdlib.h>
4596
4597_ACEOF
4598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "free" >/dev/null 2>&1; then
4600 :
4601else
4602 ac_cv_header_stdc=no
4603fi
4604rm -f conftest*
4605
4606fi
4607
4608if test $ac_cv_header_stdc = yes; then
4609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4610 if test "$cross_compiling" = yes; then
4611 :
4612else
4613 cat >conftest.$ac_ext <<_ACEOF
4614#line $LINENO "configure"
4615/* confdefs.h. */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */
4620#include <ctype.h>
4621#if ((' ' & 0x0FF) == 0x020)
4622# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4623# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4624#else
4625# define ISLOWER(c) \
4626 (('a' <= (c) && (c) <= 'i') \
4627 || ('j' <= (c) && (c) <= 'r') \
4628 || ('s' <= (c) && (c) <= 'z'))
4629# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4630#endif
4631
4632#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4633int
4634main ()
4635{
4636 int i;
4637 for (i = 0; i < 256; i++)
4638 if (XOR (islower (i), ISLOWER (i))
4639 || toupper (i) != TOUPPER (i))
4640 exit(2);
4641 exit (0);
4642}
4643_ACEOF
4644rm -f conftest$ac_exeext
4645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 :
4656else
4657 echo "$as_me: program exited with status $ac_status" >&5
4658echo "$as_me: failed program was:" >&5
4659sed 's/^/| /' conftest.$ac_ext >&5
4660
4661( exit $ac_status )
4662ac_cv_header_stdc=no
4663fi
4664rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4665fi
4666fi
4667fi
4668echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4669echo "${ECHO_T}$ac_cv_header_stdc" >&6
4670if test $ac_cv_header_stdc = yes; then
4671
4672cat >>confdefs.h <<\_ACEOF
4673#define STDC_HEADERS 1
4674_ACEOF
4675
4676fi
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
4687do
4688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689if eval "test \"\${$as_ac_Header+set}\" = set"; then
4690 echo "$as_me:$LINENO: checking for $ac_header" >&5
4691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694fi
4695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4697else
4698 # Is the header compilable?
4699echo "$as_me:$LINENO: checking $ac_header usability" >&5
4700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4701cat >conftest.$ac_ext <<_ACEOF
4702#line $LINENO "configure"
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
4708$ac_includes_default
4709#include <$ac_header>
4710_ACEOF
4711rm -f conftest.$ac_objext
4712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_header_compiler=yes
4724else
4725 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728ac_header_compiler=no
4729fi
4730rm -f conftest.$ac_objext conftest.$ac_ext
4731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4732echo "${ECHO_T}$ac_header_compiler" >&6
4733
4734# Is the header present?
4735echo "$as_me:$LINENO: checking $ac_header presence" >&5
4736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4737cat >conftest.$ac_ext <<_ACEOF
4738#line $LINENO "configure"
4739/* confdefs.h. */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h. */
4744#include <$ac_header>
4745_ACEOF
4746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null; then
4754 if test -s conftest.err; then
4755 ac_cpp_err=$ac_c_preproc_warn_flag
4756 else
4757 ac_cpp_err=
4758 fi
4759else
4760 ac_cpp_err=yes
4761fi
4762if test -z "$ac_cpp_err"; then
4763 ac_header_preproc=yes
4764else
4765 echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 ac_header_preproc=no
4769fi
4770rm -f conftest.err conftest.$ac_ext
4771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4772echo "${ECHO_T}$ac_header_preproc" >&6
4773
4774# So? What about this header?
4775case $ac_header_compiler:$ac_header_preproc in
4776 yes:no )
4777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4781 (
4782 cat <<\_ASBOX
4783## ------------------------------------ ##
4784## Report this to [email protected]. ##
4785## ------------------------------------ ##
4786_ASBOX
4787 ) |
4788 sed "s/^/$as_me: WARNING: /" >&2
4789 ;;
4790 no:yes )
4791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4797 (
4798 cat <<\_ASBOX
4799## ------------------------------------ ##
4800## Report this to [email protected]. ##
4801## ------------------------------------ ##
4802_ASBOX
4803 ) |
4804 sed "s/^/$as_me: WARNING: /" >&2
4805 ;;
4806esac
4807echo "$as_me:$LINENO: checking for $ac_header" >&5
4808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4809if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 eval "$as_ac_Header=$ac_header_preproc"
4813fi
4814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4816
4817fi
4818if test `eval echo '${'$as_ac_Header'}'` = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4821_ACEOF
4822
4823fi
4824
4825done
4826
4827cat >conftest.$ac_ext <<_ACEOF
4828#line $LINENO "configure"
4829/* confdefs.h. */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h. */
4834#include <stdio.h>
4835
4836_ACEOF
4837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 $EGREP "fread" >/dev/null 2>&1; then
4839 cat >>confdefs.h <<\_ACEOF
4840#define HAVE_FREAD_DECL 1
4841_ACEOF
4842
4843fi
4844rm -f conftest*
4845
4846cat >conftest.$ac_ext <<_ACEOF
4847#line $LINENO "configure"
4848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h. */
4853#include <stdio.h>
4854
4855_ACEOF
4856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "fgetc" >/dev/null 2>&1; then
4858 cat >>confdefs.h <<\_ACEOF
4859#define HAVE_FGETC_DECL 1
4860_ACEOF
4861
4862fi
4863rm -f conftest*
4864
4865cat >conftest.$ac_ext <<_ACEOF
4866#line $LINENO "configure"
4867/* confdefs.h. */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h. */
4872#include <sys/procfs.h>
4873
4874_ACEOF
4875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876 $EGREP "pr_brksize" >/dev/null 2>&1; then
4877 cat >>confdefs.h <<\_ACEOF
4878#define HAVE_PR_BRKSIZE 1
4879_ACEOF
4880
4881fi
4882rm -f conftest*
4883
4884
4885# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4886# for constant arguments. Useless!
4887echo "$as_me:$LINENO: checking for working alloca.h" >&5
4888echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4889if test "${ac_cv_working_alloca_h+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892 cat >conftest.$ac_ext <<_ACEOF
4893#line $LINENO "configure"
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
4899#include <alloca.h>
4900int
4901main ()
4902{
4903char *p = (char *) alloca (2 * sizeof (int));
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908rm -f conftest.$ac_objext conftest$ac_exeext
4909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4910 (eval $ac_link) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_working_alloca_h=yes
4921else
4922 echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925ac_cv_working_alloca_h=no
4926fi
4927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4928fi
4929echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4930echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4931if test $ac_cv_working_alloca_h = yes; then
4932
4933cat >>confdefs.h <<\_ACEOF
4934#define HAVE_ALLOCA_H 1
4935_ACEOF
4936
4937fi
4938
4939echo "$as_me:$LINENO: checking for alloca" >&5
4940echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4941if test "${ac_cv_func_alloca_works+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 cat >conftest.$ac_ext <<_ACEOF
4945#line $LINENO "configure"
4946/* confdefs.h. */
4947_ACEOF
4948cat confdefs.h >>conftest.$ac_ext
4949cat >>conftest.$ac_ext <<_ACEOF
4950/* end confdefs.h. */
4951#ifdef __GNUC__
4952# define alloca __builtin_alloca
4953#else
4954# ifdef _MSC_VER
4955# include <malloc.h>
4956# define alloca _alloca
4957# else
4958# if HAVE_ALLOCA_H
4959# include <alloca.h>
4960# else
4961# ifdef _AIX
4962 #pragma alloca
4963# else
4964# ifndef alloca /* predefined by HP cc +Olibcalls */
4965char *alloca ();
4966# endif
4967# endif
4968# endif
4969# endif
4970#endif
4971
4972int
4973main ()
4974{
4975char *p = (char *) alloca (1);
4976 ;
4977 return 0;
4978}
4979_ACEOF
4980rm -f conftest.$ac_objext conftest$ac_exeext
4981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_func_alloca_works=yes
4993else
4994 echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997ac_cv_func_alloca_works=no
4998fi
4999rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000fi
5001echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5002echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5003
5004if test $ac_cv_func_alloca_works = yes; then
5005
5006cat >>confdefs.h <<\_ACEOF
5007#define HAVE_ALLOCA 1
5008_ACEOF
5009
5010else
5011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5012# that cause trouble. Some versions do not even contain alloca or
5013# contain a buggy version. If you still want to use their alloca,
5014# use ar to extract alloca.o from them instead of compiling alloca.c.
5015
5016ALLOCA=alloca.$ac_objext
5017
5018cat >>confdefs.h <<\_ACEOF
5019#define C_ALLOCA 1
5020_ACEOF
5021
5022
5023echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5024echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5025if test "${ac_cv_os_cray+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 cat >conftest.$ac_ext <<_ACEOF
5029#line $LINENO "configure"
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
5035#if defined(CRAY) && ! defined(CRAY2)
5036webecray
5037#else
5038wenotbecray
5039#endif
5040
5041_ACEOF
5042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043 $EGREP "webecray" >/dev/null 2>&1; then
5044 ac_cv_os_cray=yes
5045else
5046 ac_cv_os_cray=no
5047fi
5048rm -f conftest*
5049
5050fi
5051echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5052echo "${ECHO_T}$ac_cv_os_cray" >&6
5053if test $ac_cv_os_cray = yes; then
5054 for ac_func in _getb67 GETB67 getb67; do
5055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5056echo "$as_me:$LINENO: checking for $ac_func" >&5
5057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_var+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061 cat >conftest.$ac_ext <<_ACEOF
5062#line $LINENO "configure"
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068/* System header to define __stub macros and hopefully few prototypes,
5069 which can conflict with char $ac_func (); below.
5070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 <limits.h> exists even on freestanding compilers. */
5072#ifdef __STDC__
5073# include <limits.h>
5074#else
5075# include <assert.h>
5076#endif
5077/* Override any gcc2 internal prototype to avoid an error. */
5078#ifdef __cplusplus
5079extern "C"
5080{
5081#endif
5082/* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5084char $ac_func ();
5085/* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5089choke me
5090#else
5091char (*f) () = $ac_func;
5092#endif
5093#ifdef __cplusplus
5094}
5095#endif
5096
5097int
5098main ()
5099{
5100return f != $ac_func;
5101 ;
5102 return 0;
5103}
5104_ACEOF
5105rm -f conftest.$ac_objext conftest$ac_exeext
5106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107 (eval $ac_link) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -s conftest$ac_exeext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 eval "$as_ac_var=yes"
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122eval "$as_ac_var=no"
5123fi
5124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5125fi
5126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5128if test `eval echo '${'$as_ac_var'}'` = yes; then
5129
5130cat >>confdefs.h <<_ACEOF
5131#define CRAY_STACKSEG_END $ac_func
5132_ACEOF
5133
5134 break
5135fi
5136
5137 done
5138fi
5139
5140echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5141echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5142if test "${ac_cv_c_stack_direction+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 if test "$cross_compiling" = yes; then
5146 ac_cv_c_stack_direction=0
5147else
5148 cat >conftest.$ac_ext <<_ACEOF
5149#line $LINENO "configure"
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
5155int
5156find_stack_direction ()
5157{
5158 static char *addr = 0;
5159 auto char dummy;
5160 if (addr == 0)
5161 {
5162 addr = &dummy;
5163 return find_stack_direction ();
5164 }
5165 else
5166 return (&dummy > addr) ? 1 : -1;
5167}
5168
5169int
5170main ()
5171{
5172 exit (find_stack_direction () < 0);
5173}
5174_ACEOF
5175rm -f conftest$ac_exeext
5176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5177 (eval $ac_link) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_c_stack_direction=1
5187else
5188 echo "$as_me: program exited with status $ac_status" >&5
5189echo "$as_me: failed program was:" >&5
5190sed 's/^/| /' conftest.$ac_ext >&5
5191
5192( exit $ac_status )
5193ac_cv_c_stack_direction=-1
5194fi
5195rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5196fi
5197fi
5198echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5199echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5200
5201cat >>confdefs.h <<_ACEOF
5202#define STACK_DIRECTION $ac_cv_c_stack_direction
5203_ACEOF
5204
5205
5206fi
5207
5208if test $ac_cv_c_compiler_gnu = yes; then
5209 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5210echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5211if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 ac_pattern="Autoconf.*'x'"
5215 cat >conftest.$ac_ext <<_ACEOF
5216#line $LINENO "configure"
5217/* confdefs.h. */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h. */
5222#include <sgtty.h>
5223Autoconf TIOCGETP
5224_ACEOF
5225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5227 ac_cv_prog_gcc_traditional=yes
5228else
5229 ac_cv_prog_gcc_traditional=no
5230fi
5231rm -f conftest*
5232
5233
5234 if test $ac_cv_prog_gcc_traditional = no; then
5235 cat >conftest.$ac_ext <<_ACEOF
5236#line $LINENO "configure"
5237/* confdefs.h. */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h. */
5242#include <termio.h>
5243Autoconf TCGETA
5244_ACEOF
5245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5247 ac_cv_prog_gcc_traditional=yes
5248fi
5249rm -f conftest*
5250
5251 fi
5252fi
5253echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5254echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5255 if test $ac_cv_prog_gcc_traditional = yes; then
5256 CC="$CC -traditional"
5257 fi
5258fi
5259
5260echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5261echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5262if test "${ac_cv_type_signal+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 cat >conftest.$ac_ext <<_ACEOF
5266#line $LINENO "configure"
5267/* confdefs.h. */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h. */
5272#include <sys/types.h>
5273#include <signal.h>
5274#ifdef signal
5275# undef signal
5276#endif
5277#ifdef __cplusplus
5278extern "C" void (*signal (int, void (*)(int)))(int);
5279#else
5280void (*signal ()) ();
5281#endif
5282
5283int
5284main ()
5285{
5286int i;
5287 ;
5288 return 0;
5289}
5290_ACEOF
5291rm -f conftest.$ac_objext
5292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_type_signal=void
5304else
5305 echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308ac_cv_type_signal=int
5309fi
5310rm -f conftest.$ac_objext conftest.$ac_ext
5311fi
5312echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5313echo "${ECHO_T}$ac_cv_type_signal" >&6
5314
5315cat >>confdefs.h <<_ACEOF
5316#define RETSIGTYPE $ac_cv_type_signal
5317_ACEOF
5318
5319
5320
5321for ac_func in vprintf
5322do
5323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5324echo "$as_me:$LINENO: checking for $ac_func" >&5
5325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5326if eval "test \"\${$as_ac_var+set}\" = set"; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329 cat >conftest.$ac_ext <<_ACEOF
5330#line $LINENO "configure"
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h. */
5336/* System header to define __stub macros and hopefully few prototypes,
5337 which can conflict with char $ac_func (); below.
5338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5339 <limits.h> exists even on freestanding compilers. */
5340#ifdef __STDC__
5341# include <limits.h>
5342#else
5343# include <assert.h>
5344#endif
5345/* Override any gcc2 internal prototype to avoid an error. */
5346#ifdef __cplusplus
5347extern "C"
5348{
5349#endif
5350/* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5352char $ac_func ();
5353/* The GNU C library defines this for functions which it implements
5354 to always fail with ENOSYS. Some functions are actually named
5355 something starting with __ and the normal name is an alias. */
5356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5357choke me
5358#else
5359char (*f) () = $ac_func;
5360#endif
5361#ifdef __cplusplus
5362}
5363#endif
5364
5365int
5366main ()
5367{
5368return f != $ac_func;
5369 ;
5370 return 0;
5371}
5372_ACEOF
5373rm -f conftest.$ac_objext conftest$ac_exeext
5374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5375 (eval $ac_link) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -s conftest$ac_exeext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 eval "$as_ac_var=yes"
5386else
5387 echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
5390eval "$as_ac_var=no"
5391fi
5392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5393fi
5394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5396if test `eval echo '${'$as_ac_var'}'` = yes; then
5397 cat >>confdefs.h <<_ACEOF
5398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5399_ACEOF
5400
5401echo "$as_me:$LINENO: checking for _doprnt" >&5
5402echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5403if test "${ac_cv_func__doprnt+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406 cat >conftest.$ac_ext <<_ACEOF
5407#line $LINENO "configure"
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413/* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char _doprnt (); below.
5415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 <limits.h> exists even on freestanding compilers. */
5417#ifdef __STDC__
5418# include <limits.h>
5419#else
5420# include <assert.h>
5421#endif
5422/* Override any gcc2 internal prototype to avoid an error. */
5423#ifdef __cplusplus
5424extern "C"
5425{
5426#endif
5427/* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5429char _doprnt ();
5430/* The GNU C library defines this for functions which it implements
5431 to always fail with ENOSYS. Some functions are actually named
5432 something starting with __ and the normal name is an alias. */
5433#if defined (__stub__doprnt) || defined (__stub____doprnt)
5434choke me
5435#else
5436char (*f) () = _doprnt;
5437#endif
5438#ifdef __cplusplus
5439}
5440#endif
5441
5442int
5443main ()
5444{
5445return f != _doprnt;
5446 ;
5447 return 0;
5448}
5449_ACEOF
5450rm -f conftest.$ac_objext conftest$ac_exeext
5451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -s conftest$ac_exeext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_func__doprnt=yes
5463else
5464 echo "$as_me: failed program was:" >&5
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467ac_cv_func__doprnt=no
5468fi
5469rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5470fi
5471echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5472echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5473if test $ac_cv_func__doprnt = yes; then
5474
5475cat >>confdefs.h <<\_ACEOF
5476#define HAVE_DOPRNT 1
5477_ACEOF
5478
5479fi
5480
5481fi
5482done
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
5496do
5497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5498echo "$as_me:$LINENO: checking for $ac_func" >&5
5499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5500if eval "test \"\${$as_ac_var+set}\" = set"; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 cat >conftest.$ac_ext <<_ACEOF
5504#line $LINENO "configure"
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
5510/* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func (); below.
5512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5513 <limits.h> exists even on freestanding compilers. */
5514#ifdef __STDC__
5515# include <limits.h>
5516#else
5517# include <assert.h>
5518#endif
5519/* Override any gcc2 internal prototype to avoid an error. */
5520#ifdef __cplusplus
5521extern "C"
5522{
5523#endif
5524/* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5526char $ac_func ();
5527/* The GNU C library defines this for functions which it implements
5528 to always fail with ENOSYS. Some functions are actually named
5529 something starting with __ and the normal name is an alias. */
5530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5531choke me
5532#else
5533char (*f) () = $ac_func;
5534#endif
5535#ifdef __cplusplus
5536}
5537#endif
5538
5539int
5540main ()
5541{
5542return f != $ac_func;
5543 ;
5544 return 0;
5545}
5546_ACEOF
5547rm -f conftest.$ac_objext conftest$ac_exeext
5548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -s conftest$ac_exeext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 eval "$as_ac_var=yes"
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564eval "$as_ac_var=no"
5565fi
5566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5567fi
5568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5570if test `eval echo '${'$as_ac_var'}'` = yes; then
5571 cat >>confdefs.h <<_ACEOF
5572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5573_ACEOF
5574
5575fi
5576done
5577
5578
5579
5580
5581for ac_func in ftruncate strstr strcasecmp
5582do
5583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5584echo "$as_me:$LINENO: checking for $ac_func" >&5
5585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5586if eval "test \"\${$as_ac_var+set}\" = set"; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589 cat >conftest.$ac_ext <<_ACEOF
5590#line $LINENO "configure"
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596/* System header to define __stub macros and hopefully few prototypes,
5597 which can conflict with char $ac_func (); below.
5598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599 <limits.h> exists even on freestanding compilers. */
5600#ifdef __STDC__
5601# include <limits.h>
5602#else
5603# include <assert.h>
5604#endif
5605/* Override any gcc2 internal prototype to avoid an error. */
5606#ifdef __cplusplus
5607extern "C"
5608{
5609#endif
5610/* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5612char $ac_func ();
5613/* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5617choke me
5618#else
5619char (*f) () = $ac_func;
5620#endif
5621#ifdef __cplusplus
5622}
5623#endif
5624
5625int
5626main ()
5627{
5628return f != $ac_func;
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext conftest$ac_exeext
5634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635 (eval $ac_link) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -s conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 eval "$as_ac_var=yes"
5646else
5647 echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
5650eval "$as_ac_var=no"
5651fi
5652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5653fi
5654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5656if test `eval echo '${'$as_ac_var'}'` = yes; then
5657 cat >>confdefs.h <<_ACEOF
5658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5659_ACEOF
5660
5661else
5662 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5663fi
5664done
5665
5666
5667
5668
5669fp_WITH_DMALLOC
5670fp_WITH_REGEX
5671
5672# ---------------------------------------------------------------------------
5673
5674ac_ext=cc
5675ac_cpp='$CXXCPP $CPPFLAGS'
5676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5679
5680
5681
5682echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
5683echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
5684if test ! -z "$gdbmdir" ; then
5685 # look in given directory for header file
5686 if test -r $gdbmdir/include/gdbm.h ; then
5687 GDBM_INCLUDE="-I$gdbmdir/include" ;
5688 elif test -r $gdbmdir/gdbm.h ; then
5689 GDBM_INCLUDE="-I$gdbmdir" ;
5690 fi
5691
5692 # look in given directory for library
5693 if test -r $gdbmdir/libgdbm.a ; then
5694 GDBM_LIBPATH="-L$gdbmdir" ;
5695 elif test -r $gdbmdir/lib/libgdbm.a ; then
5696 GDBM_LIBPATH="-L$gdbmdir/lib" ;
5697 elif test -r $gdbmdir/.libs/libgdbm.a ; then
5698 GDBM_LIBPATH="-L$gdbmdir/.libs" ;
5699 fi
5700
5701 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
5702 echo "$as_me:$LINENO: result: $gdbmdir" >&5
5703echo "${ECHO_T}$gdbmdir" >&6 ;
5704 else
5705 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
5706echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
5707 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
5708echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
5709 fi
5710fi
5711
5712# look in default path and in /usr/local
5713if test -z "$GDBM_INCLUDE" ; then
5714 # try in system directory
5715
5716cat >conftest.$ac_ext <<_ACEOF
5717#line $LINENO "configure"
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723#include <gdbm.h>
5724
5725int
5726main ()
5727{
5728
5729 ;
5730 return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext
5734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 success=yes
5746else
5747 echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750success=no
5751
5752fi
5753rm -f conftest.$ac_objext conftest.$ac_ext
5754
5755 if test $success = "no"; then
5756# last chance - look in /usr/local (eg FreeBSD)
5757 GDBM_LIBPATH=-L/usr/local/lib
5758 GDBM_INCLUDE=-I/usr/local/include
5759 ac_save_CXXFLAGS="$CXXFLAGS"
5760 ac_save_LIBS="$LIBS"
5761 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
5762 LIBS="$LIBS -L/usr/local/lib -lgdbm"
5763 cat >conftest.$ac_ext <<_ACEOF
5764#line $LINENO "configure"
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770#include <gdbm.h>
5771#include <stdio.h>
5772
5773int
5774main ()
5775{
5776printf("%s",gdbm_version);
5777 ;
5778 return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext conftest$ac_exeext
5782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 success=/usr/local
5794else
5795 echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
5798success=no
5799
5800fi
5801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5802 CXXFLAGS=$ac_save_CXXFLAGS
5803 LIBS=$ac_save_LIBS
5804 fi
5805
5806 echo "$as_me:$LINENO: result: $success" >&5
5807echo "${ECHO_T}$success" >&6
5808 if test $success = "no"; then
5809 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
5810echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
5811 { (exit 1); exit 1; }; }
5812 fi
5813fi
5814cat >>confdefs.h <<\_ACEOF
5815#define HAVE_LIBGDBM 1
5816_ACEOF
5817
5818
5819
5820
5821
5822echo "$as_me:$LINENO: checking \"that Perl 5 is available\"" >&5
5823echo $ECHO_N "checking \"that Perl 5 is available\"... $ECHO_C" >&6
5824success="no"
5825pl_path="$PATH"
5826IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
5827for pl_dir in $pl_path; do
5828 test -z "$pl_dir" && pl_dir=.
5829 if test -x $pl_dir/perl; then
5830 success="yes"
5831 break
5832 fi
5833done
5834IFS="$pl_save_ifs"
5835
5836if test $success = "yes"; then
5837try=`perl configtest.pl` || try="0"
5838try=`expr $try \> 5.000`
5839if test $try = "1"; then
5840echo "$as_me:$LINENO: result: \"yes\"" >&5
5841echo "${ECHO_T}\"yes\"" >&6
5842else
5843success="no"
5844fi
5845fi
5846
5847if test $success = "no"; then
5848echo "$as_me:$LINENO: result: \"no\"" >&5
5849echo "${ECHO_T}\"no\"" >&6
5850{ { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
5851echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
5852 { (exit 1); exit 1; }; }
5853fi
5854
5855success=no
5856echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
5857echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
5858
5859cat >conftest.$ac_ext <<_ACEOF
5860#line $LINENO "configure"
5861/* confdefs.h. */
5862_ACEOF
5863cat confdefs.h >>conftest.$ac_ext
5864cat >>conftest.$ac_ext <<_ACEOF
5865/* end confdefs.h. */
5866#include <vector>
5867
5868int
5869main ()
5870{
5871
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876rm -f conftest.$ac_objext
5877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 success=yes
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893fi
5894rm -f conftest.$ac_objext conftest.$ac_ext
5895
5896if test $success = "no"; then
5897cat >conftest.$ac_ext <<_ACEOF
5898#line $LINENO "configure"
5899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
5904#include <vector.h>
5905
5906int
5907main ()
5908{
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914rm -f conftest.$ac_objext
5915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest.$ac_objext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 success="yes"
5927else
5928 echo "$as_me: failed program was:" >&5
5929sed 's/^/| /' conftest.$ac_ext >&5
5930
5931fi
5932rm -f conftest.$ac_objext conftest.$ac_ext
5933fi
5934
5935if test $success = "no"; then
5936cat >conftest.$ac_ext <<_ACEOF
5937#line $LINENO "configure"
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943#include <ospace\\std\\vector>
5944
5945int
5946main ()
5947{
5948
5949 ;
5950 return 0;
5951}
5952_ACEOF
5953rm -f conftest.$ac_objext
5954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 success="yes"
5966else
5967 echo "$as_me: failed program was:" >&5
5968sed 's/^/| /' conftest.$ac_ext >&5
5969
5970fi
5971rm -f conftest.$ac_objext conftest.$ac_ext
5972fi
5973
5974if test $success = yes; then
5975echo "$as_me:$LINENO: result: \"no\"" >&5
5976echo "${ECHO_T}\"no\"" >&6
5977else
5978echo "$as_me:$LINENO: result: \"yes\"" >&5
5979echo "${ECHO_T}\"yes\"" >&6
5980{ { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
5981echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
5982 { (exit 1); exit 1; }; }
5983fi
5984
5985gsdlos=`uname | tr A-Z a-z`
5986
5987
5988fp_WITH_DMALLOC
5989fp_WITH_REGEX
5990
5991# ---------------------------------------------------------------------------
5992
5993 ac_config_files="$ac_config_files Makefile"
5994cat >confcache <<\_ACEOF
5995# This file is a shell script that caches the results of configure
5996# tests run on this system so they can be shared between configure
5997# scripts and configure runs, see configure's option --config-cache.
5998# It is not useful on other systems. If it contains results you don't
5999# want to keep, you may remove or edit it.
6000#
6001# config.status only pays attention to the cache file if you give it
6002# the --recheck option to rerun configure.
6003#
6004# `ac_cv_env_foo' variables (set or unset) will be overridden when
6005# loading this file, other *unset* `ac_cv_foo' will be assigned the
6006# following values.
6007
6008_ACEOF
6009
6010# The following way of writing the cache mishandles newlines in values,
6011# but we know of no workaround that is simple, portable, and efficient.
6012# So, don't put newlines in cache variables' values.
6013# Ultrix sh set writes to stderr and can't be redirected directly,
6014# and sets the high bit in the cache file unless we assign to the vars.
6015{
6016 (set) 2>&1 |
6017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6018 *ac_space=\ *)
6019 # `set' does not quote correctly, so add quotes (double-quote
6020 # substitution turns \\\\ into \\, and sed turns \\ into \).
6021 sed -n \
6022 "s/'/'\\\\''/g;
6023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6024 ;;
6025 *)
6026 # `set' quotes correctly as required by POSIX, so do not add quotes.
6027 sed -n \
6028 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6029 ;;
6030 esac;
6031} |
6032 sed '
6033 t clear
6034 : clear
6035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6036 t end
6037 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6038 : end' >>confcache
6039if diff $cache_file confcache >/dev/null 2>&1; then :; else
6040 if test -w $cache_file; then
6041 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6042 cat confcache >$cache_file
6043 else
6044 echo "not updating unwritable cache $cache_file"
6045 fi
6046fi
6047rm -f confcache
6048
6049test "x$prefix" = xNONE && prefix=$ac_default_prefix
6050# Let make expand exec_prefix.
6051test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6052
6053# VPATH may cause trouble with some makes, so we remove $(srcdir),
6054# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6055# trailing colons and then remove the whole line if VPATH becomes empty
6056# (actually we leave an empty line to preserve line numbers).
6057if test "x$srcdir" = x.; then
6058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6059s/:*\$(srcdir):*/:/;
6060s/:*\${srcdir}:*/:/;
6061s/:*@srcdir@:*/:/;
6062s/^\([^=]*=[ ]*\):*/\1/;
6063s/:*$//;
6064s/^[^=]*=[ ]*$//;
6065}'
6066fi
6067
6068DEFS=-DHAVE_CONFIG_H
6069
6070ac_libobjs=
6071ac_ltlibobjs=
6072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6073 # 1. Remove the extension, and $U if already installed.
6074 ac_i=`echo "$ac_i" |
6075 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6076 # 2. Add them.
6077 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6078 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6079done
6080LIBOBJS=$ac_libobjs
6081
6082LTLIBOBJS=$ac_ltlibobjs
6083
6084
6085
6086: ${CONFIG_STATUS=./config.status}
6087ac_clean_files_save=$ac_clean_files
6088ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6089{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6090echo "$as_me: creating $CONFIG_STATUS" >&6;}
6091cat >$CONFIG_STATUS <<_ACEOF
6092#! $SHELL
6093# Generated by $as_me.
6094# Run this file to recreate the current configuration.
6095# Compiler output produced by configure, useful for debugging
6096# configure, is in config.log if it exists.
6097
6098debug=false
6099ac_cs_recheck=false
6100ac_cs_silent=false
6101SHELL=\${CONFIG_SHELL-$SHELL}
6102_ACEOF
6103
6104cat >>$CONFIG_STATUS <<\_ACEOF
6105## --------------------- ##
6106## M4sh Initialization. ##
6107## --------------------- ##
6108
6109# Be Bourne compatible
6110if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6111 emulate sh
6112 NULLCMD=:
6113 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6114 # is contrary to our usage. Disable this feature.
6115 alias -g '${1+"$@"}'='"$@"'
6116elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6117 set -o posix
6118fi
6119
6120# Support unset when possible.
6121if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6122 as_unset=unset
6123else
6124 as_unset=false
6125fi
6126
6127
6128# Work around bugs in pre-3.0 UWIN ksh.
6129$as_unset ENV MAIL MAILPATH
6130PS1='$ '
6131PS2='> '
6132PS4='+ '
6133
6134# NLS nuisances.
6135for as_var in \
6136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6138 LC_TELEPHONE LC_TIME
6139do
6140 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6141 eval $as_var=C; export $as_var
6142 else
6143 $as_unset $as_var
6144 fi
6145done
6146
6147# Required to use basename.
6148if expr a : '\(a\)' >/dev/null 2>&1; then
6149 as_expr=expr
6150else
6151 as_expr=false
6152fi
6153
6154if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6155 as_basename=basename
6156else
6157 as_basename=false
6158fi
6159
6160
6161# Name of the executable.
6162as_me=`$as_basename "$0" ||
6163$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6164 X"$0" : 'X\(//\)$' \| \
6165 X"$0" : 'X\(/\)$' \| \
6166 . : '\(.\)' 2>/dev/null ||
6167echo X/"$0" |
6168 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6169 /^X\/\(\/\/\)$/{ s//\1/; q; }
6170 /^X\/\(\/\).*/{ s//\1/; q; }
6171 s/.*/./; q'`
6172
6173
6174# PATH needs CR, and LINENO needs CR and PATH.
6175# Avoid depending upon Character Ranges.
6176as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6177as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6178as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6179as_cr_digits='0123456789'
6180as_cr_alnum=$as_cr_Letters$as_cr_digits
6181
6182# The user is always right.
6183if test "${PATH_SEPARATOR+set}" != set; then
6184 echo "#! /bin/sh" >conf$$.sh
6185 echo "exit 0" >>conf$$.sh
6186 chmod +x conf$$.sh
6187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6188 PATH_SEPARATOR=';'
6189 else
6190 PATH_SEPARATOR=:
6191 fi
6192 rm -f conf$$.sh
6193fi
6194
6195
6196 as_lineno_1=$LINENO
6197 as_lineno_2=$LINENO
6198 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6199 test "x$as_lineno_1" != "x$as_lineno_2" &&
6200 test "x$as_lineno_3" = "x$as_lineno_2" || {
6201 # Find who we are. Look in the path if we contain no path at all
6202 # relative or not.
6203 case $0 in
6204 *[\\/]* ) as_myself=$0 ;;
6205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6211done
6212
6213 ;;
6214 esac
6215 # We did not find ourselves, most probably we were run as `sh COMMAND'
6216 # in which case we are not to be found in the path.
6217 if test "x$as_myself" = x; then
6218 as_myself=$0
6219 fi
6220 if test ! -f "$as_myself"; then
6221 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6222echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6223 { (exit 1); exit 1; }; }
6224 fi
6225 case $CONFIG_SHELL in
6226 '')
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for as_base in sh bash ksh sh5; do
6233 case $as_dir in
6234 /*)
6235 if ("$as_dir/$as_base" -c '
6236 as_lineno_1=$LINENO
6237 as_lineno_2=$LINENO
6238 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6239 test "x$as_lineno_1" != "x$as_lineno_2" &&
6240 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6241 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6242 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6243 CONFIG_SHELL=$as_dir/$as_base
6244 export CONFIG_SHELL
6245 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6246 fi;;
6247 esac
6248 done
6249done
6250;;
6251 esac
6252
6253 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6254 # uniformly replaced by the line number. The first 'sed' inserts a
6255 # line-number line before each line; the second 'sed' does the real
6256 # work. The second script uses 'N' to pair each line-number line
6257 # with the numbered line, and appends trailing '-' during
6258 # substitution so that $LINENO is not a special case at line end.
6259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6260 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6261 sed '=' <$as_myself |
6262 sed '
6263 N
6264 s,$,-,
6265 : loop
6266 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6267 t loop
6268 s,-$,,
6269 s,^['$as_cr_digits']*\n,,
6270 ' >$as_me.lineno &&
6271 chmod +x $as_me.lineno ||
6272 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6273echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6274 { (exit 1); exit 1; }; }
6275
6276 # Don't try to exec as it changes $[0], causing all sort of problems
6277 # (the dirname of $[0] is not the place where we might find the
6278 # original and so on. Autoconf is especially sensible to this).
6279 . ./$as_me.lineno
6280 # Exit status is that of the last command.
6281 exit
6282}
6283
6284
6285case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6286 *c*,-n*) ECHO_N= ECHO_C='
6287' ECHO_T=' ' ;;
6288 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6289 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6290esac
6291
6292if expr a : '\(a\)' >/dev/null 2>&1; then
6293 as_expr=expr
6294else
6295 as_expr=false
6296fi
6297
6298rm -f conf$$ conf$$.exe conf$$.file
6299echo >conf$$.file
6300if ln -s conf$$.file conf$$ 2>/dev/null; then
6301 # We could just check for DJGPP; but this test a) works b) is more generic
6302 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6303 if test -f conf$$.exe; then
6304 # Don't use ln at all; we don't have any links
6305 as_ln_s='cp -p'
6306 else
6307 as_ln_s='ln -s'
6308 fi
6309elif ln conf$$.file conf$$ 2>/dev/null; then
6310 as_ln_s=ln
6311else
6312 as_ln_s='cp -p'
6313fi
6314rm -f conf$$ conf$$.exe conf$$.file
6315
6316if mkdir -p . 2>/dev/null; then
6317 as_mkdir_p=:
6318else
6319 as_mkdir_p=false
6320fi
6321
6322as_executable_p="test -f"
6323
6324# Sed expression to map a string onto a valid CPP name.
6325as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6326
6327# Sed expression to map a string onto a valid variable name.
6328as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6329
6330
6331# IFS
6332# We need space, tab and new line, in precisely that order.
6333as_nl='
6334'
6335IFS=" $as_nl"
6336
6337# CDPATH.
6338$as_unset CDPATH
6339
6340exec 6>&1
6341
6342# Open the log real soon, to keep \$[0] and so on meaningful, and to
6343# report actual input values of CONFIG_FILES etc. instead of their
6344# values after options handling. Logging --version etc. is OK.
6345exec 5>>config.log
6346{
6347 echo
6348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6349## Running $as_me. ##
6350_ASBOX
6351} >&5
6352cat >&5 <<_CSEOF
6353
6354This file was extended by $as_me, which was
6355generated by GNU Autoconf 2.57. Invocation command line was
6356
6357 CONFIG_FILES = $CONFIG_FILES
6358 CONFIG_HEADERS = $CONFIG_HEADERS
6359 CONFIG_LINKS = $CONFIG_LINKS
6360 CONFIG_COMMANDS = $CONFIG_COMMANDS
6361 $ $0 $@
6362
6363_CSEOF
6364echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6365echo >&5
6366_ACEOF
6367
6368# Files that config.status was made for.
6369if test -n "$ac_config_files"; then
6370 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6371fi
6372
6373if test -n "$ac_config_headers"; then
6374 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6375fi
6376
6377if test -n "$ac_config_links"; then
6378 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6379fi
6380
6381if test -n "$ac_config_commands"; then
6382 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6383fi
6384
6385cat >>$CONFIG_STATUS <<\_ACEOF
6386
6387ac_cs_usage="\
6388\`$as_me' instantiates files from templates according to the
6389current configuration.
6390
6391Usage: $0 [OPTIONS] [FILE]...
6392
6393 -h, --help print this help, then exit
6394 -V, --version print version number, then exit
6395 -q, --quiet do not print progress messages
6396 -d, --debug don't remove temporary files
6397 --recheck update $as_me by reconfiguring in the same conditions
6398 --file=FILE[:TEMPLATE]
6399 instantiate the configuration file FILE
6400 --header=FILE[:TEMPLATE]
6401 instantiate the configuration header FILE
6402
6403Configuration files:
6404$config_files
6405
6406Configuration headers:
6407$config_headers
6408
6409Report bugs to <[email protected]>."
6410_ACEOF
6411
6412cat >>$CONFIG_STATUS <<_ACEOF
6413ac_cs_version="\\
6414config.status
6415configured by $0, generated by GNU Autoconf 2.57,
6416 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6417
6418Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6419Free Software Foundation, Inc.
6420This config.status script is free software; the Free Software Foundation
6421gives unlimited permission to copy, distribute and modify it."
6422srcdir=$srcdir
6423INSTALL="$INSTALL"
6424_ACEOF
6425
6426cat >>$CONFIG_STATUS <<\_ACEOF
6427# If no file are specified by the user, then we need to provide default
6428# value. By we need to know if files were specified by the user.
6429ac_need_defaults=:
6430while test $# != 0
6431do
6432 case $1 in
6433 --*=*)
6434 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6435 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6436 ac_shift=:
6437 ;;
6438 -*)
6439 ac_option=$1
6440 ac_optarg=$2
6441 ac_shift=shift
6442 ;;
6443 *) # This is not an option, so the user has probably given explicit
6444 # arguments.
6445 ac_option=$1
6446 ac_need_defaults=false;;
6447 esac
6448
6449 case $ac_option in
6450 # Handling of the options.
6451_ACEOF
6452cat >>$CONFIG_STATUS <<\_ACEOF
6453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6454 ac_cs_recheck=: ;;
6455 --version | --vers* | -V )
6456 echo "$ac_cs_version"; exit 0 ;;
6457 --he | --h)
6458 # Conflict between --help and --header
6459 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6460Try \`$0 --help' for more information." >&5
6461echo "$as_me: error: ambiguous option: $1
6462Try \`$0 --help' for more information." >&2;}
6463 { (exit 1); exit 1; }; };;
6464 --help | --hel | -h )
6465 echo "$ac_cs_usage"; exit 0 ;;
6466 --debug | --d* | -d )
6467 debug=: ;;
6468 --file | --fil | --fi | --f )
6469 $ac_shift
6470 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6471 ac_need_defaults=false;;
6472 --header | --heade | --head | --hea )
6473 $ac_shift
6474 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6475 ac_need_defaults=false;;
6476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6477 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6478 ac_cs_silent=: ;;
6479
6480 # This is an error.
6481 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6482Try \`$0 --help' for more information." >&5
6483echo "$as_me: error: unrecognized option: $1
6484Try \`$0 --help' for more information." >&2;}
6485 { (exit 1); exit 1; }; } ;;
6486
6487 *) ac_config_targets="$ac_config_targets $1" ;;
6488
6489 esac
6490 shift
6491done
6492
6493ac_configure_extra_args=
6494
6495if $ac_cs_silent; then
6496 exec 6>/dev/null
6497 ac_configure_extra_args="$ac_configure_extra_args --silent"
6498fi
6499
6500_ACEOF
6501cat >>$CONFIG_STATUS <<_ACEOF
6502if \$ac_cs_recheck; then
6503 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6504 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6505fi
6506
6507_ACEOF
6508
6509
6510
6511
6512
6513cat >>$CONFIG_STATUS <<\_ACEOF
6514for ac_config_target in $ac_config_targets
6515do
6516 case "$ac_config_target" in
6517 # Handling of arguments.
6518 "src/recpt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/recpt/Makefile" ;;
6519 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6520 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6521 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6522echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6523 { (exit 1); exit 1; }; };;
6524 esac
6525done
6526
6527# If the user did not use the arguments to specify the items to instantiate,
6528# then the envvar interface is used. Set only those that are not.
6529# We use the long form for the default assignment because of an extremely
6530# bizarre bug on SunOS 4.1.3.
6531if $ac_need_defaults; then
6532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6534fi
6535
6536# Have a temporary directory for convenience. Make it in the build tree
6537# simply because there is no reason to put it here, and in addition,
6538# creating and moving files from /tmp can sometimes cause problems.
6539# Create a temporary directory, and hook for its removal unless debugging.
6540$debug ||
6541{
6542 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6543 trap '{ (exit 1); exit 1; }' 1 2 13 15
6544}
6545
6546# Create a (secure) tmp directory for tmp files.
6547
6548{
6549 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6550 test -n "$tmp" && test -d "$tmp"
6551} ||
6552{
6553 tmp=./confstat$$-$RANDOM
6554 (umask 077 && mkdir $tmp)
6555} ||
6556{
6557 echo "$me: cannot create a temporary directory in ." >&2
6558 { (exit 1); exit 1; }
6559}
6560
6561_ACEOF
6562
6563cat >>$CONFIG_STATUS <<_ACEOF
6564
6565#
6566# CONFIG_FILES section.
6567#
6568
6569# No need to generate the scripts if there are no CONFIG_FILES.
6570# This happens for instance when ./config.status config.h
6571if test -n "\$CONFIG_FILES"; then
6572 # Protect against being on the right side of a sed subst in config.status.
6573 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6574 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6575s,@SHELL@,$SHELL,;t t
6576s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6577s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6578s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6579s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6580s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6581s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6582s,@exec_prefix@,$exec_prefix,;t t
6583s,@prefix@,$prefix,;t t
6584s,@program_transform_name@,$program_transform_name,;t t
6585s,@bindir@,$bindir,;t t
6586s,@sbindir@,$sbindir,;t t
6587s,@libexecdir@,$libexecdir,;t t
6588s,@datadir@,$datadir,;t t
6589s,@sysconfdir@,$sysconfdir,;t t
6590s,@sharedstatedir@,$sharedstatedir,;t t
6591s,@localstatedir@,$localstatedir,;t t
6592s,@libdir@,$libdir,;t t
6593s,@includedir@,$includedir,;t t
6594s,@oldincludedir@,$oldincludedir,;t t
6595s,@infodir@,$infodir,;t t
6596s,@mandir@,$mandir,;t t
6597s,@build_alias@,$build_alias,;t t
6598s,@host_alias@,$host_alias,;t t
6599s,@target_alias@,$target_alias,;t t
6600s,@DEFS@,$DEFS,;t t
6601s,@ECHO_C@,$ECHO_C,;t t
6602s,@ECHO_N@,$ECHO_N,;t t
6603s,@ECHO_T@,$ECHO_T,;t t
6604s,@LIBS@,$LIBS,;t t
6605s,@PACKAGE@,$PACKAGE,;t t
6606s,@VERSION@,$VERSION,;t t
6607s,@USE_FASTCGI@,$USE_FASTCGI,;t t
6608s,@CFLAGS@,$CFLAGS,;t t
6609s,@CC@,$CC,;t t
6610s,@LDFLAGS@,$LDFLAGS,;t t
6611s,@CPPFLAGS@,$CPPFLAGS,;t t
6612s,@ac_ct_CC@,$ac_ct_CC,;t t
6613s,@EXEEXT@,$EXEEXT,;t t
6614s,@OBJEXT@,$OBJEXT,;t t
6615s,@CXX@,$CXX,;t t
6616s,@CXXFLAGS@,$CXXFLAGS,;t t
6617s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6618s,@AWK@,$AWK,;t t
6619s,@YACC@,$YACC,;t t
6620s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6621s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6622s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6623s,@LN_S@,$LN_S,;t t
6624s,@SET_MAKE@,$SET_MAKE,;t t
6625s,@RANLIB@,$RANLIB,;t t
6626s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6627s,@CPP@,$CPP,;t t
6628s,@EGREP@,$EGREP,;t t
6629s,@ALLOCA@,$ALLOCA,;t t
6630s,@LIBOBJS@,$LIBOBJS,;t t
6631s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
6632s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
6633s,@gsdlos@,$gsdlos,;t t
6634s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6635CEOF
6636
6637_ACEOF
6638
6639 cat >>$CONFIG_STATUS <<\_ACEOF
6640 # Split the substitutions into bite-sized pieces for seds with
6641 # small command number limits, like on Digital OSF/1 and HP-UX.
6642 ac_max_sed_lines=48
6643 ac_sed_frag=1 # Number of current file.
6644 ac_beg=1 # First line for current file.
6645 ac_end=$ac_max_sed_lines # Line after last line for current file.
6646 ac_more_lines=:
6647 ac_sed_cmds=
6648 while $ac_more_lines; do
6649 if test $ac_beg -gt 1; then
6650 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6651 else
6652 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6653 fi
6654 if test ! -s $tmp/subs.frag; then
6655 ac_more_lines=false
6656 else
6657 # The purpose of the label and of the branching condition is to
6658 # speed up the sed processing (if there are no `@' at all, there
6659 # is no need to browse any of the substitutions).
6660 # These are the two extra sed commands mentioned above.
6661 (echo ':t
6662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6663 if test -z "$ac_sed_cmds"; then
6664 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6665 else
6666 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6667 fi
6668 ac_sed_frag=`expr $ac_sed_frag + 1`
6669 ac_beg=$ac_end
6670 ac_end=`expr $ac_end + $ac_max_sed_lines`
6671 fi
6672 done
6673 if test -z "$ac_sed_cmds"; then
6674 ac_sed_cmds=cat
6675 fi
6676fi # test -n "$CONFIG_FILES"
6677
6678_ACEOF
6679cat >>$CONFIG_STATUS <<\_ACEOF
6680for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6681 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6682 case $ac_file in
6683 - | *:- | *:-:* ) # input from stdin
6684 cat >$tmp/stdin
6685 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6687 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6688 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6689 * ) ac_file_in=$ac_file.in ;;
6690 esac
6691
6692 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6693 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6694$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6695 X"$ac_file" : 'X\(//\)[^/]' \| \
6696 X"$ac_file" : 'X\(//\)$' \| \
6697 X"$ac_file" : 'X\(/\)' \| \
6698 . : '\(.\)' 2>/dev/null ||
6699echo X"$ac_file" |
6700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6702 /^X\(\/\/\)$/{ s//\1/; q; }
6703 /^X\(\/\).*/{ s//\1/; q; }
6704 s/.*/./; q'`
6705 { if $as_mkdir_p; then
6706 mkdir -p "$ac_dir"
6707 else
6708 as_dir="$ac_dir"
6709 as_dirs=
6710 while test ! -d "$as_dir"; do
6711 as_dirs="$as_dir $as_dirs"
6712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6713$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6714 X"$as_dir" : 'X\(//\)[^/]' \| \
6715 X"$as_dir" : 'X\(//\)$' \| \
6716 X"$as_dir" : 'X\(/\)' \| \
6717 . : '\(.\)' 2>/dev/null ||
6718echo X"$as_dir" |
6719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6721 /^X\(\/\/\)$/{ s//\1/; q; }
6722 /^X\(\/\).*/{ s//\1/; q; }
6723 s/.*/./; q'`
6724 done
6725 test ! -n "$as_dirs" || mkdir $as_dirs
6726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6727echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6728 { (exit 1); exit 1; }; }; }
6729
6730 ac_builddir=.
6731
6732if test "$ac_dir" != .; then
6733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6734 # A "../" for each directory in $ac_dir_suffix.
6735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6736else
6737 ac_dir_suffix= ac_top_builddir=
6738fi
6739
6740case $srcdir in
6741 .) # No --srcdir option. We are building in place.
6742 ac_srcdir=.
6743 if test -z "$ac_top_builddir"; then
6744 ac_top_srcdir=.
6745 else
6746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6747 fi ;;
6748 [\\/]* | ?:[\\/]* ) # Absolute path.
6749 ac_srcdir=$srcdir$ac_dir_suffix;
6750 ac_top_srcdir=$srcdir ;;
6751 *) # Relative path.
6752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6754esac
6755# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6756# absolute.
6757ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6758ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6759ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6760ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6761
6762
6763 case $INSTALL in
6764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6765 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6766 esac
6767
6768 if test x"$ac_file" != x-; then
6769 { echo "$as_me:$LINENO: creating $ac_file" >&5
6770echo "$as_me: creating $ac_file" >&6;}
6771 rm -f "$ac_file"
6772 fi
6773 # Let's still pretend it is `configure' which instantiates (i.e., don't
6774 # use $as_me), people would be surprised to read:
6775 # /* config.h. Generated by config.status. */
6776 if test x"$ac_file" = x-; then
6777 configure_input=
6778 else
6779 configure_input="$ac_file. "
6780 fi
6781 configure_input=$configure_input"Generated from `echo $ac_file_in |
6782 sed 's,.*/,,'` by configure."
6783
6784 # First look for the input files in the build tree, otherwise in the
6785 # src tree.
6786 ac_file_inputs=`IFS=:
6787 for f in $ac_file_in; do
6788 case $f in
6789 -) echo $tmp/stdin ;;
6790 [\\/$]*)
6791 # Absolute (can't be DOS-style, as IFS=:)
6792 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6793echo "$as_me: error: cannot find input file: $f" >&2;}
6794 { (exit 1); exit 1; }; }
6795 echo $f;;
6796 *) # Relative
6797 if test -f "$f"; then
6798 # Build tree
6799 echo $f
6800 elif test -f "$srcdir/$f"; then
6801 # Source tree
6802 echo $srcdir/$f
6803 else
6804 # /dev/null tree
6805 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6806echo "$as_me: error: cannot find input file: $f" >&2;}
6807 { (exit 1); exit 1; }; }
6808 fi;;
6809 esac
6810 done` || { (exit 1); exit 1; }
6811_ACEOF
6812cat >>$CONFIG_STATUS <<_ACEOF
6813 sed "$ac_vpsub
6814$extrasub
6815_ACEOF
6816cat >>$CONFIG_STATUS <<\_ACEOF
6817:t
6818/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6819s,@configure_input@,$configure_input,;t t
6820s,@srcdir@,$ac_srcdir,;t t
6821s,@abs_srcdir@,$ac_abs_srcdir,;t t
6822s,@top_srcdir@,$ac_top_srcdir,;t t
6823s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6824s,@builddir@,$ac_builddir,;t t
6825s,@abs_builddir@,$ac_abs_builddir,;t t
6826s,@top_builddir@,$ac_top_builddir,;t t
6827s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6828s,@INSTALL@,$ac_INSTALL,;t t
6829" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6830 rm -f $tmp/stdin
6831 if test x"$ac_file" != x-; then
6832 mv $tmp/out $ac_file
6833 else
6834 cat $tmp/out
6835 rm -f $tmp/out
6836 fi
6837
6838done
6839_ACEOF
6840cat >>$CONFIG_STATUS <<\_ACEOF
6841
6842#
6843# CONFIG_HEADER section.
6844#
6845
6846# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6847# NAME is the cpp macro being defined and VALUE is the value it is being given.
6848#
6849# ac_d sets the value in "#define NAME VALUE" lines.
6850ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6851ac_dB='[ ].*$,\1#\2'
6852ac_dC=' '
6853ac_dD=',;t'
6854# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6855ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6856ac_uB='$,\1#\2define\3'
6857ac_uC=' '
6858ac_uD=',;t'
6859
6860for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6861 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6862 case $ac_file in
6863 - | *:- | *:-:* ) # input from stdin
6864 cat >$tmp/stdin
6865 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6867 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6869 * ) ac_file_in=$ac_file.in ;;
6870 esac
6871
6872 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6873echo "$as_me: creating $ac_file" >&6;}
6874
6875 # First look for the input files in the build tree, otherwise in the
6876 # src tree.
6877 ac_file_inputs=`IFS=:
6878 for f in $ac_file_in; do
6879 case $f in
6880 -) echo $tmp/stdin ;;
6881 [\\/$]*)
6882 # Absolute (can't be DOS-style, as IFS=:)
6883 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6884echo "$as_me: error: cannot find input file: $f" >&2;}
6885 { (exit 1); exit 1; }; }
6886 echo $f;;
6887 *) # Relative
6888 if test -f "$f"; then
6889 # Build tree
6890 echo $f
6891 elif test -f "$srcdir/$f"; then
6892 # Source tree
6893 echo $srcdir/$f
6894 else
6895 # /dev/null tree
6896 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6897echo "$as_me: error: cannot find input file: $f" >&2;}
6898 { (exit 1); exit 1; }; }
6899 fi;;
6900 esac
6901 done` || { (exit 1); exit 1; }
6902 # Remove the trailing spaces.
6903 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6904
6905_ACEOF
6906
6907# Transform confdefs.h into two sed scripts, `conftest.defines' and
6908# `conftest.undefs', that substitutes the proper values into
6909# config.h.in to produce config.h. The first handles `#define'
6910# templates, and the second `#undef' templates.
6911# And first: Protect against being on the right side of a sed subst in
6912# config.status. Protect against being in an unquoted here document
6913# in config.status.
6914rm -f conftest.defines conftest.undefs
6915# Using a here document instead of a string reduces the quoting nightmare.
6916# Putting comments in sed scripts is not portable.
6917#
6918# `end' is used to avoid that the second main sed command (meant for
6919# 0-ary CPP macros) applies to n-ary macro definitions.
6920# See the Autoconf documentation for `clear'.
6921cat >confdef2sed.sed <<\_ACEOF
6922s/[\\&,]/\\&/g
6923s,[\\$`],\\&,g
6924t clear
6925: clear
6926s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6927t end
6928s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6929: end
6930_ACEOF
6931# If some macros were called several times there might be several times
6932# the same #defines, which is useless. Nevertheless, we may not want to
6933# sort them, since we want the *last* AC-DEFINE to be honored.
6934uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6935sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6936rm -f confdef2sed.sed
6937
6938# This sed command replaces #undef with comments. This is necessary, for
6939# example, in the case of _POSIX_SOURCE, which is predefined and required
6940# on some systems where configure will not decide to define it.
6941cat >>conftest.undefs <<\_ACEOF
6942s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6943_ACEOF
6944
6945# Break up conftest.defines because some shells have a limit on the size
6946# of here documents, and old seds have small limits too (100 cmds).
6947echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6948echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6949echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6950echo ' :' >>$CONFIG_STATUS
6951rm -f conftest.tail
6952while grep . conftest.defines >/dev/null
6953do
6954 # Write a limited-size here document to $tmp/defines.sed.
6955 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6956 # Speed up: don't consider the non `#define' lines.
6957 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6958 # Work around the forget-to-reset-the-flag bug.
6959 echo 't clr' >>$CONFIG_STATUS
6960 echo ': clr' >>$CONFIG_STATUS
6961 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6962 echo 'CEOF
6963 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6964 rm -f $tmp/in
6965 mv $tmp/out $tmp/in
6966' >>$CONFIG_STATUS
6967 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6968 rm -f conftest.defines
6969 mv conftest.tail conftest.defines
6970done
6971rm -f conftest.defines
6972echo ' fi # grep' >>$CONFIG_STATUS
6973echo >>$CONFIG_STATUS
6974
6975# Break up conftest.undefs because some shells have a limit on the size
6976# of here documents, and old seds have small limits too (100 cmds).
6977echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6978rm -f conftest.tail
6979while grep . conftest.undefs >/dev/null
6980do
6981 # Write a limited-size here document to $tmp/undefs.sed.
6982 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6983 # Speed up: don't consider the non `#undef'
6984 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6985 # Work around the forget-to-reset-the-flag bug.
6986 echo 't clr' >>$CONFIG_STATUS
6987 echo ': clr' >>$CONFIG_STATUS
6988 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6989 echo 'CEOF
6990 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6991 rm -f $tmp/in
6992 mv $tmp/out $tmp/in
6993' >>$CONFIG_STATUS
6994 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6995 rm -f conftest.undefs
6996 mv conftest.tail conftest.undefs
6997done
6998rm -f conftest.undefs
6999
7000cat >>$CONFIG_STATUS <<\_ACEOF
7001 # Let's still pretend it is `configure' which instantiates (i.e., don't
7002 # use $as_me), people would be surprised to read:
7003 # /* config.h. Generated by config.status. */
7004 if test x"$ac_file" = x-; then
7005 echo "/* Generated by configure. */" >$tmp/config.h
7006 else
7007 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7008 fi
7009 cat $tmp/in >>$tmp/config.h
7010 rm -f $tmp/in
7011 if test x"$ac_file" != x-; then
7012 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7013 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7014echo "$as_me: $ac_file is unchanged" >&6;}
7015 else
7016 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7017$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7018 X"$ac_file" : 'X\(//\)[^/]' \| \
7019 X"$ac_file" : 'X\(//\)$' \| \
7020 X"$ac_file" : 'X\(/\)' \| \
7021 . : '\(.\)' 2>/dev/null ||
7022echo X"$ac_file" |
7023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7025 /^X\(\/\/\)$/{ s//\1/; q; }
7026 /^X\(\/\).*/{ s//\1/; q; }
7027 s/.*/./; q'`
7028 { if $as_mkdir_p; then
7029 mkdir -p "$ac_dir"
7030 else
7031 as_dir="$ac_dir"
7032 as_dirs=
7033 while test ! -d "$as_dir"; do
7034 as_dirs="$as_dir $as_dirs"
7035 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7037 X"$as_dir" : 'X\(//\)[^/]' \| \
7038 X"$as_dir" : 'X\(//\)$' \| \
7039 X"$as_dir" : 'X\(/\)' \| \
7040 . : '\(.\)' 2>/dev/null ||
7041echo X"$as_dir" |
7042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7044 /^X\(\/\/\)$/{ s//\1/; q; }
7045 /^X\(\/\).*/{ s//\1/; q; }
7046 s/.*/./; q'`
7047 done
7048 test ! -n "$as_dirs" || mkdir $as_dirs
7049 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7050echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7051 { (exit 1); exit 1; }; }; }
7052
7053 rm -f $ac_file
7054 mv $tmp/config.h $ac_file
7055 fi
7056 else
7057 cat $tmp/config.h
7058 rm -f $tmp/config.h
7059 fi
7060done
7061_ACEOF
7062
7063cat >>$CONFIG_STATUS <<\_ACEOF
7064
7065{ (exit 0); exit 0; }
7066_ACEOF
7067chmod +x $CONFIG_STATUS
7068ac_clean_files=$ac_clean_files_save
7069
7070
7071# configure is writing to config.log, and then calls config.status.
7072# config.status does its own redirection, appending to config.log.
7073# Unfortunately, on DOS this fails, as config.log is still kept open
7074# by configure, so config.status won't be able to write to it; its
7075# output is simply discarded. So we exec the FD to /dev/null,
7076# effectively closing config.log, so it can be properly (re)opened and
7077# appended to by config.status. When coming back to configure, we
7078# need to make the FD available again.
7079if test "$no_create" != yes; then
7080 ac_cs_success=:
7081 ac_config_status_args=
7082 test "$silent" = yes &&
7083 ac_config_status_args="$ac_config_status_args --quiet"
7084 exec 5>/dev/null
7085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7086 exec 5>>config.log
7087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7088 # would make configure fail if this is the last instruction.
7089 $ac_cs_success || { (exit 1); exit 1; }
7090fi
7091
7092
7093
Note: See TracBrowser for help on using the repository browser.