4512
4518
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4521
# Check whether --enable-sasl was given.
4522
if test "${enable_sasl+set}" = set; then
4523
enableval=$enable_sasl;
4527
# Check whether --enable-sasl_pwdb was given.
4528
if test "${enable_sasl_pwdb+set}" = set; then
4529
enableval=$enable_sasl_pwdb;
4533
if test "x$enable_sasl_pwdb" = "xyes"; then
4541
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4542
$as_echo_n "checking for ANSI C header files... " >&6; }
4543
if test "${ac_cv_header_stdc+set}" = set; then
4544
$as_echo_n "(cached) " >&6
4546
cat >conftest.$ac_ext <<_ACEOF
4549
cat confdefs.h >>conftest.$ac_ext
4550
cat >>conftest.$ac_ext <<_ACEOF
4551
/* end confdefs.h. */
4565
rm -f conftest.$ac_objext
4566
if { (ac_try="$ac_compile"
4568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569
*) ac_try_echo=$ac_try;;
4571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572
$as_echo "$ac_try_echo") >&5
4573
(eval "$ac_compile") 2>conftest.er1
4575
grep -v '^ *+' conftest.er1 >conftest.err
4577
cat conftest.err >&5
4578
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
(exit $ac_status); } && {
4580
test -z "$ac_c_werror_flag" ||
4581
test ! -s conftest.err
4582
} && test -s conftest.$ac_objext; then
4583
ac_cv_header_stdc=yes
4585
$as_echo "$as_me: failed program was:" >&5
4586
sed 's/^/| /' conftest.$ac_ext >&5
4588
ac_cv_header_stdc=no
4591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593
if test $ac_cv_header_stdc = yes; then
4594
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595
cat >conftest.$ac_ext <<_ACEOF
4598
cat confdefs.h >>conftest.$ac_ext
4599
cat >>conftest.$ac_ext <<_ACEOF
4600
/* end confdefs.h. */
4604
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605
$EGREP "memchr" >/dev/null 2>&1; then
4608
ac_cv_header_stdc=no
4614
if test $ac_cv_header_stdc = yes; then
4615
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616
cat >conftest.$ac_ext <<_ACEOF
4619
cat confdefs.h >>conftest.$ac_ext
4620
cat >>conftest.$ac_ext <<_ACEOF
4621
/* end confdefs.h. */
4625
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626
$EGREP "free" >/dev/null 2>&1; then
4629
ac_cv_header_stdc=no
4635
if test $ac_cv_header_stdc = yes; then
4636
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637
if test "$cross_compiling" = yes; then
4640
cat >conftest.$ac_ext <<_ACEOF
4643
cat confdefs.h >>conftest.$ac_ext
4644
cat >>conftest.$ac_ext <<_ACEOF
4645
/* end confdefs.h. */
4648
#if ((' ' & 0x0FF) == 0x020)
4649
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4650
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652
# define ISLOWER(c) \
4653
(('a' <= (c) && (c) <= 'i') \
4654
|| ('j' <= (c) && (c) <= 'r') \
4655
|| ('s' <= (c) && (c) <= 'z'))
4656
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664
for (i = 0; i < 256; i++)
4665
if (XOR (islower (i), ISLOWER (i))
4666
|| toupper (i) != TOUPPER (i))
4671
rm -f conftest$ac_exeext
4672
if { (ac_try="$ac_link"
4674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675
*) ac_try_echo=$ac_try;;
4677
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4678
$as_echo "$ac_try_echo") >&5
4679
(eval "$ac_link") 2>&5
4681
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4683
{ (case "(($ac_try" in
4684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685
*) ac_try_echo=$ac_try;;
4687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4688
$as_echo "$ac_try_echo") >&5
4689
(eval "$ac_try") 2>&5
4691
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692
(exit $ac_status); }; }; then
4695
$as_echo "$as_me: program exited with status $ac_status" >&5
4696
$as_echo "$as_me: failed program was:" >&5
4697
sed 's/^/| /' conftest.$ac_ext >&5
4700
ac_cv_header_stdc=no
4702
rm -rf conftest.dSYM
4703
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4709
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4710
$as_echo "$ac_cv_header_stdc" >&6; }
4711
if test $ac_cv_header_stdc = yes; then
4713
cat >>confdefs.h <<\_ACEOF
4714
#define STDC_HEADERS 1
4719
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4729
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4730
inttypes.h stdint.h unistd.h
4732
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4734
$as_echo_n "checking for $ac_header... " >&6; }
4735
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4736
$as_echo_n "(cached) " >&6
4738
cat >conftest.$ac_ext <<_ACEOF
4741
cat confdefs.h >>conftest.$ac_ext
4742
cat >>conftest.$ac_ext <<_ACEOF
4743
/* end confdefs.h. */
4744
$ac_includes_default
4746
#include <$ac_header>
4748
rm -f conftest.$ac_objext
4749
if { (ac_try="$ac_compile"
4751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752
*) ac_try_echo=$ac_try;;
4754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755
$as_echo "$ac_try_echo") >&5
4756
(eval "$ac_compile") 2>conftest.er1
4758
grep -v '^ *+' conftest.er1 >conftest.err
4760
cat conftest.err >&5
4761
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762
(exit $ac_status); } && {
4763
test -z "$ac_c_werror_flag" ||
4764
test ! -s conftest.err
4765
} && test -s conftest.$ac_objext; then
4766
eval "$as_ac_Header=yes"
4768
$as_echo "$as_me: failed program was:" >&5
4769
sed 's/^/| /' conftest.$ac_ext >&5
4771
eval "$as_ac_Header=no"
4774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776
ac_res=`eval 'as_val=${'$as_ac_Header'}
4777
$as_echo "$as_val"'`
4778
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4779
$as_echo "$ac_res" >&6; }
4780
as_val=`eval 'as_val=${'$as_ac_Header'}
4781
$as_echo "$as_val"'`
4782
if test "x$as_val" = x""yes; then
4783
cat >>confdefs.h <<_ACEOF
4784
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4793
for ac_header in sasl/sasl.h
4795
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4797
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4798
$as_echo_n "checking for $ac_header... " >&6; }
4799
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4800
$as_echo_n "(cached) " >&6
4802
ac_res=`eval 'as_val=${'$as_ac_Header'}
4803
$as_echo "$as_val"'`
4804
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4805
$as_echo "$ac_res" >&6; }
4807
# Is the header compilable?
4808
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4809
$as_echo_n "checking $ac_header usability... " >&6; }
4810
cat >conftest.$ac_ext <<_ACEOF
4813
cat confdefs.h >>conftest.$ac_ext
4814
cat >>conftest.$ac_ext <<_ACEOF
4815
/* end confdefs.h. */
4816
$ac_includes_default
4817
#include <$ac_header>
4819
rm -f conftest.$ac_objext
4820
if { (ac_try="$ac_compile"
4822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823
*) ac_try_echo=$ac_try;;
4825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826
$as_echo "$ac_try_echo") >&5
4827
(eval "$ac_compile") 2>conftest.er1
4829
grep -v '^ *+' conftest.er1 >conftest.err
4831
cat conftest.err >&5
4832
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833
(exit $ac_status); } && {
4834
test -z "$ac_c_werror_flag" ||
4835
test ! -s conftest.err
4836
} && test -s conftest.$ac_objext; then
4837
ac_header_compiler=yes
4839
$as_echo "$as_me: failed program was:" >&5
4840
sed 's/^/| /' conftest.$ac_ext >&5
4842
ac_header_compiler=no
4845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4847
$as_echo "$ac_header_compiler" >&6; }
4849
# Is the header present?
4850
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4851
$as_echo_n "checking $ac_header presence... " >&6; }
4852
cat >conftest.$ac_ext <<_ACEOF
4855
cat confdefs.h >>conftest.$ac_ext
4856
cat >>conftest.$ac_ext <<_ACEOF
4857
/* end confdefs.h. */
4858
#include <$ac_header>
4860
if { (ac_try="$ac_cpp conftest.$ac_ext"
4862
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863
*) ac_try_echo=$ac_try;;
4865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866
$as_echo "$ac_try_echo") >&5
4867
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869
grep -v '^ *+' conftest.er1 >conftest.err
4871
cat conftest.err >&5
4872
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873
(exit $ac_status); } >/dev/null && {
4874
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4875
test ! -s conftest.err
4877
ac_header_preproc=yes
4879
$as_echo "$as_me: failed program was:" >&5
4880
sed 's/^/| /' conftest.$ac_ext >&5
4882
ac_header_preproc=no
4885
rm -f conftest.err conftest.$ac_ext
4886
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4887
$as_echo "$ac_header_preproc" >&6; }
4889
# So? What about this header?
4890
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4892
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4893
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4894
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4895
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4896
ac_header_preproc=yes
4899
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4900
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4901
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4902
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4903
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4904
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4905
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4906
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4907
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4908
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4909
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4910
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4912
## ----------------------------------------- ##
4913
## Report this to memcached@googlegroups.com ##
4914
## ----------------------------------------- ##
4916
) | sed "s/^/$as_me: WARNING: /" >&2
4919
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4920
$as_echo_n "checking for $ac_header... " >&6; }
4921
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4922
$as_echo_n "(cached) " >&6
4924
eval "$as_ac_Header=\$ac_header_preproc"
4926
ac_res=`eval 'as_val=${'$as_ac_Header'}
4927
$as_echo "$as_val"'`
4928
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4929
$as_echo "$ac_res" >&6; }
4932
as_val=`eval 'as_val=${'$as_ac_Header'}
4933
$as_echo "$as_val"'`
4934
if test "x$as_val" = x""yes; then
4935
cat >>confdefs.h <<_ACEOF
4936
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943
if test "x$enable_sasl" = "xyes"; then
4945
{ $as_echo "$as_me:$LINENO: checking for SASL_CB_GETCONF" >&5
4946
$as_echo_n "checking for SASL_CB_GETCONF... " >&6; }
4947
if test "${ac_cv_c_sasl_cb_getconf+set}" = set; then
4948
$as_echo_n "(cached) " >&6
4950
cat >conftest.$ac_ext <<_ACEOF
4953
cat confdefs.h >>conftest.$ac_ext
4954
cat >>conftest.$ac_ext <<_ACEOF
4955
/* end confdefs.h. */
4957
#include <sasl/sasl.h>
4963
unsigned long val = SASL_CB_GETCONF;
4969
rm -f conftest.$ac_objext
4970
if { (ac_try="$ac_compile"
4972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973
*) ac_try_echo=$ac_try;;
4975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4976
$as_echo "$ac_try_echo") >&5
4977
(eval "$ac_compile") 2>conftest.er1
4979
grep -v '^ *+' conftest.er1 >conftest.err
4981
cat conftest.err >&5
4982
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983
(exit $ac_status); } && {
4984
test -z "$ac_c_werror_flag" ||
4985
test ! -s conftest.err
4986
} && test -s conftest.$ac_objext; then
4987
ac_cv_c_sasl_cb_getconf=yes
4989
$as_echo "$as_me: failed program was:" >&5
4990
sed 's/^/| /' conftest.$ac_ext >&5
4992
ac_cv_c_sasl_cb_getconf=no
4995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_sasl_cb_getconf" >&5
4999
$as_echo "$ac_cv_c_sasl_cb_getconf" >&6; }
5000
if test "$ac_cv_c_sasl_cb_getconf" = "yes"; then
5002
cat >>confdefs.h <<\_ACEOF
5003
#define HAVE_SASL_CB_GETCONF 1
5010
cat >>confdefs.h <<\_ACEOF
5011
#define ENABLE_SASL 1
5014
{ $as_echo "$as_me:$LINENO: checking for library containing sasl_server_init" >&5
5015
$as_echo_n "checking for library containing sasl_server_init... " >&6; }
5016
if test "${ac_cv_search_sasl_server_init+set}" = set; then
5017
$as_echo_n "(cached) " >&6
5019
ac_func_search_save_LIBS=$LIBS
5020
cat >conftest.$ac_ext <<_ACEOF
5023
cat confdefs.h >>conftest.$ac_ext
5024
cat >>conftest.$ac_ext <<_ACEOF
5025
/* end confdefs.h. */
5027
/* Override any GCC internal prototype to avoid an error.
5028
Use char because int might match the return type of a GCC
5029
builtin and then its argument prototype would still apply. */
5033
char sasl_server_init ();
5037
return sasl_server_init ();
5042
for ac_lib in '' sasl2 sasl; do
5043
if test -z "$ac_lib"; then
5044
ac_res="none required"
5047
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5049
rm -f conftest.$ac_objext conftest$ac_exeext
5050
if { (ac_try="$ac_link"
5052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053
*) ac_try_echo=$ac_try;;
5055
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056
$as_echo "$ac_try_echo") >&5
5057
(eval "$ac_link") 2>conftest.er1
5059
grep -v '^ *+' conftest.er1 >conftest.err
5061
cat conftest.err >&5
5062
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063
(exit $ac_status); } && {
5064
test -z "$ac_c_werror_flag" ||
5065
test ! -s conftest.err
5066
} && test -s conftest$ac_exeext && {
5067
test "$cross_compiling" = yes ||
5068
$as_test_x conftest$ac_exeext
5070
ac_cv_search_sasl_server_init=$ac_res
5072
$as_echo "$as_me: failed program was:" >&5
5073
sed 's/^/| /' conftest.$ac_ext >&5
5078
rm -rf conftest.dSYM
5079
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5081
if test "${ac_cv_search_sasl_server_init+set}" = set; then
5085
if test "${ac_cv_search_sasl_server_init+set}" = set; then
5088
ac_cv_search_sasl_server_init=no
5091
LIBS=$ac_func_search_save_LIBS
5093
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sasl_server_init" >&5
5094
$as_echo "$ac_cv_search_sasl_server_init" >&6; }
5095
ac_res=$ac_cv_search_sasl_server_init
5096
if test "$ac_res" != no; then
5097
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5101
{ { $as_echo "$as_me:$LINENO: error: Failed to locate the library containing sasl_server_init" >&5
5102
$as_echo "$as_me: error: Failed to locate the library containing sasl_server_init" >&2;}
5103
{ (exit 1); exit 1; }; }
5108
if test "x$enable_sasl_pwdb" = "xyes"; then
5110
cat >>confdefs.h <<\_ACEOF
5111
#define ENABLE_SASL_PWDB 1
4515
5118
# Check whether --enable-dtrace was given.
4516
5119
if test "${enable_dtrace+set}" = set; then
4517
5120
enableval=$enable_dtrace;
4520
if test "x$enable_dtrace" == "xyes"; then
5123
if test "x$enable_dtrace" = "xyes"; then
4521
5124
# Extract the first word of "dtrace", so it can be a program name with args.
4522
5125
set dummy dtrace; ac_word=$2
4523
5126
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5288
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5289
$as_echo_n "checking for ANSI C header files... " >&6; }
5290
if test "${ac_cv_header_stdc+set}" = set; then
5291
$as_echo_n "(cached) " >&6
5293
cat >conftest.$ac_ext <<_ACEOF
5296
cat confdefs.h >>conftest.$ac_ext
5297
cat >>conftest.$ac_ext <<_ACEOF
5298
/* end confdefs.h. */
5312
rm -f conftest.$ac_objext
5313
if { (ac_try="$ac_compile"
5315
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316
*) ac_try_echo=$ac_try;;
5318
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5319
$as_echo "$ac_try_echo") >&5
5320
(eval "$ac_compile") 2>conftest.er1
5322
grep -v '^ *+' conftest.er1 >conftest.err
5324
cat conftest.err >&5
5325
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326
(exit $ac_status); } && {
5327
test -z "$ac_c_werror_flag" ||
5328
test ! -s conftest.err
5329
} && test -s conftest.$ac_objext; then
5330
ac_cv_header_stdc=yes
5332
$as_echo "$as_me: failed program was:" >&5
5333
sed 's/^/| /' conftest.$ac_ext >&5
5335
ac_cv_header_stdc=no
5338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340
if test $ac_cv_header_stdc = yes; then
5341
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5342
cat >conftest.$ac_ext <<_ACEOF
5345
cat confdefs.h >>conftest.$ac_ext
5346
cat >>conftest.$ac_ext <<_ACEOF
5347
/* end confdefs.h. */
5351
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352
$EGREP "memchr" >/dev/null 2>&1; then
5355
ac_cv_header_stdc=no
5361
if test $ac_cv_header_stdc = yes; then
5362
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5363
cat >conftest.$ac_ext <<_ACEOF
5366
cat confdefs.h >>conftest.$ac_ext
5367
cat >>conftest.$ac_ext <<_ACEOF
5368
/* end confdefs.h. */
5372
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373
$EGREP "free" >/dev/null 2>&1; then
5376
ac_cv_header_stdc=no
5382
if test $ac_cv_header_stdc = yes; then
5383
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5384
if test "$cross_compiling" = yes; then
5387
cat >conftest.$ac_ext <<_ACEOF
5390
cat confdefs.h >>conftest.$ac_ext
5391
cat >>conftest.$ac_ext <<_ACEOF
5392
/* end confdefs.h. */
5395
#if ((' ' & 0x0FF) == 0x020)
5396
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5399
# define ISLOWER(c) \
5400
(('a' <= (c) && (c) <= 'i') \
5401
|| ('j' <= (c) && (c) <= 'r') \
5402
|| ('s' <= (c) && (c) <= 'z'))
5403
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5406
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5411
for (i = 0; i < 256; i++)
5412
if (XOR (islower (i), ISLOWER (i))
5413
|| toupper (i) != TOUPPER (i))
5418
rm -f conftest$ac_exeext
5419
if { (ac_try="$ac_link"
5421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422
*) ac_try_echo=$ac_try;;
5424
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5425
$as_echo "$ac_try_echo") >&5
5426
(eval "$ac_link") 2>&5
5428
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5430
{ (case "(($ac_try" in
5431
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432
*) ac_try_echo=$ac_try;;
5434
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5435
$as_echo "$ac_try_echo") >&5
5436
(eval "$ac_try") 2>&5
5438
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439
(exit $ac_status); }; }; then
5442
$as_echo "$as_me: program exited with status $ac_status" >&5
5443
$as_echo "$as_me: failed program was:" >&5
5444
sed 's/^/| /' conftest.$ac_ext >&5
5447
ac_cv_header_stdc=no
5449
rm -rf conftest.dSYM
5450
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5456
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5457
$as_echo "$ac_cv_header_stdc" >&6; }
5458
if test $ac_cv_header_stdc = yes; then
5460
cat >>confdefs.h <<\_ACEOF
5461
#define STDC_HEADERS 1
5466
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5476
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5477
inttypes.h stdint.h unistd.h
5479
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5481
$as_echo_n "checking for $ac_header... " >&6; }
5482
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5483
$as_echo_n "(cached) " >&6
5485
cat >conftest.$ac_ext <<_ACEOF
5488
cat confdefs.h >>conftest.$ac_ext
5489
cat >>conftest.$ac_ext <<_ACEOF
5490
/* end confdefs.h. */
5491
$ac_includes_default
5493
#include <$ac_header>
5495
rm -f conftest.$ac_objext
5496
if { (ac_try="$ac_compile"
5498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499
*) ac_try_echo=$ac_try;;
5501
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5502
$as_echo "$ac_try_echo") >&5
5503
(eval "$ac_compile") 2>conftest.er1
5505
grep -v '^ *+' conftest.er1 >conftest.err
5507
cat conftest.err >&5
5508
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509
(exit $ac_status); } && {
5510
test -z "$ac_c_werror_flag" ||
5511
test ! -s conftest.err
5512
} && test -s conftest.$ac_objext; then
5513
eval "$as_ac_Header=yes"
5515
$as_echo "$as_me: failed program was:" >&5
5516
sed 's/^/| /' conftest.$ac_ext >&5
5518
eval "$as_ac_Header=no"
5521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523
ac_res=`eval 'as_val=${'$as_ac_Header'}
5524
$as_echo "$as_val"'`
5525
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5526
$as_echo "$ac_res" >&6; }
5527
as_val=`eval 'as_val=${'$as_ac_Header'}
5528
$as_echo "$as_val"'`
5529
if test "x$as_val" = x""yes; then
5530
cat >>confdefs.h <<_ACEOF
5531
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5539
5971
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5540
5972
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6205
for ac_header in inttypes.h
6207
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6208
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6209
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6210
$as_echo_n "checking for $ac_header... " >&6; }
6211
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6212
$as_echo_n "(cached) " >&6
6214
ac_res=`eval 'as_val=${'$as_ac_Header'}
6215
$as_echo "$as_val"'`
6216
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6217
$as_echo "$ac_res" >&6; }
6219
# Is the header compilable?
6220
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6221
$as_echo_n "checking $ac_header usability... " >&6; }
6222
cat >conftest.$ac_ext <<_ACEOF
6225
cat confdefs.h >>conftest.$ac_ext
6226
cat >>conftest.$ac_ext <<_ACEOF
6227
/* end confdefs.h. */
6228
$ac_includes_default
6229
#include <$ac_header>
6231
rm -f conftest.$ac_objext
6232
if { (ac_try="$ac_compile"
6234
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235
*) ac_try_echo=$ac_try;;
6237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238
$as_echo "$ac_try_echo") >&5
6239
(eval "$ac_compile") 2>conftest.er1
6241
grep -v '^ *+' conftest.er1 >conftest.err
6243
cat conftest.err >&5
6244
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245
(exit $ac_status); } && {
6246
test -z "$ac_c_werror_flag" ||
6247
test ! -s conftest.err
6248
} && test -s conftest.$ac_objext; then
6249
ac_header_compiler=yes
6251
$as_echo "$as_me: failed program was:" >&5
6252
sed 's/^/| /' conftest.$ac_ext >&5
6254
ac_header_compiler=no
6257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6259
$as_echo "$ac_header_compiler" >&6; }
6261
# Is the header present?
6262
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6263
$as_echo_n "checking $ac_header presence... " >&6; }
6264
cat >conftest.$ac_ext <<_ACEOF
6267
cat confdefs.h >>conftest.$ac_ext
6268
cat >>conftest.$ac_ext <<_ACEOF
6269
/* end confdefs.h. */
6270
#include <$ac_header>
6272
if { (ac_try="$ac_cpp conftest.$ac_ext"
6274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275
*) ac_try_echo=$ac_try;;
6277
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278
$as_echo "$ac_try_echo") >&5
6279
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6281
grep -v '^ *+' conftest.er1 >conftest.err
6283
cat conftest.err >&5
6284
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285
(exit $ac_status); } >/dev/null && {
6286
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6287
test ! -s conftest.err
6289
ac_header_preproc=yes
6291
$as_echo "$as_me: failed program was:" >&5
6292
sed 's/^/| /' conftest.$ac_ext >&5
6294
ac_header_preproc=no
6297
rm -f conftest.err conftest.$ac_ext
6298
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6299
$as_echo "$ac_header_preproc" >&6; }
6301
# So? What about this header?
6302
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6304
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6305
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6306
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6307
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6308
ac_header_preproc=yes
6311
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6312
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6313
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6314
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6315
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6316
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6317
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6318
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6319
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6320
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6321
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6322
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6324
## ----------------------------------------- ##
6325
## Report this to memcached@googlegroups.com ##
6326
## ----------------------------------------- ##
6328
) | sed "s/^/$as_me: WARNING: /" >&2
6331
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6332
$as_echo_n "checking for $ac_header... " >&6; }
6333
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6334
$as_echo_n "(cached) " >&6
6336
eval "$as_ac_Header=\$ac_header_preproc"
6338
ac_res=`eval 'as_val=${'$as_ac_Header'}
6339
$as_echo "$as_val"'`
6340
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6341
$as_echo "$ac_res" >&6; }
6344
as_val=`eval 'as_val=${'$as_ac_Header'}
6345
$as_echo "$as_val"'`
6346
if test "x$as_val" = x""yes; then
6347
cat >>confdefs.h <<_ACEOF
6348
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361
{ $as_echo "$as_me:$LINENO: checking for print macros for integers (C99 section 7.8.1)" >&5
6362
$as_echo_n "checking for print macros for integers (C99 section 7.8.1)... " >&6; }
6363
if test "${ac_cv_c_uint64_support+set}" = set; then
6364
$as_echo_n "(cached) " >&6
6366
cat >conftest.$ac_ext <<_ACEOF
6369
cat confdefs.h >>conftest.$ac_ext
6370
cat >>conftest.$ac_ext <<_ACEOF
6371
/* end confdefs.h. */
6373
#ifdef HAVE_INTTYPES_H
6374
#include <inttypes.h>
6383
fprintf(stderr, "%" PRIu64 "\n", val);
6389
rm -f conftest.$ac_objext
6390
if { (ac_try="$ac_compile"
6392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393
*) ac_try_echo=$ac_try;;
6395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396
$as_echo "$ac_try_echo") >&5
6397
(eval "$ac_compile") 2>conftest.er1
6399
grep -v '^ *+' conftest.er1 >conftest.err
6401
cat conftest.err >&5
6402
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403
(exit $ac_status); } && {
6404
test -z "$ac_c_werror_flag" ||
6405
test ! -s conftest.err
6406
} && test -s conftest.$ac_objext; then
6407
ac_cv_c_uint64_support=yes
6409
$as_echo "$as_me: failed program was:" >&5
6410
sed 's/^/| /' conftest.$ac_ext >&5
6412
ac_cv_c_uint64_support=no
6415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_support" >&5
6419
$as_echo "$ac_cv_c_uint64_support" >&6; }
6421
if test "x$ac_cv_c_uint64_support" = "xno"; then
6422
{ $as_echo "$as_me:$LINENO: WARNING:
6424
Failed to use print macros (PRIu) as defined in C99 section 7.8.1.
6427
$as_echo "$as_me: WARNING:
6429
Failed to use print macros (PRIu) as defined in C99 section 7.8.1.
5769
6435
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5770
6436
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5771
6437
if test "${ac_cv_c_const+set}" = set; then