source: main/trunk/greenstone2/runtime-src/configure@ 22058

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

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

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