root/main/tags/3.04flax1.0/gs2build/configure @ 21349

Revision 21346, 238.1 KB (checked in by ak19, 10 years ago)

Added enable-indexer processing.

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