source: gsdl/trunk/configure@ 20853

Last change on this file since 20853 was 20853, checked in by ak19, 14 years ago

Katherine has made changes to the toplevel configure.in and runtime-src configure.in (and their configure) files to fix the recent problem of Oran and Dr Bainbridge's code changes not working together: Oran's code successfully got the libexpat and libiconv libraries statically linked into library.cgi while Dr Bainbridge got the apache web server code to statically link successfully against the libiconv library in common-src. However, Oran's changes when included would cause compilation to fail to generate the apache-httpd output folder (it wasn't being compiled up in fact). Katherine's changes now allow it all to work together.

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