20327
{ echo "$as_me:$LINENO: checking for sem_open in -lrt" >&5
20345
{ echo "$as_me:$LINENO: checking for mq_open" >&5
20346
echo $ECHO_N "checking for mq_open... $ECHO_C" >&6; }
20347
if test "${ac_cv_func_mq_open+set}" = set; then
20348
echo $ECHO_N "(cached) $ECHO_C" >&6
20350
cat >conftest.$ac_ext <<_ACEOF
20353
cat confdefs.h >>conftest.$ac_ext
20354
cat >>conftest.$ac_ext <<_ACEOF
20355
/* end confdefs.h. */
20356
/* Define mq_open to an innocuous variant, in case <limits.h> declares mq_open.
20357
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20358
#define mq_open innocuous_mq_open
20360
/* System header to define __stub macros and hopefully few prototypes,
20361
which can conflict with char mq_open (); below.
20362
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20363
<limits.h> exists even on freestanding compilers. */
20366
# include <limits.h>
20368
# include <assert.h>
20373
/* Override any GCC internal prototype to avoid an error.
20374
Use char because int might match the return type of a GCC
20375
builtin and then its argument prototype would still apply. */
20380
/* The GNU C library defines this for functions which it implements
20381
to always fail with ENOSYS. Some functions are actually named
20382
something starting with __ and the normal name is an alias. */
20383
#if defined __stub_mq_open || defined __stub___mq_open
20395
rm -f conftest.$ac_objext conftest$ac_exeext
20396
if { (ac_try="$ac_link"
20397
case "(($ac_try" in
20398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399
*) ac_try_echo=$ac_try;;
20401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402
(eval "$ac_link") 2>conftest.er1
20404
grep -v '^ *+' conftest.er1 >conftest.err
20406
cat conftest.err >&5
20407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408
(exit $ac_status); } && {
20409
test -z "$ac_c_werror_flag" ||
20410
test ! -s conftest.err
20411
} && test -s conftest$ac_exeext &&
20412
$as_test_x conftest$ac_exeext; then
20413
ac_cv_func_mq_open=yes
20415
echo "$as_me: failed program was:" >&5
20416
sed 's/^/| /' conftest.$ac_ext >&5
20418
ac_cv_func_mq_open=no
20421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20422
conftest$ac_exeext conftest.$ac_ext
20424
{ echo "$as_me:$LINENO: result: $ac_cv_func_mq_open" >&5
20425
echo "${ECHO_T}$ac_cv_func_mq_open" >&6; }
20426
if test $ac_cv_func_mq_open = yes; then
20429
{ echo "$as_me:$LINENO: checking for mq_open in -lrt" >&5
20430
echo $ECHO_N "checking for mq_open in -lrt... $ECHO_C" >&6; }
20431
if test "${ac_cv_lib_rt_mq_open+set}" = set; then
20432
echo $ECHO_N "(cached) $ECHO_C" >&6
20434
ac_check_lib_save_LIBS=$LIBS
20436
cat >conftest.$ac_ext <<_ACEOF
20439
cat confdefs.h >>conftest.$ac_ext
20440
cat >>conftest.$ac_ext <<_ACEOF
20441
/* end confdefs.h. */
20443
/* Override any GCC internal prototype to avoid an error.
20444
Use char because int might match the return type of a GCC
20445
builtin and then its argument prototype would still apply. */
20458
rm -f conftest.$ac_objext conftest$ac_exeext
20459
if { (ac_try="$ac_link"
20460
case "(($ac_try" in
20461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462
*) ac_try_echo=$ac_try;;
20464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465
(eval "$ac_link") 2>conftest.er1
20467
grep -v '^ *+' conftest.er1 >conftest.err
20469
cat conftest.err >&5
20470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471
(exit $ac_status); } && {
20472
test -z "$ac_c_werror_flag" ||
20473
test ! -s conftest.err
20474
} && test -s conftest$ac_exeext &&
20475
$as_test_x conftest$ac_exeext; then
20476
ac_cv_lib_rt_mq_open=yes
20478
echo "$as_me: failed program was:" >&5
20479
sed 's/^/| /' conftest.$ac_ext >&5
20481
ac_cv_lib_rt_mq_open=no
20484
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20485
conftest$ac_exeext conftest.$ac_ext
20486
LIBS=$ac_check_lib_save_LIBS
20488
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_mq_open" >&5
20489
echo "${ECHO_T}$ac_cv_lib_rt_mq_open" >&6; }
20490
if test $ac_cv_lib_rt_mq_open = yes; then
20493
{ echo "$as_me:$LINENO: checking for mq_open in -lposix4" >&5
20494
echo $ECHO_N "checking for mq_open in -lposix4... $ECHO_C" >&6; }
20495
if test "${ac_cv_lib_posix4_mq_open+set}" = set; then
20496
echo $ECHO_N "(cached) $ECHO_C" >&6
20498
ac_check_lib_save_LIBS=$LIBS
20499
LIBS="-lposix4 $LIBS"
20500
cat >conftest.$ac_ext <<_ACEOF
20503
cat confdefs.h >>conftest.$ac_ext
20504
cat >>conftest.$ac_ext <<_ACEOF
20505
/* end confdefs.h. */
20507
/* Override any GCC internal prototype to avoid an error.
20508
Use char because int might match the return type of a GCC
20509
builtin and then its argument prototype would still apply. */
20522
rm -f conftest.$ac_objext conftest$ac_exeext
20523
if { (ac_try="$ac_link"
20524
case "(($ac_try" in
20525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526
*) ac_try_echo=$ac_try;;
20528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529
(eval "$ac_link") 2>conftest.er1
20531
grep -v '^ *+' conftest.er1 >conftest.err
20533
cat conftest.err >&5
20534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535
(exit $ac_status); } && {
20536
test -z "$ac_c_werror_flag" ||
20537
test ! -s conftest.err
20538
} && test -s conftest$ac_exeext &&
20539
$as_test_x conftest$ac_exeext; then
20540
ac_cv_lib_posix4_mq_open=yes
20542
echo "$as_me: failed program was:" >&5
20543
sed 's/^/| /' conftest.$ac_ext >&5
20545
ac_cv_lib_posix4_mq_open=no
20548
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20549
conftest$ac_exeext conftest.$ac_ext
20550
LIBS=$ac_check_lib_save_LIBS
20552
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_mq_open" >&5
20553
echo "${ECHO_T}$ac_cv_lib_posix4_mq_open" >&6; }
20554
if test $ac_cv_lib_posix4_mq_open = yes; then
20555
LIB_POSIX_MQ=-lposix4
20557
{ { echo "$as_me:$LINENO: error: posix message queue not found" >&5
20558
echo "$as_me: error: posix message queue not found" >&2;}
20559
{ (exit 1); exit 1; }; }
20569
{ echo "$as_me:$LINENO: checking for sem_open" >&5
20570
echo $ECHO_N "checking for sem_open... $ECHO_C" >&6; }
20571
if test "${ac_cv_func_sem_open+set}" = set; then
20572
echo $ECHO_N "(cached) $ECHO_C" >&6
20574
cat >conftest.$ac_ext <<_ACEOF
20577
cat confdefs.h >>conftest.$ac_ext
20578
cat >>conftest.$ac_ext <<_ACEOF
20579
/* end confdefs.h. */
20580
/* Define sem_open to an innocuous variant, in case <limits.h> declares sem_open.
20581
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582
#define sem_open innocuous_sem_open
20584
/* System header to define __stub macros and hopefully few prototypes,
20585
which can conflict with char sem_open (); below.
20586
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587
<limits.h> exists even on freestanding compilers. */
20590
# include <limits.h>
20592
# include <assert.h>
20597
/* Override any GCC internal prototype to avoid an error.
20598
Use char because int might match the return type of a GCC
20599
builtin and then its argument prototype would still apply. */
20604
/* The GNU C library defines this for functions which it implements
20605
to always fail with ENOSYS. Some functions are actually named
20606
something starting with __ and the normal name is an alias. */
20607
#if defined __stub_sem_open || defined __stub___sem_open
20614
return sem_open ();
20619
rm -f conftest.$ac_objext conftest$ac_exeext
20620
if { (ac_try="$ac_link"
20621
case "(($ac_try" in
20622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623
*) ac_try_echo=$ac_try;;
20625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626
(eval "$ac_link") 2>conftest.er1
20628
grep -v '^ *+' conftest.er1 >conftest.err
20630
cat conftest.err >&5
20631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632
(exit $ac_status); } && {
20633
test -z "$ac_c_werror_flag" ||
20634
test ! -s conftest.err
20635
} && test -s conftest$ac_exeext &&
20636
$as_test_x conftest$ac_exeext; then
20637
ac_cv_func_sem_open=yes
20639
echo "$as_me: failed program was:" >&5
20640
sed 's/^/| /' conftest.$ac_ext >&5
20642
ac_cv_func_sem_open=no
20645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20646
conftest$ac_exeext conftest.$ac_ext
20648
{ echo "$as_me:$LINENO: result: $ac_cv_func_sem_open" >&5
20649
echo "${ECHO_T}$ac_cv_func_sem_open" >&6; }
20650
if test $ac_cv_func_sem_open = yes; then
20653
{ echo "$as_me:$LINENO: checking for sem_open in -lrt" >&5
20328
20654
echo $ECHO_N "checking for sem_open in -lrt... $ECHO_C" >&6; }
20329
20655
if test "${ac_cv_lib_rt_sem_open+set}" = set; then
20330
20656
echo $ECHO_N "(cached) $ECHO_C" >&6
20386
20712
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_open" >&5
20387
20713
echo "${ECHO_T}$ac_cv_lib_rt_sem_open" >&6; }
20388
20714
if test $ac_cv_lib_rt_sem_open = yes; then
20390
cat >>confdefs.h <<\_ACEOF
20391
#define HAVE_LIBRT 1
20395
{ { echo "$as_me:$LINENO: error: rt library not found" >&5
20396
echo "$as_me: error: rt library not found" >&2;}
20717
{ echo "$as_me:$LINENO: checking for sem_open in -lpthread" >&5
20718
echo $ECHO_N "checking for sem_open in -lpthread... $ECHO_C" >&6; }
20719
if test "${ac_cv_lib_pthread_sem_open+set}" = set; then
20720
echo $ECHO_N "(cached) $ECHO_C" >&6
20722
ac_check_lib_save_LIBS=$LIBS
20723
LIBS="-lpthread $LIBS"
20724
cat >conftest.$ac_ext <<_ACEOF
20727
cat confdefs.h >>conftest.$ac_ext
20728
cat >>conftest.$ac_ext <<_ACEOF
20729
/* end confdefs.h. */
20731
/* Override any GCC internal prototype to avoid an error.
20732
Use char because int might match the return type of a GCC
20733
builtin and then its argument prototype would still apply. */
20741
return sem_open ();
20746
rm -f conftest.$ac_objext conftest$ac_exeext
20747
if { (ac_try="$ac_link"
20748
case "(($ac_try" in
20749
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750
*) ac_try_echo=$ac_try;;
20752
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753
(eval "$ac_link") 2>conftest.er1
20755
grep -v '^ *+' conftest.er1 >conftest.err
20757
cat conftest.err >&5
20758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759
(exit $ac_status); } && {
20760
test -z "$ac_c_werror_flag" ||
20761
test ! -s conftest.err
20762
} && test -s conftest$ac_exeext &&
20763
$as_test_x conftest$ac_exeext; then
20764
ac_cv_lib_pthread_sem_open=yes
20766
echo "$as_me: failed program was:" >&5
20767
sed 's/^/| /' conftest.$ac_ext >&5
20769
ac_cv_lib_pthread_sem_open=no
20772
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773
conftest$ac_exeext conftest.$ac_ext
20774
LIBS=$ac_check_lib_save_LIBS
20776
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_open" >&5
20777
echo "${ECHO_T}$ac_cv_lib_pthread_sem_open" >&6; }
20778
if test $ac_cv_lib_pthread_sem_open = yes; then
20779
LIB_POSIX_SEM=-lpthread
20781
{ echo "$as_me:$LINENO: checking for sem_open in -lposix4" >&5
20782
echo $ECHO_N "checking for sem_open in -lposix4... $ECHO_C" >&6; }
20783
if test "${ac_cv_lib_posix4_sem_open+set}" = set; then
20784
echo $ECHO_N "(cached) $ECHO_C" >&6
20786
ac_check_lib_save_LIBS=$LIBS
20787
LIBS="-lposix4 $LIBS"
20788
cat >conftest.$ac_ext <<_ACEOF
20791
cat confdefs.h >>conftest.$ac_ext
20792
cat >>conftest.$ac_ext <<_ACEOF
20793
/* end confdefs.h. */
20795
/* Override any GCC internal prototype to avoid an error.
20796
Use char because int might match the return type of a GCC
20797
builtin and then its argument prototype would still apply. */
20805
return sem_open ();
20810
rm -f conftest.$ac_objext conftest$ac_exeext
20811
if { (ac_try="$ac_link"
20812
case "(($ac_try" in
20813
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814
*) ac_try_echo=$ac_try;;
20816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817
(eval "$ac_link") 2>conftest.er1
20819
grep -v '^ *+' conftest.er1 >conftest.err
20821
cat conftest.err >&5
20822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823
(exit $ac_status); } && {
20824
test -z "$ac_c_werror_flag" ||
20825
test ! -s conftest.err
20826
} && test -s conftest$ac_exeext &&
20827
$as_test_x conftest$ac_exeext; then
20828
ac_cv_lib_posix4_sem_open=yes
20830
echo "$as_me: failed program was:" >&5
20831
sed 's/^/| /' conftest.$ac_ext >&5
20833
ac_cv_lib_posix4_sem_open=no
20836
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20837
conftest$ac_exeext conftest.$ac_ext
20838
LIBS=$ac_check_lib_save_LIBS
20840
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_open" >&5
20841
echo "${ECHO_T}$ac_cv_lib_posix4_sem_open" >&6; }
20842
if test $ac_cv_lib_posix4_sem_open = yes; then
20843
LIB_POSIX_SEM=-lposix4
20845
{ { echo "$as_me:$LINENO: error: posix semaphore not found" >&5
20846
echo "$as_me: error: posix semaphore not found" >&2;}
20397
20847
{ (exit 1); exit 1; }; }
20401
20858
# Checks for header files.
20402
20859
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20664
21122
for ac_header in fcntl.h libintl.h limits.h locale.h mntent.h paths.h \
20665
21123
stdlib.h string.h strings.h sys/ioctl.h sys/mount.h \
20666
21124
sys/time.h syslog.h unistd.h linux/types.h grp.h pwd.h \
20667
mntent.h semaphore.h ctype.h mqueue.h
20669
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20670
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20672
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20673
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20674
echo $ECHO_N "(cached) $ECHO_C" >&6
20676
ac_res=`eval echo '${'$as_ac_Header'}'`
20677
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20678
echo "${ECHO_T}$ac_res" >&6; }
20680
# Is the header compilable?
20681
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20682
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20683
cat >conftest.$ac_ext <<_ACEOF
20686
cat confdefs.h >>conftest.$ac_ext
20687
cat >>conftest.$ac_ext <<_ACEOF
20688
/* end confdefs.h. */
20689
$ac_includes_default
20690
#include <$ac_header>
20692
rm -f conftest.$ac_objext
20693
if { (ac_try="$ac_compile"
20694
case "(($ac_try" in
20695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696
*) ac_try_echo=$ac_try;;
20698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699
(eval "$ac_compile") 2>conftest.er1
20701
grep -v '^ *+' conftest.er1 >conftest.err
20703
cat conftest.err >&5
20704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705
(exit $ac_status); } && {
20706
test -z "$ac_c_werror_flag" ||
20707
test ! -s conftest.err
20708
} && test -s conftest.$ac_objext; then
20709
ac_header_compiler=yes
20711
echo "$as_me: failed program was:" >&5
20712
sed 's/^/| /' conftest.$ac_ext >&5
20714
ac_header_compiler=no
20717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719
echo "${ECHO_T}$ac_header_compiler" >&6; }
20721
# Is the header present?
20722
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20724
cat >conftest.$ac_ext <<_ACEOF
20727
cat confdefs.h >>conftest.$ac_ext
20728
cat >>conftest.$ac_ext <<_ACEOF
20729
/* end confdefs.h. */
20730
#include <$ac_header>
20732
if { (ac_try="$ac_cpp conftest.$ac_ext"
20733
case "(($ac_try" in
20734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735
*) ac_try_echo=$ac_try;;
20737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20740
grep -v '^ *+' conftest.er1 >conftest.err
20742
cat conftest.err >&5
20743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744
(exit $ac_status); } >/dev/null && {
20745
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746
test ! -s conftest.err
20748
ac_header_preproc=yes
20750
echo "$as_me: failed program was:" >&5
20751
sed 's/^/| /' conftest.$ac_ext >&5
20753
ac_header_preproc=no
20756
rm -f conftest.err conftest.$ac_ext
20757
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758
echo "${ECHO_T}$ac_header_preproc" >&6; }
20760
# So? What about this header?
20761
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20764
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20766
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20767
ac_header_preproc=yes
20770
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20773
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20774
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20775
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20776
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20777
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20778
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20779
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20780
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20781
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20783
## ------------------------------------------ ##
20784
## Report this to linux-nilfs@vger.kernel.org ##
20785
## ------------------------------------------ ##
20787
) | sed "s/^/$as_me: WARNING: /" >&2
20790
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20791
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20792
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20793
echo $ECHO_N "(cached) $ECHO_C" >&6
20795
eval "$as_ac_Header=\$ac_header_preproc"
20797
ac_res=`eval echo '${'$as_ac_Header'}'`
20798
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20799
echo "${ECHO_T}$ac_res" >&6; }
20802
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20803
cat >>confdefs.h <<_ACEOF
20804
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21125
mntent.h semaphore.h ctype.h mqueue.h linux/magic.h
21127
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21128
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21129
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21131
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21132
echo $ECHO_N "(cached) $ECHO_C" >&6
21134
ac_res=`eval echo '${'$as_ac_Header'}'`
21135
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21136
echo "${ECHO_T}$ac_res" >&6; }
21138
# Is the header compilable?
21139
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21141
cat >conftest.$ac_ext <<_ACEOF
21144
cat confdefs.h >>conftest.$ac_ext
21145
cat >>conftest.$ac_ext <<_ACEOF
21146
/* end confdefs.h. */
21147
$ac_includes_default
21148
#include <$ac_header>
21150
rm -f conftest.$ac_objext
21151
if { (ac_try="$ac_compile"
21152
case "(($ac_try" in
21153
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154
*) ac_try_echo=$ac_try;;
21156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157
(eval "$ac_compile") 2>conftest.er1
21159
grep -v '^ *+' conftest.er1 >conftest.err
21161
cat conftest.err >&5
21162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163
(exit $ac_status); } && {
21164
test -z "$ac_c_werror_flag" ||
21165
test ! -s conftest.err
21166
} && test -s conftest.$ac_objext; then
21167
ac_header_compiler=yes
21169
echo "$as_me: failed program was:" >&5
21170
sed 's/^/| /' conftest.$ac_ext >&5
21172
ac_header_compiler=no
21175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177
echo "${ECHO_T}$ac_header_compiler" >&6; }
21179
# Is the header present?
21180
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21181
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21182
cat >conftest.$ac_ext <<_ACEOF
21185
cat confdefs.h >>conftest.$ac_ext
21186
cat >>conftest.$ac_ext <<_ACEOF
21187
/* end confdefs.h. */
21188
#include <$ac_header>
21190
if { (ac_try="$ac_cpp conftest.$ac_ext"
21191
case "(($ac_try" in
21192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193
*) ac_try_echo=$ac_try;;
21195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21198
grep -v '^ *+' conftest.er1 >conftest.err
21200
cat conftest.err >&5
21201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202
(exit $ac_status); } >/dev/null && {
21203
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204
test ! -s conftest.err
21206
ac_header_preproc=yes
21208
echo "$as_me: failed program was:" >&5
21209
sed 's/^/| /' conftest.$ac_ext >&5
21211
ac_header_preproc=no
21214
rm -f conftest.err conftest.$ac_ext
21215
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21216
echo "${ECHO_T}$ac_header_preproc" >&6; }
21218
# So? What about this header?
21219
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21222
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21223
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21224
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21225
ac_header_preproc=yes
21228
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21229
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21230
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21231
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21232
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21233
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21234
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21235
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21236
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21237
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21238
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21239
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21241
## ------------------------------------------ ##
21242
## Report this to linux-nilfs@vger.kernel.org ##
21243
## ------------------------------------------ ##
21245
) | sed "s/^/$as_me: WARNING: /" >&2
21248
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21249
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21250
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251
echo $ECHO_N "(cached) $ECHO_C" >&6
21253
eval "$as_ac_Header=\$ac_header_preproc"
21255
ac_res=`eval echo '${'$as_ac_Header'}'`
21256
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21257
echo "${ECHO_T}$ac_res" >&6; }
21260
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21261
cat >>confdefs.h <<_ACEOF
21262
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21270
# Check for conditional libraries and headers.
21271
if test "${enable_libmount}" = "yes"; then
21272
{ echo "$as_me:$LINENO: checking for mnt_context_do_mount in -lmount" >&5
21273
echo $ECHO_N "checking for mnt_context_do_mount in -lmount... $ECHO_C" >&6; }
21274
if test "${ac_cv_lib_mount_mnt_context_do_mount+set}" = set; then
21275
echo $ECHO_N "(cached) $ECHO_C" >&6
21277
ac_check_lib_save_LIBS=$LIBS
21278
LIBS="-lmount $LIBS"
21279
cat >conftest.$ac_ext <<_ACEOF
21282
cat confdefs.h >>conftest.$ac_ext
21283
cat >>conftest.$ac_ext <<_ACEOF
21284
/* end confdefs.h. */
21286
/* Override any GCC internal prototype to avoid an error.
21287
Use char because int might match the return type of a GCC
21288
builtin and then its argument prototype would still apply. */
21292
char mnt_context_do_mount ();
21296
return mnt_context_do_mount ();
21301
rm -f conftest.$ac_objext conftest$ac_exeext
21302
if { (ac_try="$ac_link"
21303
case "(($ac_try" in
21304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305
*) ac_try_echo=$ac_try;;
21307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308
(eval "$ac_link") 2>conftest.er1
21310
grep -v '^ *+' conftest.er1 >conftest.err
21312
cat conftest.err >&5
21313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314
(exit $ac_status); } && {
21315
test -z "$ac_c_werror_flag" ||
21316
test ! -s conftest.err
21317
} && test -s conftest$ac_exeext &&
21318
$as_test_x conftest$ac_exeext; then
21319
ac_cv_lib_mount_mnt_context_do_mount=yes
21321
echo "$as_me: failed program was:" >&5
21322
sed 's/^/| /' conftest.$ac_ext >&5
21324
ac_cv_lib_mount_mnt_context_do_mount=no
21327
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21328
conftest$ac_exeext conftest.$ac_ext
21329
LIBS=$ac_check_lib_save_LIBS
21331
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
21332
echo "${ECHO_T}$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
21333
if test $ac_cv_lib_mount_mnt_context_do_mount = yes; then
21334
LIB_MOUNT="-lmount"
21336
{ { echo "$as_me:$LINENO: error: libmount needed" >&5
21337
echo "$as_me: error: libmount needed" >&2;}
21338
{ (exit 1); exit 1; }; }
21342
for ac_header in libmount/libmount.h
21344
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21345
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21346
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21348
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21349
echo $ECHO_N "(cached) $ECHO_C" >&6
21351
ac_res=`eval echo '${'$as_ac_Header'}'`
21352
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21353
echo "${ECHO_T}$ac_res" >&6; }
21355
# Is the header compilable?
21356
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21357
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21358
cat >conftest.$ac_ext <<_ACEOF
21361
cat confdefs.h >>conftest.$ac_ext
21362
cat >>conftest.$ac_ext <<_ACEOF
21363
/* end confdefs.h. */
21364
$ac_includes_default
21365
#include <$ac_header>
21367
rm -f conftest.$ac_objext
21368
if { (ac_try="$ac_compile"
21369
case "(($ac_try" in
21370
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371
*) ac_try_echo=$ac_try;;
21373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374
(eval "$ac_compile") 2>conftest.er1
21376
grep -v '^ *+' conftest.er1 >conftest.err
21378
cat conftest.err >&5
21379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380
(exit $ac_status); } && {
21381
test -z "$ac_c_werror_flag" ||
21382
test ! -s conftest.err
21383
} && test -s conftest.$ac_objext; then
21384
ac_header_compiler=yes
21386
echo "$as_me: failed program was:" >&5
21387
sed 's/^/| /' conftest.$ac_ext >&5
21389
ac_header_compiler=no
21392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21394
echo "${ECHO_T}$ac_header_compiler" >&6; }
21396
# Is the header present?
21397
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21398
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21399
cat >conftest.$ac_ext <<_ACEOF
21402
cat confdefs.h >>conftest.$ac_ext
21403
cat >>conftest.$ac_ext <<_ACEOF
21404
/* end confdefs.h. */
21405
#include <$ac_header>
21407
if { (ac_try="$ac_cpp conftest.$ac_ext"
21408
case "(($ac_try" in
21409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410
*) ac_try_echo=$ac_try;;
21412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21415
grep -v '^ *+' conftest.er1 >conftest.err
21417
cat conftest.err >&5
21418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419
(exit $ac_status); } >/dev/null && {
21420
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21421
test ! -s conftest.err
21423
ac_header_preproc=yes
21425
echo "$as_me: failed program was:" >&5
21426
sed 's/^/| /' conftest.$ac_ext >&5
21428
ac_header_preproc=no
21431
rm -f conftest.err conftest.$ac_ext
21432
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21433
echo "${ECHO_T}$ac_header_preproc" >&6; }
21435
# So? What about this header?
21436
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21438
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21439
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21440
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21441
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21442
ac_header_preproc=yes
21445
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21446
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21447
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21448
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21449
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21450
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21451
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21452
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21453
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21454
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21455
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21456
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21458
## ------------------------------------------ ##
21459
## Report this to linux-nilfs@vger.kernel.org ##
21460
## ------------------------------------------ ##
21462
) | sed "s/^/$as_me: WARNING: /" >&2
21465
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21466
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21467
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21468
echo $ECHO_N "(cached) $ECHO_C" >&6
21470
eval "$as_ac_Header=\$ac_header_preproc"
21472
ac_res=`eval echo '${'$as_ac_Header'}'`
21473
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21474
echo "${ECHO_T}$ac_res" >&6; }
21477
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21478
cat >>confdefs.h <<_ACEOF
21479
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21487
if test "$enable_libmount" = "yes"; then
21488
CONFIG_LIBMOUNT_TRUE=
21489
CONFIG_LIBMOUNT_FALSE='#'
21491
CONFIG_LIBMOUNT_TRUE='#'
21492
CONFIG_LIBMOUNT_FALSE=
20812
21497
# Checks for typedefs, structures, and compiler characteristics.