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

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

MICO_DIR should be set to withval not enableval, this was already corrected in the toplevel configure file previously.

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