source: gsdl/trunk/configure@ 18245

Last change on this file since 18245 was 18214, checked in by mdewsnip, 15 years ago

Removed --with-gdbm option and no longer checks for GDBM library existing, because we know we have it.

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