source: main/trunk/greenstone2/configure@ 21409

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

Introduction of --enable-jdbm flag

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