source: main/trunk/greenstone2/configure@ 21377

Last change on this file since 21377 was 21377, checked in by ak19, 11 years ago

Now the configure, configure.in, Makefile.in and config.h.in of gs2build and greenstone2 are the same, so that they can just be obtained from one source in future.

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