source: GTP/trunk/Lib/Vis/Preprocessing/src/sparsehash/configure @ 2162

Revision 2162, 189.6 KB checked in by mattausch, 17 years ago (diff)

improved hash performance with google hashmap

Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57 for sparsehash 0.3.
4#
5# Report bugs to <opensource@google.com>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
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="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="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='sparsehash'
270PACKAGE_TARNAME='sparsehash'
271PACKAGE_VERSION='0.3'
272PACKAGE_STRING='sparsehash 0.3'
273PACKAGE_BUGREPORT='opensource@google.com'
274
275ac_unique_file="README"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE EGREP CXXCPP 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
774ac_env_CXX_set=${CXX+set}
775ac_env_CXX_value=$CXX
776ac_cv_env_CXX_set=${CXX+set}
777ac_cv_env_CXX_value=$CXX
778ac_env_CXXFLAGS_set=${CXXFLAGS+set}
779ac_env_CXXFLAGS_value=$CXXFLAGS
780ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_cv_env_CXXFLAGS_value=$CXXFLAGS
782ac_env_CXXCPP_set=${CXXCPP+set}
783ac_env_CXXCPP_value=$CXXCPP
784ac_cv_env_CXXCPP_set=${CXXCPP+set}
785ac_cv_env_CXXCPP_value=$CXXCPP
786
787#
788# Report the --help message.
789#
790if test "$ac_init_help" = "long"; then
791  # Omit some internal or obsolete options to make the list less imposing.
792  # This message is too long to be a string in the A/UX 3.1 sh.
793  cat <<_ACEOF
794\`configure' configures sparsehash 0.3 to adapt to many kinds of systems.
795
796Usage: $0 [OPTION]... [VAR=VALUE]...
797
798To assign environment variables (e.g., CC, CFLAGS...), specify them as
799VAR=VALUE.  See below for descriptions of some of the useful variables.
800
801Defaults for the options are specified in brackets.
802
803Configuration:
804  -h, --help              display this help and exit
805      --help=short        display options specific to this package
806      --help=recursive    display the short help of all the included packages
807  -V, --version           display version information and exit
808  -q, --quiet, --silent   do not print \`checking...' messages
809      --cache-file=FILE   cache test results in FILE [disabled]
810  -C, --config-cache      alias for \`--cache-file=config.cache'
811  -n, --no-create         do not create output files
812      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
813
814_ACEOF
815
816  cat <<_ACEOF
817Installation directories:
818  --prefix=PREFIX         install architecture-independent files in PREFIX
819                          [$ac_default_prefix]
820  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
821                          [PREFIX]
822
823By default, \`make install' will install all the files in
824\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
825an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826for instance \`--prefix=\$HOME'.
827
828For better control, use the options below.
829
830Fine tuning of the installation directories:
831  --bindir=DIR           user executables [EPREFIX/bin]
832  --sbindir=DIR          system admin executables [EPREFIX/sbin]
833  --libexecdir=DIR       program executables [EPREFIX/libexec]
834  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
835  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
836  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
837  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
838  --libdir=DIR           object code libraries [EPREFIX/lib]
839  --includedir=DIR       C header files [PREFIX/include]
840  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
841  --infodir=DIR          info documentation [PREFIX/info]
842  --mandir=DIR           man documentation [PREFIX/man]
843_ACEOF
844
845  cat <<\_ACEOF
846
847Program names:
848  --program-prefix=PREFIX            prepend PREFIX to installed program names
849  --program-suffix=SUFFIX            append SUFFIX to installed program names
850  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855  case $ac_init_help in
856     short | recursive ) echo "Configuration of sparsehash 0.3:";;
857   esac
858  cat <<\_ACEOF
859
860Optional Features:
861  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
862  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
863  --disable-dependency-tracking Speeds up one-time builds
864  --enable-dependency-tracking  Do not reject slow dependency extractors
865--enable-namespace=FOO to define these Google
866                             classes in the FOO namespace. --disable-namespace
867                             to define them in the global namespace. Default
868                             is to define them in std.
869
870Some influential environment variables:
871  CC          C compiler command
872  CFLAGS      C compiler flags
873  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874              nonstandard directory <lib dir>
875  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876              headers in a nonstandard directory <include dir>
877  CPP         C preprocessor
878  CXX         C++ compiler command
879  CXXFLAGS    C++ compiler flags
880  CXXCPP      C++ preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885Report bugs to <opensource@google.com>.
886_ACEOF
887fi
888
889if test "$ac_init_help" = "recursive"; then
890  # If there are subdirs, report their specific --help.
891  ac_popdir=`pwd`
892  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893    test -d $ac_dir || continue
894    ac_builddir=.
895
896if test "$ac_dir" != .; then
897  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898  # A "../" for each directory in $ac_dir_suffix.
899  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901  ac_dir_suffix= ac_top_builddir=
902fi
903
904case $srcdir in
905  .)  # No --srcdir option.  We are building in place.
906    ac_srcdir=.
907    if test -z "$ac_top_builddir"; then
908       ac_top_srcdir=.
909    else
910       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911    fi ;;
912  [\\/]* | ?:[\\/]* )  # Absolute path.
913    ac_srcdir=$srcdir$ac_dir_suffix;
914    ac_top_srcdir=$srcdir ;;
915  *) # Relative path.
916    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917    ac_top_srcdir=$ac_top_builddir$srcdir ;;
918esac
919# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
920# absolute.
921ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
922ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
923ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
924ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925
926    cd $ac_dir
927    # Check for guested configure; otherwise get Cygnus style configure.
928    if test -f $ac_srcdir/configure.gnu; then
929      echo
930      $SHELL $ac_srcdir/configure.gnu  --help=recursive
931    elif test -f $ac_srcdir/configure; then
932      echo
933      $SHELL $ac_srcdir/configure  --help=recursive
934    elif test -f $ac_srcdir/configure.ac ||
935           test -f $ac_srcdir/configure.in; then
936      echo
937      $ac_configure --help
938    else
939      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940    fi
941    cd $ac_popdir
942  done
943fi
944
945test -n "$ac_init_help" && exit 0
946if $ac_init_version; then
947  cat <<\_ACEOF
948sparsehash configure 0.3
949generated by GNU Autoconf 2.57
950
951Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952Free Software Foundation, Inc.
953This configure script is free software; the Free Software Foundation
954gives unlimited permission to copy, distribute and modify it.
955_ACEOF
956  exit 0
957fi
958exec 5>config.log
959cat >&5 <<_ACEOF
960This file contains any messages produced by compilers while
961running configure, to aid debugging if configure makes a mistake.
962
963It was created by sparsehash $as_me 0.3, which was
964generated by GNU Autoconf 2.57.  Invocation command line was
965
966  $ $0 $@
967
968_ACEOF
969{
970cat <<_ASUNAME
971## --------- ##
972## Platform. ##
973## --------- ##
974
975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976uname -m = `(uname -m) 2>/dev/null || echo unknown`
977uname -r = `(uname -r) 2>/dev/null || echo unknown`
978uname -s = `(uname -s) 2>/dev/null || echo unknown`
979uname -v = `(uname -v) 2>/dev/null || echo unknown`
980
981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
983
984/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
985/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
988/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
989/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
990/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
991
992_ASUNAME
993
994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
995for as_dir in $PATH
996do
997  IFS=$as_save_IFS
998  test -z "$as_dir" && as_dir=.
999  echo "PATH: $as_dir"
1000done
1001
1002} >&5
1003
1004cat >&5 <<_ACEOF
1005
1006
1007## ----------- ##
1008## Core tests. ##
1009## ----------- ##
1010
1011_ACEOF
1012
1013
1014# Keep a trace of the command line.
1015# Strip out --no-create and --no-recursion so they do not pile up.
1016# Strip out --silent because we don't want to record it for future runs.
1017# Also quote any args containing shell meta-characters.
1018# Make two passes to allow for proper duplicate-argument suppression.
1019ac_configure_args=
1020ac_configure_args0=
1021ac_configure_args1=
1022ac_sep=
1023ac_must_keep_next=false
1024for ac_pass in 1 2
1025do
1026  for ac_arg
1027  do
1028    case $ac_arg in
1029    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1030    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031    | -silent | --silent | --silen | --sile | --sil)
1032      continue ;;
1033    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035    esac
1036    case $ac_pass in
1037    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1038    2)
1039      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1040      if test $ac_must_keep_next = true; then
1041        ac_must_keep_next=false # Got value, back to normal.
1042      else
1043        case $ac_arg in
1044          *=* | --config-cache | -C | -disable-* | --disable-* \
1045          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1046          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1047          | -with-* | --with-* | -without-* | --without-* | --x)
1048            case "$ac_configure_args0 " in
1049              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1050            esac
1051            ;;
1052          -* ) ac_must_keep_next=true ;;
1053        esac
1054      fi
1055      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1056      # Get rid of the leading space.
1057      ac_sep=" "
1058      ;;
1059    esac
1060  done
1061done
1062$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1063$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1064
1065# When interrupted or exit'd, cleanup temporary files, and complete
1066# config.log.  We remove comments because anyway the quotes in there
1067# would cause problems or look ugly.
1068# WARNING: Be sure not to use single quotes in there, as some shells,
1069# such as our DU 5.0 friend, will then `close' the trap.
1070trap 'exit_status=$?
1071  # Save into config.log some information that might help in debugging.
1072  {
1073    echo
1074
1075    cat <<\_ASBOX
1076## ---------------- ##
1077## Cache variables. ##
1078## ---------------- ##
1079_ASBOX
1080    echo
1081    # The following way of writing the cache mishandles newlines in values,
1082{
1083  (set) 2>&1 |
1084    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085    *ac_space=\ *)
1086      sed -n \
1087        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1088          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089      ;;
1090    *)
1091      sed -n \
1092        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1093      ;;
1094    esac;
1095}
1096    echo
1097
1098    cat <<\_ASBOX
1099## ----------------- ##
1100## Output variables. ##
1101## ----------------- ##
1102_ASBOX
1103    echo
1104    for ac_var in $ac_subst_vars
1105    do
1106      eval ac_val=$`echo $ac_var`
1107      echo "$ac_var='"'"'$ac_val'"'"'"
1108    done | sort
1109    echo
1110
1111    if test -n "$ac_subst_files"; then
1112      cat <<\_ASBOX
1113## ------------- ##
1114## Output files. ##
1115## ------------- ##
1116_ASBOX
1117      echo
1118      for ac_var in $ac_subst_files
1119      do
1120        eval ac_val=$`echo $ac_var`
1121        echo "$ac_var='"'"'$ac_val'"'"'"
1122      done | sort
1123      echo
1124    fi
1125
1126    if test -s confdefs.h; then
1127      cat <<\_ASBOX
1128## ----------- ##
1129## confdefs.h. ##
1130## ----------- ##
1131_ASBOX
1132      echo
1133      sed "/^$/d" confdefs.h | sort
1134      echo
1135    fi
1136    test "$ac_signal" != 0 &&
1137      echo "$as_me: caught signal $ac_signal"
1138    echo "$as_me: exit $exit_status"
1139  } >&5
1140  rm -f core core.* *.core &&
1141  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1142    exit $exit_status
1143     ' 0
1144for ac_signal in 1 2 13 15; do
1145  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1146done
1147ac_signal=0
1148
1149# confdefs.h avoids OS command line length limits that DEFS can exceed.
1150rm -rf conftest* confdefs.h
1151# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1152echo >confdefs.h
1153
1154# Predefined preprocessor variables.
1155
1156cat >>confdefs.h <<_ACEOF
1157#define PACKAGE_NAME "$PACKAGE_NAME"
1158_ACEOF
1159
1160
1161cat >>confdefs.h <<_ACEOF
1162#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_VERSION "$PACKAGE_VERSION"
1168_ACEOF
1169
1170
1171cat >>confdefs.h <<_ACEOF
1172#define PACKAGE_STRING "$PACKAGE_STRING"
1173_ACEOF
1174
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1178_ACEOF
1179
1180
1181# Let the site file select an alternate cache file if it wants to.
1182# Prefer explicitly selected file to automatically selected ones.
1183if test -z "$CONFIG_SITE"; then
1184  if test "x$prefix" != xNONE; then
1185    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1186  else
1187    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1188  fi
1189fi
1190for ac_site_file in $CONFIG_SITE; do
1191  if test -r "$ac_site_file"; then
1192    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1193echo "$as_me: loading site script $ac_site_file" >&6;}
1194    sed 's/^/| /' "$ac_site_file" >&5
1195    . "$ac_site_file"
1196  fi
1197done
1198
1199if test -r "$cache_file"; then
1200  # Some versions of bash will fail to source /dev/null (special
1201  # files actually), so we avoid doing that.
1202  if test -f "$cache_file"; then
1203    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1204echo "$as_me: loading cache $cache_file" >&6;}
1205    case $cache_file in
1206      [\\/]* | ?:[\\/]* ) . $cache_file;;
1207      *)                      . ./$cache_file;;
1208    esac
1209  fi
1210else
1211  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1212echo "$as_me: creating cache $cache_file" >&6;}
1213  >$cache_file
1214fi
1215
1216# Check that the precious variables saved in the cache have kept the same
1217# value.
1218ac_cache_corrupted=false
1219for ac_var in `(set) 2>&1 |
1220               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1221  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1222  eval ac_new_set=\$ac_env_${ac_var}_set
1223  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1224  eval ac_new_val="\$ac_env_${ac_var}_value"
1225  case $ac_old_set,$ac_new_set in
1226    set,)
1227      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1228echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1229      ac_cache_corrupted=: ;;
1230    ,set)
1231      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1232echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1233      ac_cache_corrupted=: ;;
1234    ,);;
1235    *)
1236      if test "x$ac_old_val" != "x$ac_new_val"; then
1237        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1238echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1239        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1240echo "$as_me:   former value:  $ac_old_val" >&2;}
1241        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1242echo "$as_me:   current value: $ac_new_val" >&2;}
1243        ac_cache_corrupted=:
1244      fi;;
1245  esac
1246  # Pass precious variables to config.status.
1247  if test "$ac_new_set" = set; then
1248    case $ac_new_val in
1249    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1251    *) ac_arg=$ac_var=$ac_new_val ;;
1252    esac
1253    case " $ac_configure_args " in
1254      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1255      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1256    esac
1257  fi
1258done
1259if $ac_cache_corrupted; then
1260  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1261echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1262  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1263echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1264   { (exit 1); exit 1; }; }
1265fi
1266
1267ac_ext=c
1268ac_cpp='$CPP $CPPFLAGS'
1269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1271ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299# The argument here is just something that should be in the current directory
1300# (for sanity checking)
1301
1302am__api_version="1.6"
1303ac_aux_dir=
1304for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1305  if test -f $ac_dir/install-sh; then
1306    ac_aux_dir=$ac_dir
1307    ac_install_sh="$ac_aux_dir/install-sh -c"
1308    break
1309  elif test -f $ac_dir/install.sh; then
1310    ac_aux_dir=$ac_dir
1311    ac_install_sh="$ac_aux_dir/install.sh -c"
1312    break
1313  elif test -f $ac_dir/shtool; then
1314    ac_aux_dir=$ac_dir
1315    ac_install_sh="$ac_aux_dir/shtool install -c"
1316    break
1317  fi
1318done
1319if test -z "$ac_aux_dir"; then
1320  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322   { (exit 1); exit 1; }; }
1323fi
1324ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327
1328# Find a good install program.  We prefer a C program (faster),
1329# so one script is as good as another.  But avoid the broken or
1330# incompatible versions:
1331# SysV /etc/install, /usr/sbin/install
1332# SunOS /usr/etc/install
1333# IRIX /sbin/install
1334# AIX /bin/install
1335# AmigaOS /C/install, which installs bootblocks on floppy discs
1336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1339# ./install, which can be erroneously created by make from ./install.sh.
1340echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1341echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1342if test -z "$INSTALL"; then
1343if test "${ac_cv_path_install+set}" = set; then
1344  echo $ECHO_N "(cached) $ECHO_C" >&6
1345else
1346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347for as_dir in $PATH
1348do
1349  IFS=$as_save_IFS
1350  test -z "$as_dir" && as_dir=.
1351  # Account for people who put trailing slashes in PATH elements.
1352case $as_dir/ in
1353  ./ | .// | /cC/* | \
1354  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1355  /usr/ucb/* ) ;;
1356  *)
1357    # OSF1 and SCO ODT 3.0 have their own names for install.
1358    # Don't use installbsd from OSF since it installs stuff as root
1359    # by default.
1360    for ac_prog in ginstall scoinst install; do
1361      for ac_exec_ext in '' $ac_executable_extensions; do
1362        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1363          if test $ac_prog = install &&
1364            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1365            # AIX install.  It has an incompatible calling convention.
1366            :
1367          elif test $ac_prog = install &&
1368            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369            # program-specific install script used by HP pwplus--don't use.
1370            :
1371          else
1372            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1373            break 3
1374          fi
1375        fi
1376      done
1377    done
1378    ;;
1379esac
1380done
1381
1382
1383fi
1384  if test "${ac_cv_path_install+set}" = set; then
1385    INSTALL=$ac_cv_path_install
1386  else
1387    # As a last resort, use the slow shell script.  We don't cache a
1388    # path for INSTALL within a source directory, because that will
1389    # break other packages using the cache if that directory is
1390    # removed, or if the path is relative.
1391    INSTALL=$ac_install_sh
1392  fi
1393fi
1394echo "$as_me:$LINENO: result: $INSTALL" >&5
1395echo "${ECHO_T}$INSTALL" >&6
1396
1397# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398# It thinks the first close brace ends the variable substitution.
1399test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1400
1401test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1402
1403test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1404
1405echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1406echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1407# Just in case
1408sleep 1
1409echo timestamp > conftest.file
1410# Do `set' in a subshell so we don't clobber the current shell's
1411# arguments.  Must try -L first in case configure is actually a
1412# symlink; some systems play weird games with the mod time of symlinks
1413# (eg FreeBSD returns the mod time of the symlink's containing
1414# directory).
1415if (
1416   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1417   if test "$*" = "X"; then
1418      # -L didn't work.
1419      set X `ls -t $srcdir/configure conftest.file`
1420   fi
1421   rm -f conftest.file
1422   if test "$*" != "X $srcdir/configure conftest.file" \
1423      && test "$*" != "X conftest.file $srcdir/configure"; then
1424
1425      # If neither matched, then we have a broken ls.  This can happen
1426      # if, for instance, CONFIG_SHELL is bash and it inherits a
1427      # broken ls alias from the environment.  This has actually
1428      # happened.  Such a system could not be considered "sane".
1429      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1430alias in your environment" >&5
1431echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1432alias in your environment" >&2;}
1433   { (exit 1); exit 1; }; }
1434   fi
1435
1436   test "$2" = conftest.file
1437   )
1438then
1439   # Ok.
1440   :
1441else
1442   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1443Check your system clock" >&5
1444echo "$as_me: error: newly created file is older than distributed files!
1445Check your system clock" >&2;}
1446   { (exit 1); exit 1; }; }
1447fi
1448echo "$as_me:$LINENO: result: yes" >&5
1449echo "${ECHO_T}yes" >&6
1450test "$program_prefix" != NONE &&
1451  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1452# Use a double $ so make ignores it.
1453test "$program_suffix" != NONE &&
1454  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1455# Double any \ or $.  echo might interpret backslashes.
1456# By default was `s,x,x', remove it if useless.
1457cat <<\_ACEOF >conftest.sed
1458s/[\\$]/&&/g;s/;s,x,x,$//
1459_ACEOF
1460program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1461rm conftest.sed
1462
1463
1464# expand $ac_aux_dir to an absolute path
1465am_aux_dir=`cd $ac_aux_dir && pwd`
1466
1467test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1468# Use eval to expand $SHELL
1469if eval "$MISSING --run true"; then
1470  am_missing_run="$MISSING --run "
1471else
1472  am_missing_run=
1473  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1474echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1475fi
1476
1477for ac_prog in gawk mawk nawk awk
1478do
1479  # Extract the first word of "$ac_prog", so it can be a program name with args.
1480set dummy $ac_prog; ac_word=$2
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_AWK+set}" = set; then
1484  echo $ECHO_N "(cached) $ECHO_C" >&6
1485else
1486  if test -n "$AWK"; then
1487  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1488else
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492  IFS=$as_save_IFS
1493  test -z "$as_dir" && as_dir=.
1494  for ac_exec_ext in '' $ac_executable_extensions; do
1495  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496    ac_cv_prog_AWK="$ac_prog"
1497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498    break 2
1499  fi
1500done
1501done
1502
1503fi
1504fi
1505AWK=$ac_cv_prog_AWK
1506if test -n "$AWK"; then
1507  echo "$as_me:$LINENO: result: $AWK" >&5
1508echo "${ECHO_T}$AWK" >&6
1509else
1510  echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
1512fi
1513
1514  test -n "$AWK" && break
1515done
1516
1517echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1518echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1519set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1520if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1521  echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523  cat >conftest.make <<\_ACEOF
1524all:
1525        @echo 'ac_maketemp="$(MAKE)"'
1526_ACEOF
1527# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1528eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1529if test -n "$ac_maketemp"; then
1530  eval ac_cv_prog_make_${ac_make}_set=yes
1531else
1532  eval ac_cv_prog_make_${ac_make}_set=no
1533fi
1534rm -f conftest.make
1535fi
1536if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1537  echo "$as_me:$LINENO: result: yes" >&5
1538echo "${ECHO_T}yes" >&6
1539  SET_MAKE=
1540else
1541  echo "$as_me:$LINENO: result: no" >&5
1542echo "${ECHO_T}no" >&6
1543  SET_MAKE="MAKE=${MAKE-make}"
1544fi
1545
1546 # test to see if srcdir already configured
1547if test "`cd $srcdir && pwd`" != "`pwd`" &&
1548   test -f $srcdir/config.status; then
1549  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1550echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1551   { (exit 1); exit 1; }; }
1552fi
1553
1554# Define the identity of the package.
1555 PACKAGE=sparsehash
1556 VERSION=0.3
1557
1558
1559cat >>confdefs.h <<_ACEOF
1560#define PACKAGE "$PACKAGE"
1561_ACEOF
1562
1563
1564cat >>confdefs.h <<_ACEOF
1565#define VERSION "$VERSION"
1566_ACEOF
1567
1568# Some tools Automake needs.
1569
1570ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1571
1572
1573AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1574
1575
1576AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1577
1578
1579AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1580
1581
1582MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1583
1584
1585AMTAR=${AMTAR-"${am_missing_run}tar"}
1586
1587install_sh=${install_sh-"$am_aux_dir/install-sh"}
1588
1589# Installed binaries are usually stripped using `strip' when the user
1590# run `make install-strip'.  However `strip' might not be the right
1591# tool to use in cross-compilation environments, therefore Automake
1592# will honor the `STRIP' environment variable to overrule this program.
1593if test "$cross_compiling" != no; then
1594  if test -n "$ac_tool_prefix"; then
1595  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1596set dummy ${ac_tool_prefix}strip; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_STRIP+set}" = set; then
1600  echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602  if test -n "$STRIP"; then
1603  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1604else
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608  IFS=$as_save_IFS
1609  test -z "$as_dir" && as_dir=.
1610  for ac_exec_ext in '' $ac_executable_extensions; do
1611  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614    break 2
1615  fi
1616done
1617done
1618
1619fi
1620fi
1621STRIP=$ac_cv_prog_STRIP
1622if test -n "$STRIP"; then
1623  echo "$as_me:$LINENO: result: $STRIP" >&5
1624echo "${ECHO_T}$STRIP" >&6
1625else
1626  echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
1628fi
1629
1630fi
1631if test -z "$ac_cv_prog_STRIP"; then
1632  ac_ct_STRIP=$STRIP
1633  # Extract the first word of "strip", so it can be a program name with args.
1634set dummy strip; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$ac_ct_STRIP"; then
1641  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_ac_ct_STRIP="strip"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1658fi
1659fi
1660ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1661if test -n "$ac_ct_STRIP"; then
1662  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1663echo "${ECHO_T}$ac_ct_STRIP" >&6
1664else
1665  echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
1667fi
1668
1669  STRIP=$ac_ct_STRIP
1670else
1671  STRIP="$ac_cv_prog_STRIP"
1672fi
1673
1674fi
1675INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1676
1677# We need awk for the "check" target.  The system "awk" is bad on
1678# some platforms.
1679
1680
1681
1682# Add the stamp file to the list of files AC keeps track of,
1683# along with our hook.
1684          ac_config_headers="$ac_config_headers src/google/sparsehash/config.h"
1685
1686
1687
1688
1689# Checks for programs.
1690ac_ext=c
1691ac_cpp='$CPP $CPPFLAGS'
1692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1694ac_compiler_gnu=$ac_cv_c_compiler_gnu
1695if test -n "$ac_tool_prefix"; then
1696  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1697set dummy ${ac_tool_prefix}gcc; ac_word=$2
1698echo "$as_me:$LINENO: checking for $ac_word" >&5
1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700if test "${ac_cv_prog_CC+set}" = set; then
1701  echo $ECHO_N "(cached) $ECHO_C" >&6
1702else
1703  if test -n "$CC"; then
1704  ac_cv_prog_CC="$CC" # Let the user override the test.
1705else
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709  IFS=$as_save_IFS
1710  test -z "$as_dir" && as_dir=.
1711  for ac_exec_ext in '' $ac_executable_extensions; do
1712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715    break 2
1716  fi
1717done
1718done
1719
1720fi
1721fi
1722CC=$ac_cv_prog_CC
1723if test -n "$CC"; then
1724  echo "$as_me:$LINENO: result: $CC" >&5
1725echo "${ECHO_T}$CC" >&6
1726else
1727  echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
1729fi
1730
1731fi
1732if test -z "$ac_cv_prog_CC"; then
1733  ac_ct_CC=$CC
1734  # Extract the first word of "gcc", so it can be a program name with args.
1735set dummy gcc; ac_word=$2
1736echo "$as_me:$LINENO: checking for $ac_word" >&5
1737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739  echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741  if test -n "$ac_ct_CC"; then
1742  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743else
1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745for as_dir in $PATH
1746do
1747  IFS=$as_save_IFS
1748  test -z "$as_dir" && as_dir=.
1749  for ac_exec_ext in '' $ac_executable_extensions; do
1750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751    ac_cv_prog_ac_ct_CC="gcc"
1752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753    break 2
1754  fi
1755done
1756done
1757
1758fi
1759fi
1760ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761if test -n "$ac_ct_CC"; then
1762  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763echo "${ECHO_T}$ac_ct_CC" >&6
1764else
1765  echo "$as_me:$LINENO: result: no" >&5
1766echo "${ECHO_T}no" >&6
1767fi
1768
1769  CC=$ac_ct_CC
1770else
1771  CC="$ac_cv_prog_CC"
1772fi
1773
1774if test -z "$CC"; then
1775  if test -n "$ac_tool_prefix"; then
1776  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1777set dummy ${ac_tool_prefix}cc; ac_word=$2
1778echo "$as_me:$LINENO: checking for $ac_word" >&5
1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_CC+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  if test -n "$CC"; then
1784  ac_cv_prog_CC="$CC" # Let the user override the test.
1785else
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789  IFS=$as_save_IFS
1790  test -z "$as_dir" && as_dir=.
1791  for ac_exec_ext in '' $ac_executable_extensions; do
1792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793    ac_cv_prog_CC="${ac_tool_prefix}cc"
1794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795    break 2
1796  fi
1797done
1798done
1799
1800fi
1801fi
1802CC=$ac_cv_prog_CC
1803if test -n "$CC"; then
1804  echo "$as_me:$LINENO: result: $CC" >&5
1805echo "${ECHO_T}$CC" >&6
1806else
1807  echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811fi
1812if test -z "$ac_cv_prog_CC"; then
1813  ac_ct_CC=$CC
1814  # Extract the first word of "cc", so it can be a program name with args.
1815set dummy cc; ac_word=$2
1816echo "$as_me:$LINENO: checking for $ac_word" >&5
1817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1819  echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821  if test -n "$ac_ct_CC"; then
1822  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1823else
1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825for as_dir in $PATH
1826do
1827  IFS=$as_save_IFS
1828  test -z "$as_dir" && as_dir=.
1829  for ac_exec_ext in '' $ac_executable_extensions; do
1830  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831    ac_cv_prog_ac_ct_CC="cc"
1832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833    break 2
1834  fi
1835done
1836done
1837
1838fi
1839fi
1840ac_ct_CC=$ac_cv_prog_ac_ct_CC
1841if test -n "$ac_ct_CC"; then
1842  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1843echo "${ECHO_T}$ac_ct_CC" >&6
1844else
1845  echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
1847fi
1848
1849  CC=$ac_ct_CC
1850else
1851  CC="$ac_cv_prog_CC"
1852fi
1853
1854fi
1855if test -z "$CC"; then
1856  # Extract the first word of "cc", so it can be a program name with args.
1857set dummy cc; ac_word=$2
1858echo "$as_me:$LINENO: checking for $ac_word" >&5
1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860if test "${ac_cv_prog_CC+set}" = set; then
1861  echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863  if test -n "$CC"; then
1864  ac_cv_prog_CC="$CC" # Let the user override the test.
1865else
1866  ac_prog_rejected=no
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870  IFS=$as_save_IFS
1871  test -z "$as_dir" && as_dir=.
1872  for ac_exec_ext in '' $ac_executable_extensions; do
1873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1875       ac_prog_rejected=yes
1876       continue
1877     fi
1878    ac_cv_prog_CC="cc"
1879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880    break 2
1881  fi
1882done
1883done
1884
1885if test $ac_prog_rejected = yes; then
1886  # We found a bogon in the path, so make sure we never use it.
1887  set dummy $ac_cv_prog_CC
1888  shift
1889  if test $# != 0; then
1890    # We chose a different compiler from the bogus one.
1891    # However, it has the same basename, so the bogon will be chosen
1892    # first if we set CC to just the basename; use the full file name.
1893    shift
1894    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1895  fi
1896fi
1897fi
1898fi
1899CC=$ac_cv_prog_CC
1900if test -n "$CC"; then
1901  echo "$as_me:$LINENO: result: $CC" >&5
1902echo "${ECHO_T}$CC" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908fi
1909if test -z "$CC"; then
1910  if test -n "$ac_tool_prefix"; then
1911  for ac_prog in cl
1912  do
1913    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_CC+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$CC"; then
1921  ac_cv_prog_CC="$CC" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939CC=$ac_cv_prog_CC
1940if test -n "$CC"; then
1941  echo "$as_me:$LINENO: result: $CC" >&5
1942echo "${ECHO_T}$CC" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948    test -n "$CC" && break
1949  done
1950fi
1951if test -z "$CC"; then
1952  ac_ct_CC=$CC
1953  for ac_prog in cl
1954do
1955  # Extract the first word of "$ac_prog", so it can be a program name with args.
1956set dummy $ac_prog; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  if test -n "$ac_ct_CC"; then
1963  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964else
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968  IFS=$as_save_IFS
1969  test -z "$as_dir" && as_dir=.
1970  for ac_exec_ext in '' $ac_executable_extensions; do
1971  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972    ac_cv_prog_ac_ct_CC="$ac_prog"
1973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974    break 2
1975  fi
1976done
1977done
1978
1979fi
1980fi
1981ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982if test -n "$ac_ct_CC"; then
1983  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984echo "${ECHO_T}$ac_ct_CC" >&6
1985else
1986  echo "$as_me:$LINENO: result: no" >&5
1987echo "${ECHO_T}no" >&6
1988fi
1989
1990  test -n "$ac_ct_CC" && break
1991done
1992
1993  CC=$ac_ct_CC
1994fi
1995
1996fi
1997
1998
1999test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2000See \`config.log' for more details." >&5
2001echo "$as_me: error: no acceptable C compiler found in \$PATH
2002See \`config.log' for more details." >&2;}
2003   { (exit 1); exit 1; }; }
2004
2005# Provide some information about the compiler.
2006echo "$as_me:$LINENO:" \
2007     "checking for C compiler version" >&5
2008ac_compiler=`set X $ac_compile; echo $2`
2009{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2010  (eval $ac_compiler --version </dev/null >&5) 2>&5
2011  ac_status=$?
2012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013  (exit $ac_status); }
2014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2015  (eval $ac_compiler -v </dev/null >&5) 2>&5
2016  ac_status=$?
2017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018  (exit $ac_status); }
2019{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2020  (eval $ac_compiler -V </dev/null >&5) 2>&5
2021  ac_status=$?
2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023  (exit $ac_status); }
2024
2025cat >conftest.$ac_ext <<_ACEOF
2026#line $LINENO "configure"
2027/* confdefs.h.  */
2028_ACEOF
2029cat confdefs.h >>conftest.$ac_ext
2030cat >>conftest.$ac_ext <<_ACEOF
2031/* end confdefs.h.  */
2032
2033int
2034main ()
2035{
2036
2037  ;
2038  return 0;
2039}
2040_ACEOF
2041ac_clean_files_save=$ac_clean_files
2042ac_clean_files="$ac_clean_files a.out a.exe b.out"
2043# Try to create an executable without -o first, disregard a.out.
2044# It will help us diagnose broken compilers, and finding out an intuition
2045# of exeext.
2046echo "$as_me:$LINENO: checking for C compiler default output" >&5
2047echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2048ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2049if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2050  (eval $ac_link_default) 2>&5
2051  ac_status=$?
2052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053  (exit $ac_status); }; then
2054  # Find the output, starting from the most likely.  This scheme is
2055# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2056# resort.
2057
2058# Be careful to initialize this variable, since it used to be cached.
2059# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2060ac_cv_exeext=
2061# b.out is created by i960 compilers.
2062for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2063do
2064  test -f "$ac_file" || continue
2065  case $ac_file in
2066    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2067        ;;
2068    conftest.$ac_ext )
2069        # This is the source file.
2070        ;;
2071    [ab].out )
2072        # We found the default executable, but exeext='' is most
2073        # certainly right.
2074        break;;
2075    *.* )
2076        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2077        # FIXME: I believe we export ac_cv_exeext for Libtool,
2078        # but it would be cool to find out if it's true.  Does anybody
2079        # maintain Libtool? --akim.
2080        export ac_cv_exeext
2081        break;;
2082    * )
2083        break;;
2084  esac
2085done
2086else
2087  echo "$as_me: failed program was:" >&5
2088sed 's/^/| /' conftest.$ac_ext >&5
2089
2090{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2091See \`config.log' for more details." >&5
2092echo "$as_me: error: C compiler cannot create executables
2093See \`config.log' for more details." >&2;}
2094   { (exit 77); exit 77; }; }
2095fi
2096
2097ac_exeext=$ac_cv_exeext
2098echo "$as_me:$LINENO: result: $ac_file" >&5
2099echo "${ECHO_T}$ac_file" >&6
2100
2101# Check the compiler produces executables we can run.  If not, either
2102# the compiler is broken, or we cross compile.
2103echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2104echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2105# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2106# If not cross compiling, check that we can run a simple program.
2107if test "$cross_compiling" != yes; then
2108  if { ac_try='./$ac_file'
2109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110  (eval $ac_try) 2>&5
2111  ac_status=$?
2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113  (exit $ac_status); }; }; then
2114    cross_compiling=no
2115  else
2116    if test "$cross_compiling" = maybe; then
2117        cross_compiling=yes
2118    else
2119        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2120If you meant to cross compile, use \`--host'.
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: cannot run C compiled programs.
2123If you meant to cross compile, use \`--host'.
2124See \`config.log' for more details." >&2;}
2125   { (exit 1); exit 1; }; }
2126    fi
2127  fi
2128fi
2129echo "$as_me:$LINENO: result: yes" >&5
2130echo "${ECHO_T}yes" >&6
2131
2132rm -f a.out a.exe conftest$ac_cv_exeext b.out
2133ac_clean_files=$ac_clean_files_save
2134# Check the compiler produces executables we can run.  If not, either
2135# the compiler is broken, or we cross compile.
2136echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2137echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2138echo "$as_me:$LINENO: result: $cross_compiling" >&5
2139echo "${ECHO_T}$cross_compiling" >&6
2140
2141echo "$as_me:$LINENO: checking for suffix of executables" >&5
2142echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2144  (eval $ac_link) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }; then
2148  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2149# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2150# work properly (i.e., refer to `conftest.exe'), while it won't with
2151# `rm'.
2152for ac_file in conftest.exe conftest conftest.*; do
2153  test -f "$ac_file" || continue
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2156    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157          export ac_cv_exeext
2158          break;;
2159    * ) break;;
2160  esac
2161done
2162else
2163  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2164See \`config.log' for more details." >&5
2165echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2166See \`config.log' for more details." >&2;}
2167   { (exit 1); exit 1; }; }
2168fi
2169
2170rm -f conftest$ac_cv_exeext
2171echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2172echo "${ECHO_T}$ac_cv_exeext" >&6
2173
2174rm -f conftest.$ac_ext
2175EXEEXT=$ac_cv_exeext
2176ac_exeext=$EXEEXT
2177echo "$as_me:$LINENO: checking for suffix of object files" >&5
2178echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2179if test "${ac_cv_objext+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183#line $LINENO "configure"
2184/* confdefs.h.  */
2185_ACEOF
2186cat confdefs.h >>conftest.$ac_ext
2187cat >>conftest.$ac_ext <<_ACEOF
2188/* end confdefs.h.  */
2189
2190int
2191main ()
2192{
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198rm -f conftest.o conftest.obj
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200  (eval $ac_compile) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }; then
2204  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205  case $ac_file in
2206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2207    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208       break;;
2209  esac
2210done
2211else
2212  echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216See \`config.log' for more details." >&5
2217echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218See \`config.log' for more details." >&2;}
2219   { (exit 1); exit 1; }; }
2220fi
2221
2222rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225echo "${ECHO_T}$ac_cv_objext" >&6
2226OBJEXT=$ac_cv_objext
2227ac_objext=$OBJEXT
2228echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2229echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2230if test "${ac_cv_c_compiler_gnu+set}" = set; then
2231  echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233  cat >conftest.$ac_ext <<_ACEOF
2234#line $LINENO "configure"
2235/* confdefs.h.  */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h.  */
2240
2241int
2242main ()
2243{
2244#ifndef __GNUC__
2245       choke me
2246#endif
2247
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252rm -f conftest.$ac_objext
2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254  (eval $ac_compile) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); } &&
2258         { ac_try='test -s conftest.$ac_objext'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; }; then
2264  ac_compiler_gnu=yes
2265else
2266  echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269ac_compiler_gnu=no
2270fi
2271rm -f conftest.$ac_objext conftest.$ac_ext
2272ac_cv_c_compiler_gnu=$ac_compiler_gnu
2273
2274fi
2275echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2276echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2277GCC=`test $ac_compiler_gnu = yes && echo yes`
2278ac_test_CFLAGS=${CFLAGS+set}
2279ac_save_CFLAGS=$CFLAGS
2280CFLAGS="-g"
2281echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2282echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2283if test "${ac_cv_prog_cc_g+set}" = set; then
2284  echo $ECHO_N "(cached) $ECHO_C" >&6
2285else
2286  cat >conftest.$ac_ext <<_ACEOF
2287#line $LINENO "configure"
2288/* confdefs.h.  */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
2292/* end confdefs.h.  */
2293
2294int
2295main ()
2296{
2297
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304  (eval $ac_compile) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); } &&
2308         { ac_try='test -s conftest.$ac_objext'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  ac_cv_prog_cc_g=yes
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319ac_cv_prog_cc_g=no
2320fi
2321rm -f conftest.$ac_objext conftest.$ac_ext
2322fi
2323echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2324echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2325if test "$ac_test_CFLAGS" = set; then
2326  CFLAGS=$ac_save_CFLAGS
2327elif test $ac_cv_prog_cc_g = yes; then
2328  if test "$GCC" = yes; then
2329    CFLAGS="-g -O2"
2330  else
2331    CFLAGS="-g"
2332  fi
2333else
2334  if test "$GCC" = yes; then
2335    CFLAGS="-O2"
2336  else
2337    CFLAGS=
2338  fi
2339fi
2340echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2341echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2342if test "${ac_cv_prog_cc_stdc+set}" = set; then
2343  echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345  ac_cv_prog_cc_stdc=no
2346ac_save_CC=$CC
2347cat >conftest.$ac_ext <<_ACEOF
2348#line $LINENO "configure"
2349/* confdefs.h.  */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h.  */
2354#include <stdarg.h>
2355#include <stdio.h>
2356#include <sys/types.h>
2357#include <sys/stat.h>
2358/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2359struct buf { int x; };
2360FILE * (*rcsopen) (struct buf *, struct stat *, int);
2361static char *e (p, i)
2362     char **p;
2363     int i;
2364{
2365  return p[i];
2366}
2367static char *f (char * (*g) (char **, int), char **p, ...)
2368{
2369  char *s;
2370  va_list v;
2371  va_start (v,p);
2372  s = g (p, va_arg (v,int));
2373  va_end (v);
2374  return s;
2375}
2376int test (int i, double x);
2377struct s1 {int (*f) (int a);};
2378struct s2 {int (*f) (double a);};
2379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2380int argc;
2381char **argv;
2382int
2383main ()
2384{
2385return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390# Don't try gcc -ansi; that turns off useful extensions and
2391# breaks some systems' header files.
2392# AIX                   -qlanglvl=ansi
2393# Ultrix and OSF/1      -std1
2394# HP-UX 10.20 and later -Ae
2395# HP-UX older versions  -Aa -D_HPUX_SOURCE
2396# SVR4                  -Xc -D__EXTENSIONS__
2397for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2398do
2399  CC="$ac_save_CC $ac_arg"
2400  rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402  (eval $ac_compile) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  ac_cv_prog_cc_stdc=$ac_arg
2413break
2414else
2415  echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418fi
2419rm -f conftest.$ac_objext
2420done
2421rm -f conftest.$ac_ext conftest.$ac_objext
2422CC=$ac_save_CC
2423
2424fi
2425
2426case "x$ac_cv_prog_cc_stdc" in
2427  x|xno)
2428    echo "$as_me:$LINENO: result: none needed" >&5
2429echo "${ECHO_T}none needed" >&6 ;;
2430  *)
2431    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2432echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2433    CC="$CC $ac_cv_prog_cc_stdc" ;;
2434esac
2435
2436# Some people use a C++ compiler to compile C.  Since we use `exit',
2437# in C++ we need to declare it.  In case someone uses the same compiler
2438# for both compiling C and C++ we need to have the C++ compiler decide
2439# the declaration of exit, since it's the most demanding environment.
2440cat >conftest.$ac_ext <<_ACEOF
2441#ifndef __cplusplus
2442  choke me
2443#endif
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447  (eval $ac_compile) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); } &&
2451         { ac_try='test -s conftest.$ac_objext'
2452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453  (eval $ac_try) 2>&5
2454  ac_status=$?
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); }; }; then
2457  for ac_declaration in \
2458   ''\
2459   '#include <stdlib.h>' \
2460   'extern "C" void std::exit (int) throw (); using std::exit;' \
2461   'extern "C" void std::exit (int); using std::exit;' \
2462   'extern "C" void exit (int) throw ();' \
2463   'extern "C" void exit (int);' \
2464   'void exit (int);'
2465do
2466  cat >conftest.$ac_ext <<_ACEOF
2467#line $LINENO "configure"
2468/* confdefs.h.  */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h.  */
2473#include <stdlib.h>
2474$ac_declaration
2475int
2476main ()
2477{
2478exit (42);
2479  ;
2480  return 0;
2481}
2482_ACEOF
2483rm -f conftest.$ac_objext
2484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485  (eval $ac_compile) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); } &&
2489         { ac_try='test -s conftest.$ac_objext'
2490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491  (eval $ac_try) 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; }; then
2495  :
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500continue
2501fi
2502rm -f conftest.$ac_objext conftest.$ac_ext
2503  cat >conftest.$ac_ext <<_ACEOF
2504#line $LINENO "configure"
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510$ac_declaration
2511int
2512main ()
2513{
2514exit (42);
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); } &&
2525         { ac_try='test -s conftest.$ac_objext'
2526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527  (eval $ac_try) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }; }; then
2531  break
2532else
2533  echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536fi
2537rm -f conftest.$ac_objext conftest.$ac_ext
2538done
2539rm -f conftest*
2540if test -n "$ac_declaration"; then
2541  echo '#ifdef __cplusplus' >>confdefs.h
2542  echo $ac_declaration      >>confdefs.h
2543  echo '#endif'             >>confdefs.h
2544fi
2545
2546else
2547  echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550fi
2551rm -f conftest.$ac_objext conftest.$ac_ext
2552ac_ext=c
2553ac_cpp='$CPP $CPPFLAGS'
2554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557rm -f .deps 2>/dev/null
2558mkdir .deps 2>/dev/null
2559if test -d .deps; then
2560  DEPDIR=.deps
2561else
2562  # MS-DOS does not allow filenames that begin with a dot.
2563  DEPDIR=_deps
2564fi
2565rmdir .deps 2>/dev/null
2566
2567
2568          ac_config_commands="$ac_config_commands depfiles"
2569
2570
2571am_make=${MAKE-make}
2572cat > confinc << 'END'
2573doit:
2574        @echo done
2575END
2576# If we don't find an include directive, just comment out the code.
2577echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2578echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2579am__include="#"
2580am__quote=
2581_am_result=none
2582# First try GNU make style include.
2583echo "include confinc" > confmf
2584# We grep out `Entering directory' and `Leaving directory'
2585# messages which can occur if `w' ends up in MAKEFLAGS.
2586# In particular we don't look at `^make:' because GNU make might
2587# be invoked under some other name (usually "gmake"), in which
2588# case it prints its new name instead of `make'.
2589if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2590   am__include=include
2591   am__quote=
2592   _am_result=GNU
2593fi
2594# Now try BSD make style include.
2595if test "$am__include" = "#"; then
2596   echo '.include "confinc"' > confmf
2597   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2598      am__include=.include
2599      am__quote="\""
2600      _am_result=BSD
2601   fi
2602fi
2603
2604
2605echo "$as_me:$LINENO: result: $_am_result" >&5
2606echo "${ECHO_T}$_am_result" >&6
2607rm -f confinc confmf
2608
2609# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2610if test "${enable_dependency_tracking+set}" = set; then
2611  enableval="$enable_dependency_tracking"
2612
2613fi;
2614if test "x$enable_dependency_tracking" != xno; then
2615  am_depcomp="$ac_aux_dir/depcomp"
2616  AMDEPBACKSLASH='\'
2617fi
2618
2619
2620if test "x$enable_dependency_tracking" != xno; then
2621  AMDEP_TRUE=
2622  AMDEP_FALSE='#'
2623else
2624  AMDEP_TRUE='#'
2625  AMDEP_FALSE=
2626fi
2627
2628
2629
2630
2631depcc="$CC"   am_compiler_list=
2632
2633echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2634echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2635if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2636  echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2639  # We make a subdir and do the tests there.  Otherwise we can end up
2640  # making bogus files that we don't know about and never remove.  For
2641  # instance it was reported that on HP-UX the gcc test will end up
2642  # making a dummy file named `D' -- because `-MD' means `put the output
2643  # in D'.
2644  mkdir conftest.dir
2645  # Copy depcomp to subdir because otherwise we won't find it if we're
2646  # using a relative directory.
2647  cp "$am_depcomp" conftest.dir
2648  cd conftest.dir
2649
2650  am_cv_CC_dependencies_compiler_type=none
2651  if test "$am_compiler_list" = ""; then
2652     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2653  fi
2654  for depmode in $am_compiler_list; do
2655    # We need to recreate these files for each test, as the compiler may
2656    # overwrite some of them when testing with obscure command lines.
2657    # This happens at least with the AIX C compiler.
2658    echo '#include "conftest.h"' > conftest.c
2659    echo 'int i;' > conftest.h
2660    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2661
2662    case $depmode in
2663    nosideeffect)
2664      # after this tag, mechanisms are not by side-effect, so they'll
2665      # only be used when explicitly requested
2666      if test "x$enable_dependency_tracking" = xyes; then
2667        continue
2668      else
2669        break
2670      fi
2671      ;;
2672    none) break ;;
2673    esac
2674    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2675    # mode.  It turns out that the SunPro C++ compiler does not properly
2676    # handle `-M -o', and we need to detect this.
2677    if depmode=$depmode \
2678       source=conftest.c object=conftest.o \
2679       depfile=conftest.Po tmpdepfile=conftest.TPo \
2680       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2681       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2682       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2683      am_cv_CC_dependencies_compiler_type=$depmode
2684      break
2685    fi
2686  done
2687
2688  cd ..
2689  rm -rf conftest.dir
2690else
2691  am_cv_CC_dependencies_compiler_type=none
2692fi
2693
2694fi
2695echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2696echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2698
2699
2700ac_ext=c
2701ac_cpp='$CPP $CPPFLAGS'
2702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2706echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2707# On Suns, sometimes $CPP names a directory.
2708if test -n "$CPP" && test -d "$CPP"; then
2709  CPP=
2710fi
2711if test -z "$CPP"; then
2712  if test "${ac_cv_prog_CPP+set}" = set; then
2713  echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715      # Double quotes because CPP needs to be expanded
2716    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2717    do
2718      ac_preproc_ok=false
2719for ac_c_preproc_warn_flag in '' yes
2720do
2721  # Use a header file that comes with gcc, so configuring glibc
2722  # with a fresh cross-compiler works.
2723  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2724  # <limits.h> exists even on freestanding compilers.
2725  # On the NeXT, cc -E runs the code through the compiler's parser,
2726  # not just through cpp. "Syntax error" is here to catch this case.
2727  cat >conftest.$ac_ext <<_ACEOF
2728#line $LINENO "configure"
2729/* confdefs.h.  */
2730_ACEOF
2731cat confdefs.h >>conftest.$ac_ext
2732cat >>conftest.$ac_ext <<_ACEOF
2733/* end confdefs.h.  */
2734#ifdef __STDC__
2735# include <limits.h>
2736#else
2737# include <assert.h>
2738#endif
2739                     Syntax error
2740_ACEOF
2741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2742  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2743  ac_status=$?
2744  grep -v '^ *+' conftest.er1 >conftest.err
2745  rm -f conftest.er1
2746  cat conftest.err >&5
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); } >/dev/null; then
2749  if test -s conftest.err; then
2750    ac_cpp_err=$ac_c_preproc_warn_flag
2751  else
2752    ac_cpp_err=
2753  fi
2754else
2755  ac_cpp_err=yes
2756fi
2757if test -z "$ac_cpp_err"; then
2758  :
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763  # Broken: fails on valid input.
2764continue
2765fi
2766rm -f conftest.err conftest.$ac_ext
2767
2768  # OK, works on sane cases.  Now check whether non-existent headers
2769  # can be detected and how.
2770  cat >conftest.$ac_ext <<_ACEOF
2771#line $LINENO "configure"
2772/* confdefs.h.  */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h.  */
2777#include <ac_nonexistent.h>
2778_ACEOF
2779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2781  ac_status=$?
2782  grep -v '^ *+' conftest.er1 >conftest.err
2783  rm -f conftest.er1
2784  cat conftest.err >&5
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); } >/dev/null; then
2787  if test -s conftest.err; then
2788    ac_cpp_err=$ac_c_preproc_warn_flag
2789  else
2790    ac_cpp_err=
2791  fi
2792else
2793  ac_cpp_err=yes
2794fi
2795if test -z "$ac_cpp_err"; then
2796  # Broken: success on invalid input.
2797continue
2798else
2799  echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
2802  # Passes both tests.
2803ac_preproc_ok=:
2804break
2805fi
2806rm -f conftest.err conftest.$ac_ext
2807
2808done
2809# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2810rm -f conftest.err conftest.$ac_ext
2811if $ac_preproc_ok; then
2812  break
2813fi
2814
2815    done
2816    ac_cv_prog_CPP=$CPP
2817
2818fi
2819  CPP=$ac_cv_prog_CPP
2820else
2821  ac_cv_prog_CPP=$CPP
2822fi
2823echo "$as_me:$LINENO: result: $CPP" >&5
2824echo "${ECHO_T}$CPP" >&6
2825ac_preproc_ok=false
2826for ac_c_preproc_warn_flag in '' yes
2827do
2828  # Use a header file that comes with gcc, so configuring glibc
2829  # with a fresh cross-compiler works.
2830  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2831  # <limits.h> exists even on freestanding compilers.
2832  # On the NeXT, cc -E runs the code through the compiler's parser,
2833  # not just through cpp. "Syntax error" is here to catch this case.
2834  cat >conftest.$ac_ext <<_ACEOF
2835#line $LINENO "configure"
2836/* confdefs.h.  */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h.  */
2841#ifdef __STDC__
2842# include <limits.h>
2843#else
2844# include <assert.h>
2845#endif
2846                     Syntax error
2847_ACEOF
2848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850  ac_status=$?
2851  grep -v '^ *+' conftest.er1 >conftest.err
2852  rm -f conftest.er1
2853  cat conftest.err >&5
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); } >/dev/null; then
2856  if test -s conftest.err; then
2857    ac_cpp_err=$ac_c_preproc_warn_flag
2858  else
2859    ac_cpp_err=
2860  fi
2861else
2862  ac_cpp_err=yes
2863fi
2864if test -z "$ac_cpp_err"; then
2865  :
2866else
2867  echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870  # Broken: fails on valid input.
2871continue
2872fi
2873rm -f conftest.err conftest.$ac_ext
2874
2875  # OK, works on sane cases.  Now check whether non-existent headers
2876  # can be detected and how.
2877  cat >conftest.$ac_ext <<_ACEOF
2878#line $LINENO "configure"
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884#include <ac_nonexistent.h>
2885_ACEOF
2886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888  ac_status=$?
2889  grep -v '^ *+' conftest.er1 >conftest.err
2890  rm -f conftest.er1
2891  cat conftest.err >&5
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); } >/dev/null; then
2894  if test -s conftest.err; then
2895    ac_cpp_err=$ac_c_preproc_warn_flag
2896  else
2897    ac_cpp_err=
2898  fi
2899else
2900  ac_cpp_err=yes
2901fi
2902if test -z "$ac_cpp_err"; then
2903  # Broken: success on invalid input.
2904continue
2905else
2906  echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909  # Passes both tests.
2910ac_preproc_ok=:
2911break
2912fi
2913rm -f conftest.err conftest.$ac_ext
2914
2915done
2916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2917rm -f conftest.err conftest.$ac_ext
2918if $ac_preproc_ok; then
2919  :
2920else
2921  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2922See \`config.log' for more details." >&5
2923echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2924See \`config.log' for more details." >&2;}
2925   { (exit 1); exit 1; }; }
2926fi
2927
2928ac_ext=c
2929ac_cpp='$CPP $CPPFLAGS'
2930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933
2934ac_ext=cc
2935ac_cpp='$CXXCPP $CPPFLAGS'
2936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2939if test -n "$ac_tool_prefix"; then
2940  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2941  do
2942    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944echo "$as_me:$LINENO: checking for $ac_word" >&5
2945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946if test "${ac_cv_prog_CXX+set}" = set; then
2947  echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949  if test -n "$CXX"; then
2950  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  test -z "$as_dir" && as_dir=.
2957  for ac_exec_ext in '' $ac_executable_extensions; do
2958  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2960    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964done
2965
2966fi
2967fi
2968CXX=$ac_cv_prog_CXX
2969if test -n "$CXX"; then
2970  echo "$as_me:$LINENO: result: $CXX" >&5
2971echo "${ECHO_T}$CXX" >&6
2972else
2973  echo "$as_me:$LINENO: result: no" >&5
2974echo "${ECHO_T}no" >&6
2975fi
2976
2977    test -n "$CXX" && break
2978  done
2979fi
2980if test -z "$CXX"; then
2981  ac_ct_CXX=$CXX
2982  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2983do
2984  # Extract the first word of "$ac_prog", so it can be a program name with args.
2985set dummy $ac_prog; ac_word=$2
2986echo "$as_me:$LINENO: checking for $ac_word" >&5
2987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2989  echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991  if test -n "$ac_ct_CXX"; then
2992  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  test -z "$as_dir" && as_dir=.
2999  for ac_exec_ext in '' $ac_executable_extensions; do
3000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001    ac_cv_prog_ac_ct_CXX="$ac_prog"
3002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003    break 2
3004  fi
3005done
3006done
3007
3008fi
3009fi
3010ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011if test -n "$ac_ct_CXX"; then
3012  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013echo "${ECHO_T}$ac_ct_CXX" >&6
3014else
3015  echo "$as_me:$LINENO: result: no" >&5
3016echo "${ECHO_T}no" >&6
3017fi
3018
3019  test -n "$ac_ct_CXX" && break
3020done
3021test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3022
3023  CXX=$ac_ct_CXX
3024fi
3025
3026
3027# Provide some information about the compiler.
3028echo "$as_me:$LINENO:" \
3029     "checking for C++ compiler version" >&5
3030ac_compiler=`set X $ac_compile; echo $2`
3031{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3032  (eval $ac_compiler --version </dev/null >&5) 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }
3036{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3037  (eval $ac_compiler -v </dev/null >&5) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }
3041{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3042  (eval $ac_compiler -V </dev/null >&5) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }
3046
3047echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3048echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3049if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  cat >conftest.$ac_ext <<_ACEOF
3053#line $LINENO "configure"
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063#ifndef __GNUC__
3064       choke me
3065#endif
3066
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071rm -f conftest.$ac_objext
3072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073  (eval $ac_compile) 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } &&
3077         { ac_try='test -s conftest.$ac_objext'
3078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079  (eval $ac_try) 2>&5
3080  ac_status=$?
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); }; }; then
3083  ac_compiler_gnu=yes
3084else
3085  echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088ac_compiler_gnu=no
3089fi
3090rm -f conftest.$ac_objext conftest.$ac_ext
3091ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3092
3093fi
3094echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3095echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3096GXX=`test $ac_compiler_gnu = yes && echo yes`
3097ac_test_CXXFLAGS=${CXXFLAGS+set}
3098ac_save_CXXFLAGS=$CXXFLAGS
3099CXXFLAGS="-g"
3100echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3101echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3102if test "${ac_cv_prog_cxx_g+set}" = set; then
3103  echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105  cat >conftest.$ac_ext <<_ACEOF
3106#line $LINENO "configure"
3107/* confdefs.h.  */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h.  */
3112
3113int
3114main ()
3115{
3116
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123  (eval $ac_compile) 2>&5
3124  ac_status=$?
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); } &&
3127         { ac_try='test -s conftest.$ac_objext'
3128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129  (eval $ac_try) 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); }; }; then
3133  ac_cv_prog_cxx_g=yes
3134else
3135  echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138ac_cv_prog_cxx_g=no
3139fi
3140rm -f conftest.$ac_objext conftest.$ac_ext
3141fi
3142echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3143echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3144if test "$ac_test_CXXFLAGS" = set; then
3145  CXXFLAGS=$ac_save_CXXFLAGS
3146elif test $ac_cv_prog_cxx_g = yes; then
3147  if test "$GXX" = yes; then
3148    CXXFLAGS="-g -O2"
3149  else
3150    CXXFLAGS="-g"
3151  fi
3152else
3153  if test "$GXX" = yes; then
3154    CXXFLAGS="-O2"
3155  else
3156    CXXFLAGS=
3157  fi
3158fi
3159for ac_declaration in \
3160   ''\
3161   '#include <stdlib.h>' \
3162   'extern "C" void std::exit (int) throw (); using std::exit;' \
3163   'extern "C" void std::exit (int); using std::exit;' \
3164   'extern "C" void exit (int) throw ();' \
3165   'extern "C" void exit (int);' \
3166   'void exit (int);'
3167do
3168  cat >conftest.$ac_ext <<_ACEOF
3169#line $LINENO "configure"
3170/* confdefs.h.  */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h.  */
3175#include <stdlib.h>
3176$ac_declaration
3177int
3178main ()
3179{
3180exit (42);
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187  (eval $ac_compile) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); } &&
3191         { ac_try='test -s conftest.$ac_objext'
3192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193  (eval $ac_try) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; }; then
3197  :
3198else
3199  echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202continue
3203fi
3204rm -f conftest.$ac_objext conftest.$ac_ext
3205  cat >conftest.$ac_ext <<_ACEOF
3206#line $LINENO "configure"
3207/* confdefs.h.  */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h.  */
3212$ac_declaration
3213int
3214main ()
3215{
3216exit (42);
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223  (eval $ac_compile) 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); } &&
3227         { ac_try='test -s conftest.$ac_objext'
3228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229  (eval $ac_try) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; }; then
3233  break
3234else
3235  echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238fi
3239rm -f conftest.$ac_objext conftest.$ac_ext
3240done
3241rm -f conftest*
3242if test -n "$ac_declaration"; then
3243  echo '#ifdef __cplusplus' >>confdefs.h
3244  echo $ac_declaration      >>confdefs.h
3245  echo '#endif'             >>confdefs.h
3246fi
3247
3248ac_ext=c
3249ac_cpp='$CPP $CPPFLAGS'
3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
3254depcc="$CXX"  am_compiler_list=
3255
3256echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3257echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3258if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3259  echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3262  # We make a subdir and do the tests there.  Otherwise we can end up
3263  # making bogus files that we don't know about and never remove.  For
3264  # instance it was reported that on HP-UX the gcc test will end up
3265  # making a dummy file named `D' -- because `-MD' means `put the output
3266  # in D'.
3267  mkdir conftest.dir
3268  # Copy depcomp to subdir because otherwise we won't find it if we're
3269  # using a relative directory.
3270  cp "$am_depcomp" conftest.dir
3271  cd conftest.dir
3272
3273  am_cv_CXX_dependencies_compiler_type=none
3274  if test "$am_compiler_list" = ""; then
3275     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3276  fi
3277  for depmode in $am_compiler_list; do
3278    # We need to recreate these files for each test, as the compiler may
3279    # overwrite some of them when testing with obscure command lines.
3280    # This happens at least with the AIX C compiler.
3281    echo '#include "conftest.h"' > conftest.c
3282    echo 'int i;' > conftest.h
3283    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3284
3285    case $depmode in
3286    nosideeffect)
3287      # after this tag, mechanisms are not by side-effect, so they'll
3288      # only be used when explicitly requested
3289      if test "x$enable_dependency_tracking" = xyes; then
3290        continue
3291      else
3292        break
3293      fi
3294      ;;
3295    none) break ;;
3296    esac
3297    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3298    # mode.  It turns out that the SunPro C++ compiler does not properly
3299    # handle `-M -o', and we need to detect this.
3300    if depmode=$depmode \
3301       source=conftest.c object=conftest.o \
3302       depfile=conftest.Po tmpdepfile=conftest.TPo \
3303       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3304       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3305       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3306      am_cv_CXX_dependencies_compiler_type=$depmode
3307      break
3308    fi
3309  done
3310
3311  cd ..
3312  rm -rf conftest.dir
3313else
3314  am_cv_CXX_dependencies_compiler_type=none
3315fi
3316
3317fi
3318echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3319echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3320CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3321
3322
3323
3324# Check whether some low-level functions/files are available
3325
3326
3327echo "$as_me:$LINENO: checking for egrep" >&5
3328echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3329if test "${ac_cv_prog_egrep+set}" = set; then
3330  echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3333    then ac_cv_prog_egrep='grep -E'
3334    else ac_cv_prog_egrep='egrep'
3335    fi
3336fi
3337echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3338echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3339 EGREP=$ac_cv_prog_egrep
3340
3341
3342echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3343echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3344if test "${ac_cv_header_stdc+set}" = set; then
3345  echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347  cat >conftest.$ac_ext <<_ACEOF
3348#line $LINENO "configure"
3349/* confdefs.h.  */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h.  */
3354#include <stdlib.h>
3355#include <stdarg.h>
3356#include <string.h>
3357#include <float.h>
3358
3359int
3360main ()
3361{
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); } &&
3373         { ac_try='test -s conftest.$ac_objext'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  ac_cv_header_stdc=yes
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384ac_cv_header_stdc=no
3385fi
3386rm -f conftest.$ac_objext conftest.$ac_ext
3387
3388if test $ac_cv_header_stdc = yes; then
3389  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3390  cat >conftest.$ac_ext <<_ACEOF
3391#line $LINENO "configure"
3392/* confdefs.h.  */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h.  */
3397#include <string.h>
3398
3399_ACEOF
3400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401  $EGREP "memchr" >/dev/null 2>&1; then
3402  :
3403else
3404  ac_cv_header_stdc=no
3405fi
3406rm -f conftest*
3407
3408fi
3409
3410if test $ac_cv_header_stdc = yes; then
3411  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3412  cat >conftest.$ac_ext <<_ACEOF
3413#line $LINENO "configure"
3414/* confdefs.h.  */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h.  */
3419#include <stdlib.h>
3420
3421_ACEOF
3422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423  $EGREP "free" >/dev/null 2>&1; then
3424  :
3425else
3426  ac_cv_header_stdc=no
3427fi
3428rm -f conftest*
3429
3430fi
3431
3432if test $ac_cv_header_stdc = yes; then
3433  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3434  if test "$cross_compiling" = yes; then
3435  :
3436else
3437  cat >conftest.$ac_ext <<_ACEOF
3438#line $LINENO "configure"
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444#include <ctype.h>
3445#if ((' ' & 0x0FF) == 0x020)
3446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3448#else
3449# define ISLOWER(c) \
3450                   (('a' <= (c) && (c) <= 'i') \
3451                     || ('j' <= (c) && (c) <= 'r') \
3452                     || ('s' <= (c) && (c) <= 'z'))
3453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3454#endif
3455
3456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3457int
3458main ()
3459{
3460  int i;
3461  for (i = 0; i < 256; i++)
3462    if (XOR (islower (i), ISLOWER (i))
3463        || toupper (i) != TOUPPER (i))
3464      exit(2);
3465  exit (0);
3466}
3467_ACEOF
3468rm -f conftest$ac_exeext
3469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3470  (eval $ac_link) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  :
3480else
3481  echo "$as_me: program exited with status $ac_status" >&5
3482echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485( exit $ac_status )
3486ac_cv_header_stdc=no
3487fi
3488rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3489fi
3490fi
3491fi
3492echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3493echo "${ECHO_T}$ac_cv_header_stdc" >&6
3494if test $ac_cv_header_stdc = yes; then
3495
3496cat >>confdefs.h <<\_ACEOF
3497#define STDC_HEADERS 1
3498_ACEOF
3499
3500fi
3501
3502
3503
3504for ac_func in memcpy memmove
3505do
3506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3507echo "$as_me:$LINENO: checking for $ac_func" >&5
3508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3509if eval "test \"\${$as_ac_var+set}\" = set"; then
3510  echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512  cat >conftest.$ac_ext <<_ACEOF
3513#line $LINENO "configure"
3514/* confdefs.h.  */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h.  */
3519/* System header to define __stub macros and hopefully few prototypes,
3520    which can conflict with char $ac_func (); below.
3521    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3522    <limits.h> exists even on freestanding compilers.  */
3523#ifdef __STDC__
3524# include <limits.h>
3525#else
3526# include <assert.h>
3527#endif
3528/* Override any gcc2 internal prototype to avoid an error.  */
3529#ifdef __cplusplus
3530extern "C"
3531{
3532#endif
3533/* We use char because int might match the return type of a gcc2
3534   builtin and then its argument prototype would still apply.  */
3535char $ac_func ();
3536/* The GNU C library defines this for functions which it implements
3537    to always fail with ENOSYS.  Some functions are actually named
3538    something starting with __ and the normal name is an alias.  */
3539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3540choke me
3541#else
3542char (*f) () = $ac_func;
3543#endif
3544#ifdef __cplusplus
3545}
3546#endif
3547
3548int
3549main ()
3550{
3551return f != $ac_func;
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext conftest$ac_exeext
3557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558  (eval $ac_link) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); } &&
3562         { ac_try='test -s conftest$ac_exeext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  eval "$as_ac_var=yes"
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573eval "$as_ac_var=no"
3574fi
3575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3576fi
3577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3579if test `eval echo '${'$as_ac_var'}'` = yes; then
3580  cat >>confdefs.h <<_ACEOF
3581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3582_ACEOF
3583
3584fi
3585done
3586
3587# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3598                  inttypes.h stdint.h unistd.h
3599do
3600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3601echo "$as_me:$LINENO: checking for $ac_header" >&5
3602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3603if eval "test \"\${$as_ac_Header+set}\" = set"; then
3604  echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606  cat >conftest.$ac_ext <<_ACEOF
3607#line $LINENO "configure"
3608/* confdefs.h.  */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h.  */
3613$ac_includes_default
3614
3615#include <$ac_header>
3616_ACEOF
3617rm -f conftest.$ac_objext
3618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619  (eval $ac_compile) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); } &&
3623         { ac_try='test -s conftest.$ac_objext'
3624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625  (eval $ac_try) 2>&5
3626  ac_status=$?
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }; }; then
3629  eval "$as_ac_Header=yes"
3630else
3631  echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634eval "$as_ac_Header=no"
3635fi
3636rm -f conftest.$ac_objext conftest.$ac_ext
3637fi
3638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3640if test `eval echo '${'$as_ac_Header'}'` = yes; then
3641  cat >>confdefs.h <<_ACEOF
3642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3643_ACEOF
3644
3645fi
3646
3647done
3648
3649
3650echo "$as_me:$LINENO: checking for u_int16_t" >&5
3651echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3652if test "${ac_cv_type_u_int16_t+set}" = set; then
3653  echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655  cat >conftest.$ac_ext <<_ACEOF
3656#line $LINENO "configure"
3657/* confdefs.h.  */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h.  */
3662$ac_includes_default
3663int
3664main ()
3665{
3666if ((u_int16_t *) 0)
3667  return 0;
3668if (sizeof (u_int16_t))
3669  return 0;
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext
3675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676  (eval $ac_compile) 2>&5
3677  ac_status=$?
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } &&
3680         { ac_try='test -s conftest.$ac_objext'
3681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682  (eval $ac_try) 2>&5
3683  ac_status=$?
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); }; }; then
3686  ac_cv_type_u_int16_t=yes
3687else
3688  echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691ac_cv_type_u_int16_t=no
3692fi
3693rm -f conftest.$ac_objext conftest.$ac_ext
3694fi
3695echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
3696echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3697if test $ac_cv_type_u_int16_t = yes; then
3698
3699cat >>confdefs.h <<_ACEOF
3700#define HAVE_U_INT16_T 1
3701_ACEOF
3702
3703
3704fi
3705    # defined in most posix systems
3706echo "$as_me:$LINENO: checking for __uint16" >&5
3707echo $ECHO_N "checking for __uint16... $ECHO_C" >&6
3708if test "${ac_cv_type___uint16+set}" = set; then
3709  echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711  cat >conftest.$ac_ext <<_ACEOF
3712#line $LINENO "configure"
3713/* confdefs.h.  */
3714_ACEOF
3715cat confdefs.h >>conftest.$ac_ext
3716cat >>conftest.$ac_ext <<_ACEOF
3717/* end confdefs.h.  */
3718$ac_includes_default
3719int
3720main ()
3721{
3722if ((__uint16 *) 0)
3723  return 0;
3724if (sizeof (__uint16))
3725  return 0;
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730rm -f conftest.$ac_objext
3731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732  (eval $ac_compile) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); } &&
3736         { ac_try='test -s conftest.$ac_objext'
3737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738  (eval $ac_try) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; }; then
3742  ac_cv_type___uint16=yes
3743else
3744  echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747ac_cv_type___uint16=no
3748fi
3749rm -f conftest.$ac_objext conftest.$ac_ext
3750fi
3751echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
3752echo "${ECHO_T}$ac_cv_type___uint16" >&6
3753if test $ac_cv_type___uint16 = yes; then
3754
3755cat >>confdefs.h <<_ACEOF
3756#define HAVE___UINT16 1
3757_ACEOF
3758
3759
3760fi
3761     # defined in some windows systems (vc7)
3762# These are 'only' needed for unittests
3763
3764
3765
3766
3767for ac_header in sys/resource.h unistd.h sys/time.h sys/utsname.h
3768do
3769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770if eval "test \"\${$as_ac_Header+set}\" = set"; then
3771  echo "$as_me:$LINENO: checking for $ac_header" >&5
3772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3773if eval "test \"\${$as_ac_Header+set}\" = set"; then
3774  echo $ECHO_N "(cached) $ECHO_C" >&6
3775fi
3776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3778else
3779  # Is the header compilable?
3780echo "$as_me:$LINENO: checking $ac_header usability" >&5
3781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3782cat >conftest.$ac_ext <<_ACEOF
3783#line $LINENO "configure"
3784/* confdefs.h.  */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h.  */
3789$ac_includes_default
3790#include <$ac_header>
3791_ACEOF
3792rm -f conftest.$ac_objext
3793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794  (eval $ac_compile) 2>&5
3795  ac_status=$?
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); } &&
3798         { ac_try='test -s conftest.$ac_objext'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; }; then
3804  ac_header_compiler=yes
3805else
3806  echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809ac_header_compiler=no
3810fi
3811rm -f conftest.$ac_objext conftest.$ac_ext
3812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3813echo "${ECHO_T}$ac_header_compiler" >&6
3814
3815# Is the header present?
3816echo "$as_me:$LINENO: checking $ac_header presence" >&5
3817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3818cat >conftest.$ac_ext <<_ACEOF
3819#line $LINENO "configure"
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <$ac_header>
3826_ACEOF
3827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3829  ac_status=$?
3830  grep -v '^ *+' conftest.er1 >conftest.err
3831  rm -f conftest.er1
3832  cat conftest.err >&5
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); } >/dev/null; then
3835  if test -s conftest.err; then
3836    ac_cpp_err=$ac_c_preproc_warn_flag
3837  else
3838    ac_cpp_err=
3839  fi
3840else
3841  ac_cpp_err=yes
3842fi
3843if test -z "$ac_cpp_err"; then
3844  ac_header_preproc=yes
3845else
3846  echo "$as_me: failed program was:" >&5
3847sed 's/^/| /' conftest.$ac_ext >&5
3848
3849  ac_header_preproc=no
3850fi
3851rm -f conftest.err conftest.$ac_ext
3852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3853echo "${ECHO_T}$ac_header_preproc" >&6
3854
3855# So?  What about this header?
3856case $ac_header_compiler:$ac_header_preproc in
3857  yes:no )
3858    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3860    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3862    (
3863      cat <<\_ASBOX
3864## ------------------------------------ ##
3865## Report this to bug-autoconf@gnu.org. ##
3866## ------------------------------------ ##
3867_ASBOX
3868    ) |
3869      sed "s/^/$as_me: WARNING:     /" >&2
3870    ;;
3871  no:yes )
3872    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3874    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3876    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3877echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3878    (
3879      cat <<\_ASBOX
3880## ------------------------------------ ##
3881## Report this to bug-autoconf@gnu.org. ##
3882## ------------------------------------ ##
3883_ASBOX
3884    ) |
3885      sed "s/^/$as_me: WARNING:     /" >&2
3886    ;;
3887esac
3888echo "$as_me:$LINENO: checking for $ac_header" >&5
3889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3890if eval "test \"\${$as_ac_Header+set}\" = set"; then
3891  echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893  eval "$as_ac_Header=$ac_header_preproc"
3894fi
3895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3897
3898fi
3899if test `eval echo '${'$as_ac_Header'}'` = yes; then
3900  cat >>confdefs.h <<_ACEOF
3901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902_ACEOF
3903
3904fi
3905
3906done
3907
3908
3909# Writes the header files for hash_map, hash_set, and hash_fun into .
3910# This also tells us what namespace hash code lives in.
3911
3912echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
3913echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
3914if test "${ac_cv_cxx_namespaces+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917
3918
3919 ac_ext=cc
3920ac_cpp='$CXXCPP $CPPFLAGS'
3921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3924
3925 cat >conftest.$ac_ext <<_ACEOF
3926#line $LINENO "configure"
3927/* confdefs.h.  */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
3931/* end confdefs.h.  */
3932namespace Outer { namespace Inner { int i = 0; }}
3933int
3934main ()
3935{
3936using namespace Outer::Inner; return i;
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941rm -f conftest.$ac_objext
3942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943  (eval $ac_compile) 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); } &&
3947         { ac_try='test -s conftest.$ac_objext'
3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949  (eval $ac_try) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); }; }; then
3953  ac_cv_cxx_namespaces=yes
3954else
3955  echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958ac_cv_cxx_namespaces=no
3959fi
3960rm -f conftest.$ac_objext conftest.$ac_ext
3961 ac_ext=c
3962ac_cpp='$CPP $CPPFLAGS'
3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
3967
3968fi
3969echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
3970echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
3971if test "$ac_cv_cxx_namespaces" = yes; then
3972
3973cat >>confdefs.h <<\_ACEOF
3974#define HAVE_NAMESPACES
3975_ACEOF
3976
3977fi
3978
3979echo "$as_me:$LINENO: checking location of STL hash_map" >&5
3980echo $ECHO_N "checking location of STL hash_map... $ECHO_C" >&6
3981if test "${ac_cv_cxx_stl_hash+set}" = set; then
3982  echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984
3985
3986
3987      ac_ext=cc
3988ac_cpp='$CXXCPP $CPPFLAGS'
3989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3992
3993      cat >conftest.$ac_ext <<_ACEOF
3994#line $LINENO "configure"
3995/* confdefs.h.  */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h.  */
4000#include <hash_map>
4001int
4002main ()
4003{
4004hash_map<int, int> t; return 0;
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009rm -f conftest.$ac_objext
4010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4011  (eval $ac_compile) 2>&5
4012  ac_status=$?
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -s conftest.$ac_objext'
4016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017  (eval $ac_try) 2>&5
4018  ac_status=$?
4019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020  (exit $ac_status); }; }; then
4021  ac_cv_cxx_stl_hash=hash_map
4022else
4023  echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026fi
4027rm -f conftest.$ac_objext conftest.$ac_ext
4028      cat >conftest.$ac_ext <<_ACEOF
4029#line $LINENO "configure"
4030/* confdefs.h.  */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h.  */
4035#include <ext/hash_map>
4036int
4037main ()
4038{
4039__gnu_cxx::hash_map<int, int> t; return 0;
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044rm -f conftest.$ac_objext
4045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046  (eval $ac_compile) 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); } &&
4050         { ac_try='test -s conftest.$ac_objext'
4051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052  (eval $ac_try) 2>&5
4053  ac_status=$?
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); }; }; then
4056  ac_cv_cxx_stl_hash=ext_hash_map
4057else
4058  echo "$as_me: failed program was:" >&5
4059sed 's/^/| /' conftest.$ac_ext >&5
4060
4061fi
4062rm -f conftest.$ac_objext conftest.$ac_ext
4063      cat >conftest.$ac_ext <<_ACEOF
4064#line $LINENO "configure"
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070#include <hash_map>
4071int
4072main ()
4073{
4074std::hash_map<int, int> t; return 0;
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079rm -f conftest.$ac_objext
4080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081  (eval $ac_compile) 2>&5
4082  ac_status=$?
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); } &&
4085         { ac_try='test -s conftest.$ac_objext'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; }; then
4091  ac_cv_cxx_stl_hash=std_hash_map
4092else
4093  echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096fi
4097rm -f conftest.$ac_objext conftest.$ac_ext
4098      cat >conftest.$ac_ext <<_ACEOF
4099#line $LINENO "configure"
4100/* confdefs.h.  */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h.  */
4105#include <hash_map>
4106int
4107main ()
4108{
4109stdext::hash_map<int, int> t; return 0;
4110  ;
4111  return 0;
4112}
4113_ACEOF
4114rm -f conftest.$ac_objext
4115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116  (eval $ac_compile) 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); } &&
4120         { ac_try='test -s conftest.$ac_objext'
4121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122  (eval $ac_try) 2>&5
4123  ac_status=$?
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); }; }; then
4126  ac_cv_cxx_stl_hash=stdext_hash_map
4127else
4128  echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131fi
4132rm -f conftest.$ac_objext conftest.$ac_ext
4133
4134      ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140fi
4141echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_hash" >&5
4142echo "${ECHO_T}$ac_cv_cxx_stl_hash" >&6
4143   if test "$ac_cv_cxx_stl_hash" = hash_map; then
4144
4145cat >>confdefs.h <<\_ACEOF
4146#define HAVE_HASH_MAP 1
4147_ACEOF
4148
4149
4150cat >>confdefs.h <<\_ACEOF
4151#define HAVE_HASH_SET 1
4152_ACEOF
4153
4154      ac_cv_cxx_hash_map="<hash_map>"
4155      ac_cv_cxx_hash_set="<hash_set>"
4156      ac_cv_cxx_hash_namespace=""
4157   fi
4158   if test "$ac_cv_cxx_stl_hash" = ext_hash_map; then
4159
4160cat >>confdefs.h <<\_ACEOF
4161#define HAVE_EXT_HASH_MAP 1
4162_ACEOF
4163
4164
4165cat >>confdefs.h <<\_ACEOF
4166#define HAVE_EXT_HASH_SET 1
4167_ACEOF
4168
4169      ac_cv_cxx_hash_map="<ext/hash_map>"
4170      ac_cv_cxx_hash_set="<ext/hash_set>"
4171      ac_cv_cxx_hash_namespace="__gnu_cxx"
4172   fi
4173   if test "$ac_cv_cxx_stl_hash" = std_hash_map; then
4174
4175cat >>confdefs.h <<\_ACEOF
4176#define HAVE_HASH_MAP 1
4177_ACEOF
4178
4179
4180cat >>confdefs.h <<\_ACEOF
4181#define HAVE_HASH_SET 1
4182_ACEOF
4183
4184      ac_cv_cxx_hash_map="<hash_map>"
4185      ac_cv_cxx_hash_set="<hash_set>"
4186      ac_cv_cxx_hash_namespace="std"
4187   fi
4188   if test "$ac_cv_cxx_stl_hash" = stdext_hash_map; then
4189
4190cat >>confdefs.h <<\_ACEOF
4191#define HAVE_HASH_MAP 1
4192_ACEOF
4193
4194
4195cat >>confdefs.h <<\_ACEOF
4196#define HAVE_HASH_SET 1
4197_ACEOF
4198
4199      ac_cv_cxx_hash_map="<hash_map>"
4200      ac_cv_cxx_hash_set="<hash_set>"
4201      ac_cv_cxx_hash_namespace="stdext"
4202   fi
4203
4204cat >>confdefs.h <<_ACEOF
4205#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
4206_ACEOF
4207
4208
4209   if test x"$ac_cv_cxx_stl_hash" = x; then
4210      { { echo "$as_me:$LINENO: error: couldn't find an STL hash_map" >&5
4211echo "$as_me: error: couldn't find an STL hash_map" >&2;}
4212   { (exit 1); exit 1; }; }
4213   fi
4214
4215
4216   echo "$as_me:$LINENO: checking writing a helper file for including hash_map" >&5
4217echo $ECHO_N "checking writing a helper file for including hash_map... $ECHO_C" >&6
4218
4219   { if $as_mkdir_p; then
4220    mkdir -p `(dirname src/hash_map.h) 2>/dev/null ||
4221$as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4222         Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
4223         Xsrc/hash_map.h : 'X\(//\)$' \| \
4224         Xsrc/hash_map.h : 'X\(/\)' \| \
4225         .     : '\(.\)' 2>/dev/null ||
4226echo Xsrc/hash_map.h |
4227    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4228          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4229          /^X\(\/\/\)$/{ s//\1/; q; }
4230          /^X\(\/\).*/{ s//\1/; q; }
4231          s/.*/./; q'`
4232  else
4233    as_dir=`(dirname src/hash_map.h) 2>/dev/null ||
4234$as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4235         Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
4236         Xsrc/hash_map.h : 'X\(//\)$' \| \
4237         Xsrc/hash_map.h : 'X\(/\)' \| \
4238         .     : '\(.\)' 2>/dev/null ||
4239echo Xsrc/hash_map.h |
4240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4241          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4242          /^X\(\/\/\)$/{ s//\1/; q; }
4243          /^X\(\/\).*/{ s//\1/; q; }
4244          s/.*/./; q'`
4245    as_dirs=
4246    while test ! -d "$as_dir"; do
4247      as_dirs="$as_dir $as_dirs"
4248      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4250         X"$as_dir" : 'X\(//\)[^/]' \| \
4251         X"$as_dir" : 'X\(//\)$' \| \
4252         X"$as_dir" : 'X\(/\)' \| \
4253         .     : '\(.\)' 2>/dev/null ||
4254echo X"$as_dir" |
4255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4256          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4257          /^X\(\/\/\)$/{ s//\1/; q; }
4258          /^X\(\/\).*/{ s//\1/; q; }
4259          s/.*/./; q'`
4260    done
4261    test ! -n "$as_dirs" || mkdir $as_dirs
4262  fi || { { echo "$as_me:$LINENO: error: cannot create directory \`(dirname src/hash_map.h) 2>/dev/null ||
4263$as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4264         Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
4265         Xsrc/hash_map.h : 'X\(//\)$' \| \
4266         Xsrc/hash_map.h : 'X\(/\)' \| \
4267         .     : '\(.\)' 2>/dev/null ||
4268echo Xsrc/hash_map.h |
4269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4270          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4271          /^X\(\/\/\)$/{ s//\1/; q; }
4272          /^X\(\/\).*/{ s//\1/; q; }
4273          s/.*/./; q'\`" >&5
4274echo "$as_me: error: cannot create directory \`(dirname src/hash_map.h) 2>/dev/null ||
4275$as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4276         Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
4277         Xsrc/hash_map.h : 'X\(//\)$' \| \
4278         Xsrc/hash_map.h : 'X\(/\)' \| \
4279         .     : '\(.\)' 2>/dev/null ||
4280echo Xsrc/hash_map.h |
4281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4282          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4283          /^X\(\/\/\)$/{ s//\1/; q; }
4284          /^X\(\/\).*/{ s//\1/; q; }
4285          s/.*/./; q'\`" >&2;}
4286   { (exit 1); exit 1; }; }; }
4287
4288   cat >src/hash_map.h <<EOF
4289#include $ac_cv_cxx_hash_map
4290#ifndef HASH_NAMESPACE
4291#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
4292#endif
4293EOF
4294
4295   echo "$as_me:$LINENO: result: src/hash_map.h" >&5
4296echo "${ECHO_T}src/hash_map.h" >&6
4297
4298ac_ext=cc
4299ac_cpp='$CXXCPP $CPPFLAGS'
4300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4303echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4304echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4305if test -z "$CXXCPP"; then
4306  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309      # Double quotes because CXXCPP needs to be expanded
4310    for CXXCPP in "$CXX -E" "/lib/cpp"
4311    do
4312      ac_preproc_ok=false
4313for ac_cxx_preproc_warn_flag in '' yes
4314do
4315  # Use a header file that comes with gcc, so configuring glibc
4316  # with a fresh cross-compiler works.
4317  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318  # <limits.h> exists even on freestanding compilers.
4319  # On the NeXT, cc -E runs the code through the compiler's parser,
4320  # not just through cpp. "Syntax error" is here to catch this case.
4321  cat >conftest.$ac_ext <<_ACEOF
4322#line $LINENO "configure"
4323/* confdefs.h.  */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h.  */
4328#ifdef __STDC__
4329# include <limits.h>
4330#else
4331# include <assert.h>
4332#endif
4333                     Syntax error
4334_ACEOF
4335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4336  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4337  ac_status=$?
4338  grep -v '^ *+' conftest.er1 >conftest.err
4339  rm -f conftest.er1
4340  cat conftest.err >&5
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); } >/dev/null; then
4343  if test -s conftest.err; then
4344    ac_cpp_err=$ac_cxx_preproc_warn_flag
4345  else
4346    ac_cpp_err=
4347  fi
4348else
4349  ac_cpp_err=yes
4350fi
4351if test -z "$ac_cpp_err"; then
4352  :
4353else
4354  echo "$as_me: failed program was:" >&5
4355sed 's/^/| /' conftest.$ac_ext >&5
4356
4357  # Broken: fails on valid input.
4358continue
4359fi
4360rm -f conftest.err conftest.$ac_ext
4361
4362  # OK, works on sane cases.  Now check whether non-existent headers
4363  # can be detected and how.
4364  cat >conftest.$ac_ext <<_ACEOF
4365#line $LINENO "configure"
4366/* confdefs.h.  */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h.  */
4371#include <ac_nonexistent.h>
4372_ACEOF
4373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4374  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4375  ac_status=$?
4376  grep -v '^ *+' conftest.er1 >conftest.err
4377  rm -f conftest.er1
4378  cat conftest.err >&5
4379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); } >/dev/null; then
4381  if test -s conftest.err; then
4382    ac_cpp_err=$ac_cxx_preproc_warn_flag
4383  else
4384    ac_cpp_err=
4385  fi
4386else
4387  ac_cpp_err=yes
4388fi
4389if test -z "$ac_cpp_err"; then
4390  # Broken: success on invalid input.
4391continue
4392else
4393  echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396  # Passes both tests.
4397ac_preproc_ok=:
4398break
4399fi
4400rm -f conftest.err conftest.$ac_ext
4401
4402done
4403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404rm -f conftest.err conftest.$ac_ext
4405if $ac_preproc_ok; then
4406  break
4407fi
4408
4409    done
4410    ac_cv_prog_CXXCPP=$CXXCPP
4411
4412fi
4413  CXXCPP=$ac_cv_prog_CXXCPP
4414else
4415  ac_cv_prog_CXXCPP=$CXXCPP
4416fi
4417echo "$as_me:$LINENO: result: $CXXCPP" >&5
4418echo "${ECHO_T}$CXXCPP" >&6
4419ac_preproc_ok=false
4420for ac_cxx_preproc_warn_flag in '' yes
4421do
4422  # Use a header file that comes with gcc, so configuring glibc
4423  # with a fresh cross-compiler works.
4424  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425  # <limits.h> exists even on freestanding compilers.
4426  # On the NeXT, cc -E runs the code through the compiler's parser,
4427  # not just through cpp. "Syntax error" is here to catch this case.
4428  cat >conftest.$ac_ext <<_ACEOF
4429#line $LINENO "configure"
4430/* confdefs.h.  */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h.  */
4435#ifdef __STDC__
4436# include <limits.h>
4437#else
4438# include <assert.h>
4439#endif
4440                     Syntax error
4441_ACEOF
4442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } >/dev/null; then
4450  if test -s conftest.err; then
4451    ac_cpp_err=$ac_cxx_preproc_warn_flag
4452  else
4453    ac_cpp_err=
4454  fi
4455else
4456  ac_cpp_err=yes
4457fi
4458if test -z "$ac_cpp_err"; then
4459  :
4460else
4461  echo "$as_me: failed program was:" >&5
4462sed 's/^/| /' conftest.$ac_ext >&5
4463
4464  # Broken: fails on valid input.
4465continue
4466fi
4467rm -f conftest.err conftest.$ac_ext
4468
4469  # OK, works on sane cases.  Now check whether non-existent headers
4470  # can be detected and how.
4471  cat >conftest.$ac_ext <<_ACEOF
4472#line $LINENO "configure"
4473/* confdefs.h.  */
4474_ACEOF
4475cat confdefs.h >>conftest.$ac_ext
4476cat >>conftest.$ac_ext <<_ACEOF
4477/* end confdefs.h.  */
4478#include <ac_nonexistent.h>
4479_ACEOF
4480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4481  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4482  ac_status=$?
4483  grep -v '^ *+' conftest.er1 >conftest.err
4484  rm -f conftest.er1
4485  cat conftest.err >&5
4486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487  (exit $ac_status); } >/dev/null; then
4488  if test -s conftest.err; then
4489    ac_cpp_err=$ac_cxx_preproc_warn_flag
4490  else
4491    ac_cpp_err=
4492  fi
4493else
4494  ac_cpp_err=yes
4495fi
4496if test -z "$ac_cpp_err"; then
4497  # Broken: success on invalid input.
4498continue
4499else
4500  echo "$as_me: failed program was:" >&5
4501sed 's/^/| /' conftest.$ac_ext >&5
4502
4503  # Passes both tests.
4504ac_preproc_ok=:
4505break
4506fi
4507rm -f conftest.err conftest.$ac_ext
4508
4509done
4510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511rm -f conftest.err conftest.$ac_ext
4512if $ac_preproc_ok; then
4513  :
4514else
4515  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4516See \`config.log' for more details." >&5
4517echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4518See \`config.log' for more details." >&2;}
4519   { (exit 1); exit 1; }; }
4520fi
4521
4522ac_ext=cc
4523ac_cpp='$CXXCPP $CPPFLAGS'
4524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4527
4528
4529
4530
4531
4532   ac_ext=cc
4533ac_cpp='$CXXCPP $CPPFLAGS'
4534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537
4538
4539
4540
4541
4542for ac_header in stl_hash_fun.h ext/stl_hash_fun.h \
4543                    ext/hash_fun.h hash_fun.h
4544do
4545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547  echo "$as_me:$LINENO: checking for $ac_header" >&5
4548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4549if eval "test \"\${$as_ac_Header+set}\" = set"; then
4550  echo $ECHO_N "(cached) $ECHO_C" >&6
4551fi
4552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554else
4555  # Is the header compilable?
4556echo "$as_me:$LINENO: checking $ac_header usability" >&5
4557echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4558cat >conftest.$ac_ext <<_ACEOF
4559#line $LINENO "configure"
4560/* confdefs.h.  */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h.  */
4565$ac_includes_default
4566#include <$ac_header>
4567_ACEOF
4568rm -f conftest.$ac_objext
4569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570  (eval $ac_compile) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); } &&
4574         { ac_try='test -s conftest.$ac_objext'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; }; then
4580  ac_header_compiler=yes
4581else
4582  echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585ac_header_compiler=no
4586fi
4587rm -f conftest.$ac_objext conftest.$ac_ext
4588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4589echo "${ECHO_T}$ac_header_compiler" >&6
4590
4591# Is the header present?
4592echo "$as_me:$LINENO: checking $ac_header presence" >&5
4593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4594cat >conftest.$ac_ext <<_ACEOF
4595#line $LINENO "configure"
4596/* confdefs.h.  */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h.  */
4601#include <$ac_header>
4602_ACEOF
4603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4605  ac_status=$?
4606  grep -v '^ *+' conftest.er1 >conftest.err
4607  rm -f conftest.er1
4608  cat conftest.err >&5
4609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610  (exit $ac_status); } >/dev/null; then
4611  if test -s conftest.err; then
4612    ac_cpp_err=$ac_cxx_preproc_warn_flag
4613  else
4614    ac_cpp_err=
4615  fi
4616else
4617  ac_cpp_err=yes
4618fi
4619if test -z "$ac_cpp_err"; then
4620  ac_header_preproc=yes
4621else
4622  echo "$as_me: failed program was:" >&5
4623sed 's/^/| /' conftest.$ac_ext >&5
4624
4625  ac_header_preproc=no
4626fi
4627rm -f conftest.err conftest.$ac_ext
4628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4629echo "${ECHO_T}$ac_header_preproc" >&6
4630
4631# So?  What about this header?
4632case $ac_header_compiler:$ac_header_preproc in
4633  yes:no )
4634    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4636    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4638    (
4639      cat <<\_ASBOX
4640## ------------------------------------ ##
4641## Report this to bug-autoconf@gnu.org. ##
4642## ------------------------------------ ##
4643_ASBOX
4644    ) |
4645      sed "s/^/$as_me: WARNING:     /" >&2
4646    ;;
4647  no:yes )
4648    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4650    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4652    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4654    (
4655      cat <<\_ASBOX
4656## ------------------------------------ ##
4657## Report this to bug-autoconf@gnu.org. ##
4658## ------------------------------------ ##
4659_ASBOX
4660    ) |
4661      sed "s/^/$as_me: WARNING:     /" >&2
4662    ;;
4663esac
4664echo "$as_me:$LINENO: checking for $ac_header" >&5
4665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4666if eval "test \"\${$as_ac_Header+set}\" = set"; then
4667  echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669  eval "$as_ac_Header=$ac_header_preproc"
4670fi
4671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4673
4674fi
4675if test `eval echo '${'$as_ac_Header'}'` = yes; then
4676  cat >>confdefs.h <<_ACEOF
4677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678_ACEOF
4679 ac_cv_cxx_stl_hash_fun="<$ac_header>"; break
4680fi
4681
4682done
4683
4684   ac_ext=c
4685ac_cpp='$CPP $CPPFLAGS'
4686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689
4690   echo "$as_me:$LINENO: checking how to include hash_fun directly" >&5
4691echo $ECHO_N "checking how to include hash_fun directly... $ECHO_C" >&6
4692   echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_hash_fun" >&5
4693echo "${ECHO_T}$ac_cv_cxx_stl_hash_fun" >&6
4694
4695
4696
4697   echo "$as_me:$LINENO: checking writing an include-helper for hash_fun.h" >&5
4698echo $ECHO_N "checking writing an include-helper for hash_fun.h... $ECHO_C" >&6
4699
4700   { if $as_mkdir_p; then
4701    mkdir -p `(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
4702$as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4703         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
4704         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
4705         Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
4706         .     : '\(.\)' 2>/dev/null ||
4707echo Xsrc/google/sparsehash/hash_fun.h |
4708    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4709          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4710          /^X\(\/\/\)$/{ s//\1/; q; }
4711          /^X\(\/\).*/{ s//\1/; q; }
4712          s/.*/./; q'`
4713  else
4714    as_dir=`(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
4715$as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4716         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
4717         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
4718         Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
4719         .     : '\(.\)' 2>/dev/null ||
4720echo Xsrc/google/sparsehash/hash_fun.h |
4721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4722          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4723          /^X\(\/\/\)$/{ s//\1/; q; }
4724          /^X\(\/\).*/{ s//\1/; q; }
4725          s/.*/./; q'`
4726    as_dirs=
4727    while test ! -d "$as_dir"; do
4728      as_dirs="$as_dir $as_dirs"
4729      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4730$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4731         X"$as_dir" : 'X\(//\)[^/]' \| \
4732         X"$as_dir" : 'X\(//\)$' \| \
4733         X"$as_dir" : 'X\(/\)' \| \
4734         .     : '\(.\)' 2>/dev/null ||
4735echo X"$as_dir" |
4736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4737          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4738          /^X\(\/\/\)$/{ s//\1/; q; }
4739          /^X\(\/\).*/{ s//\1/; q; }
4740          s/.*/./; q'`
4741    done
4742    test ! -n "$as_dirs" || mkdir $as_dirs
4743  fi || { { echo "$as_me:$LINENO: error: cannot create directory \`(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
4744$as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4745         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
4746         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
4747         Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
4748         .     : '\(.\)' 2>/dev/null ||
4749echo Xsrc/google/sparsehash/hash_fun.h |
4750    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4751          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4752          /^X\(\/\/\)$/{ s//\1/; q; }
4753          /^X\(\/\).*/{ s//\1/; q; }
4754          s/.*/./; q'\`" >&5
4755echo "$as_me: error: cannot create directory \`(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
4756$as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4757         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
4758         Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
4759         Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
4760         .     : '\(.\)' 2>/dev/null ||
4761echo Xsrc/google/sparsehash/hash_fun.h |
4762    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4763          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4764          /^X\(\/\/\)$/{ s//\1/; q; }
4765          /^X\(\/\).*/{ s//\1/; q; }
4766          s/.*/./; q'\`" >&2;}
4767   { (exit 1); exit 1; }; }; }
4768
4769   cat >src/google/sparsehash/hash_fun.h <<EOF
4770#ifndef HASH_NAMESPACE
4771#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
4772#endif
4773
4774EOF
4775   if test -n "$ac_cv_cxx_stl_hash_fun"; then
4776     echo "#include $ac_cv_cxx_stl_hash_fun" >> src/google/sparsehash/hash_fun.h
4777   else
4778     cat $srcdir/src/windows/stl_hash_fun.h >> src/google/sparsehash/hash_fun.h
4779   fi
4780
4781   echo "$as_me:$LINENO: result: src/google/sparsehash/hash_fun.h" >&5
4782echo "${ECHO_T}src/google/sparsehash/hash_fun.h" >&6
4783
4784
4785# Find out what namespace 'normal' STL code lives in, and also what namespace
4786# the user wants our classes to be defined in
4787echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
4788echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6
4789if test "${ac_cv_cxx_stl_namespace+set}" = set; then
4790  echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792
4793
4794
4795      ac_ext=cc
4796ac_cpp='$CXXCPP $CPPFLAGS'
4797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4800
4801      cat >conftest.$ac_ext <<_ACEOF
4802#line $LINENO "configure"
4803/* confdefs.h.  */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h.  */
4808#include <vector>
4809int
4810main ()
4811{
4812vector<int> t; return 0;
4813  ;
4814  return 0;
4815}
4816_ACEOF
4817rm -f conftest.$ac_objext
4818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819  (eval $ac_compile) 2>&5
4820  ac_status=$?
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } &&
4823         { ac_try='test -s conftest.$ac_objext'
4824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825  (eval $ac_try) 2>&5
4826  ac_status=$?
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); }; }; then
4829  ac_cv_cxx_stl_namespace=none
4830else
4831  echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834fi
4835rm -f conftest.$ac_objext conftest.$ac_ext
4836      cat >conftest.$ac_ext <<_ACEOF
4837#line $LINENO "configure"
4838/* confdefs.h.  */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4842/* end confdefs.h.  */
4843#include <vector>
4844int
4845main ()
4846{
4847std::vector<int> t; return 0;
4848  ;
4849  return 0;
4850}
4851_ACEOF
4852rm -f conftest.$ac_objext
4853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854  (eval $ac_compile) 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); } &&
4858         { ac_try='test -s conftest.$ac_objext'
4859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860  (eval $ac_try) 2>&5
4861  ac_status=$?
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); }; }; then
4864  ac_cv_cxx_stl_namespace=std
4865else
4866  echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869fi
4870rm -f conftest.$ac_objext conftest.$ac_ext
4871      ac_ext=c
4872ac_cpp='$CPP $CPPFLAGS'
4873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877fi
4878echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
4879echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6
4880   if test "$ac_cv_cxx_stl_namespace" = none; then
4881
4882cat >>confdefs.h <<\_ACEOF
4883#define STL_NAMESPACE
4884_ACEOF
4885
4886   fi
4887   if test "$ac_cv_cxx_stl_namespace" = std; then
4888
4889cat >>confdefs.h <<\_ACEOF
4890#define STL_NAMESPACE std
4891_ACEOF
4892
4893   fi
4894
4895google_namespace_default=google
4896   # Check whether --enable-namespace or --disable-namespace was given.
4897if test "${enable_namespace+set}" = set; then
4898  enableval="$enable_namespace"
4899  case "$enableval" in
4900                    yes) google_namespace="$google_namespace_default" ;;
4901                     no) google_namespace="" ;;
4902                      *) google_namespace="$enableval" ;;
4903                  esac
4904else
4905  google_namespace="$google_namespace_default"
4906fi;
4907   if test -n "$google_namespace"; then
4908
4909cat >>confdefs.h <<_ACEOF
4910#define GOOGLE_NAMESPACE $google_namespace
4911_ACEOF
4912
4913
4914cat >>confdefs.h <<\_ACEOF
4915#define _START_GOOGLE_NAMESPACE_  namespace GOOGLE_NAMESPACE {
4916_ACEOF
4917
4918
4919cat >>confdefs.h <<\_ACEOF
4920#define _END_GOOGLE_NAMESPACE_  }
4921_ACEOF
4922
4923   else
4924
4925cat >>confdefs.h <<\_ACEOF
4926#define GOOGLE_NAMESPACE
4927_ACEOF
4928
4929
4930cat >>confdefs.h <<\_ACEOF
4931#define _START_GOOGLE_NAMESPACE_
4932_ACEOF
4933
4934
4935cat >>confdefs.h <<\_ACEOF
4936#define _END_GOOGLE_NAMESPACE_
4937_ACEOF
4938
4939   fi
4940
4941
4942# Check what STL features are defined
4943echo "$as_me:$LINENO: checking whether STL supports iterator-tags" >&5
4944echo $ECHO_N "checking whether STL supports iterator-tags... $ECHO_C" >&6
4945if test "${ac_cv_cxx_stl_iterator_tags+set}" = set; then
4946  echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948
4949
4950
4951       ac_ext=cc
4952ac_cpp='$CXXCPP $CPPFLAGS'
4953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4956
4957       cat >conftest.$ac_ext <<_ACEOF
4958#line $LINENO "configure"
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <list>
4965int
4966main ()
4967{
4968list<int>::iterator::iterator_category c; return 0;
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973rm -f conftest.$ac_objext
4974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975  (eval $ac_compile) 2>&5
4976  ac_status=$?
4977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978  (exit $ac_status); } &&
4979         { ac_try='test -s conftest.$ac_objext'
4980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981  (eval $ac_try) 2>&5
4982  ac_status=$?
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); }; }; then
4985  ac_cv_cxx_stl_iterator_tags=yes
4986else
4987  echo "$as_me: failed program was:" >&5
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
4990fi
4991rm -f conftest.$ac_objext conftest.$ac_ext
4992       cat >conftest.$ac_ext <<_ACEOF
4993#line $LINENO "configure"
4994/* confdefs.h.  */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h.  */
4999#include <list>
5000int
5001main ()
5002{
5003std::list<int>::iterator::iterator_category c; return 0;
5004  ;
5005  return 0;
5006}
5007_ACEOF
5008rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010  (eval $ac_compile) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); } &&
5014         { ac_try='test -s conftest.$ac_objext'
5015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016  (eval $ac_try) 2>&5
5017  ac_status=$?
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; }; then
5020  ac_cv_cxx_stl_iterator_tags=yes
5021else
5022  echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025fi
5026rm -f conftest.$ac_objext conftest.$ac_ext
5027       ac_ext=c
5028ac_cpp='$CPP $CPPFLAGS'
5029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032
5033fi
5034echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_iterator_tags" >&5
5035echo "${ECHO_T}$ac_cv_cxx_stl_iterator_tags" >&6
5036   if test "$ac_cv_cxx_stl_iterator_tags" = yes; then
5037
5038cat >>confdefs.h <<\_ACEOF
5039#define UNDERSTANDS_ITERATOR_TAGS 1
5040_ACEOF
5041
5042   fi
5043
5044
5045# TODO(csilvers): turn on again once we decide whether we want to enforce
5046#                 DECLARE_POD with the hash types
5047#AC_CXX_STL_TYPE_TRAITS
5048
5049# Write generated configuration file
5050          ac_config_files="$ac_config_files Makefile"
5051
5052cat >confcache <<\_ACEOF
5053# This file is a shell script that caches the results of configure
5054# tests run on this system so they can be shared between configure
5055# scripts and configure runs, see configure's option --config-cache.
5056# It is not useful on other systems.  If it contains results you don't
5057# want to keep, you may remove or edit it.
5058#
5059# config.status only pays attention to the cache file if you give it
5060# the --recheck option to rerun configure.
5061#
5062# `ac_cv_env_foo' variables (set or unset) will be overridden when
5063# loading this file, other *unset* `ac_cv_foo' will be assigned the
5064# following values.
5065
5066_ACEOF
5067
5068# The following way of writing the cache mishandles newlines in values,
5069# but we know of no workaround that is simple, portable, and efficient.
5070# So, don't put newlines in cache variables' values.
5071# Ultrix sh set writes to stderr and can't be redirected directly,
5072# and sets the high bit in the cache file unless we assign to the vars.
5073{
5074  (set) 2>&1 |
5075    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5076    *ac_space=\ *)
5077      # `set' does not quote correctly, so add quotes (double-quote
5078      # substitution turns \\\\ into \\, and sed turns \\ into \).
5079      sed -n \
5080        "s/'/'\\\\''/g;
5081          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5082      ;;
5083    *)
5084      # `set' quotes correctly as required by POSIX, so do not add quotes.
5085      sed -n \
5086        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5087      ;;
5088    esac;
5089} |
5090  sed '
5091     t clear
5092     : clear
5093     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5094     t end
5095     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5096     : end' >>confcache
5097if diff $cache_file confcache >/dev/null 2>&1; then :; else
5098  if test -w $cache_file; then
5099    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5100    cat confcache >$cache_file
5101  else
5102    echo "not updating unwritable cache $cache_file"
5103  fi
5104fi
5105rm -f confcache
5106
5107test "x$prefix" = xNONE && prefix=$ac_default_prefix
5108# Let make expand exec_prefix.
5109test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5110
5111# VPATH may cause trouble with some makes, so we remove $(srcdir),
5112# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5113# trailing colons and then remove the whole line if VPATH becomes empty
5114# (actually we leave an empty line to preserve line numbers).
5115if test "x$srcdir" = x.; then
5116  ac_vpsub='/^[         ]*VPATH[        ]*=/{
5117s/:*\$(srcdir):*/:/;
5118s/:*\${srcdir}:*/:/;
5119s/:*@srcdir@:*/:/;
5120s/^\([^=]*=[    ]*\):*/\1/;
5121s/:*$//;
5122s/^[^=]*=[      ]*$//;
5123}'
5124fi
5125
5126DEFS=-DHAVE_CONFIG_H
5127
5128ac_libobjs=
5129ac_ltlibobjs=
5130for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5131  # 1. Remove the extension, and $U if already installed.
5132  ac_i=`echo "$ac_i" |
5133         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5134  # 2. Add them.
5135  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5136  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5137done
5138LIBOBJS=$ac_libobjs
5139
5140LTLIBOBJS=$ac_ltlibobjs
5141
5142
5143if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5144  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5145Usually this means the macro was only invoked conditionally." >&5
5146echo "$as_me: error: conditional \"AMDEP\" was never defined.
5147Usually this means the macro was only invoked conditionally." >&2;}
5148   { (exit 1); exit 1; }; }
5149fi
5150
5151: ${CONFIG_STATUS=./config.status}
5152ac_clean_files_save=$ac_clean_files
5153ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5154{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5155echo "$as_me: creating $CONFIG_STATUS" >&6;}
5156cat >$CONFIG_STATUS <<_ACEOF
5157#! $SHELL
5158# Generated by $as_me.
5159# Run this file to recreate the current configuration.
5160# Compiler output produced by configure, useful for debugging
5161# configure, is in config.log if it exists.
5162
5163debug=false
5164ac_cs_recheck=false
5165ac_cs_silent=false
5166SHELL=\${CONFIG_SHELL-$SHELL}
5167_ACEOF
5168
5169cat >>$CONFIG_STATUS <<\_ACEOF
5170## --------------------- ##
5171## M4sh Initialization.  ##
5172## --------------------- ##
5173
5174# Be Bourne compatible
5175if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5176  emulate sh
5177  NULLCMD=:
5178  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5179  # is contrary to our usage.  Disable this feature.
5180  alias -g '${1+"$@"}'='"$@"'
5181elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5182  set -o posix
5183fi
5184
5185# Support unset when possible.
5186if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5187  as_unset=unset
5188else
5189  as_unset=false
5190fi
5191
5192
5193# Work around bugs in pre-3.0 UWIN ksh.
5194$as_unset ENV MAIL MAILPATH
5195PS1='$ '
5196PS2='> '
5197PS4='+ '
5198
5199# NLS nuisances.
5200for as_var in \
5201  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5202  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5203  LC_TELEPHONE LC_TIME
5204do
5205  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5206    eval $as_var=C; export $as_var
5207  else
5208    $as_unset $as_var
5209  fi
5210done
5211
5212# Required to use basename.
5213if expr a : '\(a\)' >/dev/null 2>&1; then
5214  as_expr=expr
5215else
5216  as_expr=false
5217fi
5218
5219if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5220  as_basename=basename
5221else
5222  as_basename=false
5223fi
5224
5225
5226# Name of the executable.
5227as_me=`$as_basename "$0" ||
5228$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5229         X"$0" : 'X\(//\)$' \| \
5230         X"$0" : 'X\(/\)$' \| \
5231         .     : '\(.\)' 2>/dev/null ||
5232echo X/"$0" |
5233    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5234          /^X\/\(\/\/\)$/{ s//\1/; q; }
5235          /^X\/\(\/\).*/{ s//\1/; q; }
5236          s/.*/./; q'`
5237
5238
5239# PATH needs CR, and LINENO needs CR and PATH.
5240# Avoid depending upon Character Ranges.
5241as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5242as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5243as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5244as_cr_digits='0123456789'
5245as_cr_alnum=$as_cr_Letters$as_cr_digits
5246
5247# The user is always right.
5248if test "${PATH_SEPARATOR+set}" != set; then
5249  echo "#! /bin/sh" >conf$$.sh
5250  echo  "exit 0"   >>conf$$.sh
5251  chmod +x conf$$.sh
5252  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5253    PATH_SEPARATOR=';'
5254  else
5255    PATH_SEPARATOR=:
5256  fi
5257  rm -f conf$$.sh
5258fi
5259
5260
5261  as_lineno_1=$LINENO
5262  as_lineno_2=$LINENO
5263  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5264  test "x$as_lineno_1" != "x$as_lineno_2" &&
5265  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5266  # Find who we are.  Look in the path if we contain no path at all
5267  # relative or not.
5268  case $0 in
5269    *[\\/]* ) as_myself=$0 ;;
5270    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273  IFS=$as_save_IFS
5274  test -z "$as_dir" && as_dir=.
5275  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5276done
5277
5278       ;;
5279  esac
5280  # We did not find ourselves, most probably we were run as `sh COMMAND'
5281  # in which case we are not to be found in the path.
5282  if test "x$as_myself" = x; then
5283    as_myself=$0
5284  fi
5285  if test ! -f "$as_myself"; then
5286    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5287echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5288   { (exit 1); exit 1; }; }
5289  fi
5290  case $CONFIG_SHELL in
5291  '')
5292    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5294do
5295  IFS=$as_save_IFS
5296  test -z "$as_dir" && as_dir=.
5297  for as_base in sh bash ksh sh5; do
5298         case $as_dir in
5299         /*)
5300           if ("$as_dir/$as_base" -c '
5301  as_lineno_1=$LINENO
5302  as_lineno_2=$LINENO
5303  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5304  test "x$as_lineno_1" != "x$as_lineno_2" &&
5305  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5306             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5307             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5308             CONFIG_SHELL=$as_dir/$as_base
5309             export CONFIG_SHELL
5310             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5311           fi;;
5312         esac
5313       done
5314done
5315;;
5316  esac
5317
5318  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5319  # uniformly replaced by the line number.  The first 'sed' inserts a
5320  # line-number line before each line; the second 'sed' does the real
5321  # work.  The second script uses 'N' to pair each line-number line
5322  # with the numbered line, and appends trailing '-' during
5323  # substitution so that $LINENO is not a special case at line end.
5324  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5325  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5326  sed '=' <$as_myself |
5327    sed '
5328      N
5329      s,$,-,
5330      : loop
5331      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5332      t loop
5333      s,-$,,
5334      s,^['$as_cr_digits']*\n,,
5335    ' >$as_me.lineno &&
5336  chmod +x $as_me.lineno ||
5337    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5338echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5339   { (exit 1); exit 1; }; }
5340
5341  # Don't try to exec as it changes $[0], causing all sort of problems
5342  # (the dirname of $[0] is not the place where we might find the
5343  # original and so on.  Autoconf is especially sensible to this).
5344  . ./$as_me.lineno
5345  # Exit status is that of the last command.
5346  exit
5347}
5348
5349
5350case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5351  *c*,-n*) ECHO_N= ECHO_C='
5352' ECHO_T='      ' ;;
5353  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5354  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5355esac
5356
5357if expr a : '\(a\)' >/dev/null 2>&1; then
5358  as_expr=expr
5359else
5360  as_expr=false
5361fi
5362
5363rm -f conf$$ conf$$.exe conf$$.file
5364echo >conf$$.file
5365if ln -s conf$$.file conf$$ 2>/dev/null; then
5366  # We could just check for DJGPP; but this test a) works b) is more generic
5367  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5368  if test -f conf$$.exe; then
5369    # Don't use ln at all; we don't have any links
5370    as_ln_s='cp -p'
5371  else
5372    as_ln_s='ln -s'
5373  fi
5374elif ln conf$$.file conf$$ 2>/dev/null; then
5375  as_ln_s=ln
5376else
5377  as_ln_s='cp -p'
5378fi
5379rm -f conf$$ conf$$.exe conf$$.file
5380
5381if mkdir -p . 2>/dev/null; then
5382  as_mkdir_p=:
5383else
5384  as_mkdir_p=false
5385fi
5386
5387as_executable_p="test -f"
5388
5389# Sed expression to map a string onto a valid CPP name.
5390as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5391
5392# Sed expression to map a string onto a valid variable name.
5393as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5394
5395
5396# IFS
5397# We need space, tab and new line, in precisely that order.
5398as_nl='
5399'
5400IFS="   $as_nl"
5401
5402# CDPATH.
5403$as_unset CDPATH
5404
5405exec 6>&1
5406
5407# Open the log real soon, to keep \$[0] and so on meaningful, and to
5408# report actual input values of CONFIG_FILES etc. instead of their
5409# values after options handling.  Logging --version etc. is OK.
5410exec 5>>config.log
5411{
5412  echo
5413  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5414## Running $as_me. ##
5415_ASBOX
5416} >&5
5417cat >&5 <<_CSEOF
5418
5419This file was extended by sparsehash $as_me 0.3, which was
5420generated by GNU Autoconf 2.57.  Invocation command line was
5421
5422  CONFIG_FILES    = $CONFIG_FILES
5423  CONFIG_HEADERS  = $CONFIG_HEADERS
5424  CONFIG_LINKS    = $CONFIG_LINKS
5425  CONFIG_COMMANDS = $CONFIG_COMMANDS
5426  $ $0 $@
5427
5428_CSEOF
5429echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5430echo >&5
5431_ACEOF
5432
5433# Files that config.status was made for.
5434if test -n "$ac_config_files"; then
5435  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5436fi
5437
5438if test -n "$ac_config_headers"; then
5439  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5440fi
5441
5442if test -n "$ac_config_links"; then
5443  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5444fi
5445
5446if test -n "$ac_config_commands"; then
5447  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5448fi
5449
5450cat >>$CONFIG_STATUS <<\_ACEOF
5451
5452ac_cs_usage="\
5453\`$as_me' instantiates files from templates according to the
5454current configuration.
5455
5456Usage: $0 [OPTIONS] [FILE]...
5457
5458  -h, --help       print this help, then exit
5459  -V, --version    print version number, then exit
5460  -q, --quiet      do not print progress messages
5461  -d, --debug      don't remove temporary files
5462      --recheck    update $as_me by reconfiguring in the same conditions
5463  --file=FILE[:TEMPLATE]
5464                   instantiate the configuration file FILE
5465  --header=FILE[:TEMPLATE]
5466                   instantiate the configuration header FILE
5467
5468Configuration files:
5469$config_files
5470
5471Configuration headers:
5472$config_headers
5473
5474Configuration commands:
5475$config_commands
5476
5477Report bugs to <bug-autoconf@gnu.org>."
5478_ACEOF
5479
5480cat >>$CONFIG_STATUS <<_ACEOF
5481ac_cs_version="\\
5482sparsehash config.status 0.3
5483configured by $0, generated by GNU Autoconf 2.57,
5484  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5485
5486Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5487Free Software Foundation, Inc.
5488This config.status script is free software; the Free Software Foundation
5489gives unlimited permission to copy, distribute and modify it."
5490srcdir=$srcdir
5491INSTALL="$INSTALL"
5492_ACEOF
5493
5494cat >>$CONFIG_STATUS <<\_ACEOF
5495# If no file are specified by the user, then we need to provide default
5496# value.  By we need to know if files were specified by the user.
5497ac_need_defaults=:
5498while test $# != 0
5499do
5500  case $1 in
5501  --*=*)
5502    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5503    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5504    ac_shift=:
5505    ;;
5506  -*)
5507    ac_option=$1
5508    ac_optarg=$2
5509    ac_shift=shift
5510    ;;
5511  *) # This is not an option, so the user has probably given explicit
5512     # arguments.
5513     ac_option=$1
5514     ac_need_defaults=false;;
5515  esac
5516
5517  case $ac_option in
5518  # Handling of the options.
5519_ACEOF
5520cat >>$CONFIG_STATUS <<\_ACEOF
5521  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5522    ac_cs_recheck=: ;;
5523  --version | --vers* | -V )
5524    echo "$ac_cs_version"; exit 0 ;;
5525  --he | --h)
5526    # Conflict between --help and --header
5527    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5528Try \`$0 --help' for more information." >&5
5529echo "$as_me: error: ambiguous option: $1
5530Try \`$0 --help' for more information." >&2;}
5531   { (exit 1); exit 1; }; };;
5532  --help | --hel | -h )
5533    echo "$ac_cs_usage"; exit 0 ;;
5534  --debug | --d* | -d )
5535    debug=: ;;
5536  --file | --fil | --fi | --f )
5537    $ac_shift
5538    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5539    ac_need_defaults=false;;
5540  --header | --heade | --head | --hea )
5541    $ac_shift
5542    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5543    ac_need_defaults=false;;
5544  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5545  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5546    ac_cs_silent=: ;;
5547
5548  # This is an error.
5549  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5550Try \`$0 --help' for more information." >&5
5551echo "$as_me: error: unrecognized option: $1
5552Try \`$0 --help' for more information." >&2;}
5553   { (exit 1); exit 1; }; } ;;
5554
5555  *) ac_config_targets="$ac_config_targets $1" ;;
5556
5557  esac
5558  shift
5559done
5560
5561ac_configure_extra_args=
5562
5563if $ac_cs_silent; then
5564  exec 6>/dev/null
5565  ac_configure_extra_args="$ac_configure_extra_args --silent"
5566fi
5567
5568_ACEOF
5569cat >>$CONFIG_STATUS <<_ACEOF
5570if \$ac_cs_recheck; then
5571  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5572  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5573fi
5574
5575_ACEOF
5576
5577cat >>$CONFIG_STATUS <<_ACEOF
5578#
5579# INIT-COMMANDS section.
5580#
5581
5582AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5583
5584_ACEOF
5585
5586
5587
5588cat >>$CONFIG_STATUS <<\_ACEOF
5589for ac_config_target in $ac_config_targets
5590do
5591  case "$ac_config_target" in
5592  # Handling of arguments.
5593  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5594  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5595  "src/google/sparsehash/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/google/sparsehash/config.h" ;;
5596  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5597echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5598   { (exit 1); exit 1; }; };;
5599  esac
5600done
5601
5602# If the user did not use the arguments to specify the items to instantiate,
5603# then the envvar interface is used.  Set only those that are not.
5604# We use the long form for the default assignment because of an extremely
5605# bizarre bug on SunOS 4.1.3.
5606if $ac_need_defaults; then
5607  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5608  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5609  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5610fi
5611
5612# Have a temporary directory for convenience.  Make it in the build tree
5613# simply because there is no reason to put it here, and in addition,
5614# creating and moving files from /tmp can sometimes cause problems.
5615# Create a temporary directory, and hook for its removal unless debugging.
5616$debug ||
5617{
5618  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5619  trap '{ (exit 1); exit 1; }' 1 2 13 15
5620}
5621
5622# Create a (secure) tmp directory for tmp files.
5623
5624{
5625  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5626  test -n "$tmp" && test -d "$tmp"
5627}  ||
5628{
5629  tmp=./confstat$$-$RANDOM
5630  (umask 077 && mkdir $tmp)
5631} ||
5632{
5633   echo "$me: cannot create a temporary directory in ." >&2
5634   { (exit 1); exit 1; }
5635}
5636
5637_ACEOF
5638
5639cat >>$CONFIG_STATUS <<_ACEOF
5640
5641#
5642# CONFIG_FILES section.
5643#
5644
5645# No need to generate the scripts if there are no CONFIG_FILES.
5646# This happens for instance when ./config.status config.h
5647if test -n "\$CONFIG_FILES"; then
5648  # Protect against being on the right side of a sed subst in config.status.
5649  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5650   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5651s,@SHELL@,$SHELL,;t t
5652s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5653s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5654s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5655s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5656s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5657s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5658s,@exec_prefix@,$exec_prefix,;t t
5659s,@prefix@,$prefix,;t t
5660s,@program_transform_name@,$program_transform_name,;t t
5661s,@bindir@,$bindir,;t t
5662s,@sbindir@,$sbindir,;t t
5663s,@libexecdir@,$libexecdir,;t t
5664s,@datadir@,$datadir,;t t
5665s,@sysconfdir@,$sysconfdir,;t t
5666s,@sharedstatedir@,$sharedstatedir,;t t
5667s,@localstatedir@,$localstatedir,;t t
5668s,@libdir@,$libdir,;t t
5669s,@includedir@,$includedir,;t t
5670s,@oldincludedir@,$oldincludedir,;t t
5671s,@infodir@,$infodir,;t t
5672s,@mandir@,$mandir,;t t
5673s,@build_alias@,$build_alias,;t t
5674s,@host_alias@,$host_alias,;t t
5675s,@target_alias@,$target_alias,;t t
5676s,@DEFS@,$DEFS,;t t
5677s,@ECHO_C@,$ECHO_C,;t t
5678s,@ECHO_N@,$ECHO_N,;t t
5679s,@ECHO_T@,$ECHO_T,;t t
5680s,@LIBS@,$LIBS,;t t
5681s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5682s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5683s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5684s,@PACKAGE@,$PACKAGE,;t t
5685s,@VERSION@,$VERSION,;t t
5686s,@ACLOCAL@,$ACLOCAL,;t t
5687s,@AUTOCONF@,$AUTOCONF,;t t
5688s,@AUTOMAKE@,$AUTOMAKE,;t t
5689s,@AUTOHEADER@,$AUTOHEADER,;t t
5690s,@MAKEINFO@,$MAKEINFO,;t t
5691s,@AMTAR@,$AMTAR,;t t
5692s,@install_sh@,$install_sh,;t t
5693s,@STRIP@,$STRIP,;t t
5694s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5695s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5696s,@AWK@,$AWK,;t t
5697s,@SET_MAKE@,$SET_MAKE,;t t
5698s,@CC@,$CC,;t t
5699s,@CFLAGS@,$CFLAGS,;t t
5700s,@LDFLAGS@,$LDFLAGS,;t t
5701s,@CPPFLAGS@,$CPPFLAGS,;t t
5702s,@ac_ct_CC@,$ac_ct_CC,;t t
5703s,@EXEEXT@,$EXEEXT,;t t
5704s,@OBJEXT@,$OBJEXT,;t t
5705s,@DEPDIR@,$DEPDIR,;t t
5706s,@am__include@,$am__include,;t t
5707s,@am__quote@,$am__quote,;t t
5708s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5709s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5710s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5711s,@CCDEPMODE@,$CCDEPMODE,;t t
5712s,@CPP@,$CPP,;t t
5713s,@CXX@,$CXX,;t t
5714s,@CXXFLAGS@,$CXXFLAGS,;t t
5715s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5716s,@CXXDEPMODE@,$CXXDEPMODE,;t t
5717s,@EGREP@,$EGREP,;t t
5718s,@CXXCPP@,$CXXCPP,;t t
5719s,@LIBOBJS@,$LIBOBJS,;t t
5720s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5721CEOF
5722
5723_ACEOF
5724
5725  cat >>$CONFIG_STATUS <<\_ACEOF
5726  # Split the substitutions into bite-sized pieces for seds with
5727  # small command number limits, like on Digital OSF/1 and HP-UX.
5728  ac_max_sed_lines=48
5729  ac_sed_frag=1 # Number of current file.
5730  ac_beg=1 # First line for current file.
5731  ac_end=$ac_max_sed_lines # Line after last line for current file.
5732  ac_more_lines=:
5733  ac_sed_cmds=
5734  while $ac_more_lines; do
5735    if test $ac_beg -gt 1; then
5736      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5737    else
5738      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5739    fi
5740    if test ! -s $tmp/subs.frag; then
5741      ac_more_lines=false
5742    else
5743      # The purpose of the label and of the branching condition is to
5744      # speed up the sed processing (if there are no `@' at all, there
5745      # is no need to browse any of the substitutions).
5746      # These are the two extra sed commands mentioned above.
5747      (echo ':t
5748  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5749      if test -z "$ac_sed_cmds"; then
5750        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5751      else
5752        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5753      fi
5754      ac_sed_frag=`expr $ac_sed_frag + 1`
5755      ac_beg=$ac_end
5756      ac_end=`expr $ac_end + $ac_max_sed_lines`
5757    fi
5758  done
5759  if test -z "$ac_sed_cmds"; then
5760    ac_sed_cmds=cat
5761  fi
5762fi # test -n "$CONFIG_FILES"
5763
5764_ACEOF
5765cat >>$CONFIG_STATUS <<\_ACEOF
5766for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5767  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5768  case $ac_file in
5769  - | *:- | *:-:* ) # input from stdin
5770        cat >$tmp/stdin
5771        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5772        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5773  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5774        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5775  * )   ac_file_in=$ac_file.in ;;
5776  esac
5777
5778  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5779  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5780$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5781         X"$ac_file" : 'X\(//\)[^/]' \| \
5782         X"$ac_file" : 'X\(//\)$' \| \
5783         X"$ac_file" : 'X\(/\)' \| \
5784         .     : '\(.\)' 2>/dev/null ||
5785echo X"$ac_file" |
5786    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5787          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5788          /^X\(\/\/\)$/{ s//\1/; q; }
5789          /^X\(\/\).*/{ s//\1/; q; }
5790          s/.*/./; q'`
5791  { if $as_mkdir_p; then
5792    mkdir -p "$ac_dir"
5793  else
5794    as_dir="$ac_dir"
5795    as_dirs=
5796    while test ! -d "$as_dir"; do
5797      as_dirs="$as_dir $as_dirs"
5798      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5799$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5800         X"$as_dir" : 'X\(//\)[^/]' \| \
5801         X"$as_dir" : 'X\(//\)$' \| \
5802         X"$as_dir" : 'X\(/\)' \| \
5803         .     : '\(.\)' 2>/dev/null ||
5804echo X"$as_dir" |
5805    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5806          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5807          /^X\(\/\/\)$/{ s//\1/; q; }
5808          /^X\(\/\).*/{ s//\1/; q; }
5809          s/.*/./; q'`
5810    done
5811    test ! -n "$as_dirs" || mkdir $as_dirs
5812  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5813echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5814   { (exit 1); exit 1; }; }; }
5815
5816  ac_builddir=.
5817
5818if test "$ac_dir" != .; then
5819  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5820  # A "../" for each directory in $ac_dir_suffix.
5821  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5822else
5823  ac_dir_suffix= ac_top_builddir=
5824fi
5825
5826case $srcdir in
5827  .)  # No --srcdir option.  We are building in place.
5828    ac_srcdir=.
5829    if test -z "$ac_top_builddir"; then
5830       ac_top_srcdir=.
5831    else
5832       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5833    fi ;;
5834  [\\/]* | ?:[\\/]* )  # Absolute path.
5835    ac_srcdir=$srcdir$ac_dir_suffix;
5836    ac_top_srcdir=$srcdir ;;
5837  *) # Relative path.
5838    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5839    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5840esac
5841# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5842# absolute.
5843ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5844ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5845ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5846ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5847
5848
5849  case $INSTALL in
5850  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5851  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5852  esac
5853
5854  if test x"$ac_file" != x-; then
5855    { echo "$as_me:$LINENO: creating $ac_file" >&5
5856echo "$as_me: creating $ac_file" >&6;}
5857    rm -f "$ac_file"
5858  fi
5859  # Let's still pretend it is `configure' which instantiates (i.e., don't
5860  # use $as_me), people would be surprised to read:
5861  #    /* config.h.  Generated by config.status.  */
5862  if test x"$ac_file" = x-; then
5863    configure_input=
5864  else
5865    configure_input="$ac_file.  "
5866  fi
5867  configure_input=$configure_input"Generated from `echo $ac_file_in |
5868                                     sed 's,.*/,,'` by configure."
5869
5870  # First look for the input files in the build tree, otherwise in the
5871  # src tree.
5872  ac_file_inputs=`IFS=:
5873    for f in $ac_file_in; do
5874      case $f in
5875      -) echo $tmp/stdin ;;
5876      [\\/$]*)
5877         # Absolute (can't be DOS-style, as IFS=:)
5878         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5879echo "$as_me: error: cannot find input file: $f" >&2;}
5880   { (exit 1); exit 1; }; }
5881         echo $f;;
5882      *) # Relative
5883         if test -f "$f"; then
5884           # Build tree
5885           echo $f
5886         elif test -f "$srcdir/$f"; then
5887           # Source tree
5888           echo $srcdir/$f
5889         else
5890           # /dev/null tree
5891           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5892echo "$as_me: error: cannot find input file: $f" >&2;}
5893   { (exit 1); exit 1; }; }
5894         fi;;
5895      esac
5896    done` || { (exit 1); exit 1; }
5897_ACEOF
5898cat >>$CONFIG_STATUS <<_ACEOF
5899  sed "$ac_vpsub
5900$extrasub
5901_ACEOF
5902cat >>$CONFIG_STATUS <<\_ACEOF
5903:t
5904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5905s,@configure_input@,$configure_input,;t t
5906s,@srcdir@,$ac_srcdir,;t t
5907s,@abs_srcdir@,$ac_abs_srcdir,;t t
5908s,@top_srcdir@,$ac_top_srcdir,;t t
5909s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5910s,@builddir@,$ac_builddir,;t t
5911s,@abs_builddir@,$ac_abs_builddir,;t t
5912s,@top_builddir@,$ac_top_builddir,;t t
5913s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5914s,@INSTALL@,$ac_INSTALL,;t t
5915" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5916  rm -f $tmp/stdin
5917  if test x"$ac_file" != x-; then
5918    mv $tmp/out $ac_file
5919  else
5920    cat $tmp/out
5921    rm -f $tmp/out
5922  fi
5923
5924done
5925_ACEOF
5926cat >>$CONFIG_STATUS <<\_ACEOF
5927
5928#
5929# CONFIG_HEADER section.
5930#
5931
5932# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5933# NAME is the cpp macro being defined and VALUE is the value it is being given.
5934#
5935# ac_d sets the value in "#define NAME VALUE" lines.
5936ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5937ac_dB='[        ].*$,\1#\2'
5938ac_dC=' '
5939ac_dD=',;t'
5940# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5941ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5942ac_uB='$,\1#\2define\3'
5943ac_uC=' '
5944ac_uD=',;t'
5945
5946for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5947  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5948  case $ac_file in
5949  - | *:- | *:-:* ) # input from stdin
5950        cat >$tmp/stdin
5951        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5952        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5953  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5954        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5955  * )   ac_file_in=$ac_file.in ;;
5956  esac
5957
5958  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5959echo "$as_me: creating $ac_file" >&6;}
5960
5961  # First look for the input files in the build tree, otherwise in the
5962  # src tree.
5963  ac_file_inputs=`IFS=:
5964    for f in $ac_file_in; do
5965      case $f in
5966      -) echo $tmp/stdin ;;
5967      [\\/$]*)
5968         # Absolute (can't be DOS-style, as IFS=:)
5969         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5970echo "$as_me: error: cannot find input file: $f" >&2;}
5971   { (exit 1); exit 1; }; }
5972         echo $f;;
5973      *) # Relative
5974         if test -f "$f"; then
5975           # Build tree
5976           echo $f
5977         elif test -f "$srcdir/$f"; then
5978           # Source tree
5979           echo $srcdir/$f
5980         else
5981           # /dev/null tree
5982           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5983echo "$as_me: error: cannot find input file: $f" >&2;}
5984   { (exit 1); exit 1; }; }
5985         fi;;
5986      esac
5987    done` || { (exit 1); exit 1; }
5988  # Remove the trailing spaces.
5989  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5990
5991_ACEOF
5992
5993# Transform confdefs.h into two sed scripts, `conftest.defines' and
5994# `conftest.undefs', that substitutes the proper values into
5995# config.h.in to produce config.h.  The first handles `#define'
5996# templates, and the second `#undef' templates.
5997# And first: Protect against being on the right side of a sed subst in
5998# config.status.  Protect against being in an unquoted here document
5999# in config.status.
6000rm -f conftest.defines conftest.undefs
6001# Using a here document instead of a string reduces the quoting nightmare.
6002# Putting comments in sed scripts is not portable.
6003#
6004# `end' is used to avoid that the second main sed command (meant for
6005# 0-ary CPP macros) applies to n-ary macro definitions.
6006# See the Autoconf documentation for `clear'.
6007cat >confdef2sed.sed <<\_ACEOF
6008s/[\\&,]/\\&/g
6009s,[\\$`],\\&,g
6010t clear
6011: clear
6012s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6013t end
6014s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6015: end
6016_ACEOF
6017# If some macros were called several times there might be several times
6018# the same #defines, which is useless.  Nevertheless, we may not want to
6019# sort them, since we want the *last* AC-DEFINE to be honored.
6020uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6021sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6022rm -f confdef2sed.sed
6023
6024# This sed command replaces #undef with comments.  This is necessary, for
6025# example, in the case of _POSIX_SOURCE, which is predefined and required
6026# on some systems where configure will not decide to define it.
6027cat >>conftest.undefs <<\_ACEOF
6028s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6029_ACEOF
6030
6031# Break up conftest.defines because some shells have a limit on the size
6032# of here documents, and old seds have small limits too (100 cmds).
6033echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6034echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6035echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6036echo '  :' >>$CONFIG_STATUS
6037rm -f conftest.tail
6038while grep . conftest.defines >/dev/null
6039do
6040  # Write a limited-size here document to $tmp/defines.sed.
6041  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6042  # Speed up: don't consider the non `#define' lines.
6043  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6044  # Work around the forget-to-reset-the-flag bug.
6045  echo 't clr' >>$CONFIG_STATUS
6046  echo ': clr' >>$CONFIG_STATUS
6047  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6048  echo 'CEOF
6049  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6050  rm -f $tmp/in
6051  mv $tmp/out $tmp/in
6052' >>$CONFIG_STATUS
6053  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6054  rm -f conftest.defines
6055  mv conftest.tail conftest.defines
6056done
6057rm -f conftest.defines
6058echo '  fi # grep' >>$CONFIG_STATUS
6059echo >>$CONFIG_STATUS
6060
6061# Break up conftest.undefs because some shells have a limit on the size
6062# of here documents, and old seds have small limits too (100 cmds).
6063echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6064rm -f conftest.tail
6065while grep . conftest.undefs >/dev/null
6066do
6067  # Write a limited-size here document to $tmp/undefs.sed.
6068  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6069  # Speed up: don't consider the non `#undef'
6070  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6071  # Work around the forget-to-reset-the-flag bug.
6072  echo 't clr' >>$CONFIG_STATUS
6073  echo ': clr' >>$CONFIG_STATUS
6074  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6075  echo 'CEOF
6076  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6077  rm -f $tmp/in
6078  mv $tmp/out $tmp/in
6079' >>$CONFIG_STATUS
6080  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6081  rm -f conftest.undefs
6082  mv conftest.tail conftest.undefs
6083done
6084rm -f conftest.undefs
6085
6086cat >>$CONFIG_STATUS <<\_ACEOF
6087  # Let's still pretend it is `configure' which instantiates (i.e., don't
6088  # use $as_me), people would be surprised to read:
6089  #    /* config.h.  Generated by config.status.  */
6090  if test x"$ac_file" = x-; then
6091    echo "/* Generated by configure.  */" >$tmp/config.h
6092  else
6093    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6094  fi
6095  cat $tmp/in >>$tmp/config.h
6096  rm -f $tmp/in
6097  if test x"$ac_file" != x-; then
6098    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6099      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6100echo "$as_me: $ac_file is unchanged" >&6;}
6101    else
6102      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6104         X"$ac_file" : 'X\(//\)[^/]' \| \
6105         X"$ac_file" : 'X\(//\)$' \| \
6106         X"$ac_file" : 'X\(/\)' \| \
6107         .     : '\(.\)' 2>/dev/null ||
6108echo X"$ac_file" |
6109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6110          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6111          /^X\(\/\/\)$/{ s//\1/; q; }
6112          /^X\(\/\).*/{ s//\1/; q; }
6113          s/.*/./; q'`
6114      { if $as_mkdir_p; then
6115    mkdir -p "$ac_dir"
6116  else
6117    as_dir="$ac_dir"
6118    as_dirs=
6119    while test ! -d "$as_dir"; do
6120      as_dirs="$as_dir $as_dirs"
6121      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6123         X"$as_dir" : 'X\(//\)[^/]' \| \
6124         X"$as_dir" : 'X\(//\)$' \| \
6125         X"$as_dir" : 'X\(/\)' \| \
6126         .     : '\(.\)' 2>/dev/null ||
6127echo X"$as_dir" |
6128    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6129          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6130          /^X\(\/\/\)$/{ s//\1/; q; }
6131          /^X\(\/\).*/{ s//\1/; q; }
6132          s/.*/./; q'`
6133    done
6134    test ! -n "$as_dirs" || mkdir $as_dirs
6135  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6136echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6137   { (exit 1); exit 1; }; }; }
6138
6139      rm -f $ac_file
6140      mv $tmp/config.h $ac_file
6141    fi
6142  else
6143    cat $tmp/config.h
6144    rm -f $tmp/config.h
6145  fi
6146  # Run the commands associated with the file.
6147  case $ac_file in
6148    src/google/sparsehash/config.h ) # update the timestamp
6149echo 'timestamp for src/google/sparsehash/config.h' >"src/google/sparsehash/stamp-h1"
6150 ;;
6151  esac
6152done
6153_ACEOF
6154cat >>$CONFIG_STATUS <<\_ACEOF
6155
6156#
6157# CONFIG_COMMANDS section.
6158#
6159for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6160  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6161  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6162  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6163$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6164         X"$ac_dest" : 'X\(//\)[^/]' \| \
6165         X"$ac_dest" : 'X\(//\)$' \| \
6166         X"$ac_dest" : 'X\(/\)' \| \
6167         .     : '\(.\)' 2>/dev/null ||
6168echo X"$ac_dest" |
6169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6170          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6171          /^X\(\/\/\)$/{ s//\1/; q; }
6172          /^X\(\/\).*/{ s//\1/; q; }
6173          s/.*/./; q'`
6174  ac_builddir=.
6175
6176if test "$ac_dir" != .; then
6177  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6178  # A "../" for each directory in $ac_dir_suffix.
6179  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6180else
6181  ac_dir_suffix= ac_top_builddir=
6182fi
6183
6184case $srcdir in
6185  .)  # No --srcdir option.  We are building in place.
6186    ac_srcdir=.
6187    if test -z "$ac_top_builddir"; then
6188       ac_top_srcdir=.
6189    else
6190       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6191    fi ;;
6192  [\\/]* | ?:[\\/]* )  # Absolute path.
6193    ac_srcdir=$srcdir$ac_dir_suffix;
6194    ac_top_srcdir=$srcdir ;;
6195  *) # Relative path.
6196    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6197    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6198esac
6199# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6200# absolute.
6201ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6202ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6203ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6204ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6205
6206
6207  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6208echo "$as_me: executing $ac_dest commands" >&6;}
6209  case $ac_dest in
6210    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6211  # Strip MF so we end up with the name of the file.
6212  mf=`echo "$mf" | sed -e 's/:.*$//'`
6213  # Check whether this is an Automake generated Makefile or not.
6214  # We used to match only the files named `Makefile.in', but
6215  # some people rename them; so instead we look at the file content.
6216  # Grep'ing the first line is not enough: some people post-process
6217  # each Makefile.in and add a new line on top of each file to say so.
6218  # So let's grep whole file.
6219  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6220    dirpart=`(dirname "$mf") 2>/dev/null ||
6221$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6222         X"$mf" : 'X\(//\)[^/]' \| \
6223         X"$mf" : 'X\(//\)$' \| \
6224         X"$mf" : 'X\(/\)' \| \
6225         .     : '\(.\)' 2>/dev/null ||
6226echo X"$mf" |
6227    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6228          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6229          /^X\(\/\/\)$/{ s//\1/; q; }
6230          /^X\(\/\).*/{ s//\1/; q; }
6231          s/.*/./; q'`
6232  else
6233    continue
6234  fi
6235  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6236  # Extract the definition of DEP_FILES from the Makefile without
6237  # running `make'.
6238  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6239  test -z "$DEPDIR" && continue
6240  # When using ansi2knr, U may be empty or an underscore; expand it
6241  U=`sed -n -e '/^U = / s///p' < "$mf"`
6242  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6243  # We invoke sed twice because it is the simplest approach to
6244  # changing $(DEPDIR) to its actual value in the expansion.
6245  for file in `sed -n -e '
6246    /^DEP_FILES = .*\\\\$/ {
6247      s/^DEP_FILES = //
6248      :loop
6249        s/\\\\$//
6250        p
6251        n
6252        /\\\\$/ b loop
6253      p
6254    }
6255    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6256       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6257    # Make sure the directory exists.
6258    test -f "$dirpart/$file" && continue
6259    fdir=`(dirname "$file") 2>/dev/null ||
6260$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6261         X"$file" : 'X\(//\)[^/]' \| \
6262         X"$file" : 'X\(//\)$' \| \
6263         X"$file" : 'X\(/\)' \| \
6264         .     : '\(.\)' 2>/dev/null ||
6265echo X"$file" |
6266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6267          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6268          /^X\(\/\/\)$/{ s//\1/; q; }
6269          /^X\(\/\).*/{ s//\1/; q; }
6270          s/.*/./; q'`
6271    { if $as_mkdir_p; then
6272    mkdir -p $dirpart/$fdir
6273  else
6274    as_dir=$dirpart/$fdir
6275    as_dirs=
6276    while test ! -d "$as_dir"; do
6277      as_dirs="$as_dir $as_dirs"
6278      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6279$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6280         X"$as_dir" : 'X\(//\)[^/]' \| \
6281         X"$as_dir" : 'X\(//\)$' \| \
6282         X"$as_dir" : 'X\(/\)' \| \
6283         .     : '\(.\)' 2>/dev/null ||
6284echo X"$as_dir" |
6285    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6286          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6287          /^X\(\/\/\)$/{ s//\1/; q; }
6288          /^X\(\/\).*/{ s//\1/; q; }
6289          s/.*/./; q'`
6290    done
6291    test ! -n "$as_dirs" || mkdir $as_dirs
6292  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6293echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6294   { (exit 1); exit 1; }; }; }
6295
6296    # echo "creating $dirpart/$file"
6297    echo '# dummy' > "$dirpart/$file"
6298  done
6299done
6300 ;;
6301  esac
6302done
6303_ACEOF
6304
6305cat >>$CONFIG_STATUS <<\_ACEOF
6306
6307{ (exit 0); exit 0; }
6308_ACEOF
6309chmod +x $CONFIG_STATUS
6310ac_clean_files=$ac_clean_files_save
6311
6312
6313# configure is writing to config.log, and then calls config.status.
6314# config.status does its own redirection, appending to config.log.
6315# Unfortunately, on DOS this fails, as config.log is still kept open
6316# by configure, so config.status won't be able to write to it; its
6317# output is simply discarded.  So we exec the FD to /dev/null,
6318# effectively closing config.log, so it can be properly (re)opened and
6319# appended to by config.status.  When coming back to configure, we
6320# need to make the FD available again.
6321if test "$no_create" != yes; then
6322  ac_cs_success=:
6323  ac_config_status_args=
6324  test "$silent" = yes &&
6325    ac_config_status_args="$ac_config_status_args --quiet"
6326  exec 5>/dev/null
6327  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6328  exec 5>>config.log
6329  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6330  # would make configure fail if this is the last instruction.
6331  $ac_cs_success || { (exit 1); exit 1; }
6332fi
6333
Note: See TracBrowser for help on using the repository browser.