root/main/trunk/greenstone2/configure @ 22078

Revision 22058, 239.9 KB (checked in by ak19, 10 years ago)

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

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