source: main/trunk/greenstone2/common-src/configure@ 21418

Last change on this file since 21418 was 21418, checked in by davidb, 14 years ago

Correction to how --enable-jdbm flag is implemented

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