24374
for ac_header in netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
24355
for ac_header in netinet/in_systm.h
24357
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24358
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24360
$as_echo_n "checking for $ac_header... " >&6; }
24361
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24362
$as_echo_n "(cached) " >&6
24364
ac_res=`eval 'as_val=${'$as_ac_Header'}
24365
$as_echo "$as_val"'`
24366
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24367
$as_echo "$ac_res" >&6; }
24369
# Is the header compilable?
24370
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24371
$as_echo_n "checking $ac_header usability... " >&6; }
24372
cat >conftest.$ac_ext <<_ACEOF
24375
cat confdefs.h >>conftest.$ac_ext
24376
cat >>conftest.$ac_ext <<_ACEOF
24377
/* end confdefs.h. */
24378
$ac_includes_default
24379
#include <$ac_header>
24381
rm -f conftest.$ac_objext
24382
if { (ac_try="$ac_compile"
24383
case "(($ac_try" in
24384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385
*) ac_try_echo=$ac_try;;
24387
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24388
$as_echo "$ac_try_echo") >&5
24389
(eval "$ac_compile") 2>conftest.er1
24391
grep -v '^ *+' conftest.er1 >conftest.err
24393
cat conftest.err >&5
24394
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395
(exit $ac_status); } && {
24396
test -z "$ac_c_werror_flag" ||
24397
test ! -s conftest.err
24398
} && test -s conftest.$ac_objext; then
24399
ac_header_compiler=yes
24401
$as_echo "$as_me: failed program was:" >&5
24402
sed 's/^/| /' conftest.$ac_ext >&5
24404
ac_header_compiler=no
24407
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24409
$as_echo "$ac_header_compiler" >&6; }
24411
# Is the header present?
24412
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24413
$as_echo_n "checking $ac_header presence... " >&6; }
24414
cat >conftest.$ac_ext <<_ACEOF
24417
cat confdefs.h >>conftest.$ac_ext
24418
cat >>conftest.$ac_ext <<_ACEOF
24419
/* end confdefs.h. */
24420
#include <$ac_header>
24422
if { (ac_try="$ac_cpp conftest.$ac_ext"
24423
case "(($ac_try" in
24424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425
*) ac_try_echo=$ac_try;;
24427
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24428
$as_echo "$ac_try_echo") >&5
24429
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24431
grep -v '^ *+' conftest.er1 >conftest.err
24433
cat conftest.err >&5
24434
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435
(exit $ac_status); } >/dev/null && {
24436
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24437
test ! -s conftest.err
24439
ac_header_preproc=yes
24441
$as_echo "$as_me: failed program was:" >&5
24442
sed 's/^/| /' conftest.$ac_ext >&5
24444
ac_header_preproc=no
24447
rm -f conftest.err conftest.$ac_ext
24448
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24449
$as_echo "$ac_header_preproc" >&6; }
24451
# So? What about this header?
24452
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24454
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24455
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24456
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24457
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24458
ac_header_preproc=yes
24461
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24462
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24463
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24464
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24465
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24466
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24467
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24468
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24469
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24470
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24471
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24472
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24474
## ---------------------------------------- ##
24475
## Report this to samba-technical@samba.org ##
24476
## ---------------------------------------- ##
24478
) | sed "s/^/$as_me: WARNING: /" >&2
24481
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24482
$as_echo_n "checking for $ac_header... " >&6; }
24483
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24484
$as_echo_n "(cached) " >&6
24486
eval "$as_ac_Header=\$ac_header_preproc"
24488
ac_res=`eval 'as_val=${'$as_ac_Header'}
24489
$as_echo "$as_val"'`
24490
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24491
$as_echo "$ac_res" >&6; }
24494
as_val=`eval 'as_val=${'$as_ac_Header'}
24495
$as_echo "$as_val"'`
24496
if test "x$as_val" = x""yes; then
24497
cat >>confdefs.h <<_ACEOF
24498
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24506
for ac_header in netinet/ip.h
24508
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24509
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24510
$as_echo_n "checking for $ac_header... " >&6; }
24511
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24512
$as_echo_n "(cached) " >&6
24514
cat >conftest.$ac_ext <<_ACEOF
24517
cat confdefs.h >>conftest.$ac_ext
24518
cat >>conftest.$ac_ext <<_ACEOF
24519
/* end confdefs.h. */
24520
#ifdef HAVE_NETINET_IN_H
24521
#include <netinet/in.h>
24523
#ifdef HAVE_NETINET_IN_SYSTM_H
24524
#include <netinet/in_systm.h>
24527
#include <$ac_header>
24529
rm -f conftest.$ac_objext
24530
if { (ac_try="$ac_compile"
24531
case "(($ac_try" in
24532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533
*) ac_try_echo=$ac_try;;
24535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24536
$as_echo "$ac_try_echo") >&5
24537
(eval "$ac_compile") 2>conftest.er1
24539
grep -v '^ *+' conftest.er1 >conftest.err
24541
cat conftest.err >&5
24542
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543
(exit $ac_status); } && {
24544
test -z "$ac_c_werror_flag" ||
24545
test ! -s conftest.err
24546
} && test -s conftest.$ac_objext; then
24547
eval "$as_ac_Header=yes"
24549
$as_echo "$as_me: failed program was:" >&5
24550
sed 's/^/| /' conftest.$ac_ext >&5
24552
eval "$as_ac_Header=no"
24555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557
ac_res=`eval 'as_val=${'$as_ac_Header'}
24558
$as_echo "$as_val"'`
24559
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24560
$as_echo "$ac_res" >&6; }
24561
as_val=`eval 'as_val=${'$as_ac_Header'}
24562
$as_echo "$as_val"'`
24563
if test "x$as_val" = x""yes; then
24564
cat >>confdefs.h <<_ACEOF
24565
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24574
for ac_header in netinet/tcp.h netinet/in_ip.h
24376
24576
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24377
24577
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44754
{ $as_echo "$as_me:$LINENO: checking whether struct stat has sub-second timestamps without struct timespec suffixed _n" >&5
44755
$as_echo_n "checking whether struct stat has sub-second timestamps without struct timespec suffixed _n... " >&6; }
44756
if test "${samba_cv_stat_hires_notimespec_n+set}" = set; then
44757
$as_echo_n "(cached) " >&6
44760
cat >conftest.$ac_ext <<_ACEOF
44763
cat confdefs.h >>conftest.$ac_ext
44764
cat >>conftest.$ac_ext <<_ACEOF
44765
/* end confdefs.h. */
44767
#if TIME_WITH_SYS_TIME
44768
# include <sys/time.h>
44771
# if HAVE_SYS_TIME_H
44772
# include <sys/time.h>
44777
#ifdef HAVE_SYS_STAT_H
44778
#include <sys/stat.h>
44786
struct stat s = {0};
44787
t.tv_sec = s.st_mtime;
44788
t.tv_nsec = s.st_mtime_n;
44789
t.tv_sec = s.st_ctime;
44790
t.tv_nsec = s.st_ctime_n;
44791
t.tv_sec = s.st_atime;
44792
t.tv_nsec = s.st_atime_n;
44798
rm -f conftest.$ac_objext
44799
if { (ac_try="$ac_compile"
44800
case "(($ac_try" in
44801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44802
*) ac_try_echo=$ac_try;;
44804
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44805
$as_echo "$ac_try_echo") >&5
44806
(eval "$ac_compile") 2>conftest.er1
44808
grep -v '^ *+' conftest.er1 >conftest.err
44810
cat conftest.err >&5
44811
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812
(exit $ac_status); } && {
44813
test -z "$ac_c_werror_flag" ||
44814
test ! -s conftest.err
44815
} && test -s conftest.$ac_objext; then
44816
samba_cv_stat_hires_notimespec_n=yes
44818
$as_echo "$as_me: failed program was:" >&5
44819
sed 's/^/| /' conftest.$ac_ext >&5
44821
samba_cv_stat_hires_notimespec_n=no
44824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44827
{ $as_echo "$as_me:$LINENO: result: $samba_cv_stat_hires_notimespec_n" >&5
44828
$as_echo "$samba_cv_stat_hires_notimespec_n" >&6; }
44830
if test x"$samba_cv_stat_hires_notimespec_n" = x"yes" ; then
44832
cat >>confdefs.h <<\_ACEOF
44833
#define HAVE_STAT_ST_MTIME_N 1
44837
cat >>confdefs.h <<\_ACEOF
44838
#define HAVE_STAT_ST_ATIME_N 1
44842
cat >>confdefs.h <<\_ACEOF
44843
#define HAVE_STAT_ST_CTIME_N 1
44847
cat >>confdefs.h <<\_ACEOF
44848
#define HAVE_STAT_HIRES_TIMESTAMPS 1
44853
{ $as_echo "$as_me:$LINENO: checking whether struct stat has sub-second timestamps in st_uXtime" >&5
44854
$as_echo_n "checking whether struct stat has sub-second timestamps in st_uXtime... " >&6; }
44855
if test "${samba_cv_stat_hires_uxtime+set}" = set; then
44856
$as_echo_n "(cached) " >&6
44859
cat >conftest.$ac_ext <<_ACEOF
44862
cat confdefs.h >>conftest.$ac_ext
44863
cat >>conftest.$ac_ext <<_ACEOF
44864
/* end confdefs.h. */
44866
#if TIME_WITH_SYS_TIME
44867
# include <sys/time.h>
44870
# if HAVE_SYS_TIME_H
44871
# include <sys/time.h>
44876
#ifdef HAVE_SYS_STAT_H
44877
#include <sys/stat.h>
44885
struct stat s = {0};
44886
t.tv_sec = s.st_mtime;
44887
t.tv_nsec = s.st_umtime * 1000;
44888
t.tv_sec = s.st_ctime;
44889
t.tv_nsec = s.st_uctime * 1000;
44890
t.tv_sec = s.st_atime;
44891
t.tv_nsec = s.st_uatime * 1000;
44897
rm -f conftest.$ac_objext
44898
if { (ac_try="$ac_compile"
44899
case "(($ac_try" in
44900
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44901
*) ac_try_echo=$ac_try;;
44903
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44904
$as_echo "$ac_try_echo") >&5
44905
(eval "$ac_compile") 2>conftest.er1
44907
grep -v '^ *+' conftest.er1 >conftest.err
44909
cat conftest.err >&5
44910
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44911
(exit $ac_status); } && {
44912
test -z "$ac_c_werror_flag" ||
44913
test ! -s conftest.err
44914
} && test -s conftest.$ac_objext; then
44915
samba_cv_stat_hires_uxtime=yes
44917
$as_echo "$as_me: failed program was:" >&5
44918
sed 's/^/| /' conftest.$ac_ext >&5
44920
samba_cv_stat_hires_uxtime=no
44923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44926
{ $as_echo "$as_me:$LINENO: result: $samba_cv_stat_hires_uxtime" >&5
44927
$as_echo "$samba_cv_stat_hires_uxtime" >&6; }
44929
if test x"$samba_cv_stat_hires_uxtime" = x"yes" ; then
44931
cat >>confdefs.h <<\_ACEOF
44932
#define HAVE_STAT_ST_UMTIME 1
44936
cat >>confdefs.h <<\_ACEOF
44937
#define HAVE_STAT_ST_UATIME 1
44941
cat >>confdefs.h <<\_ACEOF
44942
#define HAVE_STAT_ST_UCTIME 1
44946
cat >>confdefs.h <<\_ACEOF
44947
#define HAVE_STAT_HIRES_TIMESTAMPS 1
44455
44952
{ $as_echo "$as_me:$LINENO: checking whether struct stat has st_birthtimespec" >&5
44456
44953
$as_echo_n "checking whether struct stat has st_birthtimespec... " >&6; }
44457
44954
if test "${samba_cv_stat_st_birthtimespec+set}" = set; then
72711
# Some systems use f_flag in struct statvfs while others use f_flags
72712
{ $as_echo "$as_me:$LINENO: checking that statvfs.statvfs_f_flag works" >&5
72713
$as_echo_n "checking that statvfs.statvfs_f_flag works... " >&6; }
72714
if test "${samba_cv_statvfs_f_flag+set}" = set; then
72715
$as_echo_n "(cached) " >&6
72718
cat >conftest.$ac_ext <<_ACEOF
72721
cat confdefs.h >>conftest.$ac_ext
72722
cat >>conftest.$ac_ext <<_ACEOF
72723
/* end confdefs.h. */
72724
#include <sys/types.h>
72725
#include <sys/statvfs.h>
72729
struct statvfs buf; buf.f_flag = 0
72734
rm -f conftest.$ac_objext
72735
if { (ac_try="$ac_compile"
72736
case "(($ac_try" in
72737
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72738
*) ac_try_echo=$ac_try;;
72740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72741
$as_echo "$ac_try_echo") >&5
72742
(eval "$ac_compile") 2>conftest.er1
72744
grep -v '^ *+' conftest.er1 >conftest.err
72746
cat conftest.err >&5
72747
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72748
(exit $ac_status); } && {
72749
test -z "$ac_c_werror_flag" ||
72750
test ! -s conftest.err
72751
} && test -s conftest.$ac_objext; then
72752
samba_cv_statvfs_f_flag=yes
72754
$as_echo "$as_me: failed program was:" >&5
72755
sed 's/^/| /' conftest.$ac_ext >&5
72757
samba_cv_statvfs_f_flag=no
72760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72762
{ $as_echo "$as_me:$LINENO: result: $samba_cv_statvfs_f_flag" >&5
72763
$as_echo "$samba_cv_statvfs_f_flag" >&6; }
72764
if test x"$samba_cv_statvfs_f_flag" = x"yes"; then
72766
cat >>confdefs.h <<\_ACEOF
72767
#define HAVE_STATVFS_F_FLAG 1
72772
{ $as_echo "$as_me:$LINENO: checking that statvfs.statvfs_f_flags works" >&5
72773
$as_echo_n "checking that statvfs.statvfs_f_flags works... " >&6; }
72774
if test "${samba_cv_statvfs_f_flags+set}" = set; then
72775
$as_echo_n "(cached) " >&6
72778
cat >conftest.$ac_ext <<_ACEOF
72781
cat confdefs.h >>conftest.$ac_ext
72782
cat >>conftest.$ac_ext <<_ACEOF
72783
/* end confdefs.h. */
72784
#include <sys/types.h>
72785
#include <sys/statvfs.h>
72789
struct statvfs buf; buf.f_flags = 0
72794
rm -f conftest.$ac_objext
72795
if { (ac_try="$ac_compile"
72796
case "(($ac_try" in
72797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72798
*) ac_try_echo=$ac_try;;
72800
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72801
$as_echo "$ac_try_echo") >&5
72802
(eval "$ac_compile") 2>conftest.er1
72804
grep -v '^ *+' conftest.er1 >conftest.err
72806
cat conftest.err >&5
72807
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72808
(exit $ac_status); } && {
72809
test -z "$ac_c_werror_flag" ||
72810
test ! -s conftest.err
72811
} && test -s conftest.$ac_objext; then
72812
samba_cv_statvfs_f_flags=yes
72814
$as_echo "$as_me: failed program was:" >&5
72815
sed 's/^/| /' conftest.$ac_ext >&5
72817
samba_cv_statvfs_f_flags=no
72820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72822
{ $as_echo "$as_me:$LINENO: result: $samba_cv_statvfs_f_flags" >&5
72823
$as_echo "$samba_cv_statvfs_f_flags" >&6; }
72824
if test x"$samba_cv_statvfs_f_flags" = x"yes"; then
72826
cat >>confdefs.h <<\_ACEOF
72827
#define HAVE_STATVFS_F_FLAGS 1
72214
72833
if test $space = no; then
72215
72834
# DEC Alpha running OSF/1
72216
72835
{ $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
72680
73299
#################################################
72681
73300
# check for cluster extensions
72683
{ $as_echo "$as_me:$LINENO: checking whether to include cluster support" >&5
72684
$as_echo_n "checking whether to include cluster support... " >&6; }
73305
# Check whether --with-ctdb was given.
73306
if test "${with_ctdb+set}" = set; then
73307
withval=$with_ctdb; case "$withval" in
73309
{ $as_echo "$as_me:$LINENO: WARNING: --with-ctdb called without argument" >&5
73310
$as_echo "$as_me: WARNING: --with-ctdb called without argument" >&2;}
73313
CTDB_CPPFLAGS="-I$withval/include"
73319
SAVED_CPPFLAGS="$CPPFLAGS"
73320
CPPFLAGS="$CPPFLAGS $CTDB_CPPFLAGS"
73321
ctdb_broken="missing or broken headers"
73325
for ac_header in ctdb.h ctdb_private.h
73327
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
73328
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73329
$as_echo_n "checking for $ac_header... " >&6; }
73330
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73331
$as_echo_n "(cached) " >&6
73333
cat >conftest.$ac_ext <<_ACEOF
73336
cat confdefs.h >>conftest.$ac_ext
73337
cat >>conftest.$ac_ext <<_ACEOF
73338
/* end confdefs.h. */
73340
#include "confdefs.h"
73341
#define NO_CONFIG_H
73342
#include "replace.h"
73343
#include "system/wait.h"
73344
#include "system/network.h"
73345
#define private #error __USED_RESERVED_WORD_private__
73346
#include <talloc.h>
73351
#include <$ac_header>
73353
rm -f conftest.$ac_objext
73354
if { (ac_try="$ac_compile"
73355
case "(($ac_try" in
73356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73357
*) ac_try_echo=$ac_try;;
73359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73360
$as_echo "$ac_try_echo") >&5
73361
(eval "$ac_compile") 2>conftest.er1
73363
grep -v '^ *+' conftest.er1 >conftest.err
73365
cat conftest.err >&5
73366
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73367
(exit $ac_status); } && {
73368
test -z "$ac_c_werror_flag" ||
73369
test ! -s conftest.err
73370
} && test -s conftest.$ac_objext; then
73371
eval "$as_ac_Header=yes"
73373
$as_echo "$as_me: failed program was:" >&5
73374
sed 's/^/| /' conftest.$ac_ext >&5
73376
eval "$as_ac_Header=no"
73379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73381
ac_res=`eval 'as_val=${'$as_ac_Header'}
73382
$as_echo "$as_val"'`
73383
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73384
$as_echo "$ac_res" >&6; }
73385
as_val=`eval 'as_val=${'$as_ac_Header'}
73386
$as_echo "$as_val"'`
73387
if test "x$as_val" = x""yes; then
73388
cat >>confdefs.h <<_ACEOF
73389
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
73398
{ $as_echo "$as_me:$LINENO: checking for CTDB_CONTROL_TRANS2_COMMIT_RETRY declaration" >&5
73399
$as_echo_n "checking for CTDB_CONTROL_TRANS2_COMMIT_RETRY declaration... " >&6; }
73400
if test "${ac_cv_have_CTDB_CONTROL_TRANS2_COMMIT_RETRY_decl+set}" = set; then
73401
$as_echo_n "(cached) " >&6
73404
cat >conftest.$ac_ext <<_ACEOF
73407
cat confdefs.h >>conftest.$ac_ext
73408
cat >>conftest.$ac_ext <<_ACEOF
73409
/* end confdefs.h. */
73411
#include "confdefs.h"
73412
#define NO_CONFIG_H
73413
#include "replace.h"
73414
#include "system/wait.h"
73415
#include "system/network.h"
73416
#include <talloc.h>
73419
#include <ctdb_private.h>
73424
int i = (int)CTDB_CONTROL_TRANS2_COMMIT_RETRY
73429
rm -f conftest.$ac_objext
73430
if { (ac_try="$ac_compile"
73431
case "(($ac_try" in
73432
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73433
*) ac_try_echo=$ac_try;;
73435
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73436
$as_echo "$ac_try_echo") >&5
73437
(eval "$ac_compile") 2>conftest.er1
73439
grep -v '^ *+' conftest.er1 >conftest.err
73441
cat conftest.err >&5
73442
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73443
(exit $ac_status); } && {
73444
test -z "$ac_c_werror_flag" ||
73445
test ! -s conftest.err
73446
} && test -s conftest.$ac_objext; then
73447
ac_cv_have_CTDB_CONTROL_TRANS2_COMMIT_RETRY_decl=yes
73449
$as_echo "$as_me: failed program was:" >&5
73450
sed 's/^/| /' conftest.$ac_ext >&5
73452
ac_cv_have_CTDB_CONTROL_TRANS2_COMMIT_RETRY_decl=no
73455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73457
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_CTDB_CONTROL_TRANS2_COMMIT_RETRY_decl" >&5
73458
$as_echo "$ac_cv_have_CTDB_CONTROL_TRANS2_COMMIT_RETRY_decl" >&6; }
73459
if test x"$ac_cv_have_CTDB_CONTROL_TRANS2_COMMIT_RETRY_decl" = x"yes"; then
73461
cat >>confdefs.h <<\_ACEOF
73462
#define HAVE_CTDB_CONTROL_TRANS2_COMMIT_RETRY_DECL 1
73467
if test x"$ac_cv_have_CTDB_CONTROL_TRANS2_COMMIT_RETRY_decl" = x"yes"; then
73470
ctdb_broken="missing transaction support"
73473
# in ctdb 1.0.57 ctdb_control_tcp was temparary renamed to ctdb_tcp_client
73474
{ $as_echo "$as_me:$LINENO: checking for struct ctdb_tcp_client" >&5
73475
$as_echo_n "checking for struct ctdb_tcp_client... " >&6; }
73476
if test "${ac_cv_type_struct_ctdb_tcp_client+set}" = set; then
73477
$as_echo_n "(cached) " >&6
73479
ac_cv_type_struct_ctdb_tcp_client=no
73480
cat >conftest.$ac_ext <<_ACEOF
73483
cat confdefs.h >>conftest.$ac_ext
73484
cat >>conftest.$ac_ext <<_ACEOF
73485
/* end confdefs.h. */
73487
#include "confdefs.h"
73488
#define NO_CONFIG_H
73489
#include "replace.h"
73490
#include "system/wait.h"
73491
#include "system/network.h"
73492
#include <talloc.h>
73495
#include <ctdb_private.h>
73501
if (sizeof (struct ctdb_tcp_client))
73507
rm -f conftest.$ac_objext
73508
if { (ac_try="$ac_compile"
73509
case "(($ac_try" in
73510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73511
*) ac_try_echo=$ac_try;;
73513
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73514
$as_echo "$ac_try_echo") >&5
73515
(eval "$ac_compile") 2>conftest.er1
73517
grep -v '^ *+' conftest.er1 >conftest.err
73519
cat conftest.err >&5
73520
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73521
(exit $ac_status); } && {
73522
test -z "$ac_c_werror_flag" ||
73523
test ! -s conftest.err
73524
} && test -s conftest.$ac_objext; then
73525
cat >conftest.$ac_ext <<_ACEOF
73528
cat confdefs.h >>conftest.$ac_ext
73529
cat >>conftest.$ac_ext <<_ACEOF
73530
/* end confdefs.h. */
73532
#include "confdefs.h"
73533
#define NO_CONFIG_H
73534
#include "replace.h"
73535
#include "system/wait.h"
73536
#include "system/network.h"
73537
#include <talloc.h>
73540
#include <ctdb_private.h>
73546
if (sizeof ((struct ctdb_tcp_client)))
73552
rm -f conftest.$ac_objext
73553
if { (ac_try="$ac_compile"
73554
case "(($ac_try" in
73555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73556
*) ac_try_echo=$ac_try;;
73558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73559
$as_echo "$ac_try_echo") >&5
73560
(eval "$ac_compile") 2>conftest.er1
73562
grep -v '^ *+' conftest.er1 >conftest.err
73564
cat conftest.err >&5
73565
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73566
(exit $ac_status); } && {
73567
test -z "$ac_c_werror_flag" ||
73568
test ! -s conftest.err
73569
} && test -s conftest.$ac_objext; then
73572
$as_echo "$as_me: failed program was:" >&5
73573
sed 's/^/| /' conftest.$ac_ext >&5
73575
ac_cv_type_struct_ctdb_tcp_client=yes
73578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73580
$as_echo "$as_me: failed program was:" >&5
73581
sed 's/^/| /' conftest.$ac_ext >&5
73586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73588
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ctdb_tcp_client" >&5
73589
$as_echo "$ac_cv_type_struct_ctdb_tcp_client" >&6; }
73590
if test "x$ac_cv_type_struct_ctdb_tcp_client" = x""yes; then
73593
cat >>confdefs.h <<\_ACEOF
73594
#define ctdb_control_tcp ctdb_tcp_client
73601
{ $as_echo "$as_me:$LINENO: checking for struct ctdb_control_tcp" >&5
73602
$as_echo_n "checking for struct ctdb_control_tcp... " >&6; }
73603
if test "${ac_cv_type_struct_ctdb_control_tcp+set}" = set; then
73604
$as_echo_n "(cached) " >&6
73606
ac_cv_type_struct_ctdb_control_tcp=no
73607
cat >conftest.$ac_ext <<_ACEOF
73610
cat confdefs.h >>conftest.$ac_ext
73611
cat >>conftest.$ac_ext <<_ACEOF
73612
/* end confdefs.h. */
73614
#include "confdefs.h"
73615
#define NO_CONFIG_H
73616
#include "replace.h"
73617
#include "system/wait.h"
73618
#include "system/network.h"
73619
#include <talloc.h>
73622
#include <ctdb_private.h>
73628
if (sizeof (struct ctdb_control_tcp))
73634
rm -f conftest.$ac_objext
73635
if { (ac_try="$ac_compile"
73636
case "(($ac_try" in
73637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73638
*) ac_try_echo=$ac_try;;
73640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73641
$as_echo "$ac_try_echo") >&5
73642
(eval "$ac_compile") 2>conftest.er1
73644
grep -v '^ *+' conftest.er1 >conftest.err
73646
cat conftest.err >&5
73647
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73648
(exit $ac_status); } && {
73649
test -z "$ac_c_werror_flag" ||
73650
test ! -s conftest.err
73651
} && test -s conftest.$ac_objext; then
73652
cat >conftest.$ac_ext <<_ACEOF
73655
cat confdefs.h >>conftest.$ac_ext
73656
cat >>conftest.$ac_ext <<_ACEOF
73657
/* end confdefs.h. */
73659
#include "confdefs.h"
73660
#define NO_CONFIG_H
73661
#include "replace.h"
73662
#include "system/wait.h"
73663
#include "system/network.h"
73664
#include <talloc.h>
73667
#include <ctdb_private.h>
73673
if (sizeof ((struct ctdb_control_tcp)))
73679
rm -f conftest.$ac_objext
73680
if { (ac_try="$ac_compile"
73681
case "(($ac_try" in
73682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73683
*) ac_try_echo=$ac_try;;
73685
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73686
$as_echo "$ac_try_echo") >&5
73687
(eval "$ac_compile") 2>conftest.er1
73689
grep -v '^ *+' conftest.er1 >conftest.err
73691
cat conftest.err >&5
73692
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73693
(exit $ac_status); } && {
73694
test -z "$ac_c_werror_flag" ||
73695
test ! -s conftest.err
73696
} && test -s conftest.$ac_objext; then
73699
$as_echo "$as_me: failed program was:" >&5
73700
sed 's/^/| /' conftest.$ac_ext >&5
73702
ac_cv_type_struct_ctdb_control_tcp=yes
73705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73707
$as_echo "$as_me: failed program was:" >&5
73708
sed 's/^/| /' conftest.$ac_ext >&5
73713
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73715
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ctdb_control_tcp" >&5
73716
$as_echo "$ac_cv_type_struct_ctdb_control_tcp" >&6; }
73717
if test "x$ac_cv_type_struct_ctdb_control_tcp" = x""yes; then
73720
cat >>confdefs.h <<\_ACEOF
73721
#define HAVE_STRUCT_CTDB_CONTROL_TCP 1
73727
ctdb_broken="missing struct ctdb_control_tcp"
73732
{ $as_echo "$as_me:$LINENO: checking for struct ctdb_control_tcp_addr" >&5
73733
$as_echo_n "checking for struct ctdb_control_tcp_addr... " >&6; }
73734
if test "${ac_cv_type_struct_ctdb_control_tcp_addr+set}" = set; then
73735
$as_echo_n "(cached) " >&6
73737
ac_cv_type_struct_ctdb_control_tcp_addr=no
73738
cat >conftest.$ac_ext <<_ACEOF
73741
cat confdefs.h >>conftest.$ac_ext
73742
cat >>conftest.$ac_ext <<_ACEOF
73743
/* end confdefs.h. */
73745
#include "confdefs.h"
73746
#define NO_CONFIG_H
73747
#include "replace.h"
73748
#include "system/wait.h"
73749
#include "system/network.h"
73750
#include <talloc.h>
73753
#include <ctdb_private.h>
73759
if (sizeof (struct ctdb_control_tcp_addr))
73765
rm -f conftest.$ac_objext
73766
if { (ac_try="$ac_compile"
73767
case "(($ac_try" in
73768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73769
*) ac_try_echo=$ac_try;;
73771
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73772
$as_echo "$ac_try_echo") >&5
73773
(eval "$ac_compile") 2>conftest.er1
73775
grep -v '^ *+' conftest.er1 >conftest.err
73777
cat conftest.err >&5
73778
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73779
(exit $ac_status); } && {
73780
test -z "$ac_c_werror_flag" ||
73781
test ! -s conftest.err
73782
} && test -s conftest.$ac_objext; then
73783
cat >conftest.$ac_ext <<_ACEOF
73786
cat confdefs.h >>conftest.$ac_ext
73787
cat >>conftest.$ac_ext <<_ACEOF
73788
/* end confdefs.h. */
73790
#include "confdefs.h"
73791
#define NO_CONFIG_H
73792
#include "replace.h"
73793
#include "system/wait.h"
73794
#include "system/network.h"
73795
#include <talloc.h>
73798
#include <ctdb_private.h>
73804
if (sizeof ((struct ctdb_control_tcp_addr)))
73810
rm -f conftest.$ac_objext
73811
if { (ac_try="$ac_compile"
73812
case "(($ac_try" in
73813
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73814
*) ac_try_echo=$ac_try;;
73816
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73817
$as_echo "$ac_try_echo") >&5
73818
(eval "$ac_compile") 2>conftest.er1
73820
grep -v '^ *+' conftest.er1 >conftest.err
73822
cat conftest.err >&5
73823
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73824
(exit $ac_status); } && {
73825
test -z "$ac_c_werror_flag" ||
73826
test ! -s conftest.err
73827
} && test -s conftest.$ac_objext; then
73830
$as_echo "$as_me: failed program was:" >&5
73831
sed 's/^/| /' conftest.$ac_ext >&5
73833
ac_cv_type_struct_ctdb_control_tcp_addr=yes
73836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73838
$as_echo "$as_me: failed program was:" >&5
73839
sed 's/^/| /' conftest.$ac_ext >&5
73844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73846
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ctdb_control_tcp_addr" >&5
73847
$as_echo "$ac_cv_type_struct_ctdb_control_tcp_addr" >&6; }
73848
if test "x$ac_cv_type_struct_ctdb_control_tcp_addr" = x""yes; then
73851
cat >>confdefs.h <<\_ACEOF
73852
#define HAVE_STRUCT_CTDB_CONTROL_TCP_ADDR 1
73858
CPPFLAGS="$SAVED_CPPFLAGS"
73860
{ $as_echo "$as_me:$LINENO: checking cluster support" >&5
73861
$as_echo_n "checking cluster support... " >&6; }
72686
73863
# Check whether --with-cluster-support was given.
72687
73864
if test "${with_cluster_support+set}" = set; then
72688
73865
withval=$with_cluster_support;
72691
if test "x$with_cluster_support" = "xyes"; then
73869
if test x"$with_cluster_support" = x ; then
73870
with_cluster_support="auto"
73873
if test x"$ac_cv_header_ctdb_private_h" != x"yes"; then
73874
if test "x$with_cluster_support" = "xyes"; then
73875
{ { $as_echo "$as_me:$LINENO: error: \"ctdb_private.h is required for cluster support\"" >&5
73876
$as_echo "$as_me: error: \"ctdb_private.h is required for cluster support\"" >&2;}
73877
{ (exit 1); exit 1; }; }
73879
with_cluster_support=no
73882
if test x"$ctdb_broken" != x"no"; then
73883
if test "x$with_cluster_support" = "xyes"; then
73884
{ { $as_echo "$as_me:$LINENO: error: \"cluster support: $ctdb_broken\"" >&5
73885
$as_echo "$as_me: error: \"cluster support: $ctdb_broken\"" >&2;}
73886
{ (exit 1); exit 1; }; }
73888
with_cluster_support=no
73891
if test "x$with_cluster_support" != "xno"; then
72693
73893
cat >>confdefs.h <<\_ACEOF
72694
73894
#define CLUSTER_SUPPORT 1
73897
SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${CTDB_CPPFLAGS}"
72697
73898
{ $as_echo "$as_me:$LINENO: result: yes" >&5
72698
73899
$as_echo "yes" >&6; }