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