root/main/trunk/greenstone2/configure @ 21724

Revision 21724, 239.5 KB (checked in by oranfry, 10 years ago)

trying to fix configure error, this is generated by autoconf on mac

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