source: main/trunk/greenstone2/configure@ 24958

Last change on this file since 24958 was 24958, checked in by ak19, 9 years ago

First commit to do with Greenstone's support for RSS. Committing Dr Bainbridge's code which was already working for windows. This has now been tested on Linux, where it can be got to work with changes to zextra.dm and base.dm and if the rss-items.rdf file generated by the update to BasePlugout is moved to the index folder). The next set of commits will make the way rssaction.cpp accesses the rss-items.rdf file independent of where the GS server is located, with changes to the protocol class.

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