source: gsdl/trunk/configure@ 20562

Last change on this file since 20562 was 19264, checked in by davidb, 15 years ago

Reverting to version before.

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