source: gsdl/trunk/runtime-src/configure@ 18379

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

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

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