source: gsdl/trunk/configure@ 15794

Last change on this file since 15794 was 15794, checked in by mdewsnip, 13 years ago

(Adding new DB support) Added "--enable-sqlite" support to the configure script.

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