source: gsdl/trunk/common-src/configure@ 20843

Last change on this file since 20843 was 20843, checked in by oranfry, 15 years ago

removing iconv stuff from common-src/configure too

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