root/gsdl/trunk/common-src/configure @ 18451

Revision 18451, 237.1 KB (checked in by ak19, 11 years ago)

Added in line to configure the new gdbmkeys and gdbmdel, otherwise the Makefiles for those are not generated.

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