root/trunk/gsdl3/src/packages/javagdbm/configure @ 10917

Revision 10917, 149.9 KB (checked in by kjdon, 14 years ago)

removed java_home/include/linux from include path in makefile, made the configure script include this in JNIINC for linux, and use JAVA_HOME/include/solaris for solaris machines

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /bin/sh
2# From configure.in Revision: 1.3 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59.
5#
6# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23DUALCASE=1; export DUALCASE # for MKS sh
24
25# Support unset when possible.
26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27  as_unset=unset
28else
29  as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43  LC_TELEPHONE LC_TIME
44do
45  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46    eval $as_var=C; export $as_var
47  else
48    $as_unset $as_var
49  fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54  as_expr=expr
55else
56  as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60  as_basename=basename
61else
62  as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69     X"$0" : 'X\(//\)$' \| \
70     X"$0" : 'X\(/\)$' \| \
71     .     : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74      /^X\/\(\/\/\)$/{ s//\1/; q; }
75      /^X\/\(\/\).*/{ s//\1/; q; }
76      s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89  echo "#! /bin/sh" >conf$$.sh
90  echo  "exit 0"   >>conf$$.sh
91  chmod +x conf$$.sh
92  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93    PATH_SEPARATOR=';'
94  else
95    PATH_SEPARATOR=:
96  fi
97  rm -f conf$$.sh
98fi
99
100
101  as_lineno_1=$LINENO
102  as_lineno_2=$LINENO
103  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104  test "x$as_lineno_1" != "x$as_lineno_2" &&
105  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106  # Find who we are.  Look in the path if we contain no path at all
107  # relative or not.
108  case $0 in
109    *[\\/]* ) as_myself=$0 ;;
110    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113  IFS=$as_save_IFS
114  test -z "$as_dir" && as_dir=.
115  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118       ;;
119  esac
120  # We did not find ourselves, most probably we were run as `sh COMMAND'
121  # in which case we are not to be found in the path.
122  if test "x$as_myself" = x; then
123    as_myself=$0
124  fi
125  if test ! -f "$as_myself"; then
126    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127   { (exit 1); exit 1; }; }
128  fi
129  case $CONFIG_SHELL in
130  '')
131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134  IFS=$as_save_IFS
135  test -z "$as_dir" && as_dir=.
136  for as_base in sh bash ksh sh5; do
137     case $as_dir in
138     /*)
139       if ("$as_dir/$as_base" -c '
140  as_lineno_1=$LINENO
141  as_lineno_2=$LINENO
142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143  test "x$as_lineno_1" != "x$as_lineno_2" &&
144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147         CONFIG_SHELL=$as_dir/$as_base
148         export CONFIG_SHELL
149         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150       fi;;
151     esac
152       done
153done
154;;
155  esac
156
157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158  # uniformly replaced by the line number.  The first 'sed' inserts a
159  # line-number line before each line; the second 'sed' does the real
160  # work.  The second script uses 'N' to pair each line-number line
161  # with the numbered line, and appends trailing '-' during
162  # substitution so that $LINENO is not a special case at line end.
163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165  sed '=' <$as_myself |
166    sed '
167      N
168      s,$,-,
169      : loop
170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171      t loop
172      s,-$,,
173      s,^['$as_cr_digits']*\n,,
174    ' >$as_me.lineno &&
175  chmod +x $as_me.lineno ||
176    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177   { (exit 1); exit 1; }; }
178
179  # Don't try to exec as it changes $[0], causing all sort of problems
180  # (the dirname of $[0] is not the place where we might find the
181  # original and so on.  Autoconf is especially sensible to this).
182  . ./$as_me.lineno
183  # Exit status is that of the last command.
184  exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189  *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T='  ' ;;
191  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196  as_expr=expr
197else
198  as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204  # We could just check for DJGPP; but this test a) works b) is more generic
205  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206  if test -f conf$$.exe; then
207    # Don't use ln at all; we don't have any links
208    as_ln_s='cp -p'
209  else
210    as_ln_s='ln -s'
211  fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213  as_ln_s=ln
214else
215  as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220  as_mkdir_p=:
221else
222  test -d ./-p && rmdir ./-p
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS="   $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete.  It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME=
270PACKAGE_TARNAME=
271PACKAGE_VERSION=
272PACKAGE_STRING=
273PACKAGE_BUGREPORT=
274
275ac_unique_file="jni/gdbmjava.c"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CPP EGREP JAVA_HOME javagdbm_cv_path_javah javagdbm_cv_path_java GDBM_LIBPATH GDBM_INCLUDE PKG JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672          localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712     X"$0" : 'X\(//\)[^/]' \| \
713     X"$0" : 'X\(//\)$' \| \
714     X"$0" : 'X\(/\)' \| \
715     .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719      /^X\(\/\/\)$/{ s//\1/; q; }
720      /^X\(\/\).*/{ s//\1/; q; }
721      s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807              [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809              [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834_ACEOF
835fi
836
837if test -n "$ac_init_help"; then
838
839  cat <<\_ACEOF
840
841Optional Packages:
842  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
843  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
844  --with-gdbm=dir         Use local gdbm library and headers
845
846Some influential environment variables:
847  CC          C compiler command
848  CFLAGS      C compiler flags
849  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
850              nonstandard directory <lib dir>
851  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
852              headers in a nonstandard directory <include dir>
853  CPP         C preprocessor
854
855Use these variables to override the choices made by `configure' or to help
856it to find libraries and programs with nonstandard names/locations.
857
858_ACEOF
859fi
860
861if test "$ac_init_help" = "recursive"; then
862  # If there are subdirs, report their specific --help.
863  ac_popdir=`pwd`
864  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
865    test -d $ac_dir || continue
866    ac_builddir=.
867
868if test "$ac_dir" != .; then
869  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
870  # A "../" for each directory in $ac_dir_suffix.
871  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
872else
873  ac_dir_suffix= ac_top_builddir=
874fi
875
876case $srcdir in
877  .)  # No --srcdir option.  We are building in place.
878    ac_srcdir=.
879    if test -z "$ac_top_builddir"; then
880       ac_top_srcdir=.
881    else
882       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
883    fi ;;
884  [\\/]* | ?:[\\/]* )  # Absolute path.
885    ac_srcdir=$srcdir$ac_dir_suffix;
886    ac_top_srcdir=$srcdir ;;
887  *) # Relative path.
888    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
889    ac_top_srcdir=$ac_top_builddir$srcdir ;;
890esac
891
892# Do not use `cd foo && pwd` to compute absolute paths, because
893# the directories may not exist.
894case `pwd` in
895.) ac_abs_builddir="$ac_dir";;
896*)
897  case "$ac_dir" in
898  .) ac_abs_builddir=`pwd`;;
899  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
900  *) ac_abs_builddir=`pwd`/"$ac_dir";;
901  esac;;
902esac
903case $ac_abs_builddir in
904.) ac_abs_top_builddir=${ac_top_builddir}.;;
905*)
906  case ${ac_top_builddir}. in
907  .) ac_abs_top_builddir=$ac_abs_builddir;;
908  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
909  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
910  esac;;
911esac
912case $ac_abs_builddir in
913.) ac_abs_srcdir=$ac_srcdir;;
914*)
915  case $ac_srcdir in
916  .) ac_abs_srcdir=$ac_abs_builddir;;
917  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
918  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
919  esac;;
920esac
921case $ac_abs_builddir in
922.) ac_abs_top_srcdir=$ac_top_srcdir;;
923*)
924  case $ac_top_srcdir in
925  .) ac_abs_top_srcdir=$ac_abs_builddir;;
926  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
927  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
928  esac;;
929esac
930
931    cd $ac_dir
932    # Check for guested configure; otherwise get Cygnus style configure.
933    if test -f $ac_srcdir/configure.gnu; then
934      echo
935      $SHELL $ac_srcdir/configure.gnu  --help=recursive
936    elif test -f $ac_srcdir/configure; then
937      echo
938      $SHELL $ac_srcdir/configure  --help=recursive
939    elif test -f $ac_srcdir/configure.ac ||
940       test -f $ac_srcdir/configure.in; then
941      echo
942      $ac_configure --help
943    else
944      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945    fi
946    cd $ac_popdir
947  done
948fi
949
950test -n "$ac_init_help" && exit 0
951if $ac_init_version; then
952  cat <<\_ACEOF
953
954Copyright (C) 2003 Free Software Foundation, Inc.
955This configure script is free software; the Free Software Foundation
956gives unlimited permission to copy, distribute and modify it.
957_ACEOF
958  exit 0
959fi
960exec 5>config.log
961cat >&5 <<_ACEOF
962This file contains any messages produced by compilers while
963running configure, to aid debugging if configure makes a mistake.
964
965It was created by $as_me, which was
966generated by GNU Autoconf 2.59.  Invocation command line was
967
968  $ $0 $@
969
970_ACEOF
971{
972cat <<_ASUNAME
973## --------- ##
974## Platform. ##
975## --------- ##
976
977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978uname -m = `(uname -m) 2>/dev/null || echo unknown`
979uname -r = `(uname -r) 2>/dev/null || echo unknown`
980uname -s = `(uname -s) 2>/dev/null || echo unknown`
981uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
985
986/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
987/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
990/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
991/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
992/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
993
994_ASUNAME
995
996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997for as_dir in $PATH
998do
999  IFS=$as_save_IFS
1000  test -z "$as_dir" && as_dir=.
1001  echo "PATH: $as_dir"
1002done
1003
1004} >&5
1005
1006cat >&5 <<_ACEOF
1007
1008
1009## ----------- ##
1010## Core tests. ##
1011## ----------- ##
1012
1013_ACEOF
1014
1015
1016# Keep a trace of the command line.
1017# Strip out --no-create and --no-recursion so they do not pile up.
1018# Strip out --silent because we don't want to record it for future runs.
1019# Also quote any args containing shell meta-characters.
1020# Make two passes to allow for proper duplicate-argument suppression.
1021ac_configure_args=
1022ac_configure_args0=
1023ac_configure_args1=
1024ac_sep=
1025ac_must_keep_next=false
1026for ac_pass in 1 2
1027do
1028  for ac_arg
1029  do
1030    case $ac_arg in
1031    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033    | -silent | --silent | --silen | --sile | --sil)
1034      continue ;;
1035    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037    esac
1038    case $ac_pass in
1039    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040    2)
1041      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042      if test $ac_must_keep_next = true; then
1043    ac_must_keep_next=false # Got value, back to normal.
1044      else
1045    case $ac_arg in
1046      *=* | --config-cache | -C | -disable-* | --disable-* \
1047      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049      | -with-* | --with-* | -without-* | --without-* | --x)
1050        case "$ac_configure_args0 " in
1051          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052        esac
1053        ;;
1054      -* ) ac_must_keep_next=true ;;
1055    esac
1056      fi
1057      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058      # Get rid of the leading space.
1059      ac_sep=" "
1060      ;;
1061    esac
1062  done
1063done
1064$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067# When interrupted or exit'd, cleanup temporary files, and complete
1068# config.log.  We remove comments because anyway the quotes in there
1069# would cause problems or look ugly.
1070# WARNING: Be sure not to use single quotes in there, as some shells,
1071# such as our DU 5.0 friend, will then `close' the trap.
1072trap 'exit_status=$?
1073  # Save into config.log some information that might help in debugging.
1074  {
1075    echo
1076
1077    cat <<\_ASBOX
1078## ---------------- ##
1079## Cache variables. ##
1080## ---------------- ##
1081_ASBOX
1082    echo
1083    # The following way of writing the cache mishandles newlines in values,
1084{
1085  (set) 2>&1 |
1086    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087    *ac_space=\ *)
1088      sed -n \
1089    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091      ;;
1092    *)
1093      sed -n \
1094    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095      ;;
1096    esac;
1097}
1098    echo
1099
1100    cat <<\_ASBOX
1101## ----------------- ##
1102## Output variables. ##
1103## ----------------- ##
1104_ASBOX
1105    echo
1106    for ac_var in $ac_subst_vars
1107    do
1108      eval ac_val=$`echo $ac_var`
1109      echo "$ac_var='"'"'$ac_val'"'"'"
1110    done | sort
1111    echo
1112
1113    if test -n "$ac_subst_files"; then
1114      cat <<\_ASBOX
1115## ------------- ##
1116## Output files. ##
1117## ------------- ##
1118_ASBOX
1119      echo
1120      for ac_var in $ac_subst_files
1121      do
1122    eval ac_val=$`echo $ac_var`
1123    echo "$ac_var='"'"'$ac_val'"'"'"
1124      done | sort
1125      echo
1126    fi
1127
1128    if test -s confdefs.h; then
1129      cat <<\_ASBOX
1130## ----------- ##
1131## confdefs.h. ##
1132## ----------- ##
1133_ASBOX
1134      echo
1135      sed "/^$/d" confdefs.h | sort
1136      echo
1137    fi
1138    test "$ac_signal" != 0 &&
1139      echo "$as_me: caught signal $ac_signal"
1140    echo "$as_me: exit $exit_status"
1141  } >&5
1142  rm -f core *.core &&
1143  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144    exit $exit_status
1145     ' 0
1146for ac_signal in 1 2 13 15; do
1147  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148done
1149ac_signal=0
1150
1151# confdefs.h avoids OS command line length limits that DEFS can exceed.
1152rm -rf conftest* confdefs.h
1153# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154echo >confdefs.h
1155
1156# Predefined preprocessor variables.
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_NAME "$PACKAGE_NAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_VERSION "$PACKAGE_VERSION"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_STRING "$PACKAGE_STRING"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180_ACEOF
1181
1182
1183# Let the site file select an alternate cache file if it wants to.
1184# Prefer explicitly selected file to automatically selected ones.
1185if test -z "$CONFIG_SITE"; then
1186  if test "x$prefix" != xNONE; then
1187    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188  else
1189    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190  fi
1191fi
1192for ac_site_file in $CONFIG_SITE; do
1193  if test -r "$ac_site_file"; then
1194    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195echo "$as_me: loading site script $ac_site_file" >&6;}
1196    sed 's/^/| /' "$ac_site_file" >&5
1197    . "$ac_site_file"
1198  fi
1199done
1200
1201if test -r "$cache_file"; then
1202  # Some versions of bash will fail to source /dev/null (special
1203  # files actually), so we avoid doing that.
1204  if test -f "$cache_file"; then
1205    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206echo "$as_me: loading cache $cache_file" >&6;}
1207    case $cache_file in
1208      [\\/]* | ?:[\\/]* ) . $cache_file;;
1209      *)                      . ./$cache_file;;
1210    esac
1211  fi
1212else
1213  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214echo "$as_me: creating cache $cache_file" >&6;}
1215  >$cache_file
1216fi
1217
1218# Check that the precious variables saved in the cache have kept the same
1219# value.
1220ac_cache_corrupted=false
1221for ac_var in `(set) 2>&1 |
1222           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224  eval ac_new_set=\$ac_env_${ac_var}_set
1225  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226  eval ac_new_val="\$ac_env_${ac_var}_value"
1227  case $ac_old_set,$ac_new_set in
1228    set,)
1229      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231      ac_cache_corrupted=: ;;
1232    ,set)
1233      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235      ac_cache_corrupted=: ;;
1236    ,);;
1237    *)
1238      if test "x$ac_old_val" != "x$ac_new_val"; then
1239    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1242echo "$as_me:   former value:  $ac_old_val" >&2;}
1243    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1244echo "$as_me:   current value: $ac_new_val" >&2;}
1245    ac_cache_corrupted=:
1246      fi;;
1247  esac
1248  # Pass precious variables to config.status.
1249  if test "$ac_new_set" = set; then
1250    case $ac_new_val in
1251    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253    *) ac_arg=$ac_var=$ac_new_val ;;
1254    esac
1255    case " $ac_configure_args " in
1256      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1257      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258    esac
1259  fi
1260done
1261if $ac_cache_corrupted; then
1262  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266   { (exit 1); exit 1; }; }
1267fi
1268
1269ac_ext=c
1270ac_cpp='$CPP $CPPFLAGS'
1271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295# Check whether --with-gdbm or --without-gdbm was given.
1296if test "${with_gdbm+set}" = set; then
1297  withval="$with_gdbm"
1298  gdbmdir=$withval
1299fi;
1300
1301# TODO: allow the user to specify whether they want a debugging
1302# library or not?
1303
1304# check for compilers and other tools
1305ac_ext=c
1306ac_cpp='$CPP $CPPFLAGS'
1307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310if test -n "$ac_tool_prefix"; then
1311  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1312set dummy ${ac_tool_prefix}gcc; ac_word=$2
1313echo "$as_me:$LINENO: checking for $ac_word" >&5
1314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315if test "${ac_cv_prog_CC+set}" = set; then
1316  echo $ECHO_N "(cached) $ECHO_C" >&6
1317else
1318  if test -n "$CC"; then
1319  ac_cv_prog_CC="$CC" # Let the user override the test.
1320else
1321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322for as_dir in $PATH
1323do
1324  IFS=$as_save_IFS
1325  test -z "$as_dir" && as_dir=.
1326  for ac_exec_ext in '' $ac_executable_extensions; do
1327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330    break 2
1331  fi
1332done
1333done
1334
1335fi
1336fi
1337CC=$ac_cv_prog_CC
1338if test -n "$CC"; then
1339  echo "$as_me:$LINENO: result: $CC" >&5
1340echo "${ECHO_T}$CC" >&6
1341else
1342  echo "$as_me:$LINENO: result: no" >&5
1343echo "${ECHO_T}no" >&6
1344fi
1345
1346fi
1347if test -z "$ac_cv_prog_CC"; then
1348  ac_ct_CC=$CC
1349  # Extract the first word of "gcc", so it can be a program name with args.
1350set dummy gcc; ac_word=$2
1351echo "$as_me:$LINENO: checking for $ac_word" >&5
1352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354  echo $ECHO_N "(cached) $ECHO_C" >&6
1355else
1356  if test -n "$ac_ct_CC"; then
1357  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358else
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  for ac_exec_ext in '' $ac_executable_extensions; do
1365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366    ac_cv_prog_ac_ct_CC="gcc"
1367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368    break 2
1369  fi
1370done
1371done
1372
1373fi
1374fi
1375ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376if test -n "$ac_ct_CC"; then
1377  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1378echo "${ECHO_T}$ac_ct_CC" >&6
1379else
1380  echo "$as_me:$LINENO: result: no" >&5
1381echo "${ECHO_T}no" >&6
1382fi
1383
1384  CC=$ac_ct_CC
1385else
1386  CC="$ac_cv_prog_CC"
1387fi
1388
1389if test -z "$CC"; then
1390  if test -n "$ac_tool_prefix"; then
1391  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1392set dummy ${ac_tool_prefix}cc; ac_word=$2
1393echo "$as_me:$LINENO: checking for $ac_word" >&5
1394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395if test "${ac_cv_prog_CC+set}" = set; then
1396  echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398  if test -n "$CC"; then
1399  ac_cv_prog_CC="$CC" # Let the user override the test.
1400else
1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402for as_dir in $PATH
1403do
1404  IFS=$as_save_IFS
1405  test -z "$as_dir" && as_dir=.
1406  for ac_exec_ext in '' $ac_executable_extensions; do
1407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408    ac_cv_prog_CC="${ac_tool_prefix}cc"
1409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410    break 2
1411  fi
1412done
1413done
1414
1415fi
1416fi
1417CC=$ac_cv_prog_CC
1418if test -n "$CC"; then
1419  echo "$as_me:$LINENO: result: $CC" >&5
1420echo "${ECHO_T}$CC" >&6
1421else
1422  echo "$as_me:$LINENO: result: no" >&5
1423echo "${ECHO_T}no" >&6
1424fi
1425
1426fi
1427if test -z "$ac_cv_prog_CC"; then
1428  ac_ct_CC=$CC
1429  # Extract the first word of "cc", so it can be a program name with args.
1430set dummy cc; ac_word=$2
1431echo "$as_me:$LINENO: checking for $ac_word" >&5
1432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434  echo $ECHO_N "(cached) $ECHO_C" >&6
1435else
1436  if test -n "$ac_ct_CC"; then
1437  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438else
1439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440for as_dir in $PATH
1441do
1442  IFS=$as_save_IFS
1443  test -z "$as_dir" && as_dir=.
1444  for ac_exec_ext in '' $ac_executable_extensions; do
1445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446    ac_cv_prog_ac_ct_CC="cc"
1447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448    break 2
1449  fi
1450done
1451done
1452
1453fi
1454fi
1455ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456if test -n "$ac_ct_CC"; then
1457  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1458echo "${ECHO_T}$ac_ct_CC" >&6
1459else
1460  echo "$as_me:$LINENO: result: no" >&5
1461echo "${ECHO_T}no" >&6
1462fi
1463
1464  CC=$ac_ct_CC
1465else
1466  CC="$ac_cv_prog_CC"
1467fi
1468
1469fi
1470if test -z "$CC"; then
1471  # Extract the first word of "cc", so it can be a program name with args.
1472set dummy cc; ac_word=$2
1473echo "$as_me:$LINENO: checking for $ac_word" >&5
1474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475if test "${ac_cv_prog_CC+set}" = set; then
1476  echo $ECHO_N "(cached) $ECHO_C" >&6
1477else
1478  if test -n "$CC"; then
1479  ac_cv_prog_CC="$CC" # Let the user override the test.
1480else
1481  ac_prog_rejected=no
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485  IFS=$as_save_IFS
1486  test -z "$as_dir" && as_dir=.
1487  for ac_exec_ext in '' $ac_executable_extensions; do
1488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1490       ac_prog_rejected=yes
1491       continue
1492     fi
1493    ac_cv_prog_CC="cc"
1494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495    break 2
1496  fi
1497done
1498done
1499
1500if test $ac_prog_rejected = yes; then
1501  # We found a bogon in the path, so make sure we never use it.
1502  set dummy $ac_cv_prog_CC
1503  shift
1504  if test $# != 0; then
1505    # We chose a different compiler from the bogus one.
1506    # However, it has the same basename, so the bogon will be chosen
1507    # first if we set CC to just the basename; use the full file name.
1508    shift
1509    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1510  fi
1511fi
1512fi
1513fi
1514CC=$ac_cv_prog_CC
1515if test -n "$CC"; then
1516  echo "$as_me:$LINENO: result: $CC" >&5
1517echo "${ECHO_T}$CC" >&6
1518else
1519  echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521fi
1522
1523fi
1524if test -z "$CC"; then
1525  if test -n "$ac_tool_prefix"; then
1526  for ac_prog in cl
1527  do
1528    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1529set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1530echo "$as_me:$LINENO: checking for $ac_word" >&5
1531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532if test "${ac_cv_prog_CC+set}" = set; then
1533  echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
1535  if test -n "$CC"; then
1536  ac_cv_prog_CC="$CC" # Let the user override the test.
1537else
1538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539for as_dir in $PATH
1540do
1541  IFS=$as_save_IFS
1542  test -z "$as_dir" && as_dir=.
1543  for ac_exec_ext in '' $ac_executable_extensions; do
1544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547    break 2
1548  fi
1549done
1550done
1551
1552fi
1553fi
1554CC=$ac_cv_prog_CC
1555if test -n "$CC"; then
1556  echo "$as_me:$LINENO: result: $CC" >&5
1557echo "${ECHO_T}$CC" >&6
1558else
1559  echo "$as_me:$LINENO: result: no" >&5
1560echo "${ECHO_T}no" >&6
1561fi
1562
1563    test -n "$CC" && break
1564  done
1565fi
1566if test -z "$CC"; then
1567  ac_ct_CC=$CC
1568  for ac_prog in cl
1569do
1570  # Extract the first word of "$ac_prog", so it can be a program name with args.
1571set dummy $ac_prog; ac_word=$2
1572echo "$as_me:$LINENO: checking for $ac_word" >&5
1573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1575  echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577  if test -n "$ac_ct_CC"; then
1578  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579else
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583  IFS=$as_save_IFS
1584  test -z "$as_dir" && as_dir=.
1585  for ac_exec_ext in '' $ac_executable_extensions; do
1586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587    ac_cv_prog_ac_ct_CC="$ac_prog"
1588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589    break 2
1590  fi
1591done
1592done
1593
1594fi
1595fi
1596ac_ct_CC=$ac_cv_prog_ac_ct_CC
1597if test -n "$ac_ct_CC"; then
1598  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1599echo "${ECHO_T}$ac_ct_CC" >&6
1600else
1601  echo "$as_me:$LINENO: result: no" >&5
1602echo "${ECHO_T}no" >&6
1603fi
1604
1605  test -n "$ac_ct_CC" && break
1606done
1607
1608  CC=$ac_ct_CC
1609fi
1610
1611fi
1612
1613
1614test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1615See \`config.log' for more details." >&5
1616echo "$as_me: error: no acceptable C compiler found in \$PATH
1617See \`config.log' for more details." >&2;}
1618   { (exit 1); exit 1; }; }
1619
1620# Provide some information about the compiler.
1621echo "$as_me:$LINENO:" \
1622     "checking for C compiler version" >&5
1623ac_compiler=`set X $ac_compile; echo $2`
1624{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1625  (eval $ac_compiler --version </dev/null >&5) 2>&5
1626  ac_status=$?
1627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628  (exit $ac_status); }
1629{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1630  (eval $ac_compiler -v </dev/null >&5) 2>&5
1631  ac_status=$?
1632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633  (exit $ac_status); }
1634{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1635  (eval $ac_compiler -V </dev/null >&5) 2>&5
1636  ac_status=$?
1637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638  (exit $ac_status); }
1639
1640cat >conftest.$ac_ext <<_ACEOF
1641/* confdefs.h.  */
1642_ACEOF
1643cat confdefs.h >>conftest.$ac_ext
1644cat >>conftest.$ac_ext <<_ACEOF
1645/* end confdefs.h.  */
1646
1647int
1648main ()
1649{
1650
1651  ;
1652  return 0;
1653}
1654_ACEOF
1655ac_clean_files_save=$ac_clean_files
1656ac_clean_files="$ac_clean_files a.out a.exe b.out"
1657# Try to create an executable without -o first, disregard a.out.
1658# It will help us diagnose broken compilers, and finding out an intuition
1659# of exeext.
1660echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1661echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1662ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1663if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1664  (eval $ac_link_default) 2>&5
1665  ac_status=$?
1666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667  (exit $ac_status); }; then
1668  # Find the output, starting from the most likely.  This scheme is
1669# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1670# resort.
1671
1672# Be careful to initialize this variable, since it used to be cached.
1673# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1674ac_cv_exeext=
1675# b.out is created by i960 compilers.
1676for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1677do
1678  test -f "$ac_file" || continue
1679  case $ac_file in
1680    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1681    ;;
1682    conftest.$ac_ext )
1683    # This is the source file.
1684    ;;
1685    [ab].out )
1686    # We found the default executable, but exeext='' is most
1687    # certainly right.
1688    break;;
1689    *.* )
1690    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691    # FIXME: I believe we export ac_cv_exeext for Libtool,
1692    # but it would be cool to find out if it's true.  Does anybody
1693    # maintain Libtool? --akim.
1694    export ac_cv_exeext
1695    break;;
1696    * )
1697    break;;
1698  esac
1699done
1700else
1701  echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1705See \`config.log' for more details." >&5
1706echo "$as_me: error: C compiler cannot create executables
1707See \`config.log' for more details." >&2;}
1708   { (exit 77); exit 77; }; }
1709fi
1710
1711ac_exeext=$ac_cv_exeext
1712echo "$as_me:$LINENO: result: $ac_file" >&5
1713echo "${ECHO_T}$ac_file" >&6
1714
1715# Check the compiler produces executables we can run.  If not, either
1716# the compiler is broken, or we cross compile.
1717echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1718echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1719# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1720# If not cross compiling, check that we can run a simple program.
1721if test "$cross_compiling" != yes; then
1722  if { ac_try='./$ac_file'
1723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1724  (eval $ac_try) 2>&5
1725  ac_status=$?
1726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727  (exit $ac_status); }; }; then
1728    cross_compiling=no
1729  else
1730    if test "$cross_compiling" = maybe; then
1731    cross_compiling=yes
1732    else
1733    { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1734If you meant to cross compile, use \`--host'.
1735See \`config.log' for more details." >&5
1736echo "$as_me: error: cannot run C compiled programs.
1737If you meant to cross compile, use \`--host'.
1738See \`config.log' for more details." >&2;}
1739   { (exit 1); exit 1; }; }
1740    fi
1741  fi
1742fi
1743echo "$as_me:$LINENO: result: yes" >&5
1744echo "${ECHO_T}yes" >&6
1745
1746rm -f a.out a.exe conftest$ac_cv_exeext b.out
1747ac_clean_files=$ac_clean_files_save
1748# Check the compiler produces executables we can run.  If not, either
1749# the compiler is broken, or we cross compile.
1750echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1751echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1752echo "$as_me:$LINENO: result: $cross_compiling" >&5
1753echo "${ECHO_T}$cross_compiling" >&6
1754
1755echo "$as_me:$LINENO: checking for suffix of executables" >&5
1756echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1758  (eval $ac_link) 2>&5
1759  ac_status=$?
1760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761  (exit $ac_status); }; then
1762  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1763# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1764# work properly (i.e., refer to `conftest.exe'), while it won't with
1765# `rm'.
1766for ac_file in conftest.exe conftest conftest.*; do
1767  test -f "$ac_file" || continue
1768  case $ac_file in
1769    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1770    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1771      export ac_cv_exeext
1772      break;;
1773    * ) break;;
1774  esac
1775done
1776else
1777  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1778See \`config.log' for more details." >&5
1779echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1780See \`config.log' for more details." >&2;}
1781   { (exit 1); exit 1; }; }
1782fi
1783
1784rm -f conftest$ac_cv_exeext
1785echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1786echo "${ECHO_T}$ac_cv_exeext" >&6
1787
1788rm -f conftest.$ac_ext
1789EXEEXT=$ac_cv_exeext
1790ac_exeext=$EXEEXT
1791echo "$as_me:$LINENO: checking for suffix of object files" >&5
1792echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1793if test "${ac_cv_objext+set}" = set; then
1794  echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796  cat >conftest.$ac_ext <<_ACEOF
1797/* confdefs.h.  */
1798_ACEOF
1799cat confdefs.h >>conftest.$ac_ext
1800cat >>conftest.$ac_ext <<_ACEOF
1801/* end confdefs.h.  */
1802
1803int
1804main ()
1805{
1806
1807  ;
1808  return 0;
1809}
1810_ACEOF
1811rm -f conftest.o conftest.obj
1812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1813  (eval $ac_compile) 2>&5
1814  ac_status=$?
1815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816  (exit $ac_status); }; then
1817  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1818  case $ac_file in
1819    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1820    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1821       break;;
1822  esac
1823done
1824else
1825  echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: cannot compute suffix of object files: cannot compile
1831See \`config.log' for more details." >&2;}
1832   { (exit 1); exit 1; }; }
1833fi
1834
1835rm -f conftest.$ac_cv_objext conftest.$ac_ext
1836fi
1837echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1838echo "${ECHO_T}$ac_cv_objext" >&6
1839OBJEXT=$ac_cv_objext
1840ac_objext=$OBJEXT
1841echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1842echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1843if test "${ac_cv_c_compiler_gnu+set}" = set; then
1844  echo $ECHO_N "(cached) $ECHO_C" >&6
1845else
1846  cat >conftest.$ac_ext <<_ACEOF
1847/* confdefs.h.  */
1848_ACEOF
1849cat confdefs.h >>conftest.$ac_ext
1850cat >>conftest.$ac_ext <<_ACEOF
1851/* end confdefs.h.  */
1852
1853int
1854main ()
1855{
1856#ifndef __GNUC__
1857       choke me
1858#endif
1859
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864rm -f conftest.$ac_objext
1865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1866  (eval $ac_compile) 2>conftest.er1
1867  ac_status=$?
1868  grep -v '^ *+' conftest.er1 >conftest.err
1869  rm -f conftest.er1
1870  cat conftest.err >&5
1871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872  (exit $ac_status); } &&
1873     { ac_try='test -z "$ac_c_werror_flag"
1874             || test ! -s conftest.err'
1875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876  (eval $ac_try) 2>&5
1877  ac_status=$?
1878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879  (exit $ac_status); }; } &&
1880     { ac_try='test -s conftest.$ac_objext'
1881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882  (eval $ac_try) 2>&5
1883  ac_status=$?
1884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885  (exit $ac_status); }; }; then
1886  ac_compiler_gnu=yes
1887else
1888  echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891ac_compiler_gnu=no
1892fi
1893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1894ac_cv_c_compiler_gnu=$ac_compiler_gnu
1895
1896fi
1897echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1898echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1899GCC=`test $ac_compiler_gnu = yes && echo yes`
1900ac_test_CFLAGS=${CFLAGS+set}
1901ac_save_CFLAGS=$CFLAGS
1902CFLAGS="-g"
1903echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1904echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1905if test "${ac_cv_prog_cc_g+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  cat >conftest.$ac_ext <<_ACEOF
1909/* confdefs.h.  */
1910_ACEOF
1911cat confdefs.h >>conftest.$ac_ext
1912cat >>conftest.$ac_ext <<_ACEOF
1913/* end confdefs.h.  */
1914
1915int
1916main ()
1917{
1918
1919  ;
1920  return 0;
1921}
1922_ACEOF
1923rm -f conftest.$ac_objext
1924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925  (eval $ac_compile) 2>conftest.er1
1926  ac_status=$?
1927  grep -v '^ *+' conftest.er1 >conftest.err
1928  rm -f conftest.er1
1929  cat conftest.err >&5
1930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931  (exit $ac_status); } &&
1932     { ac_try='test -z "$ac_c_werror_flag"
1933             || test ! -s conftest.err'
1934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935  (eval $ac_try) 2>&5
1936  ac_status=$?
1937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938  (exit $ac_status); }; } &&
1939     { ac_try='test -s conftest.$ac_objext'
1940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941  (eval $ac_try) 2>&5
1942  ac_status=$?
1943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944  (exit $ac_status); }; }; then
1945  ac_cv_prog_cc_g=yes
1946else
1947  echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950ac_cv_prog_cc_g=no
1951fi
1952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1953fi
1954echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1955echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956if test "$ac_test_CFLAGS" = set; then
1957  CFLAGS=$ac_save_CFLAGS
1958elif test $ac_cv_prog_cc_g = yes; then
1959  if test "$GCC" = yes; then
1960    CFLAGS="-g -O2"
1961  else
1962    CFLAGS="-g"
1963  fi
1964else
1965  if test "$GCC" = yes; then
1966    CFLAGS="-O2"
1967  else
1968    CFLAGS=
1969  fi
1970fi
1971echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1972echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1973if test "${ac_cv_prog_cc_stdc+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  ac_cv_prog_cc_stdc=no
1977ac_save_CC=$CC
1978cat >conftest.$ac_ext <<_ACEOF
1979/* confdefs.h.  */
1980_ACEOF
1981cat confdefs.h >>conftest.$ac_ext
1982cat >>conftest.$ac_ext <<_ACEOF
1983/* end confdefs.h.  */
1984#include <stdarg.h>
1985#include <stdio.h>
1986#include <sys/types.h>
1987#include <sys/stat.h>
1988/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1989struct buf { int x; };
1990FILE * (*rcsopen) (struct buf *, struct stat *, int);
1991static char *e (p, i)
1992     char **p;
1993     int i;
1994{
1995  return p[i];
1996}
1997static char *f (char * (*g) (char **, int), char **p, ...)
1998{
1999  char *s;
2000  va_list v;
2001  va_start (v,p);
2002  s = g (p, va_arg (v,int));
2003  va_end (v);
2004  return s;
2005}
2006
2007/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2008   function prototypes and stuff, but not '\xHH' hex character constants.
2009   These don't provoke an error unfortunately, instead are silently treated
2010   as 'x'.  The following induces an error, until -std1 is added to get
2011   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2012   array size at least.  It's necessary to write '\x00'==0 to get something
2013   that's true only with -std1.  */
2014int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2015
2016int test (int i, double x);
2017struct s1 {int (*f) (int a);};
2018struct s2 {int (*f) (double a);};
2019int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2020int argc;
2021char **argv;
2022int
2023main ()
2024{
2025return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030# Don't try gcc -ansi; that turns off useful extensions and
2031# breaks some systems' header files.
2032# AIX           -qlanglvl=ansi
2033# Ultrix and OSF/1  -std1
2034# HP-UX 10.20 and later -Ae
2035# HP-UX older versions  -Aa -D_HPUX_SOURCE
2036# SVR4          -Xc -D__EXTENSIONS__
2037for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2038do
2039  CC="$ac_save_CC $ac_arg"
2040  rm -f conftest.$ac_objext
2041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042  (eval $ac_compile) 2>conftest.er1
2043  ac_status=$?
2044  grep -v '^ *+' conftest.er1 >conftest.err
2045  rm -f conftest.er1
2046  cat conftest.err >&5
2047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048  (exit $ac_status); } &&
2049     { ac_try='test -z "$ac_c_werror_flag"
2050             || test ! -s conftest.err'
2051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052  (eval $ac_try) 2>&5
2053  ac_status=$?
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); }; } &&
2056     { ac_try='test -s conftest.$ac_objext'
2057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058  (eval $ac_try) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }; }; then
2062  ac_cv_prog_cc_stdc=$ac_arg
2063break
2064else
2065  echo "$as_me: failed program was:" >&5
2066sed 's/^/| /' conftest.$ac_ext >&5
2067
2068fi
2069rm -f conftest.err conftest.$ac_objext
2070done
2071rm -f conftest.$ac_ext conftest.$ac_objext
2072CC=$ac_save_CC
2073
2074fi
2075
2076case "x$ac_cv_prog_cc_stdc" in
2077  x|xno)
2078    echo "$as_me:$LINENO: result: none needed" >&5
2079echo "${ECHO_T}none needed" >&6 ;;
2080  *)
2081    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2082echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2083    CC="$CC $ac_cv_prog_cc_stdc" ;;
2084esac
2085
2086# Some people use a C++ compiler to compile C.  Since we use `exit',
2087# in C++ we need to declare it.  In case someone uses the same compiler
2088# for both compiling C and C++ we need to have the C++ compiler decide
2089# the declaration of exit, since it's the most demanding environment.
2090cat >conftest.$ac_ext <<_ACEOF
2091#ifndef __cplusplus
2092  choke me
2093#endif
2094_ACEOF
2095rm -f conftest.$ac_objext
2096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097  (eval $ac_compile) 2>conftest.er1
2098  ac_status=$?
2099  grep -v '^ *+' conftest.er1 >conftest.err
2100  rm -f conftest.er1
2101  cat conftest.err >&5
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); } &&
2104     { ac_try='test -z "$ac_c_werror_flag"
2105             || test ! -s conftest.err'
2106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107  (eval $ac_try) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; } &&
2111     { ac_try='test -s conftest.$ac_objext'
2112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113  (eval $ac_try) 2>&5
2114  ac_status=$?
2115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116  (exit $ac_status); }; }; then
2117  for ac_declaration in \
2118   '' \
2119   'extern "C" void std::exit (int) throw (); using std::exit;' \
2120   'extern "C" void std::exit (int); using std::exit;' \
2121   'extern "C" void exit (int) throw ();' \
2122   'extern "C" void exit (int);' \
2123   'void exit (int);'
2124do
2125  cat >conftest.$ac_ext <<_ACEOF
2126/* confdefs.h.  */
2127_ACEOF
2128cat confdefs.h >>conftest.$ac_ext
2129cat >>conftest.$ac_ext <<_ACEOF
2130/* end confdefs.h.  */
2131$ac_declaration
2132#include <stdlib.h>
2133int
2134main ()
2135{
2136exit (42);
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143  (eval $ac_compile) 2>conftest.er1
2144  ac_status=$?
2145  grep -v '^ *+' conftest.er1 >conftest.err
2146  rm -f conftest.er1
2147  cat conftest.err >&5
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); } &&
2150     { ac_try='test -z "$ac_c_werror_flag"
2151             || test ! -s conftest.err'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; } &&
2157     { ac_try='test -s conftest.$ac_objext'
2158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159  (eval $ac_try) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }; }; then
2163  :
2164else
2165  echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168continue
2169fi
2170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171  cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177$ac_declaration
2178int
2179main ()
2180{
2181exit (42);
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186rm -f conftest.$ac_objext
2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188  (eval $ac_compile) 2>conftest.er1
2189  ac_status=$?
2190  grep -v '^ *+' conftest.er1 >conftest.err
2191  rm -f conftest.er1
2192  cat conftest.err >&5
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); } &&
2195     { ac_try='test -z "$ac_c_werror_flag"
2196             || test ! -s conftest.err'
2197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198  (eval $ac_try) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; } &&
2202     { ac_try='test -s conftest.$ac_objext'
2203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204  (eval $ac_try) 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }; }; then
2208  break
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213fi
2214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2215done
2216rm -f conftest*
2217if test -n "$ac_declaration"; then
2218  echo '#ifdef __cplusplus' >>confdefs.h
2219  echo $ac_declaration      >>confdefs.h
2220  echo '#endif'             >>confdefs.h
2221fi
2222
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227fi
2228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235ac_aux_dir=
2236for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2237  if test -f $ac_dir/install-sh; then
2238    ac_aux_dir=$ac_dir
2239    ac_install_sh="$ac_aux_dir/install-sh -c"
2240    break
2241  elif test -f $ac_dir/install.sh; then
2242    ac_aux_dir=$ac_dir
2243    ac_install_sh="$ac_aux_dir/install.sh -c"
2244    break
2245  elif test -f $ac_dir/shtool; then
2246    ac_aux_dir=$ac_dir
2247    ac_install_sh="$ac_aux_dir/shtool install -c"
2248    break
2249  fi
2250done
2251if test -z "$ac_aux_dir"; then
2252  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2253echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2254   { (exit 1); exit 1; }; }
2255fi
2256ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2257ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2258ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2259
2260# Find a good install program.  We prefer a C program (faster),
2261# so one script is as good as another.  But avoid the broken or
2262# incompatible versions:
2263# SysV /etc/install, /usr/sbin/install
2264# SunOS /usr/etc/install
2265# IRIX /sbin/install
2266# AIX /bin/install
2267# AmigaOS /C/install, which installs bootblocks on floppy discs
2268# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271# OS/2's system install, which has a completely different semantic
2272# ./install, which can be erroneously created by make from ./install.sh.
2273echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2274echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2275if test -z "$INSTALL"; then
2276if test "${ac_cv_path_install+set}" = set; then
2277  echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284  # Account for people who put trailing slashes in PATH elements.
2285case $as_dir/ in
2286  ./ | .// | /cC/* | \
2287  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2289  /usr/ucb/* ) ;;
2290  *)
2291    # OSF1 and SCO ODT 3.0 have their own names for install.
2292    # Don't use installbsd from OSF since it installs stuff as root
2293    # by default.
2294    for ac_prog in ginstall scoinst install; do
2295      for ac_exec_ext in '' $ac_executable_extensions; do
2296    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2297      if test $ac_prog = install &&
2298        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299        # AIX install.  It has an incompatible calling convention.
2300        :
2301      elif test $ac_prog = install &&
2302        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303        # program-specific install script used by HP pwplus--don't use.
2304        :
2305      else
2306        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2307        break 3
2308      fi
2309    fi
2310      done
2311    done
2312    ;;
2313esac
2314done
2315
2316
2317fi
2318  if test "${ac_cv_path_install+set}" = set; then
2319    INSTALL=$ac_cv_path_install
2320  else
2321    # As a last resort, use the slow shell script.  We don't cache a
2322    # path for INSTALL within a source directory, because that will
2323    # break other packages using the cache if that directory is
2324    # removed, or if the path is relative.
2325    INSTALL=$ac_install_sh
2326  fi
2327fi
2328echo "$as_me:$LINENO: result: $INSTALL" >&5
2329echo "${ECHO_T}$INSTALL" >&6
2330
2331# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2332# It thinks the first close brace ends the variable substitution.
2333test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2334
2335test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2336
2337test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2338
2339echo "$as_me:$LINENO: checking whether ln -s works" >&5
2340echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2341LN_S=$as_ln_s
2342if test "$LN_S" = "ln -s"; then
2343  echo "$as_me:$LINENO: result: yes" >&5
2344echo "${ECHO_T}yes" >&6
2345else
2346  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2347echo "${ECHO_T}no, using $LN_S" >&6
2348fi
2349
2350
2351
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2358echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2359# On Suns, sometimes $CPP names a directory.
2360if test -n "$CPP" && test -d "$CPP"; then
2361  CPP=
2362fi
2363if test -z "$CPP"; then
2364  if test "${ac_cv_prog_CPP+set}" = set; then
2365  echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367      # Double quotes because CPP needs to be expanded
2368    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2369    do
2370      ac_preproc_ok=false
2371for ac_c_preproc_warn_flag in '' yes
2372do
2373  # Use a header file that comes with gcc, so configuring glibc
2374  # with a fresh cross-compiler works.
2375  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2376  # <limits.h> exists even on freestanding compilers.
2377  # On the NeXT, cc -E runs the code through the compiler's parser,
2378  # not just through cpp. "Syntax error" is here to catch this case.
2379  cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h.  */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h.  */
2385#ifdef __STDC__
2386# include <limits.h>
2387#else
2388# include <assert.h>
2389#endif
2390             Syntax error
2391_ACEOF
2392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2393  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2394  ac_status=$?
2395  grep -v '^ *+' conftest.er1 >conftest.err
2396  rm -f conftest.er1
2397  cat conftest.err >&5
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); } >/dev/null; then
2400  if test -s conftest.err; then
2401    ac_cpp_err=$ac_c_preproc_warn_flag
2402    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2403  else
2404    ac_cpp_err=
2405  fi
2406else
2407  ac_cpp_err=yes
2408fi
2409if test -z "$ac_cpp_err"; then
2410  :
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415  # Broken: fails on valid input.
2416continue
2417fi
2418rm -f conftest.err conftest.$ac_ext
2419
2420  # OK, works on sane cases.  Now check whether non-existent headers
2421  # can be detected and how.
2422  cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h.  */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h.  */
2428#include <ac_nonexistent.h>
2429_ACEOF
2430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2431  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } >/dev/null; then
2438  if test -s conftest.err; then
2439    ac_cpp_err=$ac_c_preproc_warn_flag
2440    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2441  else
2442    ac_cpp_err=
2443  fi
2444else
2445  ac_cpp_err=yes
2446fi
2447if test -z "$ac_cpp_err"; then
2448  # Broken: success on invalid input.
2449continue
2450else
2451  echo "$as_me: failed program was:" >&5
2452sed 's/^/| /' conftest.$ac_ext >&5
2453
2454  # Passes both tests.
2455ac_preproc_ok=:
2456break
2457fi
2458rm -f conftest.err conftest.$ac_ext
2459
2460done
2461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2462rm -f conftest.err conftest.$ac_ext
2463if $ac_preproc_ok; then
2464  break
2465fi
2466
2467    done
2468    ac_cv_prog_CPP=$CPP
2469
2470fi
2471  CPP=$ac_cv_prog_CPP
2472else
2473  ac_cv_prog_CPP=$CPP
2474fi
2475echo "$as_me:$LINENO: result: $CPP" >&5
2476echo "${ECHO_T}$CPP" >&6
2477ac_preproc_ok=false
2478for ac_c_preproc_warn_flag in '' yes
2479do
2480  # Use a header file that comes with gcc, so configuring glibc
2481  # with a fresh cross-compiler works.
2482  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2483  # <limits.h> exists even on freestanding compilers.
2484  # On the NeXT, cc -E runs the code through the compiler's parser,
2485  # not just through cpp. "Syntax error" is here to catch this case.
2486  cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h.  */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h.  */
2492#ifdef __STDC__
2493# include <limits.h>
2494#else
2495# include <assert.h>
2496#endif
2497             Syntax error
2498_ACEOF
2499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2500  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2501  ac_status=$?
2502  grep -v '^ *+' conftest.er1 >conftest.err
2503  rm -f conftest.er1
2504  cat conftest.err >&5
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); } >/dev/null; then
2507  if test -s conftest.err; then
2508    ac_cpp_err=$ac_c_preproc_warn_flag
2509    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2510  else
2511    ac_cpp_err=
2512  fi
2513else
2514  ac_cpp_err=yes
2515fi
2516if test -z "$ac_cpp_err"; then
2517  :
2518else
2519  echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522  # Broken: fails on valid input.
2523continue
2524fi
2525rm -f conftest.err conftest.$ac_ext
2526
2527  # OK, works on sane cases.  Now check whether non-existent headers
2528  # can be detected and how.
2529  cat >conftest.$ac_ext <<_ACEOF
2530/* confdefs.h.  */
2531_ACEOF
2532cat confdefs.h >>conftest.$ac_ext
2533cat >>conftest.$ac_ext <<_ACEOF
2534/* end confdefs.h.  */
2535#include <ac_nonexistent.h>
2536_ACEOF
2537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2539  ac_status=$?
2540  grep -v '^ *+' conftest.er1 >conftest.err
2541  rm -f conftest.er1
2542  cat conftest.err >&5
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); } >/dev/null; then
2545  if test -s conftest.err; then
2546    ac_cpp_err=$ac_c_preproc_warn_flag
2547    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2548  else
2549    ac_cpp_err=
2550  fi
2551else
2552  ac_cpp_err=yes
2553fi
2554if test -z "$ac_cpp_err"; then
2555  # Broken: success on invalid input.
2556continue
2557else
2558  echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561  # Passes both tests.
2562ac_preproc_ok=:
2563break
2564fi
2565rm -f conftest.err conftest.$ac_ext
2566
2567done
2568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2569rm -f conftest.err conftest.$ac_ext
2570if $ac_preproc_ok; then
2571  :
2572else
2573  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2574See \`config.log' for more details." >&5
2575echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2576See \`config.log' for more details." >&2;}
2577   { (exit 1); exit 1; }; }
2578fi
2579
2580ac_ext=c
2581ac_cpp='$CPP $CPPFLAGS'
2582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
2586
2587echo "$as_me:$LINENO: checking for egrep" >&5
2588echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2589if test "${ac_cv_prog_egrep+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2593    then ac_cv_prog_egrep='grep -E'
2594    else ac_cv_prog_egrep='egrep'
2595    fi
2596fi
2597echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2598echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2599 EGREP=$ac_cv_prog_egrep
2600
2601
2602echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2603echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2604if test "${ac_cv_header_stdc+set}" = set; then
2605  echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607  cat >conftest.$ac_ext <<_ACEOF
2608/* confdefs.h.  */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h.  */
2613#include <stdlib.h>
2614#include <stdarg.h>
2615#include <string.h>
2616#include <float.h>
2617
2618int
2619main ()
2620{
2621
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628  (eval $ac_compile) 2>conftest.er1
2629  ac_status=$?
2630  grep -v '^ *+' conftest.er1 >conftest.err
2631  rm -f conftest.er1
2632  cat conftest.err >&5
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); } &&
2635     { ac_try='test -z "$ac_c_werror_flag"
2636             || test ! -s conftest.err'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; } &&
2642     { ac_try='test -s conftest.$ac_objext'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; }; then
2648  ac_cv_header_stdc=yes
2649else
2650  echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653ac_cv_header_stdc=no
2654fi
2655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656
2657if test $ac_cv_header_stdc = yes; then
2658  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2659  cat >conftest.$ac_ext <<_ACEOF
2660/* confdefs.h.  */
2661_ACEOF
2662cat confdefs.h >>conftest.$ac_ext
2663cat >>conftest.$ac_ext <<_ACEOF
2664/* end confdefs.h.  */
2665#include <string.h>
2666
2667_ACEOF
2668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2669  $EGREP "memchr" >/dev/null 2>&1; then
2670  :
2671else
2672  ac_cv_header_stdc=no
2673fi
2674rm -f conftest*
2675
2676fi
2677
2678if test $ac_cv_header_stdc = yes; then
2679  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2680  cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686#include <stdlib.h>
2687
2688_ACEOF
2689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2690  $EGREP "free" >/dev/null 2>&1; then
2691  :
2692else
2693  ac_cv_header_stdc=no
2694fi
2695rm -f conftest*
2696
2697fi
2698
2699if test $ac_cv_header_stdc = yes; then
2700  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2701  if test "$cross_compiling" = yes; then
2702  :
2703else
2704  cat >conftest.$ac_ext <<_ACEOF
2705/* confdefs.h.  */
2706_ACEOF
2707cat confdefs.h >>conftest.$ac_ext
2708cat >>conftest.$ac_ext <<_ACEOF
2709/* end confdefs.h.  */
2710#include <ctype.h>
2711#if ((' ' & 0x0FF) == 0x020)
2712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2714#else
2715# define ISLOWER(c) \
2716           (('a' <= (c) && (c) <= 'i') \
2717             || ('j' <= (c) && (c) <= 'r') \
2718             || ('s' <= (c) && (c) <= 'z'))
2719# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2720#endif
2721
2722#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2723int
2724main ()
2725{
2726  int i;
2727  for (i = 0; i < 256; i++)
2728    if (XOR (islower (i), ISLOWER (i))
2729    || toupper (i) != TOUPPER (i))
2730      exit(2);
2731  exit (0);
2732}
2733_ACEOF
2734rm -f conftest$ac_exeext
2735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2736  (eval $ac_link) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; }; then
2745  :
2746else
2747  echo "$as_me: program exited with status $ac_status" >&5
2748echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751( exit $ac_status )
2752ac_cv_header_stdc=no
2753fi
2754rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2755fi
2756fi
2757fi
2758echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2759echo "${ECHO_T}$ac_cv_header_stdc" >&6
2760if test $ac_cv_header_stdc = yes; then
2761
2762cat >>confdefs.h <<\_ACEOF
2763#define STDC_HEADERS 1
2764_ACEOF
2765
2766fi
2767
2768# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2779          inttypes.h stdint.h unistd.h
2780do
2781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2782echo "$as_me:$LINENO: checking for $ac_header" >&5
2783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2784if eval "test \"\${$as_ac_Header+set}\" = set"; then
2785  echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787  cat >conftest.$ac_ext <<_ACEOF
2788/* confdefs.h.  */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h.  */
2793$ac_includes_default
2794
2795#include <$ac_header>
2796_ACEOF
2797rm -f conftest.$ac_objext
2798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799  (eval $ac_compile) 2>conftest.er1
2800  ac_status=$?
2801  grep -v '^ *+' conftest.er1 >conftest.err
2802  rm -f conftest.er1
2803  cat conftest.err >&5
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806     { ac_try='test -z "$ac_c_werror_flag"
2807             || test ! -s conftest.err'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; } &&
2813     { ac_try='test -s conftest.$ac_objext'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; }; then
2819  eval "$as_ac_Header=yes"
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824eval "$as_ac_Header=no"
2825fi
2826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827fi
2828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2830if test `eval echo '${'$as_ac_Header'}'` = yes; then
2831  cat >>confdefs.h <<_ACEOF
2832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2833_ACEOF
2834
2835fi
2836
2837done
2838
2839
2840echo "$as_me:$LINENO: checking for void *" >&5
2841echo $ECHO_N "checking for void *... $ECHO_C" >&6
2842if test "${ac_cv_type_void_p+set}" = set; then
2843  echo $ECHO_N "(cached) $ECHO_C" >&6
2844else
2845  cat >conftest.$ac_ext <<_ACEOF
2846/* confdefs.h.  */
2847_ACEOF
2848cat confdefs.h >>conftest.$ac_ext
2849cat >>conftest.$ac_ext <<_ACEOF
2850/* end confdefs.h.  */
2851$ac_includes_default
2852int
2853main ()
2854{
2855if ((void * *) 0)
2856  return 0;
2857if (sizeof (void *))
2858  return 0;
2859  ;
2860  return 0;
2861}
2862_ACEOF
2863rm -f conftest.$ac_objext
2864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865  (eval $ac_compile) 2>conftest.er1
2866  ac_status=$?
2867  grep -v '^ *+' conftest.er1 >conftest.err
2868  rm -f conftest.er1
2869  cat conftest.err >&5
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); } &&
2872     { ac_try='test -z "$ac_c_werror_flag"
2873             || test ! -s conftest.err'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; } &&
2879     { ac_try='test -s conftest.$ac_objext'
2880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881  (eval $ac_try) 2>&5
2882  ac_status=$?
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); }; }; then
2885  ac_cv_type_void_p=yes
2886else
2887  echo "$as_me: failed program was:" >&5
2888sed 's/^/| /' conftest.$ac_ext >&5
2889
2890ac_cv_type_void_p=no
2891fi
2892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2893fi
2894echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
2895echo "${ECHO_T}$ac_cv_type_void_p" >&6
2896
2897echo "$as_me:$LINENO: checking size of void *" >&5
2898echo $ECHO_N "checking size of void *... $ECHO_C" >&6
2899if test "${ac_cv_sizeof_void_p+set}" = set; then
2900  echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902  if test "$ac_cv_type_void_p" = yes; then
2903  # The cast to unsigned long works around a bug in the HP C Compiler
2904  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2905  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2906  # This bug is HP SR number 8606223364.
2907  if test "$cross_compiling" = yes; then
2908  # Depending upon the size, compute the lo and hi bounds.
2909cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h.  */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h.  */
2915$ac_includes_default
2916int
2917main ()
2918{
2919static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
2920test_array [0] = 0
2921
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928  (eval $ac_compile) 2>conftest.er1
2929  ac_status=$?
2930  grep -v '^ *+' conftest.er1 >conftest.err
2931  rm -f conftest.er1
2932  cat conftest.err >&5
2933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); } &&
2935     { ac_try='test -z "$ac_c_werror_flag"
2936             || test ! -s conftest.err'
2937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938  (eval $ac_try) 2>&5
2939  ac_status=$?
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); }; } &&
2942     { ac_try='test -s conftest.$ac_objext'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; }; then
2948  ac_lo=0 ac_mid=0
2949  while :; do
2950    cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h.  */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h.  */
2956$ac_includes_default
2957int
2958main ()
2959{
2960static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
2961test_array [0] = 0
2962
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967rm -f conftest.$ac_objext
2968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969  (eval $ac_compile) 2>conftest.er1
2970  ac_status=$?
2971  grep -v '^ *+' conftest.er1 >conftest.err
2972  rm -f conftest.er1
2973  cat conftest.err >&5
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); } &&
2976     { ac_try='test -z "$ac_c_werror_flag"
2977             || test ! -s conftest.err'
2978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979  (eval $ac_try) 2>&5
2980  ac_status=$?
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); }; } &&
2983     { ac_try='test -s conftest.$ac_objext'
2984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985  (eval $ac_try) 2>&5
2986  ac_status=$?
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); }; }; then
2989  ac_hi=$ac_mid; break
2990else
2991  echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994ac_lo=`expr $ac_mid + 1`
2995            if test $ac_lo -le $ac_mid; then
2996              ac_lo= ac_hi=
2997              break
2998            fi
2999            ac_mid=`expr 2 '*' $ac_mid + 1`
3000fi
3001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002  done
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h.  */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h.  */
3013$ac_includes_default
3014int
3015main ()
3016{
3017static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3018test_array [0] = 0
3019
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
3025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026  (eval $ac_compile) 2>conftest.er1
3027  ac_status=$?
3028  grep -v '^ *+' conftest.er1 >conftest.err
3029  rm -f conftest.er1
3030  cat conftest.err >&5
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); } &&
3033     { ac_try='test -z "$ac_c_werror_flag"
3034             || test ! -s conftest.err'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; } &&
3040     { ac_try='test -s conftest.$ac_objext'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; }; then
3046  ac_hi=-1 ac_mid=-1
3047  while :; do
3048    cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054$ac_includes_default
3055int
3056main ()
3057{
3058static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3059test_array [0] = 0
3060
3061  ;
3062  return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext
3066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067  (eval $ac_compile) 2>conftest.er1
3068  ac_status=$?
3069  grep -v '^ *+' conftest.er1 >conftest.err
3070  rm -f conftest.er1
3071  cat conftest.err >&5
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); } &&
3074     { ac_try='test -z "$ac_c_werror_flag"
3075             || test ! -s conftest.err'
3076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077  (eval $ac_try) 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; } &&
3081     { ac_try='test -s conftest.$ac_objext'
3082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083  (eval $ac_try) 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; }; then
3087  ac_lo=$ac_mid; break
3088else
3089  echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092ac_hi=`expr '(' $ac_mid ')' - 1`
3093               if test $ac_mid -le $ac_hi; then
3094             ac_lo= ac_hi=
3095             break
3096               fi
3097               ac_mid=`expr 2 '*' $ac_mid`
3098fi
3099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100  done
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105ac_lo= ac_hi=
3106fi
3107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108fi
3109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110# Binary search between lo and hi bounds.
3111while test "x$ac_lo" != "x$ac_hi"; do
3112  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3113  cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119$ac_includes_default
3120int
3121main ()
3122{
3123static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3124test_array [0] = 0
3125
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132  (eval $ac_compile) 2>conftest.er1
3133  ac_status=$?
3134  grep -v '^ *+' conftest.er1 >conftest.err
3135  rm -f conftest.er1
3136  cat conftest.err >&5
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); } &&
3139     { ac_try='test -z "$ac_c_werror_flag"
3140             || test ! -s conftest.err'
3141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142  (eval $ac_try) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; } &&
3146     { ac_try='test -s conftest.$ac_objext'
3147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148  (eval $ac_try) 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }; }; then
3152  ac_hi=$ac_mid
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157ac_lo=`expr '(' $ac_mid ')' + 1`
3158fi
3159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3160done
3161case $ac_lo in
3162?*) ac_cv_sizeof_void_p=$ac_lo;;
3163'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3164See \`config.log' for more details." >&5
3165echo "$as_me: error: cannot compute sizeof (void *), 77
3166See \`config.log' for more details." >&2;}
3167   { (exit 1); exit 1; }; } ;;
3168esac
3169else
3170  if test "$cross_compiling" = yes; then
3171  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3172See \`config.log' for more details." >&5
3173echo "$as_me: error: cannot run test program while cross compiling
3174See \`config.log' for more details." >&2;}
3175   { (exit 1); exit 1; }; }
3176else
3177  cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h.  */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h.  */
3183$ac_includes_default
3184long longval () { return (long) (sizeof (void *)); }
3185unsigned long ulongval () { return (long) (sizeof (void *)); }
3186#include <stdio.h>
3187#include <stdlib.h>
3188int
3189main ()
3190{
3191
3192  FILE *f = fopen ("conftest.val", "w");
3193  if (! f)
3194    exit (1);
3195  if (((long) (sizeof (void *))) < 0)
3196    {
3197      long i = longval ();
3198      if (i != ((long) (sizeof (void *))))
3199    exit (1);
3200      fprintf (f, "%ld\n", i);
3201    }
3202  else
3203    {
3204      unsigned long i = ulongval ();
3205      if (i != ((long) (sizeof (void *))))
3206    exit (1);
3207      fprintf (f, "%lu\n", i);
3208    }
3209  exit (ferror (f) || fclose (f) != 0);
3210
3211  ;
3212  return 0;
3213}
3214_ACEOF
3215rm -f conftest$ac_exeext
3216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3217  (eval $ac_link) 2>&5
3218  ac_status=$?
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; }; then
3226  ac_cv_sizeof_void_p=`cat conftest.val`
3227else
3228  echo "$as_me: program exited with status $ac_status" >&5
3229echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232( exit $ac_status )
3233{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3234See \`config.log' for more details." >&5
3235echo "$as_me: error: cannot compute sizeof (void *), 77
3236See \`config.log' for more details." >&2;}
3237   { (exit 1); exit 1; }; }
3238fi
3239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3240fi
3241fi
3242rm -f conftest.val
3243else
3244  ac_cv_sizeof_void_p=0
3245fi
3246fi
3247echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3248echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3249cat >>confdefs.h <<_ACEOF
3250#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3251_ACEOF
3252
3253
3254echo "$as_me:$LINENO: checking for int" >&5
3255echo $ECHO_N "checking for int... $ECHO_C" >&6
3256if test "${ac_cv_type_int+set}" = set; then
3257  echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259  cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h.  */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h.  */
3265$ac_includes_default
3266int
3267main ()
3268{
3269if ((int *) 0)
3270  return 0;
3271if (sizeof (int))
3272  return 0;
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279  (eval $ac_compile) 2>conftest.er1
3280  ac_status=$?
3281  grep -v '^ *+' conftest.er1 >conftest.err
3282  rm -f conftest.er1
3283  cat conftest.err >&5
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); } &&
3286     { ac_try='test -z "$ac_c_werror_flag"
3287             || test ! -s conftest.err'
3288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289  (eval $ac_try) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }; } &&
3293     { ac_try='test -s conftest.$ac_objext'
3294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295  (eval $ac_try) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); }; }; then
3299  ac_cv_type_int=yes
3300else
3301  echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304ac_cv_type_int=no
3305fi
3306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307fi
3308echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3309echo "${ECHO_T}$ac_cv_type_int" >&6
3310
3311echo "$as_me:$LINENO: checking size of int" >&5
3312echo $ECHO_N "checking size of int... $ECHO_C" >&6
3313if test "${ac_cv_sizeof_int+set}" = set; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  if test "$ac_cv_type_int" = yes; then
3317  # The cast to unsigned long works around a bug in the HP C Compiler
3318  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3319  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3320  # This bug is HP SR number 8606223364.
3321  if test "$cross_compiling" = yes; then
3322  # Depending upon the size, compute the lo and hi bounds.
3323cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h.  */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h.  */
3329$ac_includes_default
3330int
3331main ()
3332{
3333static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3334test_array [0] = 0
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340rm -f conftest.$ac_objext
3341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342  (eval $ac_compile) 2>conftest.er1
3343  ac_status=$?
3344  grep -v '^ *+' conftest.er1 >conftest.err
3345  rm -f conftest.er1
3346  cat conftest.err >&5
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); } &&
3349     { ac_try='test -z "$ac_c_werror_flag"
3350             || test ! -s conftest.err'
3351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352  (eval $ac_try) 2>&5
3353  ac_status=$?
3354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); }; } &&
3356     { ac_try='test -s conftest.$ac_objext'
3357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358  (eval $ac_try) 2>&5
3359  ac_status=$?
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); }; }; then
3362  ac_lo=0 ac_mid=0
3363  while :; do
3364    cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h.  */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h.  */
3370$ac_includes_default
3371int
3372main ()
3373{
3374static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3375test_array [0] = 0
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
3382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383  (eval $ac_compile) 2>conftest.er1
3384  ac_status=$?
3385  grep -v '^ *+' conftest.er1 >conftest.err
3386  rm -f conftest.er1
3387  cat conftest.err >&5
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); } &&
3390     { ac_try='test -z "$ac_c_werror_flag"
3391             || test ! -s conftest.err'
3392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393  (eval $ac_try) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }; } &&
3397     { ac_try='test -s conftest.$ac_objext'
3398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; }; then
3403  ac_hi=$ac_mid; break
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408ac_lo=`expr $ac_mid + 1`
3409            if test $ac_lo -le $ac_mid; then
3410              ac_lo= ac_hi=
3411              break
3412            fi
3413            ac_mid=`expr 2 '*' $ac_mid + 1`
3414fi
3415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416  done
3417else
3418  echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h.  */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h.  */
3427$ac_includes_default
3428int
3429main ()
3430{
3431static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3432test_array [0] = 0
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext
3439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440  (eval $ac_compile) 2>conftest.er1
3441  ac_status=$?
3442  grep -v '^ *+' conftest.er1 >conftest.err
3443  rm -f conftest.er1
3444  cat conftest.err >&5
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); } &&
3447     { ac_try='test -z "$ac_c_werror_flag"
3448             || test ! -s conftest.err'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; } &&
3454     { ac_try='test -s conftest.$ac_objext'
3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456  (eval $ac_try) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }; }; then
3460  ac_hi=-1 ac_mid=-1
3461  while :; do
3462    cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h.  */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h.  */
3468$ac_includes_default
3469int
3470main ()
3471{
3472static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3473test_array [0] = 0
3474
3475  ;
3476  return 0;
3477}
3478_ACEOF
3479rm -f conftest.$ac_objext
3480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481  (eval $ac_compile) 2>conftest.er1
3482  ac_status=$?
3483  grep -v '^ *+' conftest.er1 >conftest.err
3484  rm -f conftest.er1
3485  cat conftest.err >&5
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); } &&
3488     { ac_try='test -z "$ac_c_werror_flag"
3489             || test ! -s conftest.err'
3490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491  (eval $ac_try) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }; } &&
3495     { ac_try='test -s conftest.$ac_objext'
3496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497  (eval $ac_try) 2>&5
3498  ac_status=$?
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); }; }; then
3501  ac_lo=$ac_mid; break
3502else
3503  echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506ac_hi=`expr '(' $ac_mid ')' - 1`
3507               if test $ac_mid -le $ac_hi; then
3508             ac_lo= ac_hi=
3509             break
3510               fi
3511               ac_mid=`expr 2 '*' $ac_mid`
3512fi
3513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3514  done
3515else
3516  echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519ac_lo= ac_hi=
3520fi
3521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522fi
3523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3524# Binary search between lo and hi bounds.
3525while test "x$ac_lo" != "x$ac_hi"; do
3526  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3527  cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h.  */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h.  */
3533$ac_includes_default
3534int
3535main ()
3536{
3537static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3538test_array [0] = 0
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544rm -f conftest.$ac_objext
3545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546  (eval $ac_compile) 2>conftest.er1
3547  ac_status=$?
3548  grep -v '^ *+' conftest.er1 >conftest.err
3549  rm -f conftest.er1
3550  cat conftest.err >&5
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); } &&
3553     { ac_try='test -z "$ac_c_werror_flag"
3554             || test ! -s conftest.err'
3555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556  (eval $ac_try) 2>&5
3557  ac_status=$?
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); }; } &&
3560     { ac_try='test -s conftest.$ac_objext'
3561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562  (eval $ac_try) 2>&5
3563  ac_status=$?
3564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); }; }; then
3566  ac_hi=$ac_mid
3567else
3568  echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571ac_lo=`expr '(' $ac_mid ')' + 1`
3572fi
3573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574done
3575case $ac_lo in
3576?*) ac_cv_sizeof_int=$ac_lo;;
3577'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3578See \`config.log' for more details." >&5
3579echo "$as_me: error: cannot compute sizeof (int), 77
3580See \`config.log' for more details." >&2;}
3581   { (exit 1); exit 1; }; } ;;
3582esac
3583else
3584  if test "$cross_compiling" = yes; then
3585  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3586See \`config.log' for more details." >&5
3587echo "$as_me: error: cannot run test program while cross compiling
3588See \`config.log' for more details." >&2;}
3589   { (exit 1); exit 1; }; }
3590else
3591  cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597$ac_includes_default
3598long longval () { return (long) (sizeof (int)); }
3599unsigned long ulongval () { return (long) (sizeof (int)); }
3600#include <stdio.h>
3601#include <stdlib.h>
3602int
3603main ()
3604{
3605
3606  FILE *f = fopen ("conftest.val", "w");
3607  if (! f)
3608    exit (1);
3609  if (((long) (sizeof (int))) < 0)
3610    {
3611      long i = longval ();
3612      if (i != ((long) (sizeof (int))))
3613    exit (1);
3614      fprintf (f, "%ld\n", i);
3615    }
3616  else
3617    {
3618      unsigned long i = ulongval ();
3619      if (i != ((long) (sizeof (int))))
3620    exit (1);
3621      fprintf (f, "%lu\n", i);
3622    }
3623  exit (ferror (f) || fclose (f) != 0);
3624
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629rm -f conftest$ac_exeext
3630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3631  (eval $ac_link) 2>&5
3632  ac_status=$?
3633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636  (eval $ac_try) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); }; }; then
3640  ac_cv_sizeof_int=`cat conftest.val`
3641else
3642  echo "$as_me: program exited with status $ac_status" >&5
3643echo "$as_me: failed program was:" >&5
3644sed 's/^/| /' conftest.$ac_ext >&5
3645
3646( exit $ac_status )
3647{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3648See \`config.log' for more details." >&5
3649echo "$as_me: error: cannot compute sizeof (int), 77
3650See \`config.log' for more details." >&2;}
3651   { (exit 1); exit 1; }; }
3652fi
3653rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3654fi
3655fi
3656rm -f conftest.val
3657else
3658  ac_cv_sizeof_int=0
3659fi
3660fi
3661echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3662echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3663cat >>confdefs.h <<_ACEOF
3664#define SIZEOF_INT $ac_cv_sizeof_int
3665_ACEOF
3666
3667
3668echo "$as_me:$LINENO: checking for long" >&5
3669echo $ECHO_N "checking for long... $ECHO_C" >&6
3670if test "${ac_cv_type_long+set}" = set; then
3671  echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673  cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h.  */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h.  */
3679$ac_includes_default
3680int
3681main ()
3682{
3683if ((long *) 0)
3684  return 0;
3685if (sizeof (long))
3686  return 0;
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691rm -f conftest.$ac_objext
3692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693  (eval $ac_compile) 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700     { ac_try='test -z "$ac_c_werror_flag"
3701             || test ! -s conftest.err'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; } &&
3707     { ac_try='test -s conftest.$ac_objext'
3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709  (eval $ac_try) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; }; then
3713  ac_cv_type_long=yes
3714else
3715  echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718ac_cv_type_long=no
3719fi
3720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721fi
3722echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3723echo "${ECHO_T}$ac_cv_type_long" >&6
3724
3725echo "$as_me:$LINENO: checking size of long" >&5
3726echo $ECHO_N "checking size of long... $ECHO_C" >&6
3727if test "${ac_cv_sizeof_long+set}" = set; then
3728  echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730  if test "$ac_cv_type_long" = yes; then
3731  # The cast to unsigned long works around a bug in the HP C Compiler
3732  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3733  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3734  # This bug is HP SR number 8606223364.
3735  if test "$cross_compiling" = yes; then
3736  # Depending upon the size, compute the lo and hi bounds.
3737cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h.  */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h.  */
3743$ac_includes_default
3744int
3745main ()
3746{
3747static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3748test_array [0] = 0
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754rm -f conftest.$ac_objext
3755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756  (eval $ac_compile) 2>conftest.er1
3757  ac_status=$?
3758  grep -v '^ *+' conftest.er1 >conftest.err
3759  rm -f conftest.er1
3760  cat conftest.err >&5
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); } &&
3763     { ac_try='test -z "$ac_c_werror_flag"
3764             || test ! -s conftest.err'
3765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766  (eval $ac_try) 2>&5
3767  ac_status=$?
3768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769  (exit $ac_status); }; } &&
3770     { ac_try='test -s conftest.$ac_objext'
3771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772  (eval $ac_try) 2>&5
3773  ac_status=$?
3774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775  (exit $ac_status); }; }; then
3776  ac_lo=0 ac_mid=0
3777  while :; do
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
3785int
3786main ()
3787{
3788static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3789test_array [0] = 0
3790
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795rm -f conftest.$ac_objext
3796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3797  (eval $ac_compile) 2>conftest.er1
3798  ac_status=$?
3799  grep -v '^ *+' conftest.er1 >conftest.err
3800  rm -f conftest.er1
3801  cat conftest.err >&5
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); } &&
3804     { ac_try='test -z "$ac_c_werror_flag"
3805             || test ! -s conftest.err'
3806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807  (eval $ac_try) 2>&5
3808  ac_status=$?
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); }; } &&
3811     { ac_try='test -s conftest.$ac_objext'
3812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813  (eval $ac_try) 2>&5
3814  ac_status=$?
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); }; }; then
3817  ac_hi=$ac_mid; break
3818else
3819  echo "$as_me: failed program was:" >&5
3820sed 's/^/| /' conftest.$ac_ext >&5
3821
3822ac_lo=`expr $ac_mid + 1`
3823            if test $ac_lo -le $ac_mid; then
3824              ac_lo= ac_hi=
3825              break
3826            fi
3827            ac_mid=`expr 2 '*' $ac_mid + 1`
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830  done
3831else
3832  echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835cat >conftest.$ac_ext <<_ACEOF
3836/* confdefs.h.  */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h.  */
3841$ac_includes_default
3842int
3843main ()
3844{
3845static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3846test_array [0] = 0
3847
3848  ;
3849  return 0;
3850}
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_hi=-1 ac_mid=-1
3875  while :; do
3876    cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h.  */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h.  */
3882$ac_includes_default
3883int
3884main ()
3885{
3886static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3887test_array [0] = 0
3888
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893rm -f conftest.$ac_objext
3894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895  (eval $ac_compile) 2>conftest.er1
3896  ac_status=$?
3897  grep -v '^ *+' conftest.er1 >conftest.err
3898  rm -f conftest.er1
3899  cat conftest.err >&5
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); } &&
3902     { ac_try='test -z "$ac_c_werror_flag"
3903             || test ! -s conftest.err'
3904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905  (eval $ac_try) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); }; } &&
3909     { ac_try='test -s conftest.$ac_objext'
3910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911  (eval $ac_try) 2>&5
3912  ac_status=$?
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); }; }; then
3915  ac_lo=$ac_mid; break
3916else
3917  echo "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5
3919
3920ac_hi=`expr '(' $ac_mid ')' - 1`
3921               if test $ac_mid -le $ac_hi; then
3922             ac_lo= ac_hi=
3923             break
3924               fi
3925               ac_mid=`expr 2 '*' $ac_mid`
3926fi
3927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3928  done
3929else
3930  echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933ac_lo= ac_hi=
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936fi
3937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938# Binary search between lo and hi bounds.
3939while test "x$ac_lo" != "x$ac_hi"; do
3940  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3941  cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h.  */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h.  */
3947$ac_includes_default
3948int
3949main ()
3950{
3951static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3952test_array [0] = 0
3953
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958rm -f conftest.$ac_objext
3959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960  (eval $ac_compile) 2>conftest.er1
3961  ac_status=$?
3962  grep -v '^ *+' conftest.er1 >conftest.err
3963  rm -f conftest.er1
3964  cat conftest.err >&5
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); } &&
3967     { ac_try='test -z "$ac_c_werror_flag"
3968             || test ! -s conftest.err'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; } &&
3974     { ac_try='test -s conftest.$ac_objext'
3975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976  (eval $ac_try) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; }; then
3980  ac_hi=$ac_mid
3981else
3982  echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985ac_lo=`expr '(' $ac_mid ')' + 1`
3986fi
3987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3988done
3989case $ac_lo in
3990?*) ac_cv_sizeof_long=$ac_lo;;
3991'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3992See \`config.log' for more details." >&5
3993echo "$as_me: error: cannot compute sizeof (long), 77
3994See \`config.log' for more details." >&2;}
3995   { (exit 1); exit 1; }; } ;;
3996esac
3997else
3998  if test "$cross_compiling" = yes; then
3999  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4000See \`config.log' for more details." >&5
4001echo "$as_me: error: cannot run test program while cross compiling
4002See \`config.log' for more details." >&2;}
4003   { (exit 1); exit 1; }; }
4004else
4005  cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h.  */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h.  */
4011$ac_includes_default
4012long longval () { return (long) (sizeof (long)); }
4013unsigned long ulongval () { return (long) (sizeof (long)); }
4014#include <stdio.h>
4015#include <stdlib.h>
4016int
4017main ()
4018{
4019
4020  FILE *f = fopen ("conftest.val", "w");
4021  if (! f)
4022    exit (1);
4023  if (((long) (sizeof (long))) < 0)
4024    {
4025      long i = longval ();
4026      if (i != ((long) (sizeof (long))))
4027    exit (1);
4028      fprintf (f, "%ld\n", i);
4029    }
4030  else
4031    {
4032      unsigned long i = ulongval ();
4033      if (i != ((long) (sizeof (long))))
4034    exit (1);
4035      fprintf (f, "%lu\n", i);
4036    }
4037  exit (ferror (f) || fclose (f) != 0);
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043rm -f conftest$ac_exeext
4044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045  (eval $ac_link) 2>&5
4046  ac_status=$?
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050  (eval $ac_try) 2>&5
4051  ac_status=$?
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); }; }; then
4054  ac_cv_sizeof_long=`cat conftest.val`
4055else
4056  echo "$as_me: program exited with status $ac_status" >&5
4057echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060( exit $ac_status )
4061{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4062See \`config.log' for more details." >&5
4063echo "$as_me: error: cannot compute sizeof (long), 77
4064See \`config.log' for more details." >&2;}
4065   { (exit 1); exit 1; }; }
4066fi
4067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4068fi
4069fi
4070rm -f conftest.val
4071else
4072  ac_cv_sizeof_long=0
4073fi
4074fi
4075echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4076echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4077cat >>confdefs.h <<_ACEOF
4078#define SIZEOF_LONG $ac_cv_sizeof_long
4079_ACEOF
4080
4081
4082
4083######## check for the JDK and tools within the JDK
4084######## look in the JAVA_HOME environment variable at configure-time
4085echo "$as_me:$LINENO: checking for the JDK" >&5
4086echo $ECHO_N "checking for the JDK... $ECHO_C" >&6
4087if test "z$JAVA_HOME" != z &&
4088   test -d $JAVA_HOME &&
4089   test -d $JAVA_HOME/include
4090then
4091
4092    echo "$as_me:$LINENO: result: found in $JAVA_HOME" >&5
4093echo "${ECHO_T}found in $JAVA_HOME" >&6
4094else
4095    { { echo "$as_me:$LINENO: error: not found in \$JAVA_HOME" >&5
4096echo "$as_me: error: not found in \$JAVA_HOME" >&2;}
4097   { (exit 1); exit 1; }; }
4098fi
4099
4100# TODO: Check for specific header files in the JDK, or
4101# functions/definitions within those headers?
4102
4103# TODO: guess which include directory to use under the JDK
4104
4105# Extract the first word of "javah", so it can be a program name with args.
4106set dummy javah; ac_word=$2
4107echo "$as_me:$LINENO: checking for $ac_word" >&5
4108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109if test "${ac_cv_path_javagdbm_cv_path_javah+set}" = set; then
4110  echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112  case $javagdbm_cv_path_javah in
4113  [\\/]* | ?:[\\/]*)
4114  ac_cv_path_javagdbm_cv_path_javah="$javagdbm_cv_path_javah" # Let the user override the test with a path.
4115  ;;
4116  *)
4117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120  IFS=$as_save_IFS
4121  test -z "$as_dir" && as_dir=.
4122  for ac_exec_ext in '' $ac_executable_extensions; do
4123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124    ac_cv_path_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext"
4125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126    break 2
4127  fi
4128done
4129done
4130
4131  test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah"
4132  ;;
4133esac
4134fi
4135javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah
4136
4137if test -n "$javagdbm_cv_path_javah"; then
4138  echo "$as_me:$LINENO: result: $javagdbm_cv_path_javah" >&5
4139echo "${ECHO_T}$javagdbm_cv_path_javah" >&6
4140else
4141  echo "$as_me:$LINENO: result: no" >&5
4142echo "${ECHO_T}no" >&6
4143fi
4144
4145if test "$javagdbm_cv_path_javah" = missing_javah; then
4146    { { echo "$as_me:$LINENO: error: javah not found." >&5
4147echo "$as_me: error: javah not found." >&2;}
4148   { (exit 1); exit 1; }; }
4149fi
4150
4151# Extract the first word of "java", so it can be a program name with args.
4152set dummy java; ac_word=$2
4153echo "$as_me:$LINENO: checking for $ac_word" >&5
4154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155if test "${ac_cv_path_javagdbm_cv_path_java+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  case $javagdbm_cv_path_java in
4159  [\\/]* | ?:[\\/]*)
4160  ac_cv_path_javagdbm_cv_path_java="$javagdbm_cv_path_java" # Let the user override the test with a path.
4161  ;;
4162  *)
4163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166  IFS=$as_save_IFS
4167  test -z "$as_dir" && as_dir=.
4168  for ac_exec_ext in '' $ac_executable_extensions; do
4169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170    ac_cv_path_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext"
4171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172    break 2
4173  fi
4174done
4175done
4176
4177  test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing"
4178  ;;
4179esac
4180fi
4181javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java
4182
4183if test -n "$javagdbm_cv_path_java"; then
4184  echo "$as_me:$LINENO: result: $javagdbm_cv_path_java" >&5
4185echo "${ECHO_T}$javagdbm_cv_path_java" >&6
4186else
4187  echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
4189fi
4190
4191if test "$javagdbm_cv_path_java" = missing; then
4192    { { echo "$as_me:$LINENO: error: java not found." >&5
4193echo "$as_me: error: java not found." >&2;}
4194   { (exit 1); exit 1; }; }
4195fi
4196
4197# check for gdbm library
4198#AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
4199#   [javagdbm_cv_lib_gdbm=no])
4200#if test "$javagdbm_cv_lib_gdbm" = "no"; then
4201#   AC_MSG_ERROR([no native gdbm library found.])
4202#fi
4203#LIBS="$javagdbm_cv_lib_gdbm"
4204
4205# gdbm stuff copied from gsdl [kjdon]
4206
4207
4208echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
4209echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
4210if test ! -z "$gdbmdir" ; then
4211  # look in given directory for header file
4212  if test -r $gdbmdir/include/gdbm.h ; then
4213    GDBM_INCLUDE="-I$gdbmdir/include" ;
4214  elif test -r $gdbmdir/gdbm.h ; then
4215    GDBM_INCLUDE="-I$gdbmdir" ;
4216  fi
4217
4218  # look in given directory for library
4219  if test -r $gdbmdir/libgdbm.a ; then
4220    GDBM_LIBPATH="-L$gdbmdir" ;
4221  elif test -r $gdbmdir/lib/libgdbm.a ; then
4222    GDBM_LIBPATH="-L$gdbmdir/lib" ;
4223  elif test -r $gdbmdir/.libs/libgdbm.a ; then
4224    GDBM_LIBPATH="-L$gdbmdir/.libs" ;
4225  fi
4226
4227  if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
4228    echo "$as_me:$LINENO: result: $gdbmdir" >&5
4229echo "${ECHO_T}$gdbmdir" >&6 ;
4230  else
4231    echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
4232echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
4233    echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
4234echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
4235  fi
4236fi
4237
4238# look in default path and in /usr/local
4239if test -z "$GDBM_INCLUDE" ; then
4240  # try in system directory
4241  cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h.  */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h.  */
4247#include <gdbm.h>
4248
4249int
4250main ()
4251{
4252
4253  ;
4254  return 0;
4255}
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259  (eval $ac_compile) 2>conftest.er1
4260  ac_status=$?
4261  grep -v '^ *+' conftest.er1 >conftest.err
4262  rm -f conftest.er1
4263  cat conftest.err >&5
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); } &&
4266     { ac_try='test -z "$ac_c_werror_flag"
4267             || test ! -s conftest.err'
4268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269  (eval $ac_try) 2>&5
4270  ac_status=$?
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); }; } &&
4273     { ac_try='test -s conftest.$ac_objext'
4274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275  (eval $ac_try) 2>&5
4276  ac_status=$?
4277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278  (exit $ac_status); }; }; then
4279  success=yes
4280else
4281  echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284success=no
4285
4286fi
4287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288
4289  if test $success = "no"; then
4290# last chance - look in /usr/local (eg FreeBSD)
4291    GDBM_LIBPATH=-L/usr/local/lib
4292    GDBM_INCLUDE=-I/usr/local/include
4293    ac_save_CXXFLAGS="$CXXFLAGS"
4294    ac_save_LIBS="$LIBS"
4295      CXXFLAGS="$CXXFLAGS -I/usr/local/include"
4296      LIBS="$LIBS -L/usr/local/lib -lgdbm"
4297      cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h.  */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h.  */
4303#include <gdbm.h>
4304#include <stdio.h>
4305
4306int
4307main ()
4308{
4309printf("%s",gdbm_version);
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314rm -f conftest.$ac_objext conftest$ac_exeext
4315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4316  (eval $ac_link) 2>conftest.er1
4317  ac_status=$?
4318  grep -v '^ *+' conftest.er1 >conftest.err
4319  rm -f conftest.er1
4320  cat conftest.err >&5
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); } &&
4323     { ac_try='test -z "$ac_c_werror_flag"
4324             || test ! -s conftest.err'
4325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326  (eval $ac_try) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); }; } &&
4330     { ac_try='test -s conftest$ac_exeext'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; }; then
4336  success=/usr/local
4337else
4338  echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341success=no
4342
4343fi
4344rm -f conftest.err conftest.$ac_objext \
4345      conftest$ac_exeext conftest.$ac_ext
4346      CXXFLAGS=$ac_save_CXXFLAGS
4347      LIBS=$ac_save_LIBS
4348  fi
4349
4350  echo "$as_me:$LINENO: result: $success" >&5
4351echo "${ECHO_T}$success" >&6
4352  if test $success = "no"; then
4353  { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
4354echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
4355   { (exit 1); exit 1; }; }
4356  fi
4357fi
4358cat >>confdefs.h <<\_ACEOF
4359#define HAVE_LIBGDBM  1
4360_ACEOF
4361
4362
4363
4364
4365
4366########## set compiler options
4367# TODO: is there a more appropriate way to guess which switches to use
4368# with which systems/compilers?
4369CFLAGS="-Wall -O2 -fpic"
4370PKG="au.com.pharos.gdbm"
4371
4372
4373
4374
4375# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
4376# a non-standard Path
4377# is there a better way to do this??
4378echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
4379echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
4380# set defaults
4381JNIINC=""
4382JNISUFFIX="so"
4383JNIFLAGS="-shared"
4384
4385if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
4386  echo "$as_me:$LINENO: result: Darwin" >&5
4387echo "${ECHO_T}Darwin" >&6
4388  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
4389  JNISUFFIX="jnilib"
4390  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
4391fi
4392if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
4393  echo "$as_me:$LINENO: result: Solaris" >&5
4394echo "${ECHO_T}Solaris" >&6
4395  JNIINC="-I\$(JAVA_HOME)/include/solaris "
4396fi
4397if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
4398  echo "$as_me:$LINENO: result: Linux" >&5
4399echo "${ECHO_T}Linux" >&6
4400  JNIINC="-I\$(JAVA_HOME)/include/linux "
4401fi
4402
4403
4404
4405
4406
4407# write the output
4408                              ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
4409cat >confcache <<\_ACEOF
4410# This file is a shell script that caches the results of configure
4411# tests run on this system so they can be shared between configure
4412# scripts and configure runs, see configure's option --config-cache.
4413# It is not useful on other systems.  If it contains results you don't
4414# want to keep, you may remove or edit it.
4415#
4416# config.status only pays attention to the cache file if you give it
4417# the --recheck option to rerun configure.
4418#
4419# `ac_cv_env_foo' variables (set or unset) will be overridden when
4420# loading this file, other *unset* `ac_cv_foo' will be assigned the
4421# following values.
4422
4423_ACEOF
4424
4425# The following way of writing the cache mishandles newlines in values,
4426# but we know of no workaround that is simple, portable, and efficient.
4427# So, don't put newlines in cache variables' values.
4428# Ultrix sh set writes to stderr and can't be redirected directly,
4429# and sets the high bit in the cache file unless we assign to the vars.
4430{
4431  (set) 2>&1 |
4432    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4433    *ac_space=\ *)
4434      # `set' does not quote correctly, so add quotes (double-quote
4435      # substitution turns \\\\ into \\, and sed turns \\ into \).
4436      sed -n \
4437    "s/'/'\\\\''/g;
4438      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4439      ;;
4440    *)
4441      # `set' quotes correctly as required by POSIX, so do not add quotes.
4442      sed -n \
4443    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4444      ;;
4445    esac;
4446} |
4447  sed '
4448     t clear
4449     : clear
4450     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4451     t end
4452     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4453     : end' >>confcache
4454if diff $cache_file confcache >/dev/null 2>&1; then :; else
4455  if test -w $cache_file; then
4456    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4457    cat confcache >$cache_file
4458  else
4459    echo "not updating unwritable cache $cache_file"
4460  fi
4461fi
4462rm -f confcache
4463
4464test "x$prefix" = xNONE && prefix=$ac_default_prefix
4465# Let make expand exec_prefix.
4466test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4467
4468# VPATH may cause trouble with some makes, so we remove $(srcdir),
4469# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4470# trailing colons and then remove the whole line if VPATH becomes empty
4471# (actually we leave an empty line to preserve line numbers).
4472if test "x$srcdir" = x.; then
4473  ac_vpsub='/^[  ]*VPATH[    ]*=/{
4474s/:*\$(srcdir):*/:/;
4475s/:*\${srcdir}:*/:/;
4476s/:*@srcdir@:*/:/;
4477s/^\([^=]*=[     ]*\):*/\1/;
4478s/:*$//;
4479s/^[^=]*=[   ]*$//;
4480}'
4481fi
4482
4483# Transform confdefs.h into DEFS.
4484# Protect against shell expansion while executing Makefile rules.
4485# Protect against Makefile macro expansion.
4486#
4487# If the first sed substitution is executed (which looks for macros that
4488# take arguments), then we branch to the quote section.  Otherwise,
4489# look for a macro that doesn't take arguments.
4490cat >confdef2opt.sed <<\_ACEOF
4491t clear
4492: clear
4493s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4494t quote
4495s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4496t quote
4497d
4498: quote
4499s,[  `~#$^&*(){}\\|;'"<>?],\\&,g
4500s,\[,\\&,g
4501s,\],\\&,g
4502s,\$,$$,g
4503p
4504_ACEOF
4505# We use echo to avoid assuming a particular line-breaking character.
4506# The extra dot is to prevent the shell from consuming trailing
4507# line-breaks from the sub-command output.  A line-break within
4508# single-quotes doesn't work because, if this script is created in a
4509# platform that uses two characters for line-breaks (e.g., DOS), tr
4510# would break.
4511ac_LF_and_DOT=`echo; echo .`
4512DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4513rm -f confdef2opt.sed
4514
4515
4516ac_libobjs=
4517ac_ltlibobjs=
4518for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4519  # 1. Remove the extension, and $U if already installed.
4520  ac_i=`echo "$ac_i" |
4521     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4522  # 2. Add them.
4523  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4524  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4525done
4526LIBOBJS=$ac_libobjs
4527
4528LTLIBOBJS=$ac_ltlibobjs
4529
4530
4531
4532: ${CONFIG_STATUS=./config.status}
4533ac_clean_files_save=$ac_clean_files
4534ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4535{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4536echo "$as_me: creating $CONFIG_STATUS" >&6;}
4537cat >$CONFIG_STATUS <<_ACEOF
4538#! $SHELL
4539# Generated by $as_me.
4540# Run this file to recreate the current configuration.
4541# Compiler output produced by configure, useful for debugging
4542# configure, is in config.log if it exists.
4543
4544debug=false
4545ac_cs_recheck=false
4546ac_cs_silent=false
4547SHELL=\${CONFIG_SHELL-$SHELL}
4548_ACEOF
4549
4550cat >>$CONFIG_STATUS <<\_ACEOF
4551## --------------------- ##
4552## M4sh Initialization.  ##
4553## --------------------- ##
4554
4555# Be Bourne compatible
4556if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4557  emulate sh
4558  NULLCMD=:
4559  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4560  # is contrary to our usage.  Disable this feature.
4561  alias -g '${1+"$@"}'='"$@"'
4562elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4563  set -o posix
4564fi
4565DUALCASE=1; export DUALCASE # for MKS sh
4566
4567# Support unset when possible.
4568if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4569  as_unset=unset
4570else
4571  as_unset=false
4572fi
4573
4574
4575# Work around bugs in pre-3.0 UWIN ksh.
4576$as_unset ENV MAIL MAILPATH
4577PS1='$ '
4578PS2='> '
4579PS4='+ '
4580
4581# NLS nuisances.
4582for as_var in \
4583  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4584  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4585  LC_TELEPHONE LC_TIME
4586do
4587  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4588    eval $as_var=C; export $as_var
4589  else
4590    $as_unset $as_var
4591  fi
4592done
4593
4594# Required to use basename.
4595if expr a : '\(a\)' >/dev/null 2>&1; then
4596  as_expr=expr
4597else
4598  as_expr=false
4599fi
4600
4601if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4602  as_basename=basename
4603else
4604  as_basename=false
4605fi
4606
4607
4608# Name of the executable.
4609as_me=`$as_basename "$0" ||
4610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4611     X"$0" : 'X\(//\)$' \| \
4612     X"$0" : 'X\(/\)$' \| \
4613     .     : '\(.\)' 2>/dev/null ||
4614echo X/"$0" |
4615    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4616      /^X\/\(\/\/\)$/{ s//\1/; q; }
4617      /^X\/\(\/\).*/{ s//\1/; q; }
4618      s/.*/./; q'`
4619
4620
4621# PATH needs CR, and LINENO needs CR and PATH.
4622# Avoid depending upon Character Ranges.
4623as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4624as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4625as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4626as_cr_digits='0123456789'
4627as_cr_alnum=$as_cr_Letters$as_cr_digits
4628
4629# The user is always right.
4630if test "${PATH_SEPARATOR+set}" != set; then
4631  echo "#! /bin/sh" >conf$$.sh
4632  echo  "exit 0"   >>conf$$.sh
4633  chmod +x conf$$.sh
4634  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4635    PATH_SEPARATOR=';'
4636  else
4637    PATH_SEPARATOR=:
4638  fi
4639  rm -f conf$$.sh
4640fi
4641
4642
4643  as_lineno_1=$LINENO
4644  as_lineno_2=$LINENO
4645  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4646  test "x$as_lineno_1" != "x$as_lineno_2" &&
4647  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4648  # Find who we are.  Look in the path if we contain no path at all
4649  # relative or not.
4650  case $0 in
4651    *[\\/]* ) as_myself=$0 ;;
4652    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655  IFS=$as_save_IFS
4656  test -z "$as_dir" && as_dir=.
4657  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4658done
4659
4660       ;;
4661  esac
4662  # We did not find ourselves, most probably we were run as `sh COMMAND'
4663  # in which case we are not to be found in the path.
4664  if test "x$as_myself" = x; then
4665    as_myself=$0
4666  fi
4667  if test ! -f "$as_myself"; then
4668    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4669echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4670   { (exit 1); exit 1; }; }
4671  fi
4672  case $CONFIG_SHELL in
4673  '')
4674    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4676do
4677  IFS=$as_save_IFS
4678  test -z "$as_dir" && as_dir=.
4679  for as_base in sh bash ksh sh5; do
4680     case $as_dir in
4681     /*)
4682       if ("$as_dir/$as_base" -c '
4683  as_lineno_1=$LINENO
4684  as_lineno_2=$LINENO
4685  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4686  test "x$as_lineno_1" != "x$as_lineno_2" &&
4687  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4688         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4689         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4690         CONFIG_SHELL=$as_dir/$as_base
4691         export CONFIG_SHELL
4692         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4693       fi;;
4694     esac
4695       done
4696done
4697;;
4698  esac
4699
4700  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4701  # uniformly replaced by the line number.  The first 'sed' inserts a
4702  # line-number line before each line; the second 'sed' does the real
4703  # work.  The second script uses 'N' to pair each line-number line
4704  # with the numbered line, and appends trailing '-' during
4705  # substitution so that $LINENO is not a special case at line end.
4706  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4707  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4708  sed '=' <$as_myself |
4709    sed '
4710      N
4711      s,$,-,
4712      : loop
4713      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4714      t loop
4715      s,-$,,
4716      s,^['$as_cr_digits']*\n,,
4717    ' >$as_me.lineno &&
4718  chmod +x $as_me.lineno ||
4719    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4720echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4721   { (exit 1); exit 1; }; }
4722
4723  # Don't try to exec as it changes $[0], causing all sort of problems
4724  # (the dirname of $[0] is not the place where we might find the
4725  # original and so on.  Autoconf is especially sensible to this).
4726  . ./$as_me.lineno
4727  # Exit status is that of the last command.
4728  exit
4729}
4730
4731
4732case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4733  *c*,-n*) ECHO_N= ECHO_C='
4734' ECHO_T='  ' ;;
4735  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4736  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4737esac
4738
4739if expr a : '\(a\)' >/dev/null 2>&1; then
4740  as_expr=expr
4741else
4742  as_expr=false
4743fi
4744
4745rm -f conf$$ conf$$.exe conf$$.file
4746echo >conf$$.file
4747if ln -s conf$$.file conf$$ 2>/dev/null; then
4748  # We could just check for DJGPP; but this test a) works b) is more generic
4749  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4750  if test -f conf$$.exe; then
4751    # Don't use ln at all; we don't have any links
4752    as_ln_s='cp -p'
4753  else
4754    as_ln_s='ln -s'
4755  fi
4756elif ln conf$$.file conf$$ 2>/dev/null; then
4757  as_ln_s=ln
4758else
4759  as_ln_s='cp -p'
4760fi
4761rm -f conf$$ conf$$.exe conf$$.file
4762
4763if mkdir -p . 2>/dev/null; then
4764  as_mkdir_p=:
4765else
4766  test -d ./-p && rmdir ./-p
4767  as_mkdir_p=false
4768fi
4769
4770as_executable_p="test -f"
4771
4772# Sed expression to map a string onto a valid CPP name.
4773as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4774
4775# Sed expression to map a string onto a valid variable name.
4776as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4777
4778
4779# IFS
4780# We need space, tab and new line, in precisely that order.
4781as_nl='
4782'
4783IFS="   $as_nl"
4784
4785# CDPATH.
4786$as_unset CDPATH
4787
4788exec 6>&1
4789
4790# Open the log real soon, to keep \$[0] and so on meaningful, and to
4791# report actual input values of CONFIG_FILES etc. instead of their
4792# values after options handling.  Logging --version etc. is OK.
4793exec 5>>config.log
4794{
4795  echo
4796  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4797## Running $as_me. ##
4798_ASBOX
4799} >&5
4800cat >&5 <<_CSEOF
4801
4802This file was extended by $as_me, which was
4803generated by GNU Autoconf 2.59.  Invocation command line was
4804
4805  CONFIG_FILES    = $CONFIG_FILES
4806  CONFIG_HEADERS  = $CONFIG_HEADERS
4807  CONFIG_LINKS    = $CONFIG_LINKS
4808  CONFIG_COMMANDS = $CONFIG_COMMANDS
4809  $ $0 $@
4810
4811_CSEOF
4812echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4813echo >&5
4814_ACEOF
4815
4816# Files that config.status was made for.
4817if test -n "$ac_config_files"; then
4818  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4819fi
4820
4821if test -n "$ac_config_headers"; then
4822  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4823fi
4824
4825if test -n "$ac_config_links"; then
4826  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4827fi
4828
4829if test -n "$ac_config_commands"; then
4830  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4831fi
4832
4833cat >>$CONFIG_STATUS <<\_ACEOF
4834
4835ac_cs_usage="\
4836\`$as_me' instantiates files from templates according to the
4837current configuration.
4838
4839Usage: $0 [OPTIONS] [FILE]...
4840
4841  -h, --help       print this help, then exit
4842  -V, --version    print version number, then exit
4843  -q, --quiet      do not print progress messages
4844  -d, --debug      don't remove temporary files
4845      --recheck    update $as_me by reconfiguring in the same conditions
4846  --file=FILE[:TEMPLATE]
4847           instantiate the configuration file FILE
4848
4849Configuration files:
4850$config_files
4851
4852Report bugs to <bug-autoconf@gnu.org>."
4853_ACEOF
4854
4855cat >>$CONFIG_STATUS <<_ACEOF
4856ac_cs_version="\\
4857config.status
4858configured by $0, generated by GNU Autoconf 2.59,
4859  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4860
4861Copyright (C) 2003 Free Software Foundation, Inc.
4862This config.status script is free software; the Free Software Foundation
4863gives unlimited permission to copy, distribute and modify it."
4864srcdir=$srcdir
4865INSTALL="$INSTALL"
4866_ACEOF
4867
4868cat >>$CONFIG_STATUS <<\_ACEOF
4869# If no file are specified by the user, then we need to provide default
4870# value.  By we need to know if files were specified by the user.
4871ac_need_defaults=:
4872while test $# != 0
4873do
4874  case $1 in
4875  --*=*)
4876    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4877    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4878    ac_shift=:
4879    ;;
4880  -*)
4881    ac_option=$1
4882    ac_optarg=$2
4883    ac_shift=shift
4884    ;;
4885  *) # This is not an option, so the user has probably given explicit
4886     # arguments.
4887     ac_option=$1
4888     ac_need_defaults=false;;
4889  esac
4890
4891  case $ac_option in
4892  # Handling of the options.
4893_ACEOF
4894cat >>$CONFIG_STATUS <<\_ACEOF
4895  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4896    ac_cs_recheck=: ;;
4897  --version | --vers* | -V )
4898    echo "$ac_cs_version"; exit 0 ;;
4899  --he | --h)
4900    # Conflict between --help and --header
4901    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4902Try \`$0 --help' for more information." >&5
4903echo "$as_me: error: ambiguous option: $1
4904Try \`$0 --help' for more information." >&2;}
4905   { (exit 1); exit 1; }; };;
4906  --help | --hel | -h )
4907    echo "$ac_cs_usage"; exit 0 ;;
4908  --debug | --d* | -d )
4909    debug=: ;;
4910  --file | --fil | --fi | --f )
4911    $ac_shift
4912    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4913    ac_need_defaults=false;;
4914  --header | --heade | --head | --hea )
4915    $ac_shift
4916    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4917    ac_need_defaults=false;;
4918  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4919  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4920    ac_cs_silent=: ;;
4921
4922  # This is an error.
4923  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4924Try \`$0 --help' for more information." >&5
4925echo "$as_me: error: unrecognized option: $1
4926Try \`$0 --help' for more information." >&2;}
4927   { (exit 1); exit 1; }; } ;;
4928
4929  *) ac_config_targets="$ac_config_targets $1" ;;
4930
4931  esac
4932  shift
4933done
4934
4935ac_configure_extra_args=
4936
4937if $ac_cs_silent; then
4938  exec 6>/dev/null
4939  ac_configure_extra_args="$ac_configure_extra_args --silent"
4940fi
4941
4942_ACEOF
4943cat >>$CONFIG_STATUS <<_ACEOF
4944if \$ac_cs_recheck; then
4945  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4946  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4947fi
4948
4949_ACEOF
4950
4951
4952
4953
4954
4955cat >>$CONFIG_STATUS <<\_ACEOF
4956for ac_config_target in $ac_config_targets
4957do
4958  case "$ac_config_target" in
4959  # Handling of arguments.
4960  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4961  "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
4962  "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
4963  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4964echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4965   { (exit 1); exit 1; }; };;
4966  esac
4967done
4968
4969# If the user did not use the arguments to specify the items to instantiate,
4970# then the envvar interface is used.  Set only those that are not.
4971# We use the long form for the default assignment because of an extremely
4972# bizarre bug on SunOS 4.1.3.
4973if $ac_need_defaults; then
4974  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4975fi
4976
4977# Have a temporary directory for convenience.  Make it in the build tree
4978# simply because there is no reason to put it here, and in addition,
4979# creating and moving files from /tmp can sometimes cause problems.
4980# Create a temporary directory, and hook for its removal unless debugging.
4981$debug ||
4982{
4983  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4984  trap '{ (exit 1); exit 1; }' 1 2 13 15
4985}
4986
4987# Create a (secure) tmp directory for tmp files.
4988
4989{
4990  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4991  test -n "$tmp" && test -d "$tmp"
4992}  ||
4993{
4994  tmp=./confstat$$-$RANDOM
4995  (umask 077 && mkdir $tmp)
4996} ||
4997{
4998   echo "$me: cannot create a temporary directory in ." >&2
4999   { (exit 1); exit 1; }
5000}
5001
5002_ACEOF
5003
5004cat >>$CONFIG_STATUS <<_ACEOF
5005
5006#
5007# CONFIG_FILES section.
5008#
5009
5010# No need to generate the scripts if there are no CONFIG_FILES.
5011# This happens for instance when ./config.status config.h
5012if test -n "\$CONFIG_FILES"; then
5013  # Protect against being on the right side of a sed subst in config.status.
5014  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5015   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5016s,@SHELL@,$SHELL,;t t
5017s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5018s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5019s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5020s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5021s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5022s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5023s,@exec_prefix@,$exec_prefix,;t t
5024s,@prefix@,$prefix,;t t
5025s,@program_transform_name@,$program_transform_name,;t t
5026s,@bindir@,$bindir,;t t
5027s,@sbindir@,$sbindir,;t t
5028s,@libexecdir@,$libexecdir,;t t
5029s,@datadir@,$datadir,;t t
5030s,@sysconfdir@,$sysconfdir,;t t
5031s,@sharedstatedir@,$sharedstatedir,;t t
5032s,@localstatedir@,$localstatedir,;t t
5033s,@libdir@,$libdir,;t t
5034s,@includedir@,$includedir,;t t
5035s,@oldincludedir@,$oldincludedir,;t t
5036s,@infodir@,$infodir,;t t
5037s,@mandir@,$mandir,;t t
5038s,@build_alias@,$build_alias,;t t
5039s,@host_alias@,$host_alias,;t t
5040s,@target_alias@,$target_alias,;t t
5041s,@DEFS@,$DEFS,;t t
5042s,@ECHO_C@,$ECHO_C,;t t
5043s,@ECHO_N@,$ECHO_N,;t t
5044s,@ECHO_T@,$ECHO_T,;t t
5045s,@LIBS@,$LIBS,;t t
5046s,@CC@,$CC,;t t
5047s,@CFLAGS@,$CFLAGS,;t t
5048s,@LDFLAGS@,$LDFLAGS,;t t
5049s,@CPPFLAGS@,$CPPFLAGS,;t t
5050s,@ac_ct_CC@,$ac_ct_CC,;t t
5051s,@EXEEXT@,$EXEEXT,;t t
5052s,@OBJEXT@,$OBJEXT,;t t
5053s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5054s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5055s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5056s,@LN_S@,$LN_S,;t t
5057s,@CPP@,$CPP,;t t
5058s,@EGREP@,$EGREP,;t t
5059s,@JAVA_HOME@,$JAVA_HOME,;t t
5060s,@javagdbm_cv_path_javah@,$javagdbm_cv_path_javah,;t t
5061s,@javagdbm_cv_path_java@,$javagdbm_cv_path_java,;t t
5062s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
5063s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
5064s,@PKG@,$PKG,;t t
5065s,@JNIINC@,$JNIINC,;t t
5066s,@JNISUFFIX@,$JNISUFFIX,;t t
5067s,@JNIFLAGS@,$JNIFLAGS,;t t
5068s,@LIBOBJS@,$LIBOBJS,;t t
5069s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5070CEOF
5071
5072_ACEOF
5073
5074  cat >>$CONFIG_STATUS <<\_ACEOF
5075  # Split the substitutions into bite-sized pieces for seds with
5076  # small command number limits, like on Digital OSF/1 and HP-UX.
5077  ac_max_sed_lines=48
5078  ac_sed_frag=1 # Number of current file.
5079  ac_beg=1 # First line for current file.
5080  ac_end=$ac_max_sed_lines # Line after last line for current file.
5081  ac_more_lines=:
5082  ac_sed_cmds=
5083  while $ac_more_lines; do
5084    if test $ac_beg -gt 1; then
5085      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5086    else
5087      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5088    fi
5089    if test ! -s $tmp/subs.frag; then
5090      ac_more_lines=false
5091    else
5092      # The purpose of the label and of the branching condition is to
5093      # speed up the sed processing (if there are no `@' at all, there
5094      # is no need to browse any of the substitutions).
5095      # These are the two extra sed commands mentioned above.
5096      (echo ':t
5097  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5098      if test -z "$ac_sed_cmds"; then
5099    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5100      else
5101    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5102      fi
5103      ac_sed_frag=`expr $ac_sed_frag + 1`
5104      ac_beg=$ac_end
5105      ac_end=`expr $ac_end + $ac_max_sed_lines`
5106    fi
5107  done
5108  if test -z "$ac_sed_cmds"; then
5109    ac_sed_cmds=cat
5110  fi
5111fi # test -n "$CONFIG_FILES"
5112
5113_ACEOF
5114cat >>$CONFIG_STATUS <<\_ACEOF
5115for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5116  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5117  case $ac_file in
5118  - | *:- | *:-:* ) # input from stdin
5119    cat >$tmp/stdin
5120    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5121    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5122  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5123    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5124  * )   ac_file_in=$ac_file.in ;;
5125  esac
5126
5127  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5128  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5129$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5130     X"$ac_file" : 'X\(//\)[^/]' \| \
5131     X"$ac_file" : 'X\(//\)$' \| \
5132     X"$ac_file" : 'X\(/\)' \| \
5133     .     : '\(.\)' 2>/dev/null ||
5134echo X"$ac_file" |
5135    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5136      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5137      /^X\(\/\/\)$/{ s//\1/; q; }
5138      /^X\(\/\).*/{ s//\1/; q; }
5139      s/.*/./; q'`
5140  { if $as_mkdir_p; then
5141    mkdir -p "$ac_dir"
5142  else
5143    as_dir="$ac_dir"
5144    as_dirs=
5145    while test ! -d "$as_dir"; do
5146      as_dirs="$as_dir $as_dirs"
5147      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5148$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5149     X"$as_dir" : 'X\(//\)[^/]' \| \
5150     X"$as_dir" : 'X\(//\)$' \| \
5151     X"$as_dir" : 'X\(/\)' \| \
5152     .     : '\(.\)' 2>/dev/null ||
5153echo X"$as_dir" |
5154    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5155      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5156      /^X\(\/\/\)$/{ s//\1/; q; }
5157      /^X\(\/\).*/{ s//\1/; q; }
5158      s/.*/./; q'`
5159    done
5160    test ! -n "$as_dirs" || mkdir $as_dirs
5161  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5162echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5163   { (exit 1); exit 1; }; }; }
5164
5165  ac_builddir=.
5166
5167if test "$ac_dir" != .; then
5168  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5169  # A "../" for each directory in $ac_dir_suffix.
5170  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5171else
5172  ac_dir_suffix= ac_top_builddir=
5173fi
5174
5175case $srcdir in
5176  .)  # No --srcdir option.  We are building in place.
5177    ac_srcdir=.
5178    if test -z "$ac_top_builddir"; then
5179       ac_top_srcdir=.
5180    else
5181       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5182    fi ;;
5183  [\\/]* | ?:[\\/]* )  # Absolute path.
5184    ac_srcdir=$srcdir$ac_dir_suffix;
5185    ac_top_srcdir=$srcdir ;;
5186  *) # Relative path.
5187    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5188    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5189esac
5190
5191# Do not use `cd foo && pwd` to compute absolute paths, because
5192# the directories may not exist.
5193case `pwd` in
5194.) ac_abs_builddir="$ac_dir";;
5195*)
5196  case "$ac_dir" in
5197  .) ac_abs_builddir=`pwd`;;
5198  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5199  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5200  esac;;
5201esac
5202case $ac_abs_builddir in
5203.) ac_abs_top_builddir=${ac_top_builddir}.;;
5204*)
5205  case ${ac_top_builddir}. in
5206  .) ac_abs_top_builddir=$ac_abs_builddir;;
5207  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5208  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5209  esac;;
5210esac
5211case $ac_abs_builddir in
5212.) ac_abs_srcdir=$ac_srcdir;;
5213*)
5214  case $ac_srcdir in
5215  .) ac_abs_srcdir=$ac_abs_builddir;;
5216  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5217  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5218  esac;;
5219esac
5220case $ac_abs_builddir in
5221.) ac_abs_top_srcdir=$ac_top_srcdir;;
5222*)
5223  case $ac_top_srcdir in
5224  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5225  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5226  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5227  esac;;
5228esac
5229
5230
5231  case $INSTALL in
5232  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5233  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5234  esac
5235
5236  if test x"$ac_file" != x-; then
5237    { echo "$as_me:$LINENO: creating $ac_file" >&5
5238echo "$as_me: creating $ac_file" >&6;}
5239    rm -f "$ac_file"
5240  fi
5241  # Let's still pretend it is `configure' which instantiates (i.e., don't
5242  # use $as_me), people would be surprised to read:
5243  #    /* config.h.  Generated by config.status.  */
5244  if test x"$ac_file" = x-; then
5245    configure_input=
5246  else
5247    configure_input="$ac_file.  "
5248  fi
5249  configure_input=$configure_input"Generated from `echo $ac_file_in |
5250                     sed 's,.*/,,'` by configure."
5251
5252  # First look for the input files in the build tree, otherwise in the
5253  # src tree.
5254  ac_file_inputs=`IFS=:
5255    for f in $ac_file_in; do
5256      case $f in
5257      -) echo $tmp/stdin ;;
5258      [\\/$]*)
5259     # Absolute (can't be DOS-style, as IFS=:)
5260     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5261echo "$as_me: error: cannot find input file: $f" >&2;}
5262   { (exit 1); exit 1; }; }
5263     echo "$f";;
5264      *) # Relative
5265     if test -f "$f"; then
5266       # Build tree
5267       echo "$f"
5268     elif test -f "$srcdir/$f"; then
5269       # Source tree
5270       echo "$srcdir/$f"
5271     else
5272       # /dev/null tree
5273       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5274echo "$as_me: error: cannot find input file: $f" >&2;}
5275   { (exit 1); exit 1; }; }
5276     fi;;
5277      esac
5278    done` || { (exit 1); exit 1; }
5279_ACEOF
5280cat >>$CONFIG_STATUS <<_ACEOF
5281  sed "$ac_vpsub
5282$extrasub
5283_ACEOF
5284cat >>$CONFIG_STATUS <<\_ACEOF
5285:t
5286/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5287s,@configure_input@,$configure_input,;t t
5288s,@srcdir@,$ac_srcdir,;t t
5289s,@abs_srcdir@,$ac_abs_srcdir,;t t
5290s,@top_srcdir@,$ac_top_srcdir,;t t
5291s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5292s,@builddir@,$ac_builddir,;t t
5293s,@abs_builddir@,$ac_abs_builddir,;t t
5294s,@top_builddir@,$ac_top_builddir,;t t
5295s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5296s,@INSTALL@,$ac_INSTALL,;t t
5297" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5298  rm -f $tmp/stdin
5299  if test x"$ac_file" != x-; then
5300    mv $tmp/out $ac_file
5301  else
5302    cat $tmp/out
5303    rm -f $tmp/out
5304  fi
5305
5306done
5307_ACEOF
5308
5309cat >>$CONFIG_STATUS <<\_ACEOF
5310
5311{ (exit 0); exit 0; }
5312_ACEOF
5313chmod +x $CONFIG_STATUS
5314ac_clean_files=$ac_clean_files_save
5315
5316
5317# configure is writing to config.log, and then calls config.status.
5318# config.status does its own redirection, appending to config.log.
5319# Unfortunately, on DOS this fails, as config.log is still kept open
5320# by configure, so config.status won't be able to write to it; its
5321# output is simply discarded.  So we exec the FD to /dev/null,
5322# effectively closing config.log, so it can be properly (re)opened and
5323# appended to by config.status.  When coming back to configure, we
5324# need to make the FD available again.
5325if test "$no_create" != yes; then
5326  ac_cs_success=:
5327  ac_config_status_args=
5328  test "$silent" = yes &&
5329    ac_config_status_args="$ac_config_status_args --quiet"
5330  exec 5>/dev/null
5331  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5332  exec 5>>config.log
5333  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5334  # would make configure fail if this is the last instruction.
5335  $ac_cs_success || { (exit 1); exit 1; }
5336fi
5337
Note: See TracBrowser for help on using the browser.