]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/tokyocabinet/configure
ebl Add tokyocabinet source to bacula
[bacula/bacula] / bacula / src / lib / tokyocabinet / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for tokyocabinet 1.2.5.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='tokyocabinet'
269 PACKAGE_TARNAME='tokyocabinet'
270 PACKAGE_VERSION='1.2.5'
271 PACKAGE_STRING='tokyocabinet 1.2.5'
272 PACKAGE_BUGREPORT=''
273
274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MYLIBVER MYLIBREV MYFORMATVER MYHEADERFILES MYLIBRARYFILES MYLIBOBJFILES MYCOMMANDFILES MYMAN1FILES MYMAN3FILES MYDOCUMENTFILES MYPCFILES MYCFLAGS MYCPPFLAGS MYLDFLAGS MYRUNPATH MYLDLIBPATHENV MYPOSTCMD LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
276
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
296
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
314
315 ac_prev=
316 for ac_option
317 do
318   # If the previous option needs an argument, assign it.
319   if test -n "$ac_prev"; then
320     eval "$ac_prev=\$ac_option"
321     ac_prev=
322     continue
323   fi
324
325   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327   # Accept the important Cygnus configure options, so we can diagnose typos.
328
329   case $ac_option in
330
331   -bindir | --bindir | --bindi | --bind | --bin | --bi)
332     ac_prev=bindir ;;
333   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334     bindir=$ac_optarg ;;
335
336   -build | --build | --buil | --bui | --bu)
337     ac_prev=build_alias ;;
338   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339     build_alias=$ac_optarg ;;
340
341   -cache-file | --cache-file | --cache-fil | --cache-fi \
342   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343     ac_prev=cache_file ;;
344   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346     cache_file=$ac_optarg ;;
347
348   --config-cache | -C)
349     cache_file=config.cache ;;
350
351   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352     ac_prev=datadir ;;
353   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354   | --da=*)
355     datadir=$ac_optarg ;;
356
357   -disable-* | --disable-*)
358     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359     # Reject names that are not valid shell variable names.
360     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362    { (exit 1); exit 1; }; }
363     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364     eval "enable_$ac_feature=no" ;;
365
366   -enable-* | --enable-*)
367     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368     # Reject names that are not valid shell variable names.
369     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371    { (exit 1); exit 1; }; }
372     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373     case $ac_option in
374       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375       *) ac_optarg=yes ;;
376     esac
377     eval "enable_$ac_feature='$ac_optarg'" ;;
378
379   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381   | --exec | --exe | --ex)
382     ac_prev=exec_prefix ;;
383   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385   | --exec=* | --exe=* | --ex=*)
386     exec_prefix=$ac_optarg ;;
387
388   -gas | --gas | --ga | --g)
389     # Obsolete; use --with-gas.
390     with_gas=yes ;;
391
392   -help | --help | --hel | --he | -h)
393     ac_init_help=long ;;
394   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395     ac_init_help=recursive ;;
396   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397     ac_init_help=short ;;
398
399   -host | --host | --hos | --ho)
400     ac_prev=host_alias ;;
401   -host=* | --host=* | --hos=* | --ho=*)
402     host_alias=$ac_optarg ;;
403
404   -includedir | --includedir | --includedi | --included | --include \
405   | --includ | --inclu | --incl | --inc)
406     ac_prev=includedir ;;
407   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408   | --includ=* | --inclu=* | --incl=* | --inc=*)
409     includedir=$ac_optarg ;;
410
411   -infodir | --infodir | --infodi | --infod | --info | --inf)
412     ac_prev=infodir ;;
413   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414     infodir=$ac_optarg ;;
415
416   -libdir | --libdir | --libdi | --libd)
417     ac_prev=libdir ;;
418   -libdir=* | --libdir=* | --libdi=* | --libd=*)
419     libdir=$ac_optarg ;;
420
421   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422   | --libexe | --libex | --libe)
423     ac_prev=libexecdir ;;
424   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425   | --libexe=* | --libex=* | --libe=*)
426     libexecdir=$ac_optarg ;;
427
428   -localstatedir | --localstatedir | --localstatedi | --localstated \
429   | --localstate | --localstat | --localsta | --localst \
430   | --locals | --local | --loca | --loc | --lo)
431     ac_prev=localstatedir ;;
432   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435     localstatedir=$ac_optarg ;;
436
437   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438     ac_prev=mandir ;;
439   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440     mandir=$ac_optarg ;;
441
442   -nfp | --nfp | --nf)
443     # Obsolete; use --without-fp.
444     with_fp=no ;;
445
446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447   | --no-cr | --no-c | -n)
448     no_create=yes ;;
449
450   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452     no_recursion=yes ;;
453
454   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456   | --oldin | --oldi | --old | --ol | --o)
457     ac_prev=oldincludedir ;;
458   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461     oldincludedir=$ac_optarg ;;
462
463   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464     ac_prev=prefix ;;
465   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466     prefix=$ac_optarg ;;
467
468   -program-prefix | --program-prefix | --program-prefi | --program-pref \
469   | --program-pre | --program-pr | --program-p)
470     ac_prev=program_prefix ;;
471   -program-prefix=* | --program-prefix=* | --program-prefi=* \
472   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473     program_prefix=$ac_optarg ;;
474
475   -program-suffix | --program-suffix | --program-suffi | --program-suff \
476   | --program-suf | --program-su | --program-s)
477     ac_prev=program_suffix ;;
478   -program-suffix=* | --program-suffix=* | --program-suffi=* \
479   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480     program_suffix=$ac_optarg ;;
481
482   -program-transform-name | --program-transform-name \
483   | --program-transform-nam | --program-transform-na \
484   | --program-transform-n | --program-transform- \
485   | --program-transform | --program-transfor \
486   | --program-transfo | --program-transf \
487   | --program-trans | --program-tran \
488   | --progr-tra | --program-tr | --program-t)
489     ac_prev=program_transform_name ;;
490   -program-transform-name=* | --program-transform-name=* \
491   | --program-transform-nam=* | --program-transform-na=* \
492   | --program-transform-n=* | --program-transform-=* \
493   | --program-transform=* | --program-transfor=* \
494   | --program-transfo=* | --program-transf=* \
495   | --program-trans=* | --program-tran=* \
496   | --progr-tra=* | --program-tr=* | --program-t=*)
497     program_transform_name=$ac_optarg ;;
498
499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500   | -silent | --silent | --silen | --sile | --sil)
501     silent=yes ;;
502
503   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504     ac_prev=sbindir ;;
505   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506   | --sbi=* | --sb=*)
507     sbindir=$ac_optarg ;;
508
509   -sharedstatedir | --sharedstatedir | --sharedstatedi \
510   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511   | --sharedst | --shareds | --shared | --share | --shar \
512   | --sha | --sh)
513     ac_prev=sharedstatedir ;;
514   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517   | --sha=* | --sh=*)
518     sharedstatedir=$ac_optarg ;;
519
520   -site | --site | --sit)
521     ac_prev=site ;;
522   -site=* | --site=* | --sit=*)
523     site=$ac_optarg ;;
524
525   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526     ac_prev=srcdir ;;
527   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528     srcdir=$ac_optarg ;;
529
530   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531   | --syscon | --sysco | --sysc | --sys | --sy)
532     ac_prev=sysconfdir ;;
533   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535     sysconfdir=$ac_optarg ;;
536
537   -target | --target | --targe | --targ | --tar | --ta | --t)
538     ac_prev=target_alias ;;
539   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540     target_alias=$ac_optarg ;;
541
542   -v | -verbose | --verbose | --verbos | --verbo | --verb)
543     verbose=yes ;;
544
545   -version | --version | --versio | --versi | --vers | -V)
546     ac_init_version=: ;;
547
548   -with-* | --with-*)
549     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid package name: $ac_package" >&2
553    { (exit 1); exit 1; }; }
554     ac_package=`echo $ac_package| sed 's/-/_/g'`
555     case $ac_option in
556       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "with_$ac_package='$ac_optarg'" ;;
560
561   -without-* | --without-*)
562     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid package name: $ac_package" >&2
566    { (exit 1); exit 1; }; }
567     ac_package=`echo $ac_package | sed 's/-/_/g'`
568     eval "with_$ac_package=no" ;;
569
570   --x)
571     # Obsolete; use --with-x.
572     with_x=yes ;;
573
574   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575   | --x-incl | --x-inc | --x-in | --x-i)
576     ac_prev=x_includes ;;
577   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579     x_includes=$ac_optarg ;;
580
581   -x-libraries | --x-libraries | --x-librarie | --x-librari \
582   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583     ac_prev=x_libraries ;;
584   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586     x_libraries=$ac_optarg ;;
587
588   -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590    { (exit 1); exit 1; }; }
591     ;;
592
593   *=*)
594     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595     # Reject names that are not valid shell variable names.
596     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598    { (exit 1); exit 1; }; }
599     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600     eval "$ac_envvar='$ac_optarg'"
601     export $ac_envvar ;;
602
603   *)
604     # FIXME: should be removed in autoconf 3.0.
605     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609     ;;
610
611   esac
612 done
613
614 if test -n "$ac_prev"; then
615   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616   { echo "$as_me: error: missing argument to $ac_option" >&2
617    { (exit 1); exit 1; }; }
618 fi
619
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
622 do
623   eval ac_val=$`echo $ac_var`
624   case $ac_val in
625     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627    { (exit 1); exit 1; }; };;
628   esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633               localstatedir libdir includedir oldincludedir infodir mandir
634 do
635   eval ac_val=$`echo $ac_var`
636   case $ac_val in
637     [\\/$]* | ?:[\\/]* ) ;;
638     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639    { (exit 1); exit 1; }; };;
640   esac
641 done
642
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
649
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652   if test "x$build_alias" = x; then
653     cross_compiling=maybe
654     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655     If a cross compiler is detected then cross compile mode will be used." >&2
656   elif test "x$build_alias" != "x$host_alias"; then
657     cross_compiling=yes
658   fi
659 fi
660
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664 test "$silent" = yes && exec 6>/dev/null
665
666
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669   ac_srcdir_defaulted=yes
670   # Try the directory containing this script, then its parent.
671   ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673          X"$0" : 'X\(//\)[^/]' \| \
674          X"$0" : 'X\(//\)$' \| \
675          X"$0" : 'X\(/\)' \| \
676          .     : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680           /^X\(\/\/\)$/{ s//\1/; q; }
681           /^X\(\/\).*/{ s//\1/; q; }
682           s/.*/./; q'`
683   srcdir=$ac_confdir
684   if test ! -r $srcdir/$ac_unique_file; then
685     srcdir=..
686   fi
687 else
688   ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691   if test "$ac_srcdir_defaulted" = yes; then
692     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693    { (exit 1); exit 1; }; }
694   else
695     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696    { (exit 1); exit 1; }; }
697   fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701    { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CC_set=${CC+set}
716 ac_env_CC_value=$CC
717 ac_cv_env_CC_set=${CC+set}
718 ac_cv_env_CC_value=$CC
719 ac_env_CFLAGS_set=${CFLAGS+set}
720 ac_env_CFLAGS_value=$CFLAGS
721 ac_cv_env_CFLAGS_set=${CFLAGS+set}
722 ac_cv_env_CFLAGS_value=$CFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731
732 #
733 # Report the --help message.
734 #
735 if test "$ac_init_help" = "long"; then
736   # Omit some internal or obsolete options to make the list less imposing.
737   # This message is too long to be a string in the A/UX 3.1 sh.
738   cat <<_ACEOF
739 \`configure' configures tokyocabinet 1.2.5 to adapt to many kinds of systems.
740
741 Usage: $0 [OPTION]... [VAR=VALUE]...
742
743 To assign environment variables (e.g., CC, CFLAGS...), specify them as
744 VAR=VALUE.  See below for descriptions of some of the useful variables.
745
746 Defaults for the options are specified in brackets.
747
748 Configuration:
749   -h, --help              display this help and exit
750       --help=short        display options specific to this package
751       --help=recursive    display the short help of all the included packages
752   -V, --version           display version information and exit
753   -q, --quiet, --silent   do not print \`checking...' messages
754       --cache-file=FILE   cache test results in FILE [disabled]
755   -C, --config-cache      alias for \`--cache-file=config.cache'
756   -n, --no-create         do not create output files
757       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
758
759 _ACEOF
760
761   cat <<_ACEOF
762 Installation directories:
763   --prefix=PREFIX         install architecture-independent files in PREFIX
764                           [$ac_default_prefix]
765   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
766                           [PREFIX]
767
768 By default, \`make install' will install all the files in
769 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
770 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
771 for instance \`--prefix=\$HOME'.
772
773 For better control, use the options below.
774
775 Fine tuning of the installation directories:
776   --bindir=DIR           user executables [EPREFIX/bin]
777   --sbindir=DIR          system admin executables [EPREFIX/sbin]
778   --libexecdir=DIR       program executables [EPREFIX/libexec]
779   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
780   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
781   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
782   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
783   --libdir=DIR           object code libraries [EPREFIX/lib]
784   --includedir=DIR       C header files [PREFIX/include]
785   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
786   --infodir=DIR          info documentation [PREFIX/info]
787   --mandir=DIR           man documentation [PREFIX/man]
788 _ACEOF
789
790   cat <<\_ACEOF
791 _ACEOF
792 fi
793
794 if test -n "$ac_init_help"; then
795   case $ac_init_help in
796      short | recursive ) echo "Configuration of tokyocabinet 1.2.5:";;
797    esac
798   cat <<\_ACEOF
799
800 Optional Features:
801   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
802   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
803   --enable-debug          build for debugging
804   --enable-devel          build for development
805   --enable-profile        build for profiling
806   --enable-off64          build with 64-bit file offset on 32-bit system
807   --enable-fastest        build for fastest run
808   --enable-swab           build for swapping byte-orders
809   --enable-uyield         build for detecting race conditions
810   --disable-zlib          build without ZLIB compression
811   --disable-pthread       build without POSIX thread support
812   --disable-shared        avoid to build shared libraries
813
814 Some influential environment variables:
815   CC          C compiler command
816   CFLAGS      C compiler flags
817   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
818               nonstandard directory <lib dir>
819   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
820               headers in a nonstandard directory <include dir>
821
822 Use these variables to override the choices made by `configure' or to help
823 it to find libraries and programs with nonstandard names/locations.
824
825 _ACEOF
826 fi
827
828 if test "$ac_init_help" = "recursive"; then
829   # If there are subdirs, report their specific --help.
830   ac_popdir=`pwd`
831   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
832     test -d $ac_dir || continue
833     ac_builddir=.
834
835 if test "$ac_dir" != .; then
836   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
837   # A "../" for each directory in $ac_dir_suffix.
838   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
839 else
840   ac_dir_suffix= ac_top_builddir=
841 fi
842
843 case $srcdir in
844   .)  # No --srcdir option.  We are building in place.
845     ac_srcdir=.
846     if test -z "$ac_top_builddir"; then
847        ac_top_srcdir=.
848     else
849        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
850     fi ;;
851   [\\/]* | ?:[\\/]* )  # Absolute path.
852     ac_srcdir=$srcdir$ac_dir_suffix;
853     ac_top_srcdir=$srcdir ;;
854   *) # Relative path.
855     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
856     ac_top_srcdir=$ac_top_builddir$srcdir ;;
857 esac
858
859 # Do not use `cd foo && pwd` to compute absolute paths, because
860 # the directories may not exist.
861 case `pwd` in
862 .) ac_abs_builddir="$ac_dir";;
863 *)
864   case "$ac_dir" in
865   .) ac_abs_builddir=`pwd`;;
866   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
867   *) ac_abs_builddir=`pwd`/"$ac_dir";;
868   esac;;
869 esac
870 case $ac_abs_builddir in
871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
872 *)
873   case ${ac_top_builddir}. in
874   .) ac_abs_top_builddir=$ac_abs_builddir;;
875   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
876   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
877   esac;;
878 esac
879 case $ac_abs_builddir in
880 .) ac_abs_srcdir=$ac_srcdir;;
881 *)
882   case $ac_srcdir in
883   .) ac_abs_srcdir=$ac_abs_builddir;;
884   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
885   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
886   esac;;
887 esac
888 case $ac_abs_builddir in
889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
890 *)
891   case $ac_top_srcdir in
892   .) ac_abs_top_srcdir=$ac_abs_builddir;;
893   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
894   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
895   esac;;
896 esac
897
898     cd $ac_dir
899     # Check for guested configure; otherwise get Cygnus style configure.
900     if test -f $ac_srcdir/configure.gnu; then
901       echo
902       $SHELL $ac_srcdir/configure.gnu  --help=recursive
903     elif test -f $ac_srcdir/configure; then
904       echo
905       $SHELL $ac_srcdir/configure  --help=recursive
906     elif test -f $ac_srcdir/configure.ac ||
907            test -f $ac_srcdir/configure.in; then
908       echo
909       $ac_configure --help
910     else
911       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
912     fi
913     cd $ac_popdir
914   done
915 fi
916
917 test -n "$ac_init_help" && exit 0
918 if $ac_init_version; then
919   cat <<\_ACEOF
920 tokyocabinet configure 1.2.5
921 generated by GNU Autoconf 2.59
922
923 Copyright (C) 2003 Free Software Foundation, Inc.
924 This configure script is free software; the Free Software Foundation
925 gives unlimited permission to copy, distribute and modify it.
926 _ACEOF
927   exit 0
928 fi
929 exec 5>config.log
930 cat >&5 <<_ACEOF
931 This file contains any messages produced by compilers while
932 running configure, to aid debugging if configure makes a mistake.
933
934 It was created by tokyocabinet $as_me 1.2.5, which was
935 generated by GNU Autoconf 2.59.  Invocation command line was
936
937   $ $0 $@
938
939 _ACEOF
940 {
941 cat <<_ASUNAME
942 ## --------- ##
943 ## Platform. ##
944 ## --------- ##
945
946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
951
952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
953 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
954
955 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
956 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
958 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
959 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
960 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
961 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
962
963 _ASUNAME
964
965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
966 for as_dir in $PATH
967 do
968   IFS=$as_save_IFS
969   test -z "$as_dir" && as_dir=.
970   echo "PATH: $as_dir"
971 done
972
973 } >&5
974
975 cat >&5 <<_ACEOF
976
977
978 ## ----------- ##
979 ## Core tests. ##
980 ## ----------- ##
981
982 _ACEOF
983
984
985 # Keep a trace of the command line.
986 # Strip out --no-create and --no-recursion so they do not pile up.
987 # Strip out --silent because we don't want to record it for future runs.
988 # Also quote any args containing shell meta-characters.
989 # Make two passes to allow for proper duplicate-argument suppression.
990 ac_configure_args=
991 ac_configure_args0=
992 ac_configure_args1=
993 ac_sep=
994 ac_must_keep_next=false
995 for ac_pass in 1 2
996 do
997   for ac_arg
998   do
999     case $ac_arg in
1000     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1001     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002     | -silent | --silent | --silen | --sile | --sil)
1003       continue ;;
1004     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1006     esac
1007     case $ac_pass in
1008     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1009     2)
1010       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1011       if test $ac_must_keep_next = true; then
1012         ac_must_keep_next=false # Got value, back to normal.
1013       else
1014         case $ac_arg in
1015           *=* | --config-cache | -C | -disable-* | --disable-* \
1016           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1017           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1018           | -with-* | --with-* | -without-* | --without-* | --x)
1019             case "$ac_configure_args0 " in
1020               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1021             esac
1022             ;;
1023           -* ) ac_must_keep_next=true ;;
1024         esac
1025       fi
1026       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1027       # Get rid of the leading space.
1028       ac_sep=" "
1029       ;;
1030     esac
1031   done
1032 done
1033 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1034 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1035
1036 # When interrupted or exit'd, cleanup temporary files, and complete
1037 # config.log.  We remove comments because anyway the quotes in there
1038 # would cause problems or look ugly.
1039 # WARNING: Be sure not to use single quotes in there, as some shells,
1040 # such as our DU 5.0 friend, will then `close' the trap.
1041 trap 'exit_status=$?
1042   # Save into config.log some information that might help in debugging.
1043   {
1044     echo
1045
1046     cat <<\_ASBOX
1047 ## ---------------- ##
1048 ## Cache variables. ##
1049 ## ---------------- ##
1050 _ASBOX
1051     echo
1052     # The following way of writing the cache mishandles newlines in values,
1053 {
1054   (set) 2>&1 |
1055     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1056     *ac_space=\ *)
1057       sed -n \
1058         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1059           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1060       ;;
1061     *)
1062       sed -n \
1063         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1064       ;;
1065     esac;
1066 }
1067     echo
1068
1069     cat <<\_ASBOX
1070 ## ----------------- ##
1071 ## Output variables. ##
1072 ## ----------------- ##
1073 _ASBOX
1074     echo
1075     for ac_var in $ac_subst_vars
1076     do
1077       eval ac_val=$`echo $ac_var`
1078       echo "$ac_var='"'"'$ac_val'"'"'"
1079     done | sort
1080     echo
1081
1082     if test -n "$ac_subst_files"; then
1083       cat <<\_ASBOX
1084 ## ------------- ##
1085 ## Output files. ##
1086 ## ------------- ##
1087 _ASBOX
1088       echo
1089       for ac_var in $ac_subst_files
1090       do
1091         eval ac_val=$`echo $ac_var`
1092         echo "$ac_var='"'"'$ac_val'"'"'"
1093       done | sort
1094       echo
1095     fi
1096
1097     if test -s confdefs.h; then
1098       cat <<\_ASBOX
1099 ## ----------- ##
1100 ## confdefs.h. ##
1101 ## ----------- ##
1102 _ASBOX
1103       echo
1104       sed "/^$/d" confdefs.h | sort
1105       echo
1106     fi
1107     test "$ac_signal" != 0 &&
1108       echo "$as_me: caught signal $ac_signal"
1109     echo "$as_me: exit $exit_status"
1110   } >&5
1111   rm -f core *.core &&
1112   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1113     exit $exit_status
1114      ' 0
1115 for ac_signal in 1 2 13 15; do
1116   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1117 done
1118 ac_signal=0
1119
1120 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1121 rm -rf conftest* confdefs.h
1122 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1123 echo >confdefs.h
1124
1125 # Predefined preprocessor variables.
1126
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_NAME "$PACKAGE_NAME"
1129 _ACEOF
1130
1131
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1134 _ACEOF
1135
1136
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1139 _ACEOF
1140
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_STRING "$PACKAGE_STRING"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1149 _ACEOF
1150
1151
1152 # Let the site file select an alternate cache file if it wants to.
1153 # Prefer explicitly selected file to automatically selected ones.
1154 if test -z "$CONFIG_SITE"; then
1155   if test "x$prefix" != xNONE; then
1156     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1157   else
1158     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1159   fi
1160 fi
1161 for ac_site_file in $CONFIG_SITE; do
1162   if test -r "$ac_site_file"; then
1163     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1164 echo "$as_me: loading site script $ac_site_file" >&6;}
1165     sed 's/^/| /' "$ac_site_file" >&5
1166     . "$ac_site_file"
1167   fi
1168 done
1169
1170 if test -r "$cache_file"; then
1171   # Some versions of bash will fail to source /dev/null (special
1172   # files actually), so we avoid doing that.
1173   if test -f "$cache_file"; then
1174     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1175 echo "$as_me: loading cache $cache_file" >&6;}
1176     case $cache_file in
1177       [\\/]* | ?:[\\/]* ) . $cache_file;;
1178       *)                      . ./$cache_file;;
1179     esac
1180   fi
1181 else
1182   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1183 echo "$as_me: creating cache $cache_file" >&6;}
1184   >$cache_file
1185 fi
1186
1187 # Check that the precious variables saved in the cache have kept the same
1188 # value.
1189 ac_cache_corrupted=false
1190 for ac_var in `(set) 2>&1 |
1191                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1192   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1193   eval ac_new_set=\$ac_env_${ac_var}_set
1194   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1195   eval ac_new_val="\$ac_env_${ac_var}_value"
1196   case $ac_old_set,$ac_new_set in
1197     set,)
1198       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1199 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1200       ac_cache_corrupted=: ;;
1201     ,set)
1202       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1203 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1204       ac_cache_corrupted=: ;;
1205     ,);;
1206     *)
1207       if test "x$ac_old_val" != "x$ac_new_val"; then
1208         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1209 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1210         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1211 echo "$as_me:   former value:  $ac_old_val" >&2;}
1212         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1213 echo "$as_me:   current value: $ac_new_val" >&2;}
1214         ac_cache_corrupted=:
1215       fi;;
1216   esac
1217   # Pass precious variables to config.status.
1218   if test "$ac_new_set" = set; then
1219     case $ac_new_val in
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     *) ac_arg=$ac_var=$ac_new_val ;;
1223     esac
1224     case " $ac_configure_args " in
1225       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1226       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1227     esac
1228   fi
1229 done
1230 if $ac_cache_corrupted; then
1231   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1232 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1233   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1234 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1235    { (exit 1); exit 1; }; }
1236 fi
1237
1238 ac_ext=c
1239 ac_cpp='$CPP $CPPFLAGS'
1240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271 # Package information
1272 MYLIBVER=3
1273 MYLIBREV=6
1274 MYFORMATVER="1.0"
1275
1276 # Targets
1277 MYHEADERFILES="tcutil.h tchdb.h tcbdb.h tcadb.h"
1278 MYLIBRARYFILES="libtokyocabinet.a"
1279 MYLIBOBJFILES="tcutil.o tchdb.o tcbdb.o tcadb.o myconf.o"
1280 MYCOMMANDFILES="tcutest tcumttest tcucodec tchtest tchmttest tchmgr"
1281 MYCOMMANDFILES="$MYCOMMANDFILES tcbtest tcbmttest tcbmgr tcatest tcamgr"
1282 MYMAN1FILES="tcutest.1 tcumttest.1 tcucodec.1 tchtest.1 tchmttest.1 tchmgr.1"
1283 MYMAN1FILES="$MYMAN1FILES tcbtest.1 tcbmttest.1 tcbmgr.1 tcatest.1 tcamgr.1"
1284 MYMAN3FILES="tokyocabinet.3 tcutil.3 tcxstr.3 tclist.3 tcmap.3 tcmdb.3 tcmpool.3"
1285 MYMAN3FILES="$MYMAN3FILES tchdb.3 tcbdb.3 tcadb.3"
1286 MYDOCUMENTFILES="COPYING ChangeLog THANKS doc"
1287 MYPCFILES="tokyocabinet.pc"
1288
1289 # Building flags
1290 MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2"
1291 MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -L$HOME/include -L/usr/local/include -DNDEBUG -D_GNU_SOURCE=1"
1292 MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib"
1293 MYRUNPATH="\$(LIBDIR)"
1294 MYLDLIBPATHENV="LD_LIBRARY_PATH"
1295 MYPOSTCMD="true"
1296
1297 # Building paths
1298 pathtmp="$PATH"
1299 PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
1300 PATH="$PATH:/usr/ccs/bin:/usr/ucb:/usr/xpg4/bin:/usr/xpg6/bin:$pathtmp"
1301 LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
1302 LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
1303 CPATH="$HOME/include:/usr/local/include:$CPATH"
1304 PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
1305 export PATH LIBRARY_PATH LD_LIBRARY_PATH CPATH PKG_CONFIG_PATH
1306
1307
1308
1309 #================================================================
1310 # Options
1311 #================================================================
1312
1313
1314 # Internal variables
1315 enables=""
1316
1317 # Debug mode
1318 # Check whether --enable-debug or --disable-debug was given.
1319 if test "${enable_debug+set}" = set; then
1320   enableval="$enable_debug"
1321
1322 fi;
1323 if test "$enable_debug" = "yes"
1324 then
1325   MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -g"
1326   MYCPPFLAGS="$MYCPPFLAGS -UNDEBUG"
1327   MYLDFLAGS="$MYLDFLAGS -static"
1328   enables="$enables (debug)"
1329 fi
1330
1331 # Developping mode
1332 # Check whether --enable-devel or --disable-devel was given.
1333 if test "${enable_devel+set}" = set; then
1334   enableval="$enable_devel"
1335
1336 fi;
1337 if test "$enable_devel" = "yes"
1338 then
1339   MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -g -O2 -pipe"
1340   MYCPPFLAGS="$MYCPPFLAGS -UNDEBUG"
1341   enables="$enables (devel)"
1342 fi
1343
1344 # Profiling mode
1345 # Check whether --enable-profile or --disable-profile was given.
1346 if test "${enable_profile+set}" = set; then
1347   enableval="$enable_profile"
1348
1349 fi;
1350 if test "$enable_profile" = "yes"
1351 then
1352   MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -g -pg -O2 -pipe"
1353   enables="$enables (profile)"
1354 fi
1355
1356 # 64-bit offset mode
1357 # Check whether --enable-off64 or --disable-off64 was given.
1358 if test "${enable_off64+set}" = set; then
1359   enableval="$enable_off64"
1360
1361 fi;
1362 if test "$enable_off64" = "yes"
1363 then
1364   MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64"
1365   enables="$enables (off64)"
1366 fi
1367
1368 # Fastest mode
1369 # Check whether --enable-fastest or --disable-fastest was given.
1370 if test "${enable_fastest+set}" = set; then
1371   enableval="$enable_fastest"
1372
1373 fi;
1374 if test "$enable_fastest" = "yes"
1375 then
1376   MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -O3"
1377   MYCFLAGS="$MYCFLAGS -fomit-frame-pointer -fforce-addr -minline-all-stringops"
1378   MYCPPFLAGS="$MYCPPFLAGS -D_MYFASTEST"
1379   enables="$enables (fastest)"
1380 fi
1381
1382 # Swapping byte-orders mode
1383 # Check whether --enable-swab or --disable-swab was given.
1384 if test "${enable_swab+set}" = set; then
1385   enableval="$enable_swab"
1386
1387 fi;
1388 if test "$enable_swab" = "yes"
1389 then
1390   MYCPPFLAGS="$MYCPPFLAGS -D_MYSWAB"
1391   enables="$enables (swab)"
1392 fi
1393
1394 # Micro yield mode
1395 # Check whether --enable-uyield or --disable-uyield was given.
1396 if test "${enable_uyield+set}" = set; then
1397   enableval="$enable_uyield"
1398
1399 fi;
1400 if test "$enable_uyield" = "yes"
1401 then
1402   MYCPPFLAGS="$MYCPPFLAGS -D_MYMICROYIELD"
1403   enables="$enables (uyield)"
1404 fi
1405
1406 # Disable ZLIB compression
1407 # Check whether --enable-zlib or --disable-zlib was given.
1408 if test "${enable_zlib+set}" = set; then
1409   enableval="$enable_zlib"
1410
1411 fi;
1412 if test "$enable_zlib" = "no"
1413 then
1414   MYCPPFLAGS="$MYCPPFLAGS -D_MYNOZLIB"
1415   enables="$enables (no-zlib)"
1416 fi
1417
1418 # Disable POSIX thread
1419 # Check whether --enable-pthread or --disable-pthread was given.
1420 if test "${enable_pthread+set}" = set; then
1421   enableval="$enable_pthread"
1422
1423 fi;
1424 if test "$enable_pthread" = "no"
1425 then
1426   MYCPPFLAGS="$MYCPPFLAGS -D_MYNOPTHREAD"
1427   enables="$enables (no-pthread)"
1428 fi
1429
1430 # Disable shared object
1431 # Check whether --enable-shared or --disable-shared was given.
1432 if test "${enable_shared+set}" = set; then
1433   enableval="$enable_shared"
1434
1435 fi;
1436 if test "$enable_shared" = "no"
1437 then
1438   enables="$enables (no-shared)"
1439 fi
1440
1441 # Messages
1442 printf '#================================================================\n'
1443 printf '# Configuring Tokyo Cabinet version %s%s.\n' "$PACKAGE_VERSION" "$enables"
1444 printf '#================================================================\n'
1445
1446
1447
1448 #================================================================
1449 # Checking Commands and Libraries
1450 #================================================================
1451
1452 # C compiler
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458 if test -n "$ac_tool_prefix"; then
1459   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1461 echo "$as_me:$LINENO: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_CC+set}" = set; then
1464   echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466   if test -n "$CC"; then
1467   ac_cv_prog_CC="$CC" # Let the user override the test.
1468 else
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 for as_dir in $PATH
1471 do
1472   IFS=$as_save_IFS
1473   test -z "$as_dir" && as_dir=.
1474   for ac_exec_ext in '' $ac_executable_extensions; do
1475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478     break 2
1479   fi
1480 done
1481 done
1482
1483 fi
1484 fi
1485 CC=$ac_cv_prog_CC
1486 if test -n "$CC"; then
1487   echo "$as_me:$LINENO: result: $CC" >&5
1488 echo "${ECHO_T}$CC" >&6
1489 else
1490   echo "$as_me:$LINENO: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1492 fi
1493
1494 fi
1495 if test -z "$ac_cv_prog_CC"; then
1496   ac_ct_CC=$CC
1497   # Extract the first word of "gcc", so it can be a program name with args.
1498 set dummy gcc; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1502   echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504   if test -n "$ac_ct_CC"; then
1505   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1506 else
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510   IFS=$as_save_IFS
1511   test -z "$as_dir" && as_dir=.
1512   for ac_exec_ext in '' $ac_executable_extensions; do
1513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514     ac_cv_prog_ac_ct_CC="gcc"
1515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516     break 2
1517   fi
1518 done
1519 done
1520
1521 fi
1522 fi
1523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1524 if test -n "$ac_ct_CC"; then
1525   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1526 echo "${ECHO_T}$ac_ct_CC" >&6
1527 else
1528   echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 fi
1531
1532   CC=$ac_ct_CC
1533 else
1534   CC="$ac_cv_prog_CC"
1535 fi
1536
1537 if test -z "$CC"; then
1538   if test -n "$ac_tool_prefix"; then
1539   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1540 set dummy ${ac_tool_prefix}cc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$CC"; then
1547   ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_CC="${ac_tool_prefix}cc"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 CC=$ac_cv_prog_CC
1566 if test -n "$CC"; then
1567   echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 fi
1575 if test -z "$ac_cv_prog_CC"; then
1576   ac_ct_CC=$CC
1577   # Extract the first word of "cc", so it can be a program name with args.
1578 set dummy cc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   if test -n "$ac_ct_CC"; then
1585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   for ac_exec_ext in '' $ac_executable_extensions; do
1593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594     ac_cv_prog_ac_ct_CC="cc"
1595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596     break 2
1597   fi
1598 done
1599 done
1600
1601 fi
1602 fi
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1607 else
1608   echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612   CC=$ac_ct_CC
1613 else
1614   CC="$ac_cv_prog_CC"
1615 fi
1616
1617 fi
1618 if test -z "$CC"; then
1619   # Extract the first word of "cc", so it can be a program name with args.
1620 set dummy cc; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   if test -n "$CC"; then
1627   ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629   ac_prog_rejected=no
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1638        ac_prog_rejected=yes
1639        continue
1640      fi
1641     ac_cv_prog_CC="cc"
1642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643     break 2
1644   fi
1645 done
1646 done
1647
1648 if test $ac_prog_rejected = yes; then
1649   # We found a bogon in the path, so make sure we never use it.
1650   set dummy $ac_cv_prog_CC
1651   shift
1652   if test $# != 0; then
1653     # We chose a different compiler from the bogus one.
1654     # However, it has the same basename, so the bogon will be chosen
1655     # first if we set CC to just the basename; use the full file name.
1656     shift
1657     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1658   fi
1659 fi
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 fi
1672 if test -z "$CC"; then
1673   if test -n "$ac_tool_prefix"; then
1674   for ac_prog in cl
1675   do
1676     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$CC"; then
1684   ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691   for ac_exec_ext in '' $ac_executable_extensions; do
1692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695     break 2
1696   fi
1697 done
1698 done
1699
1700 fi
1701 fi
1702 CC=$ac_cv_prog_CC
1703 if test -n "$CC"; then
1704   echo "$as_me:$LINENO: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1706 else
1707   echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 fi
1710
1711     test -n "$CC" && break
1712   done
1713 fi
1714 if test -z "$CC"; then
1715   ac_ct_CC=$CC
1716   for ac_prog in cl
1717 do
1718   # Extract the first word of "$ac_prog", so it can be a program name with args.
1719 set dummy $ac_prog; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1723   echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725   if test -n "$ac_ct_CC"; then
1726   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
1731   IFS=$as_save_IFS
1732   test -z "$as_dir" && as_dir=.
1733   for ac_exec_ext in '' $ac_executable_extensions; do
1734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735     ac_cv_prog_ac_ct_CC="$ac_prog"
1736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737     break 2
1738   fi
1739 done
1740 done
1741
1742 fi
1743 fi
1744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1745 if test -n "$ac_ct_CC"; then
1746   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1747 echo "${ECHO_T}$ac_ct_CC" >&6
1748 else
1749   echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1751 fi
1752
1753   test -n "$ac_ct_CC" && break
1754 done
1755
1756   CC=$ac_ct_CC
1757 fi
1758
1759 fi
1760
1761
1762 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1763 See \`config.log' for more details." >&5
1764 echo "$as_me: error: no acceptable C compiler found in \$PATH
1765 See \`config.log' for more details." >&2;}
1766    { (exit 1); exit 1; }; }
1767
1768 # Provide some information about the compiler.
1769 echo "$as_me:$LINENO:" \
1770      "checking for C compiler version" >&5
1771 ac_compiler=`set X $ac_compile; echo $2`
1772 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1773   (eval $ac_compiler --version </dev/null >&5) 2>&5
1774   ac_status=$?
1775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776   (exit $ac_status); }
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1778   (eval $ac_compiler -v </dev/null >&5) 2>&5
1779   ac_status=$?
1780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781   (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1783   (eval $ac_compiler -V </dev/null >&5) 2>&5
1784   ac_status=$?
1785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786   (exit $ac_status); }
1787
1788 cat >conftest.$ac_ext <<_ACEOF
1789 /* confdefs.h.  */
1790 _ACEOF
1791 cat confdefs.h >>conftest.$ac_ext
1792 cat >>conftest.$ac_ext <<_ACEOF
1793 /* end confdefs.h.  */
1794
1795 int
1796 main ()
1797 {
1798
1799   ;
1800   return 0;
1801 }
1802 _ACEOF
1803 ac_clean_files_save=$ac_clean_files
1804 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1805 # Try to create an executable without -o first, disregard a.out.
1806 # It will help us diagnose broken compilers, and finding out an intuition
1807 # of exeext.
1808 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1809 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1810 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1811 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1812   (eval $ac_link_default) 2>&5
1813   ac_status=$?
1814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815   (exit $ac_status); }; then
1816   # Find the output, starting from the most likely.  This scheme is
1817 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1818 # resort.
1819
1820 # Be careful to initialize this variable, since it used to be cached.
1821 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1822 ac_cv_exeext=
1823 # b.out is created by i960 compilers.
1824 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1825 do
1826   test -f "$ac_file" || continue
1827   case $ac_file in
1828     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1829         ;;
1830     conftest.$ac_ext )
1831         # This is the source file.
1832         ;;
1833     [ab].out )
1834         # We found the default executable, but exeext='' is most
1835         # certainly right.
1836         break;;
1837     *.* )
1838         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1839         # FIXME: I believe we export ac_cv_exeext for Libtool,
1840         # but it would be cool to find out if it's true.  Does anybody
1841         # maintain Libtool? --akim.
1842         export ac_cv_exeext
1843         break;;
1844     * )
1845         break;;
1846   esac
1847 done
1848 else
1849   echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1853 See \`config.log' for more details." >&5
1854 echo "$as_me: error: C compiler cannot create executables
1855 See \`config.log' for more details." >&2;}
1856    { (exit 77); exit 77; }; }
1857 fi
1858
1859 ac_exeext=$ac_cv_exeext
1860 echo "$as_me:$LINENO: result: $ac_file" >&5
1861 echo "${ECHO_T}$ac_file" >&6
1862
1863 # Check the compiler produces executables we can run.  If not, either
1864 # the compiler is broken, or we cross compile.
1865 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1866 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1867 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1868 # If not cross compiling, check that we can run a simple program.
1869 if test "$cross_compiling" != yes; then
1870   if { ac_try='./$ac_file'
1871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872   (eval $ac_try) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; }; then
1876     cross_compiling=no
1877   else
1878     if test "$cross_compiling" = maybe; then
1879         cross_compiling=yes
1880     else
1881         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1882 If you meant to cross compile, use \`--host'.
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'.
1886 See \`config.log' for more details." >&2;}
1887    { (exit 1); exit 1; }; }
1888     fi
1889   fi
1890 fi
1891 echo "$as_me:$LINENO: result: yes" >&5
1892 echo "${ECHO_T}yes" >&6
1893
1894 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1895 ac_clean_files=$ac_clean_files_save
1896 # Check the compiler produces executables we can run.  If not, either
1897 # the compiler is broken, or we cross compile.
1898 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1899 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1900 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1901 echo "${ECHO_T}$cross_compiling" >&6
1902
1903 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1904 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1906   (eval $ac_link) 2>&5
1907   ac_status=$?
1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909   (exit $ac_status); }; then
1910   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1911 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1912 # work properly (i.e., refer to `conftest.exe'), while it won't with
1913 # `rm'.
1914 for ac_file in conftest.exe conftest conftest.*; do
1915   test -f "$ac_file" || continue
1916   case $ac_file in
1917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1918     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919           export ac_cv_exeext
1920           break;;
1921     * ) break;;
1922   esac
1923 done
1924 else
1925   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1926 See \`config.log' for more details." >&5
1927 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1928 See \`config.log' for more details." >&2;}
1929    { (exit 1); exit 1; }; }
1930 fi
1931
1932 rm -f conftest$ac_cv_exeext
1933 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1934 echo "${ECHO_T}$ac_cv_exeext" >&6
1935
1936 rm -f conftest.$ac_ext
1937 EXEEXT=$ac_cv_exeext
1938 ac_exeext=$EXEEXT
1939 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1940 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1941 if test "${ac_cv_objext+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   cat >conftest.$ac_ext <<_ACEOF
1945 /* confdefs.h.  */
1946 _ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h.  */
1950
1951 int
1952 main ()
1953 {
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 rm -f conftest.o conftest.obj
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961   (eval $ac_compile) 2>&5
1962   ac_status=$?
1963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964   (exit $ac_status); }; then
1965   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1966   case $ac_file in
1967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1968     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1969        break;;
1970   esac
1971 done
1972 else
1973   echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1977 See \`config.log' for more details." >&5
1978 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1979 See \`config.log' for more details." >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1984 fi
1985 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1986 echo "${ECHO_T}$ac_cv_objext" >&6
1987 OBJEXT=$ac_cv_objext
1988 ac_objext=$OBJEXT
1989 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1990 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1991 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   cat >conftest.$ac_ext <<_ACEOF
1995 /* confdefs.h.  */
1996 _ACEOF
1997 cat confdefs.h >>conftest.$ac_ext
1998 cat >>conftest.$ac_ext <<_ACEOF
1999 /* end confdefs.h.  */
2000
2001 int
2002 main ()
2003 {
2004 #ifndef __GNUC__
2005        choke me
2006 #endif
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014   (eval $ac_compile) 2>conftest.er1
2015   ac_status=$?
2016   grep -v '^ *+' conftest.er1 >conftest.err
2017   rm -f conftest.er1
2018   cat conftest.err >&5
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); } &&
2021          { ac_try='test -z "$ac_c_werror_flag"
2022                          || test ! -s conftest.err'
2023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024   (eval $ac_try) 2>&5
2025   ac_status=$?
2026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027   (exit $ac_status); }; } &&
2028          { ac_try='test -s conftest.$ac_objext'
2029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030   (eval $ac_try) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }; }; then
2034   ac_compiler_gnu=yes
2035 else
2036   echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2038
2039 ac_compiler_gnu=no
2040 fi
2041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2043
2044 fi
2045 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2047 GCC=`test $ac_compiler_gnu = yes && echo yes`
2048 ac_test_CFLAGS=${CFLAGS+set}
2049 ac_save_CFLAGS=$CFLAGS
2050 CFLAGS="-g"
2051 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2053 if test "${ac_cv_prog_cc_g+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   cat >conftest.$ac_ext <<_ACEOF
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 rm -f conftest.$ac_objext
2072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073   (eval $ac_compile) 2>conftest.er1
2074   ac_status=$?
2075   grep -v '^ *+' conftest.er1 >conftest.err
2076   rm -f conftest.er1
2077   cat conftest.err >&5
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); } &&
2080          { ac_try='test -z "$ac_c_werror_flag"
2081                          || test ! -s conftest.err'
2082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083   (eval $ac_try) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_cv_prog_cc_g=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_cv_prog_cc_g=no
2099 fi
2100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2104 if test "$ac_test_CFLAGS" = set; then
2105   CFLAGS=$ac_save_CFLAGS
2106 elif test $ac_cv_prog_cc_g = yes; then
2107   if test "$GCC" = yes; then
2108     CFLAGS="-g -O2"
2109   else
2110     CFLAGS="-g"
2111   fi
2112 else
2113   if test "$GCC" = yes; then
2114     CFLAGS="-O2"
2115   else
2116     CFLAGS=
2117   fi
2118 fi
2119 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2120 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   ac_cv_prog_cc_stdc=no
2125 ac_save_CC=$CC
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154
2155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2156    function prototypes and stuff, but not '\xHH' hex character constants.
2157    These don't provoke an error unfortunately, instead are silently treated
2158    as 'x'.  The following induces an error, until -std1 is added to get
2159    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2160    array size at least.  It's necessary to write '\x00'==0 to get something
2161    that's true only with -std1.  */
2162 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2163
2164 int test (int i, double x);
2165 struct s1 {int (*f) (int a);};
2166 struct s2 {int (*f) (double a);};
2167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2168 int argc;
2169 char **argv;
2170 int
2171 main ()
2172 {
2173 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 # Don't try gcc -ansi; that turns off useful extensions and
2179 # breaks some systems' header files.
2180 # AIX                   -qlanglvl=ansi
2181 # Ultrix and OSF/1      -std1
2182 # HP-UX 10.20 and later -Ae
2183 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2184 # SVR4                  -Xc -D__EXTENSIONS__
2185 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2186 do
2187   CC="$ac_save_CC $ac_arg"
2188   rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190   (eval $ac_compile) 2>conftest.er1
2191   ac_status=$?
2192   grep -v '^ *+' conftest.er1 >conftest.err
2193   rm -f conftest.er1
2194   cat conftest.err >&5
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -z "$ac_c_werror_flag"
2198                          || test ! -s conftest.err'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; } &&
2204          { ac_try='test -s conftest.$ac_objext'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; }; then
2210   ac_cv_prog_cc_stdc=$ac_arg
2211 break
2212 else
2213   echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 fi
2217 rm -f conftest.err conftest.$ac_objext
2218 done
2219 rm -f conftest.$ac_ext conftest.$ac_objext
2220 CC=$ac_save_CC
2221
2222 fi
2223
2224 case "x$ac_cv_prog_cc_stdc" in
2225   x|xno)
2226     echo "$as_me:$LINENO: result: none needed" >&5
2227 echo "${ECHO_T}none needed" >&6 ;;
2228   *)
2229     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2230 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2231     CC="$CC $ac_cv_prog_cc_stdc" ;;
2232 esac
2233
2234 # Some people use a C++ compiler to compile C.  Since we use `exit',
2235 # in C++ we need to declare it.  In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #ifndef __cplusplus
2240   choke me
2241 #endif
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>conftest.er1
2246   ac_status=$?
2247   grep -v '^ *+' conftest.er1 >conftest.err
2248   rm -f conftest.er1
2249   cat conftest.err >&5
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); } &&
2252          { ac_try='test -z "$ac_c_werror_flag"
2253                          || test ! -s conftest.err'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; } &&
2259          { ac_try='test -s conftest.$ac_objext'
2260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261   (eval $ac_try) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; }; then
2265   for ac_declaration in \
2266    '' \
2267    'extern "C" void std::exit (int) throw (); using std::exit;' \
2268    'extern "C" void std::exit (int); using std::exit;' \
2269    'extern "C" void exit (int) throw ();' \
2270    'extern "C" void exit (int);' \
2271    'void exit (int);'
2272 do
2273   cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2279 $ac_declaration
2280 #include <stdlib.h>
2281 int
2282 main ()
2283 {
2284 exit (42);
2285   ;
2286   return 0;
2287 }
2288 _ACEOF
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291   (eval $ac_compile) 2>conftest.er1
2292   ac_status=$?
2293   grep -v '^ *+' conftest.er1 >conftest.err
2294   rm -f conftest.er1
2295   cat conftest.err >&5
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); } &&
2298          { ac_try='test -z "$ac_c_werror_flag"
2299                          || test ! -s conftest.err'
2300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301   (eval $ac_try) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; } &&
2305          { ac_try='test -s conftest.$ac_objext'
2306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307   (eval $ac_try) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; }; then
2311   :
2312 else
2313   echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 continue
2317 fi
2318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319   cat >conftest.$ac_ext <<_ACEOF
2320 /* confdefs.h.  */
2321 _ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h.  */
2325 $ac_declaration
2326 int
2327 main ()
2328 {
2329 exit (42);
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336   (eval $ac_compile) 2>conftest.er1
2337   ac_status=$?
2338   grep -v '^ *+' conftest.er1 >conftest.err
2339   rm -f conftest.er1
2340   cat conftest.err >&5
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); } &&
2343          { ac_try='test -z "$ac_c_werror_flag"
2344                          || test ! -s conftest.err'
2345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346   (eval $ac_try) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; } &&
2350          { ac_try='test -s conftest.$ac_objext'
2351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352   (eval $ac_try) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }; }; then
2356   break
2357 else
2358   echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 fi
2362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2363 done
2364 rm -f conftest*
2365 if test -n "$ac_declaration"; then
2366   echo '#ifdef __cplusplus' >>confdefs.h
2367   echo $ac_declaration      >>confdefs.h
2368   echo '#endif'             >>confdefs.h
2369 fi
2370
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 fi
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
2384 # Byte order
2385
2386 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2388 if test "${ac_cv_c_bigendian+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   # See if sys/param.h defines the BYTE_ORDER macro.
2392 cat >conftest.$ac_ext <<_ACEOF
2393 /* confdefs.h.  */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h.  */
2398 #include <sys/types.h>
2399 #include <sys/param.h>
2400
2401 int
2402 main ()
2403 {
2404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2405  bogus endian macros
2406 #endif
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414   (eval $ac_compile) 2>conftest.er1
2415   ac_status=$?
2416   grep -v '^ *+' conftest.er1 >conftest.err
2417   rm -f conftest.er1
2418   cat conftest.err >&5
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } &&
2421          { ac_try='test -z "$ac_c_werror_flag"
2422                          || test ! -s conftest.err'
2423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424   (eval $ac_try) 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; } &&
2428          { ac_try='test -s conftest.$ac_objext'
2429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430   (eval $ac_try) 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); }; }; then
2434   # It does; now see whether it defined to BIG_ENDIAN or not.
2435 cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h.  */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h.  */
2441 #include <sys/types.h>
2442 #include <sys/param.h>
2443
2444 int
2445 main ()
2446 {
2447 #if BYTE_ORDER != BIG_ENDIAN
2448  not big endian
2449 #endif
2450
2451   ;
2452   return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457   (eval $ac_compile) 2>conftest.er1
2458   ac_status=$?
2459   grep -v '^ *+' conftest.er1 >conftest.err
2460   rm -f conftest.er1
2461   cat conftest.err >&5
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -z "$ac_c_werror_flag"
2465                          || test ! -s conftest.err'
2466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467   (eval $ac_try) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477   ac_cv_c_bigendian=yes
2478 else
2479   echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 ac_cv_c_bigendian=no
2483 fi
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 # It does not; compile a test program.
2490 if test "$cross_compiling" = yes; then
2491   # try to guess the endianness by grepping values into an object file
2492   ac_cv_c_bigendian=unknown
2493   cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2500 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2501 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2502 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2503 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2504 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2505 int
2506 main ()
2507 {
2508  _ascii (); _ebcdic ();
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515   (eval $ac_compile) 2>conftest.er1
2516   ac_status=$?
2517   grep -v '^ *+' conftest.er1 >conftest.err
2518   rm -f conftest.er1
2519   cat conftest.err >&5
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -z "$ac_c_werror_flag"
2523                          || test ! -s conftest.err'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2536   ac_cv_c_bigendian=yes
2537 fi
2538 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2539   if test "$ac_cv_c_bigendian" = unknown; then
2540     ac_cv_c_bigendian=no
2541   else
2542     # finding both strings is unlikely to happen, but who knows?
2543     ac_cv_c_bigendian=unknown
2544   fi
2545 fi
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 fi
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552 else
2553   cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559 int
2560 main ()
2561 {
2562   /* Are we little or big endian?  From Harbison&Steele.  */
2563   union
2564   {
2565     long l;
2566     char c[sizeof (long)];
2567   } u;
2568   u.l = 1;
2569   exit (u.c[sizeof (long) - 1] == 1);
2570 }
2571 _ACEOF
2572 rm -f conftest$ac_exeext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2574   (eval $ac_link) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_cv_c_bigendian=no
2584 else
2585   echo "$as_me: program exited with status $ac_status" >&5
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ( exit $ac_status )
2590 ac_cv_c_bigendian=yes
2591 fi
2592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2593 fi
2594 fi
2595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596 fi
2597 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2598 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2599 case $ac_cv_c_bigendian in
2600   yes)
2601     MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND" ;;
2602   no)
2603      ;;
2604   *)
2605     { { echo "$as_me:$LINENO: error: unknown endianness
2606 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2607 echo "$as_me: error: unknown endianness
2608 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2609    { (exit 1); exit 1; }; } ;;
2610 esac
2611
2612
2613 # Underlying libraries
2614
2615 echo "$as_me:$LINENO: checking for main in -lc" >&5
2616 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
2617 if test "${ac_cv_lib_c_main+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   ac_check_lib_save_LIBS=$LIBS
2621 LIBS="-lc  $LIBS"
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628
2629
2630 int
2631 main ()
2632 {
2633 main ();
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext conftest$ac_exeext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2640   (eval $ac_link) 2>conftest.er1
2641   ac_status=$?
2642   grep -v '^ *+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -z "$ac_c_werror_flag"
2648                          || test ! -s conftest.err'
2649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650   (eval $ac_try) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; } &&
2654          { ac_try='test -s conftest$ac_exeext'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; }; then
2660   ac_cv_lib_c_main=yes
2661 else
2662   echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 ac_cv_lib_c_main=no
2666 fi
2667 rm -f conftest.err conftest.$ac_objext \
2668       conftest$ac_exeext conftest.$ac_ext
2669 LIBS=$ac_check_lib_save_LIBS
2670 fi
2671 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
2672 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
2673 if test $ac_cv_lib_c_main = yes; then
2674   cat >>confdefs.h <<_ACEOF
2675 #define HAVE_LIBC 1
2676 _ACEOF
2677
2678   LIBS="-lc $LIBS"
2679
2680 fi
2681
2682
2683 echo "$as_me:$LINENO: checking for main in -lm" >&5
2684 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
2685 if test "${ac_cv_lib_m_main+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   ac_check_lib_save_LIBS=$LIBS
2689 LIBS="-lm  $LIBS"
2690 cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696
2697
2698 int
2699 main ()
2700 {
2701 main ();
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708   (eval $ac_link) 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag"
2716                          || test ! -s conftest.err'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest$ac_exeext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_cv_lib_m_main=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_cv_lib_m_main=no
2734 fi
2735 rm -f conftest.err conftest.$ac_objext \
2736       conftest$ac_exeext conftest.$ac_ext
2737 LIBS=$ac_check_lib_save_LIBS
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2740 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
2741 if test $ac_cv_lib_m_main = yes; then
2742   cat >>confdefs.h <<_ACEOF
2743 #define HAVE_LIBM 1
2744 _ACEOF
2745
2746   LIBS="-lm $LIBS"
2747
2748 fi
2749
2750 if test "$enable_pthread" != "no"
2751 then
2752
2753 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
2754 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
2755 if test "${ac_cv_lib_pthread_main+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_check_lib_save_LIBS=$LIBS
2759 LIBS="-lpthread  $LIBS"
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767
2768 int
2769 main ()
2770 {
2771 main ();
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext conftest$ac_exeext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2778   (eval $ac_link) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -z "$ac_c_werror_flag"
2786                          || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest$ac_exeext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   ac_cv_lib_pthread_main=yes
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 ac_cv_lib_pthread_main=no
2804 fi
2805 rm -f conftest.err conftest.$ac_objext \
2806       conftest$ac_exeext conftest.$ac_ext
2807 LIBS=$ac_check_lib_save_LIBS
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
2810 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
2811 if test $ac_cv_lib_pthread_main = yes; then
2812   cat >>confdefs.h <<_ACEOF
2813 #define HAVE_LIBPTHREAD 1
2814 _ACEOF
2815
2816   LIBS="-lpthread $LIBS"
2817
2818 fi
2819
2820 fi
2821 if test "$enable_zlib" != "no"
2822 then
2823
2824 echo "$as_me:$LINENO: checking for main in -lz" >&5
2825 echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
2826 if test "${ac_cv_lib_z_main+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   ac_check_lib_save_LIBS=$LIBS
2830 LIBS="-lz  $LIBS"
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838
2839 int
2840 main ()
2841 {
2842 main ();
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext conftest$ac_exeext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849   (eval $ac_link) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } &&
2856          { ac_try='test -z "$ac_c_werror_flag"
2857                          || test ! -s conftest.err'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; } &&
2863          { ac_try='test -s conftest$ac_exeext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   ac_cv_lib_z_main=yes
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 ac_cv_lib_z_main=no
2875 fi
2876 rm -f conftest.err conftest.$ac_objext \
2877       conftest$ac_exeext conftest.$ac_ext
2878 LIBS=$ac_check_lib_save_LIBS
2879 fi
2880 echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
2881 echo "${ECHO_T}$ac_cv_lib_z_main" >&6
2882 if test $ac_cv_lib_z_main = yes; then
2883   cat >>confdefs.h <<_ACEOF
2884 #define HAVE_LIBZ 1
2885 _ACEOF
2886
2887   LIBS="-lz $LIBS"
2888
2889 fi
2890
2891 fi
2892
2893 # Shared libraries
2894 if test "$enable_shared" != "no" && test "$enable_profile" != "yes"
2895 then
2896   if uname | grep Darwin >/dev/null
2897   then
2898     MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.$MYLIBREV.0.dylib"
2899     MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.dylib"
2900     MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.dylib"
2901     MYLDLIBPATHENV="DYLD_LIBRARY_PATH"
2902   else
2903     MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER.$MYLIBREV.0"
2904     MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER"
2905     MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so"
2906   fi
2907 fi
2908
2909
2910
2911 #================================================================
2912 # Generic Settings
2913 #================================================================
2914
2915 # Export variables
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934 # Targets
2935                     ac_config_files="$ac_config_files Makefile tokyocabinet.pc"
2936 cat >confcache <<\_ACEOF
2937 # This file is a shell script that caches the results of configure
2938 # tests run on this system so they can be shared between configure
2939 # scripts and configure runs, see configure's option --config-cache.
2940 # It is not useful on other systems.  If it contains results you don't
2941 # want to keep, you may remove or edit it.
2942 #
2943 # config.status only pays attention to the cache file if you give it
2944 # the --recheck option to rerun configure.
2945 #
2946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2948 # following values.
2949
2950 _ACEOF
2951
2952 # The following way of writing the cache mishandles newlines in values,
2953 # but we know of no workaround that is simple, portable, and efficient.
2954 # So, don't put newlines in cache variables' values.
2955 # Ultrix sh set writes to stderr and can't be redirected directly,
2956 # and sets the high bit in the cache file unless we assign to the vars.
2957 {
2958   (set) 2>&1 |
2959     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2960     *ac_space=\ *)
2961       # `set' does not quote correctly, so add quotes (double-quote
2962       # substitution turns \\\\ into \\, and sed turns \\ into \).
2963       sed -n \
2964         "s/'/'\\\\''/g;
2965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2966       ;;
2967     *)
2968       # `set' quotes correctly as required by POSIX, so do not add quotes.
2969       sed -n \
2970         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2971       ;;
2972     esac;
2973 } |
2974   sed '
2975      t clear
2976      : clear
2977      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2978      t end
2979      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2980      : end' >>confcache
2981 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2982   if test -w $cache_file; then
2983     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2984     cat confcache >$cache_file
2985   else
2986     echo "not updating unwritable cache $cache_file"
2987   fi
2988 fi
2989 rm -f confcache
2990
2991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2992 # Let make expand exec_prefix.
2993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2994
2995 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2996 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2997 # trailing colons and then remove the whole line if VPATH becomes empty
2998 # (actually we leave an empty line to preserve line numbers).
2999 if test "x$srcdir" = x.; then
3000   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3001 s/:*\$(srcdir):*/:/;
3002 s/:*\${srcdir}:*/:/;
3003 s/:*@srcdir@:*/:/;
3004 s/^\([^=]*=[     ]*\):*/\1/;
3005 s/:*$//;
3006 s/^[^=]*=[       ]*$//;
3007 }'
3008 fi
3009
3010 # Transform confdefs.h into DEFS.
3011 # Protect against shell expansion while executing Makefile rules.
3012 # Protect against Makefile macro expansion.
3013 #
3014 # If the first sed substitution is executed (which looks for macros that
3015 # take arguments), then we branch to the quote section.  Otherwise,
3016 # look for a macro that doesn't take arguments.
3017 cat >confdef2opt.sed <<\_ACEOF
3018 t clear
3019 : clear
3020 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3021 t quote
3022 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3023 t quote
3024 d
3025 : quote
3026 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3027 s,\[,\\&,g
3028 s,\],\\&,g
3029 s,\$,$$,g
3030 p
3031 _ACEOF
3032 # We use echo to avoid assuming a particular line-breaking character.
3033 # The extra dot is to prevent the shell from consuming trailing
3034 # line-breaks from the sub-command output.  A line-break within
3035 # single-quotes doesn't work because, if this script is created in a
3036 # platform that uses two characters for line-breaks (e.g., DOS), tr
3037 # would break.
3038 ac_LF_and_DOT=`echo; echo .`
3039 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3040 rm -f confdef2opt.sed
3041
3042
3043 ac_libobjs=
3044 ac_ltlibobjs=
3045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3046   # 1. Remove the extension, and $U if already installed.
3047   ac_i=`echo "$ac_i" |
3048          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3049   # 2. Add them.
3050   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3051   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3052 done
3053 LIBOBJS=$ac_libobjs
3054
3055 LTLIBOBJS=$ac_ltlibobjs
3056
3057
3058
3059 : ${CONFIG_STATUS=./config.status}
3060 ac_clean_files_save=$ac_clean_files
3061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3062 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3063 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3064 cat >$CONFIG_STATUS <<_ACEOF
3065 #! $SHELL
3066 # Generated by $as_me.
3067 # Run this file to recreate the current configuration.
3068 # Compiler output produced by configure, useful for debugging
3069 # configure, is in config.log if it exists.
3070
3071 debug=false
3072 ac_cs_recheck=false
3073 ac_cs_silent=false
3074 SHELL=\${CONFIG_SHELL-$SHELL}
3075 _ACEOF
3076
3077 cat >>$CONFIG_STATUS <<\_ACEOF
3078 ## --------------------- ##
3079 ## M4sh Initialization.  ##
3080 ## --------------------- ##
3081
3082 # Be Bourne compatible
3083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3084   emulate sh
3085   NULLCMD=:
3086   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3087   # is contrary to our usage.  Disable this feature.
3088   alias -g '${1+"$@"}'='"$@"'
3089 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3090   set -o posix
3091 fi
3092 DUALCASE=1; export DUALCASE # for MKS sh
3093
3094 # Support unset when possible.
3095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3096   as_unset=unset
3097 else
3098   as_unset=false
3099 fi
3100
3101
3102 # Work around bugs in pre-3.0 UWIN ksh.
3103 $as_unset ENV MAIL MAILPATH
3104 PS1='$ '
3105 PS2='> '
3106 PS4='+ '
3107
3108 # NLS nuisances.
3109 for as_var in \
3110   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3111   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3112   LC_TELEPHONE LC_TIME
3113 do
3114   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3115     eval $as_var=C; export $as_var
3116   else
3117     $as_unset $as_var
3118   fi
3119 done
3120
3121 # Required to use basename.
3122 if expr a : '\(a\)' >/dev/null 2>&1; then
3123   as_expr=expr
3124 else
3125   as_expr=false
3126 fi
3127
3128 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3129   as_basename=basename
3130 else
3131   as_basename=false
3132 fi
3133
3134
3135 # Name of the executable.
3136 as_me=`$as_basename "$0" ||
3137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3138          X"$0" : 'X\(//\)$' \| \
3139          X"$0" : 'X\(/\)$' \| \
3140          .     : '\(.\)' 2>/dev/null ||
3141 echo X/"$0" |
3142     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3143           /^X\/\(\/\/\)$/{ s//\1/; q; }
3144           /^X\/\(\/\).*/{ s//\1/; q; }
3145           s/.*/./; q'`
3146
3147
3148 # PATH needs CR, and LINENO needs CR and PATH.
3149 # Avoid depending upon Character Ranges.
3150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3153 as_cr_digits='0123456789'
3154 as_cr_alnum=$as_cr_Letters$as_cr_digits
3155
3156 # The user is always right.
3157 if test "${PATH_SEPARATOR+set}" != set; then
3158   echo "#! /bin/sh" >conf$$.sh
3159   echo  "exit 0"   >>conf$$.sh
3160   chmod +x conf$$.sh
3161   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3162     PATH_SEPARATOR=';'
3163   else
3164     PATH_SEPARATOR=:
3165   fi
3166   rm -f conf$$.sh
3167 fi
3168
3169
3170   as_lineno_1=$LINENO
3171   as_lineno_2=$LINENO
3172   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3173   test "x$as_lineno_1" != "x$as_lineno_2" &&
3174   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3175   # Find who we are.  Look in the path if we contain no path at all
3176   # relative or not.
3177   case $0 in
3178     *[\\/]* ) as_myself=$0 ;;
3179     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3185 done
3186
3187        ;;
3188   esac
3189   # We did not find ourselves, most probably we were run as `sh COMMAND'
3190   # in which case we are not to be found in the path.
3191   if test "x$as_myself" = x; then
3192     as_myself=$0
3193   fi
3194   if test ! -f "$as_myself"; then
3195     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3196 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3197    { (exit 1); exit 1; }; }
3198   fi
3199   case $CONFIG_SHELL in
3200   '')
3201     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206   for as_base in sh bash ksh sh5; do
3207          case $as_dir in
3208          /*)
3209            if ("$as_dir/$as_base" -c '
3210   as_lineno_1=$LINENO
3211   as_lineno_2=$LINENO
3212   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3213   test "x$as_lineno_1" != "x$as_lineno_2" &&
3214   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3215              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3216              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3217              CONFIG_SHELL=$as_dir/$as_base
3218              export CONFIG_SHELL
3219              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3220            fi;;
3221          esac
3222        done
3223 done
3224 ;;
3225   esac
3226
3227   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3228   # uniformly replaced by the line number.  The first 'sed' inserts a
3229   # line-number line before each line; the second 'sed' does the real
3230   # work.  The second script uses 'N' to pair each line-number line
3231   # with the numbered line, and appends trailing '-' during
3232   # substitution so that $LINENO is not a special case at line end.
3233   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3234   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3235   sed '=' <$as_myself |
3236     sed '
3237       N
3238       s,$,-,
3239       : loop
3240       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3241       t loop
3242       s,-$,,
3243       s,^['$as_cr_digits']*\n,,
3244     ' >$as_me.lineno &&
3245   chmod +x $as_me.lineno ||
3246     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3247 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3248    { (exit 1); exit 1; }; }
3249
3250   # Don't try to exec as it changes $[0], causing all sort of problems
3251   # (the dirname of $[0] is not the place where we might find the
3252   # original and so on.  Autoconf is especially sensible to this).
3253   . ./$as_me.lineno
3254   # Exit status is that of the last command.
3255   exit
3256 }
3257
3258
3259 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3260   *c*,-n*) ECHO_N= ECHO_C='
3261 ' ECHO_T='      ' ;;
3262   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3263   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3264 esac
3265
3266 if expr a : '\(a\)' >/dev/null 2>&1; then
3267   as_expr=expr
3268 else
3269   as_expr=false
3270 fi
3271
3272 rm -f conf$$ conf$$.exe conf$$.file
3273 echo >conf$$.file
3274 if ln -s conf$$.file conf$$ 2>/dev/null; then
3275   # We could just check for DJGPP; but this test a) works b) is more generic
3276   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3277   if test -f conf$$.exe; then
3278     # Don't use ln at all; we don't have any links
3279     as_ln_s='cp -p'
3280   else
3281     as_ln_s='ln -s'
3282   fi
3283 elif ln conf$$.file conf$$ 2>/dev/null; then
3284   as_ln_s=ln
3285 else
3286   as_ln_s='cp -p'
3287 fi
3288 rm -f conf$$ conf$$.exe conf$$.file
3289
3290 if mkdir -p . 2>/dev/null; then
3291   as_mkdir_p=:
3292 else
3293   test -d ./-p && rmdir ./-p
3294   as_mkdir_p=false
3295 fi
3296
3297 as_executable_p="test -f"
3298
3299 # Sed expression to map a string onto a valid CPP name.
3300 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3301
3302 # Sed expression to map a string onto a valid variable name.
3303 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3304
3305
3306 # IFS
3307 # We need space, tab and new line, in precisely that order.
3308 as_nl='
3309 '
3310 IFS="   $as_nl"
3311
3312 # CDPATH.
3313 $as_unset CDPATH
3314
3315 exec 6>&1
3316
3317 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3318 # report actual input values of CONFIG_FILES etc. instead of their
3319 # values after options handling.  Logging --version etc. is OK.
3320 exec 5>>config.log
3321 {
3322   echo
3323   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3324 ## Running $as_me. ##
3325 _ASBOX
3326 } >&5
3327 cat >&5 <<_CSEOF
3328
3329 This file was extended by tokyocabinet $as_me 1.2.5, which was
3330 generated by GNU Autoconf 2.59.  Invocation command line was
3331
3332   CONFIG_FILES    = $CONFIG_FILES
3333   CONFIG_HEADERS  = $CONFIG_HEADERS
3334   CONFIG_LINKS    = $CONFIG_LINKS
3335   CONFIG_COMMANDS = $CONFIG_COMMANDS
3336   $ $0 $@
3337
3338 _CSEOF
3339 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3340 echo >&5
3341 _ACEOF
3342
3343 # Files that config.status was made for.
3344 if test -n "$ac_config_files"; then
3345   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3346 fi
3347
3348 if test -n "$ac_config_headers"; then
3349   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3350 fi
3351
3352 if test -n "$ac_config_links"; then
3353   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3354 fi
3355
3356 if test -n "$ac_config_commands"; then
3357   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3358 fi
3359
3360 cat >>$CONFIG_STATUS <<\_ACEOF
3361
3362 ac_cs_usage="\
3363 \`$as_me' instantiates files from templates according to the
3364 current configuration.
3365
3366 Usage: $0 [OPTIONS] [FILE]...
3367
3368   -h, --help       print this help, then exit
3369   -V, --version    print version number, then exit
3370   -q, --quiet      do not print progress messages
3371   -d, --debug      don't remove temporary files
3372       --recheck    update $as_me by reconfiguring in the same conditions
3373   --file=FILE[:TEMPLATE]
3374                    instantiate the configuration file FILE
3375
3376 Configuration files:
3377 $config_files
3378
3379 Report bugs to <bug-autoconf@gnu.org>."
3380 _ACEOF
3381
3382 cat >>$CONFIG_STATUS <<_ACEOF
3383 ac_cs_version="\\
3384 tokyocabinet config.status 1.2.5
3385 configured by $0, generated by GNU Autoconf 2.59,
3386   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3387
3388 Copyright (C) 2003 Free Software Foundation, Inc.
3389 This config.status script is free software; the Free Software Foundation
3390 gives unlimited permission to copy, distribute and modify it."
3391 srcdir=$srcdir
3392 _ACEOF
3393
3394 cat >>$CONFIG_STATUS <<\_ACEOF
3395 # If no file are specified by the user, then we need to provide default
3396 # value.  By we need to know if files were specified by the user.
3397 ac_need_defaults=:
3398 while test $# != 0
3399 do
3400   case $1 in
3401   --*=*)
3402     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3403     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3404     ac_shift=:
3405     ;;
3406   -*)
3407     ac_option=$1
3408     ac_optarg=$2
3409     ac_shift=shift
3410     ;;
3411   *) # This is not an option, so the user has probably given explicit
3412      # arguments.
3413      ac_option=$1
3414      ac_need_defaults=false;;
3415   esac
3416
3417   case $ac_option in
3418   # Handling of the options.
3419 _ACEOF
3420 cat >>$CONFIG_STATUS <<\_ACEOF
3421   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3422     ac_cs_recheck=: ;;
3423   --version | --vers* | -V )
3424     echo "$ac_cs_version"; exit 0 ;;
3425   --he | --h)
3426     # Conflict between --help and --header
3427     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3428 Try \`$0 --help' for more information." >&5
3429 echo "$as_me: error: ambiguous option: $1
3430 Try \`$0 --help' for more information." >&2;}
3431    { (exit 1); exit 1; }; };;
3432   --help | --hel | -h )
3433     echo "$ac_cs_usage"; exit 0 ;;
3434   --debug | --d* | -d )
3435     debug=: ;;
3436   --file | --fil | --fi | --f )
3437     $ac_shift
3438     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3439     ac_need_defaults=false;;
3440   --header | --heade | --head | --hea )
3441     $ac_shift
3442     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3443     ac_need_defaults=false;;
3444   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3445   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3446     ac_cs_silent=: ;;
3447
3448   # This is an error.
3449   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3450 Try \`$0 --help' for more information." >&5
3451 echo "$as_me: error: unrecognized option: $1
3452 Try \`$0 --help' for more information." >&2;}
3453    { (exit 1); exit 1; }; } ;;
3454
3455   *) ac_config_targets="$ac_config_targets $1" ;;
3456
3457   esac
3458   shift
3459 done
3460
3461 ac_configure_extra_args=
3462
3463 if $ac_cs_silent; then
3464   exec 6>/dev/null
3465   ac_configure_extra_args="$ac_configure_extra_args --silent"
3466 fi
3467
3468 _ACEOF
3469 cat >>$CONFIG_STATUS <<_ACEOF
3470 if \$ac_cs_recheck; then
3471   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3472   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3473 fi
3474
3475 _ACEOF
3476
3477
3478
3479
3480
3481 cat >>$CONFIG_STATUS <<\_ACEOF
3482 for ac_config_target in $ac_config_targets
3483 do
3484   case "$ac_config_target" in
3485   # Handling of arguments.
3486   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3487   "tokyocabinet.pc" ) CONFIG_FILES="$CONFIG_FILES tokyocabinet.pc" ;;
3488   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3489 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3490    { (exit 1); exit 1; }; };;
3491   esac
3492 done
3493
3494 # If the user did not use the arguments to specify the items to instantiate,
3495 # then the envvar interface is used.  Set only those that are not.
3496 # We use the long form for the default assignment because of an extremely
3497 # bizarre bug on SunOS 4.1.3.
3498 if $ac_need_defaults; then
3499   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3500 fi
3501
3502 # Have a temporary directory for convenience.  Make it in the build tree
3503 # simply because there is no reason to put it here, and in addition,
3504 # creating and moving files from /tmp can sometimes cause problems.
3505 # Create a temporary directory, and hook for its removal unless debugging.
3506 $debug ||
3507 {
3508   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3509   trap '{ (exit 1); exit 1; }' 1 2 13 15
3510 }
3511
3512 # Create a (secure) tmp directory for tmp files.
3513
3514 {
3515   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3516   test -n "$tmp" && test -d "$tmp"
3517 }  ||
3518 {
3519   tmp=./confstat$$-$RANDOM
3520   (umask 077 && mkdir $tmp)
3521 } ||
3522 {
3523    echo "$me: cannot create a temporary directory in ." >&2
3524    { (exit 1); exit 1; }
3525 }
3526
3527 _ACEOF
3528
3529 cat >>$CONFIG_STATUS <<_ACEOF
3530
3531 #
3532 # CONFIG_FILES section.
3533 #
3534
3535 # No need to generate the scripts if there are no CONFIG_FILES.
3536 # This happens for instance when ./config.status config.h
3537 if test -n "\$CONFIG_FILES"; then
3538   # Protect against being on the right side of a sed subst in config.status.
3539   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3540    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3541 s,@SHELL@,$SHELL,;t t
3542 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3543 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3544 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3545 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3546 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3547 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3548 s,@exec_prefix@,$exec_prefix,;t t
3549 s,@prefix@,$prefix,;t t
3550 s,@program_transform_name@,$program_transform_name,;t t
3551 s,@bindir@,$bindir,;t t
3552 s,@sbindir@,$sbindir,;t t
3553 s,@libexecdir@,$libexecdir,;t t
3554 s,@datadir@,$datadir,;t t
3555 s,@sysconfdir@,$sysconfdir,;t t
3556 s,@sharedstatedir@,$sharedstatedir,;t t
3557 s,@localstatedir@,$localstatedir,;t t
3558 s,@libdir@,$libdir,;t t
3559 s,@includedir@,$includedir,;t t
3560 s,@oldincludedir@,$oldincludedir,;t t
3561 s,@infodir@,$infodir,;t t
3562 s,@mandir@,$mandir,;t t
3563 s,@build_alias@,$build_alias,;t t
3564 s,@host_alias@,$host_alias,;t t
3565 s,@target_alias@,$target_alias,;t t
3566 s,@DEFS@,$DEFS,;t t
3567 s,@ECHO_C@,$ECHO_C,;t t
3568 s,@ECHO_N@,$ECHO_N,;t t
3569 s,@ECHO_T@,$ECHO_T,;t t
3570 s,@LIBS@,$LIBS,;t t
3571 s,@CC@,$CC,;t t
3572 s,@CFLAGS@,$CFLAGS,;t t
3573 s,@LDFLAGS@,$LDFLAGS,;t t
3574 s,@CPPFLAGS@,$CPPFLAGS,;t t
3575 s,@ac_ct_CC@,$ac_ct_CC,;t t
3576 s,@EXEEXT@,$EXEEXT,;t t
3577 s,@OBJEXT@,$OBJEXT,;t t
3578 s,@MYLIBVER@,$MYLIBVER,;t t
3579 s,@MYLIBREV@,$MYLIBREV,;t t
3580 s,@MYFORMATVER@,$MYFORMATVER,;t t
3581 s,@MYHEADERFILES@,$MYHEADERFILES,;t t
3582 s,@MYLIBRARYFILES@,$MYLIBRARYFILES,;t t
3583 s,@MYLIBOBJFILES@,$MYLIBOBJFILES,;t t
3584 s,@MYCOMMANDFILES@,$MYCOMMANDFILES,;t t
3585 s,@MYMAN1FILES@,$MYMAN1FILES,;t t
3586 s,@MYMAN3FILES@,$MYMAN3FILES,;t t
3587 s,@MYDOCUMENTFILES@,$MYDOCUMENTFILES,;t t
3588 s,@MYPCFILES@,$MYPCFILES,;t t
3589 s,@MYCFLAGS@,$MYCFLAGS,;t t
3590 s,@MYCPPFLAGS@,$MYCPPFLAGS,;t t
3591 s,@MYLDFLAGS@,$MYLDFLAGS,;t t
3592 s,@MYRUNPATH@,$MYRUNPATH,;t t
3593 s,@MYLDLIBPATHENV@,$MYLDLIBPATHENV,;t t
3594 s,@MYPOSTCMD@,$MYPOSTCMD,;t t
3595 s,@LIBOBJS@,$LIBOBJS,;t t
3596 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3597 CEOF
3598
3599 _ACEOF
3600
3601   cat >>$CONFIG_STATUS <<\_ACEOF
3602   # Split the substitutions into bite-sized pieces for seds with
3603   # small command number limits, like on Digital OSF/1 and HP-UX.
3604   ac_max_sed_lines=48
3605   ac_sed_frag=1 # Number of current file.
3606   ac_beg=1 # First line for current file.
3607   ac_end=$ac_max_sed_lines # Line after last line for current file.
3608   ac_more_lines=:
3609   ac_sed_cmds=
3610   while $ac_more_lines; do
3611     if test $ac_beg -gt 1; then
3612       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3613     else
3614       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3615     fi
3616     if test ! -s $tmp/subs.frag; then
3617       ac_more_lines=false
3618     else
3619       # The purpose of the label and of the branching condition is to
3620       # speed up the sed processing (if there are no `@' at all, there
3621       # is no need to browse any of the substitutions).
3622       # These are the two extra sed commands mentioned above.
3623       (echo ':t
3624   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3625       if test -z "$ac_sed_cmds"; then
3626         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3627       else
3628         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3629       fi
3630       ac_sed_frag=`expr $ac_sed_frag + 1`
3631       ac_beg=$ac_end
3632       ac_end=`expr $ac_end + $ac_max_sed_lines`
3633     fi
3634   done
3635   if test -z "$ac_sed_cmds"; then
3636     ac_sed_cmds=cat
3637   fi
3638 fi # test -n "$CONFIG_FILES"
3639
3640 _ACEOF
3641 cat >>$CONFIG_STATUS <<\_ACEOF
3642 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3643   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3644   case $ac_file in
3645   - | *:- | *:-:* ) # input from stdin
3646         cat >$tmp/stdin
3647         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3648         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3649   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3650         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3651   * )   ac_file_in=$ac_file.in ;;
3652   esac
3653
3654   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3655   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3657          X"$ac_file" : 'X\(//\)[^/]' \| \
3658          X"$ac_file" : 'X\(//\)$' \| \
3659          X"$ac_file" : 'X\(/\)' \| \
3660          .     : '\(.\)' 2>/dev/null ||
3661 echo X"$ac_file" |
3662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3663           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3664           /^X\(\/\/\)$/{ s//\1/; q; }
3665           /^X\(\/\).*/{ s//\1/; q; }
3666           s/.*/./; q'`
3667   { if $as_mkdir_p; then
3668     mkdir -p "$ac_dir"
3669   else
3670     as_dir="$ac_dir"
3671     as_dirs=
3672     while test ! -d "$as_dir"; do
3673       as_dirs="$as_dir $as_dirs"
3674       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3676          X"$as_dir" : 'X\(//\)[^/]' \| \
3677          X"$as_dir" : 'X\(//\)$' \| \
3678          X"$as_dir" : 'X\(/\)' \| \
3679          .     : '\(.\)' 2>/dev/null ||
3680 echo X"$as_dir" |
3681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3682           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3683           /^X\(\/\/\)$/{ s//\1/; q; }
3684           /^X\(\/\).*/{ s//\1/; q; }
3685           s/.*/./; q'`
3686     done
3687     test ! -n "$as_dirs" || mkdir $as_dirs
3688   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3689 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3690    { (exit 1); exit 1; }; }; }
3691
3692   ac_builddir=.
3693
3694 if test "$ac_dir" != .; then
3695   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3696   # A "../" for each directory in $ac_dir_suffix.
3697   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3698 else
3699   ac_dir_suffix= ac_top_builddir=
3700 fi
3701
3702 case $srcdir in
3703   .)  # No --srcdir option.  We are building in place.
3704     ac_srcdir=.
3705     if test -z "$ac_top_builddir"; then
3706        ac_top_srcdir=.
3707     else
3708        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3709     fi ;;
3710   [\\/]* | ?:[\\/]* )  # Absolute path.
3711     ac_srcdir=$srcdir$ac_dir_suffix;
3712     ac_top_srcdir=$srcdir ;;
3713   *) # Relative path.
3714     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3715     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3716 esac
3717
3718 # Do not use `cd foo && pwd` to compute absolute paths, because
3719 # the directories may not exist.
3720 case `pwd` in
3721 .) ac_abs_builddir="$ac_dir";;
3722 *)
3723   case "$ac_dir" in
3724   .) ac_abs_builddir=`pwd`;;
3725   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3726   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3727   esac;;
3728 esac
3729 case $ac_abs_builddir in
3730 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3731 *)
3732   case ${ac_top_builddir}. in
3733   .) ac_abs_top_builddir=$ac_abs_builddir;;
3734   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3735   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3736   esac;;
3737 esac
3738 case $ac_abs_builddir in
3739 .) ac_abs_srcdir=$ac_srcdir;;
3740 *)
3741   case $ac_srcdir in
3742   .) ac_abs_srcdir=$ac_abs_builddir;;
3743   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3744   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3745   esac;;
3746 esac
3747 case $ac_abs_builddir in
3748 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3749 *)
3750   case $ac_top_srcdir in
3751   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3752   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3753   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3754   esac;;
3755 esac
3756
3757
3758
3759   if test x"$ac_file" != x-; then
3760     { echo "$as_me:$LINENO: creating $ac_file" >&5
3761 echo "$as_me: creating $ac_file" >&6;}
3762     rm -f "$ac_file"
3763   fi
3764   # Let's still pretend it is `configure' which instantiates (i.e., don't
3765   # use $as_me), people would be surprised to read:
3766   #    /* config.h.  Generated by config.status.  */
3767   if test x"$ac_file" = x-; then
3768     configure_input=
3769   else
3770     configure_input="$ac_file.  "
3771   fi
3772   configure_input=$configure_input"Generated from `echo $ac_file_in |
3773                                      sed 's,.*/,,'` by configure."
3774
3775   # First look for the input files in the build tree, otherwise in the
3776   # src tree.
3777   ac_file_inputs=`IFS=:
3778     for f in $ac_file_in; do
3779       case $f in
3780       -) echo $tmp/stdin ;;
3781       [\\/$]*)
3782          # Absolute (can't be DOS-style, as IFS=:)
3783          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3784 echo "$as_me: error: cannot find input file: $f" >&2;}
3785    { (exit 1); exit 1; }; }
3786          echo "$f";;
3787       *) # Relative
3788          if test -f "$f"; then
3789            # Build tree
3790            echo "$f"
3791          elif test -f "$srcdir/$f"; then
3792            # Source tree
3793            echo "$srcdir/$f"
3794          else
3795            # /dev/null tree
3796            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3797 echo "$as_me: error: cannot find input file: $f" >&2;}
3798    { (exit 1); exit 1; }; }
3799          fi;;
3800       esac
3801     done` || { (exit 1); exit 1; }
3802 _ACEOF
3803 cat >>$CONFIG_STATUS <<_ACEOF
3804   sed "$ac_vpsub
3805 $extrasub
3806 _ACEOF
3807 cat >>$CONFIG_STATUS <<\_ACEOF
3808 :t
3809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3810 s,@configure_input@,$configure_input,;t t
3811 s,@srcdir@,$ac_srcdir,;t t
3812 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3813 s,@top_srcdir@,$ac_top_srcdir,;t t
3814 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3815 s,@builddir@,$ac_builddir,;t t
3816 s,@abs_builddir@,$ac_abs_builddir,;t t
3817 s,@top_builddir@,$ac_top_builddir,;t t
3818 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3819 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3820   rm -f $tmp/stdin
3821   if test x"$ac_file" != x-; then
3822     mv $tmp/out $ac_file
3823   else
3824     cat $tmp/out
3825     rm -f $tmp/out
3826   fi
3827
3828 done
3829 _ACEOF
3830
3831 cat >>$CONFIG_STATUS <<\_ACEOF
3832
3833 { (exit 0); exit 0; }
3834 _ACEOF
3835 chmod +x $CONFIG_STATUS
3836 ac_clean_files=$ac_clean_files_save
3837
3838
3839 # configure is writing to config.log, and then calls config.status.
3840 # config.status does its own redirection, appending to config.log.
3841 # Unfortunately, on DOS this fails, as config.log is still kept open
3842 # by configure, so config.status won't be able to write to it; its
3843 # output is simply discarded.  So we exec the FD to /dev/null,
3844 # effectively closing config.log, so it can be properly (re)opened and
3845 # appended to by config.status.  When coming back to configure, we
3846 # need to make the FD available again.
3847 if test "$no_create" != yes; then
3848   ac_cs_success=:
3849   ac_config_status_args=
3850   test "$silent" = yes &&
3851     ac_config_status_args="$ac_config_status_args --quiet"
3852   exec 5>/dev/null
3853   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3854   exec 5>>config.log
3855   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3856   # would make configure fail if this is the last instruction.
3857   $ac_cs_success || { (exit 1); exit 1; }
3858 fi
3859
3860
3861 # Messages
3862 printf '#================================================================\n'
3863 printf '# Ready to make.\n'
3864 printf '#================================================================\n'
3865
3866
3867
3868 # END OF FILE