root/gsdl/trunk/runtime-src/configure @ 18487

Revision 18487, 237.6 KB (checked in by davidb, 11 years ago)

Regenerate of configure scripts due to mods made to configure.in

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