2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for tokyocabinet 1.2.5.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
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'"
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
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'
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'
277 # Initialize some variables set by options.
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
289 program_transform_name=s,x,x,
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'
318 # If the previous option needs an argument, assign it.
319 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327 # Accept the important Cygnus configure options, so we can diagnose typos.
331 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 -build | --build | --buil | --bui | --bu)
337 ac_prev=build_alias ;;
338 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339 build_alias=$ac_optarg ;;
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 ;;
349 cache_file=config.cache ;;
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 datadir=$ac_optarg ;;
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" ;;
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'`
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
388 -gas | --gas | --ga | --g)
389 # Obsolete; use --with-gas.
392 -help | --help | --hel | --he | -h)
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 ;;
399 -host | --host | --hos | --ho)
400 ac_prev=host_alias ;;
401 -host=* | --host=* | --hos=* | --ho=*)
402 host_alias=$ac_optarg ;;
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 ;;
411 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414 infodir=$ac_optarg ;;
416 -libdir | --libdir | --libdi | --libd)
418 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
443 # Obsolete; use --without-fp.
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c | -n)
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500 | -silent | --silent | --silen | --sile | --sil)
503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 sbindir=$ac_optarg ;;
509 -sharedstatedir | --sharedstatedir | --sharedstatedi \
510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511 | --sharedst | --shareds | --shared | --share | --shar \
513 ac_prev=sharedstatedir ;;
514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 sharedstatedir=$ac_optarg ;;
520 -site | --site | --sit)
522 -site=* | --site=* | --sit=*)
525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
542 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 -version | --version | --versio | --versi | --vers | -V)
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'`
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
571 # Obsolete; use --with-x.
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 ;;
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 ;;
588 -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
623 eval ac_val=$`echo $ac_var`
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
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
635 eval ac_val=$`echo $ac_var`
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
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.
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
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664 test "$silent" = yes && exec 6>/dev/null
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 ||
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
684 if test ! -r $srcdir/$ac_unique_file; then
688 ac_srcdir_defaulted=no
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; }; }
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696 { (exit 1); exit 1; }; }
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}
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
733 # Report the --help message.
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.
739 \`configure' configures tokyocabinet 1.2.5 to adapt to many kinds of systems.
741 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
746 Defaults for the options are specified in brackets.
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 \`..']
762 Installation directories:
763 --prefix=PREFIX install architecture-independent files in PREFIX
765 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
773 For better control, use the options below.
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]
794 if test -n "$ac_init_help"; then
795 case $ac_init_help in
796 short | recursive ) echo "Configuration of tokyocabinet 1.2.5:";;
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
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>
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.
828 if test "$ac_init_help" = "recursive"; then
829 # If there are subdirs, report their specific --help.
831 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
832 test -d $ac_dir || continue
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'`
840 ac_dir_suffix= ac_top_builddir=
844 .) # No --srcdir option. We are building in place.
846 if test -z "$ac_top_builddir"; then
849 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
851 [\\/]* | ?:[\\/]* ) # Absolute path.
852 ac_srcdir=$srcdir$ac_dir_suffix;
853 ac_top_srcdir=$srcdir ;;
855 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
856 ac_top_srcdir=$ac_top_builddir$srcdir ;;
859 # Do not use `cd foo && pwd` to compute absolute paths, because
860 # the directories may not exist.
862 .) ac_abs_builddir="$ac_dir";;
865 .) ac_abs_builddir=`pwd`;;
866 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
867 *) ac_abs_builddir=`pwd`/"$ac_dir";;
870 case $ac_abs_builddir in
871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
879 case $ac_abs_builddir in
880 .) ac_abs_srcdir=$ac_srcdir;;
883 .) ac_abs_srcdir=$ac_abs_builddir;;
884 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
885 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
888 case $ac_abs_builddir in
889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
899 # Check for guested configure; otherwise get Cygnus style configure.
900 if test -f $ac_srcdir/configure.gnu; then
902 $SHELL $ac_srcdir/configure.gnu --help=recursive
903 elif test -f $ac_srcdir/configure; then
905 $SHELL $ac_srcdir/configure --help=recursive
906 elif test -f $ac_srcdir/configure.ac ||
907 test -f $ac_srcdir/configure.in; then
911 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
917 test -n "$ac_init_help" && exit 0
918 if $ac_init_version; then
920 tokyocabinet configure 1.2.5
921 generated by GNU Autoconf 2.59
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.
931 This file contains any messages produced by compilers while
932 running configure, to aid debugging if configure makes a mistake.
934 It was created by tokyocabinet $as_me 1.2.5, which was
935 generated by GNU Autoconf 2.59. Invocation command line was
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`
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`
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`
965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969 test -z "$as_dir" && as_dir=.
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.
994 ac_must_keep_next=false
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)
1004 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1008 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1023 -* ) ac_must_keep_next=true ;;
1026 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1027 # Get rid of the leading space.
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; }
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.
1047 ## ---------------- ##
1048 ## Cache variables. ##
1049 ## ---------------- ##
1052 # The following way of writing the cache mishandles newlines in values,
1055 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1058 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1063 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1070 ## ----------------- ##
1071 ## Output variables. ##
1072 ## ----------------- ##
1075 for ac_var in $ac_subst_vars
1077 eval ac_val=$`echo $ac_var`
1078 echo "$ac_var='"'"'$ac_val'"'"'"
1082 if test -n "$ac_subst_files"; then
1089 for ac_var in $ac_subst_files
1091 eval ac_val=$`echo $ac_var`
1092 echo "$ac_var='"'"'$ac_val'"'"'"
1097 if test -s confdefs.h; then
1104 sed "/^$/d" confdefs.h | sort
1107 test "$ac_signal" != 0 &&
1108 echo "$as_me: caught signal $ac_signal"
1109 echo "$as_me: exit $exit_status"
1111 rm -f core *.core &&
1112 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1115 for ac_signal in 1 2 13 15; do
1116 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1125 # Predefined preprocessor variables.
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_NAME "$PACKAGE_NAME"
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_STRING "$PACKAGE_STRING"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1158 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1177 [\\/]* | ?:[\\/]* ) . $cache_file;;
1178 *) . ./$cache_file;;
1182 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1183 echo "$as_me: creating cache $cache_file" >&6;}
1187 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1217 # Pass precious variables to config.status.
1218 if test "$ac_new_set" = set; then
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1271 # Package information
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"
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"
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
1309 #================================================================
1311 #================================================================
1314 # Internal variables
1318 # Check whether --enable-debug or --disable-debug was given.
1319 if test "${enable_debug+set}" = set; then
1320 enableval="$enable_debug"
1323 if test "$enable_debug" = "yes"
1325 MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -g"
1326 MYCPPFLAGS="$MYCPPFLAGS -UNDEBUG"
1327 MYLDFLAGS="$MYLDFLAGS -static"
1328 enables="$enables (debug)"
1332 # Check whether --enable-devel or --disable-devel was given.
1333 if test "${enable_devel+set}" = set; then
1334 enableval="$enable_devel"
1337 if test "$enable_devel" = "yes"
1339 MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -g -O2 -pipe"
1340 MYCPPFLAGS="$MYCPPFLAGS -UNDEBUG"
1341 enables="$enables (devel)"
1345 # Check whether --enable-profile or --disable-profile was given.
1346 if test "${enable_profile+set}" = set; then
1347 enableval="$enable_profile"
1350 if test "$enable_profile" = "yes"
1352 MYCFLAGS="-std=c99 -Wall -fPIC -pedantic -fsigned-char -g -pg -O2 -pipe"
1353 enables="$enables (profile)"
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"
1362 if test "$enable_off64" = "yes"
1364 MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64"
1365 enables="$enables (off64)"
1369 # Check whether --enable-fastest or --disable-fastest was given.
1370 if test "${enable_fastest+set}" = set; then
1371 enableval="$enable_fastest"
1374 if test "$enable_fastest" = "yes"
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)"
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"
1388 if test "$enable_swab" = "yes"
1390 MYCPPFLAGS="$MYCPPFLAGS -D_MYSWAB"
1391 enables="$enables (swab)"
1395 # Check whether --enable-uyield or --disable-uyield was given.
1396 if test "${enable_uyield+set}" = set; then
1397 enableval="$enable_uyield"
1400 if test "$enable_uyield" = "yes"
1402 MYCPPFLAGS="$MYCPPFLAGS -D_MYMICROYIELD"
1403 enables="$enables (uyield)"
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"
1412 if test "$enable_zlib" = "no"
1414 MYCPPFLAGS="$MYCPPFLAGS -D_MYNOZLIB"
1415 enables="$enables (no-zlib)"
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"
1424 if test "$enable_pthread" = "no"
1426 MYCPPFLAGS="$MYCPPFLAGS -D_MYNOPTHREAD"
1427 enables="$enables (no-pthread)"
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"
1436 if test "$enable_shared" = "no"
1438 enables="$enables (no-shared)"
1442 printf '#================================================================\n'
1443 printf '# Configuring Tokyo Cabinet version %s%s.\n' "$PACKAGE_VERSION" "$enables"
1444 printf '#================================================================\n'
1448 #================================================================
1449 # Checking Commands and Libraries
1450 #================================================================
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
1466 if test -n "$CC"; then
1467 ac_cv_prog_CC="$CC" # Let the user override the test.
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1486 if test -n "$CC"; then
1487 echo "$as_me:$LINENO: result: $CC" >&5
1488 echo "${ECHO_T}$CC" >&6
1490 echo "$as_me:$LINENO: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1495 if test -z "$ac_cv_prog_CC"; then
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
1504 if test -n "$ac_ct_CC"; then
1505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
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
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1566 if test -n "$CC"; then
1567 echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1570 echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1575 if test -z "$ac_cv_prog_CC"; then
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
1584 if test -n "$ac_ct_CC"; then
1585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
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
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1657 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$CC"; then
1673 if test -n "$ac_tool_prefix"; then
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
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1703 if test -n "$CC"; then
1704 echo "$as_me:$LINENO: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1711 test -n "$CC" && break
1714 if test -z "$CC"; then
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
1725 if test -n "$ac_ct_CC"; then
1726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1753 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1788 cat >conftest.$ac_ext <<_ACEOF
1791 cat confdefs.h >>conftest.$ac_ext
1792 cat >>conftest.$ac_ext <<_ACEOF
1793 /* end confdefs.h. */
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
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
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
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.
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
1826 test -f "$ac_file" || continue
1828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1831 # This is the source file.
1834 # We found the default executable, but exeext='' is most
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.
1849 echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
1859 ac_exeext=$ac_cv_exeext
1860 echo "$as_me:$LINENO: result: $ac_file" >&5
1861 echo "${ECHO_T}$ac_file" >&6
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
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1878 if test "$cross_compiling" = maybe; then
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; }; }
1891 echo "$as_me:$LINENO: result: yes" >&5
1892 echo "${ECHO_T}yes" >&6
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
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
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
1914 for ac_file in conftest.exe conftest conftest.*; do
1915 test -f "$ac_file" || continue
1917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1918 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
1936 rm -f conftest.$ac_ext
1937 EXEEXT=$ac_cv_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
1944 cat >conftest.$ac_ext <<_ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h. */
1959 rm -f conftest.o conftest.obj
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
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
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1968 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1973 echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
1983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1985 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1986 echo "${ECHO_T}$ac_cv_objext" >&6
1987 OBJEXT=$ac_cv_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
1994 cat >conftest.$ac_ext <<_ACEOF
1997 cat confdefs.h >>conftest.$ac_ext
1998 cat >>conftest.$ac_ext <<_ACEOF
1999 /* end confdefs.h. */
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014 (eval $ac_compile) 2>conftest.er1
2016 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2036 echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
2056 cat >conftest.$ac_ext <<_ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h. */
2071 rm -f conftest.$ac_objext
2072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073 (eval $ac_compile) 2>conftest.er1
2075 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2113 if test "$GCC" = yes; then
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
2124 ac_cv_prog_cc_stdc=no
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.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)
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2150 s = g (p, va_arg (v,int));
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];
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);
2173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
2192 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2210 ac_cv_prog_cc_stdc=$ac_arg
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.err conftest.$ac_objext
2219 rm -f conftest.$ac_ext conftest.$ac_objext
2224 case "x$ac_cv_prog_cc_stdc" in
2226 echo "$as_me:$LINENO: result: none needed" >&5
2227 echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2247 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 for ac_declaration in \
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);' \
2273 cat >conftest.$ac_ext <<_ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>conftest.er1
2293 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319 cat >conftest.$ac_ext <<_ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h. */
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>conftest.er1
2338 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2358 echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 if test -n "$ac_declaration"; then
2366 echo '#ifdef __cplusplus' >>confdefs.h
2367 echo $ac_declaration >>confdefs.h
2368 echo '#endif' >>confdefs.h
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
2391 # See if sys/param.h defines the BYTE_ORDER macro.
2392 cat >conftest.$ac_ext <<_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>
2404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>conftest.er1
2416 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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>
2447 #if BYTE_ORDER != BIG_ENDIAN
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 ac_cv_c_bigendian=yes
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2482 ac_cv_c_bigendian=no
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
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
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; }
2508 _ascii (); _ebcdic ();
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>conftest.er1
2517 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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
2542 # finding both strings is unlikely to happen, but who knows?
2543 ac_cv_c_bigendian=unknown
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2562 /* Are we little or big endian? From Harbison&Steele. */
2566 char c[sizeof (long)];
2569 exit (u.c[sizeof (long) - 1] == 1);
2572 rm -f conftest$ac_exeext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2574 (eval $ac_link) 2>&5
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
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_cv_c_bigendian=no
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
2590 ac_cv_c_bigendian=yes
2592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2601 MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND" ;;
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; }; } ;;
2613 # Underlying libraries
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
2620 ac_check_lib_save_LIBS=$LIBS
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
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
2642 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 ac_cv_lib_c_main=yes
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f conftest.err conftest.$ac_objext \
2668 conftest$ac_exeext conftest.$ac_ext
2669 LIBS=$ac_check_lib_save_LIBS
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
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
2688 ac_check_lib_save_LIBS=$LIBS
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
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
2710 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_lib_m_main=yes
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2737 LIBS=$ac_check_lib_save_LIBS
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
2750 if test "$enable_pthread" != "no"
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
2758 ac_check_lib_save_LIBS=$LIBS
2759 LIBS="-lpthread $LIBS"
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
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
2780 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_lib_pthread_main=yes
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 ac_cv_lib_pthread_main=no
2805 rm -f conftest.err conftest.$ac_objext \
2806 conftest$ac_exeext conftest.$ac_ext
2807 LIBS=$ac_check_lib_save_LIBS
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
2816 LIBS="-lpthread $LIBS"
2821 if test "$enable_zlib" != "no"
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
2829 ac_check_lib_save_LIBS=$LIBS
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
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
2851 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_lib_z_main=yes
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2876 rm -f conftest.err conftest.$ac_objext \
2877 conftest$ac_exeext conftest.$ac_ext
2878 LIBS=$ac_check_lib_save_LIBS
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
2894 if test "$enable_shared" != "no" && test "$enable_profile" != "yes"
2896 if uname | grep Darwin >/dev/null
2898 MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.$MYLIBREV.0.dylib"
2899 MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.dylib"
2900 MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.dylib"
2901 MYLDLIBPATHENV="DYLD_LIBRARY_PATH"
2903 MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER.$MYLIBREV.0"
2904 MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER"
2905 MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so"
2911 #================================================================
2913 #================================================================
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.
2943 # config.status only pays attention to the cache file if you give it
2944 # the --recheck option to rerun configure.
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
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.
2959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2961 # `set' does not quote correctly, so add quotes (double-quote
2962 # substitution turns \\\\ into \\, and sed turns \\ into \).
2965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2968 # `set' quotes correctly as required by POSIX, so do not add quotes.
2970 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2979 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
2986 echo "not updating unwritable cache $cache_file"
2991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2992 # Let make expand exec_prefix.
2993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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}:*/:/;
3004 s/^\([^=]*=[ ]*\):*/\1/;
3010 # Transform confdefs.h into DEFS.
3011 # Protect against shell expansion while executing Makefile rules.
3012 # Protect against Makefile macro expansion.
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
3020 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3022 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3026 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
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
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
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$//'`
3050 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3051 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3055 LTLIBOBJS=$ac_ltlibobjs
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
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.
3074 SHELL=\${CONFIG_SHELL-$SHELL}
3077 cat >>$CONFIG_STATUS <<\_ACEOF
3078 ## --------------------- ##
3079 ## M4sh Initialization. ##
3080 ## --------------------- ##
3082 # Be Bourne compatible
3083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
3092 DUALCASE=1; export DUALCASE # for MKS sh
3094 # Support unset when possible.
3095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3102 # Work around bugs in pre-3.0 UWIN ksh.
3103 $as_unset ENV MAIL MAILPATH
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
3114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3115 eval $as_var=C; export $as_var
3121 # Required to use basename.
3122 if expr a : '\(a\)' >/dev/null 2>&1; then
3128 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3129 as_basename=basename
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 ||
3142 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3143 /^X\/\(\/\/\)$/{ s//\1/; q; }
3144 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
3161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
3178 *[\\/]* ) as_myself=$0 ;;
3179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir=.
3184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
3199 case $CONFIG_SHELL in
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3205 test -z "$as_dir" && as_dir=.
3206 for as_base in sh bash ksh sh5; do
3209 if ("$as_dir/$as_base" -c '
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
3219 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
3240 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3243 s,^['$as_cr_digits']*\n,,
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; }; }
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).
3254 # Exit status is that of the last command.
3259 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3260 *c*,-n*) ECHO_N= ECHO_C='
3262 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3263 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3266 if expr a : '\(a\)' >/dev/null 2>&1; then
3272 rm -f conf$$ conf$$.exe 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
3283 elif ln conf$$.file conf$$ 2>/dev/null; then
3288 rm -f conf$$ conf$$.exe conf$$.file
3290 if mkdir -p . 2>/dev/null; then
3293 test -d ./-p && rmdir ./-p
3297 as_executable_p="test -f"
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'"
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'"
3307 # We need space, tab and new line, in precisely that order.
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.
3323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3324 ## Running $as_me. ##
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
3332 CONFIG_FILES = $CONFIG_FILES
3333 CONFIG_HEADERS = $CONFIG_HEADERS
3334 CONFIG_LINKS = $CONFIG_LINKS
3335 CONFIG_COMMANDS = $CONFIG_COMMANDS
3339 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
3348 if test -n "$ac_config_headers"; then
3349 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3352 if test -n "$ac_config_links"; then
3353 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3356 if test -n "$ac_config_commands"; then
3357 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3360 cat >>$CONFIG_STATUS <<\_ACEOF
3363 \`$as_me' instantiates files from templates according to the
3364 current configuration.
3366 Usage: $0 [OPTIONS] [FILE]...
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
3376 Configuration files:
3379 Report bugs to <bug-autoconf@gnu.org>."
3382 cat >>$CONFIG_STATUS <<_ACEOF
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'`\\"
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."
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.
3402 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3403 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3411 *) # This is not an option, so the user has probably given explicit
3414 ac_need_defaults=false;;
3418 # Handling of the options.
3420 cat >>$CONFIG_STATUS <<\_ACEOF
3421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3423 --version | --vers* | -V )
3424 echo "$ac_cs_version"; exit 0 ;;
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 )
3436 --file | --fil | --fi | --f )
3438 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3439 ac_need_defaults=false;;
3440 --header | --heade | --head | --hea )
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)
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; }; } ;;
3455 *) ac_config_targets="$ac_config_targets $1" ;;
3461 ac_configure_extra_args=
3463 if $ac_cs_silent; then
3465 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
3481 cat >>$CONFIG_STATUS <<\_ACEOF
3482 for ac_config_target in $ac_config_targets
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; }; };;
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
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.
3508 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3509 trap '{ (exit 1); exit 1; }' 1 2 13 15
3512 # Create a (secure) tmp directory for tmp files.
3515 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3516 test -n "$tmp" && test -d "$tmp"
3519 tmp=./confstat$$-$RANDOM
3520 (umask 077 && mkdir $tmp)
3523 echo "$me: cannot create a temporary directory in ." >&2
3524 { (exit 1); exit 1; }
3529 cat >>$CONFIG_STATUS <<_ACEOF
3532 # CONFIG_FILES section.
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
3567 s,@ECHO_C@,$ECHO_C,;t t
3568 s,@ECHO_N@,$ECHO_N,;t t
3569 s,@ECHO_T@,$ECHO_T,;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
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.
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.
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
3614 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3616 if test ! -s $tmp/subs.frag; then
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.
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"
3628 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3630 ac_sed_frag=`expr $ac_sed_frag + 1`
3632 ac_end=`expr $ac_end + $ac_max_sed_lines`
3635 if test -z "$ac_sed_cmds"; then
3638 fi # test -n "$CONFIG_FILES"
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".
3645 - | *:- | *:-:* ) # input from 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 ;;
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 ||
3662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3664 /^X\(\/\/\)$/{ s//\1/; q; }
3665 /^X\(\/\).*/{ s//\1/; q; }
3667 { if $as_mkdir_p; then
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 ||
3681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3683 /^X\(\/\/\)$/{ s//\1/; q; }
3684 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
3699 ac_dir_suffix= ac_top_builddir=
3703 .) # No --srcdir option. We are building in place.
3705 if test -z "$ac_top_builddir"; then
3708 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3710 [\\/]* | ?:[\\/]* ) # Absolute path.
3711 ac_srcdir=$srcdir$ac_dir_suffix;
3712 ac_top_srcdir=$srcdir ;;
3714 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3715 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3718 # Do not use `cd foo && pwd` to compute absolute paths, because
3719 # the directories may not exist.
3721 .) ac_abs_builddir="$ac_dir";;
3724 .) ac_abs_builddir=`pwd`;;
3725 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3726 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3729 case $ac_abs_builddir in
3730 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
3738 case $ac_abs_builddir in
3739 .) ac_abs_srcdir=$ac_srcdir;;
3742 .) ac_abs_srcdir=$ac_abs_builddir;;
3743 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3744 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3747 case $ac_abs_builddir in
3748 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
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;}
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
3770 configure_input="$ac_file. "
3772 configure_input=$configure_input"Generated from `echo $ac_file_in |
3773 sed 's,.*/,,'` by configure."
3775 # First look for the input files in the build tree, otherwise in the
3777 ac_file_inputs=`IFS=:
3778 for f in $ac_file_in; do
3780 -) echo $tmp/stdin ;;
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; }; }
3788 if test -f "$f"; then
3791 elif test -f "$srcdir/$f"; then
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; }; }
3801 done` || { (exit 1); exit 1; }
3803 cat >>$CONFIG_STATUS <<_ACEOF
3807 cat >>$CONFIG_STATUS <<\_ACEOF
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
3821 if test x"$ac_file" != x-; then
3822 mv $tmp/out $ac_file
3831 cat >>$CONFIG_STATUS <<\_ACEOF
3833 { (exit 0); exit 0; }
3835 chmod +x $CONFIG_STATUS
3836 ac_clean_files=$ac_clean_files_save
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
3849 ac_config_status_args=
3850 test "$silent" = yes &&
3851 ac_config_status_args="$ac_config_status_args --quiet"
3853 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }
3862 printf '#================================================================\n'
3863 printf '# Ready to make.\n'
3864 printf '#================================================================\n'