source: gs2runtime/configure@ 16610

Last change on this file since 16610 was 16610, checked in by davidb, 14 years ago

configure generated by autoconf

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