5098
{ $as_echo "$as_me:$LINENO: checking for prctl" >&5
5099
$as_echo_n "checking for prctl... " >&6; }
5100
if test "${ac_cv_func_prctl+set}" = set; then
5101
$as_echo_n "(cached) " >&6
5103
cat >conftest.$ac_ext <<_ACEOF
5106
cat confdefs.h >>conftest.$ac_ext
5107
cat >>conftest.$ac_ext <<_ACEOF
5108
/* end confdefs.h. */
5109
/* Define prctl to an innocuous variant, in case <limits.h> declares prctl.
5110
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5111
#define prctl innocuous_prctl
5113
/* System header to define __stub macros and hopefully few prototypes,
5114
which can conflict with char prctl (); below.
5115
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116
<limits.h> exists even on freestanding compilers. */
5119
# include <limits.h>
5121
# include <assert.h>
5126
/* Override any GCC internal prototype to avoid an error.
5127
Use char because int might match the return type of a GCC
5128
builtin and then its argument prototype would still apply. */
5133
/* The GNU C library defines this for functions which it implements
5134
to always fail with ENOSYS. Some functions are actually named
5135
something starting with __ and the normal name is an alias. */
5136
#if defined __stub_prctl || defined __stub___prctl
5148
rm -f conftest.$ac_objext conftest$ac_exeext
5149
if { (ac_try="$ac_link"
5151
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152
*) ac_try_echo=$ac_try;;
5154
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155
$as_echo "$ac_try_echo") >&5
5156
(eval "$ac_link") 2>conftest.er1
5158
grep -v '^ *+' conftest.er1 >conftest.err
5160
cat conftest.err >&5
5161
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162
(exit $ac_status); } && {
5163
test -z "$ac_c_werror_flag" ||
5164
test ! -s conftest.err
5165
} && test -s conftest$ac_exeext && {
5166
test "$cross_compiling" = yes ||
5167
$as_test_x conftest$ac_exeext
5169
ac_cv_func_prctl=yes
5171
$as_echo "$as_me: failed program was:" >&5
5172
sed 's/^/| /' conftest.$ac_ext >&5
5177
rm -rf conftest.dSYM
5178
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5179
conftest$ac_exeext conftest.$ac_ext
5181
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_prctl" >&5
5182
$as_echo "$ac_cv_func_prctl" >&6; }
5185
{ $as_echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
5186
$as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5187
if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
5188
$as_echo_n "(cached) " >&6
5190
ac_check_lib_save_LIBS=$LIBS
5192
cat >conftest.$ac_ext <<_ACEOF
5195
cat confdefs.h >>conftest.$ac_ext
5196
cat >>conftest.$ac_ext <<_ACEOF
5197
/* end confdefs.h. */
5199
/* Override any GCC internal prototype to avoid an error.
5200
Use char because int might match the return type of a GCC
5201
builtin and then its argument prototype would still apply. */
5205
char cap_get_proc ();
5209
return cap_get_proc ();
5214
rm -f conftest.$ac_objext conftest$ac_exeext
5215
if { (ac_try="$ac_link"
5217
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218
*) ac_try_echo=$ac_try;;
5220
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5221
$as_echo "$ac_try_echo") >&5
5222
(eval "$ac_link") 2>conftest.er1
5224
grep -v '^ *+' conftest.er1 >conftest.err
5226
cat conftest.err >&5
5227
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228
(exit $ac_status); } && {
5229
test -z "$ac_c_werror_flag" ||
5230
test ! -s conftest.err
5231
} && test -s conftest$ac_exeext && {
5232
test "$cross_compiling" = yes ||
5233
$as_test_x conftest$ac_exeext
5235
ac_cv_lib_cap_cap_get_proc=yes
5237
$as_echo "$as_me: failed program was:" >&5
5238
sed 's/^/| /' conftest.$ac_ext >&5
5240
ac_cv_lib_cap_cap_get_proc=no
5243
rm -rf conftest.dSYM
5244
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245
conftest$ac_exeext conftest.$ac_ext
5246
LIBS=$ac_check_lib_save_LIBS
5248
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
5249
$as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5250
if test "x$ac_cv_lib_cap_cap_get_proc" = x""yes; then
5257
for ac_header in sys/capability.h
5259
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5260
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5261
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5262
$as_echo_n "checking for $ac_header... " >&6; }
5263
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5264
$as_echo_n "(cached) " >&6
5266
ac_res=`eval 'as_val=${'$as_ac_Header'}
5267
$as_echo "$as_val"'`
5268
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5269
$as_echo "$ac_res" >&6; }
5271
# Is the header compilable?
5272
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5273
$as_echo_n "checking $ac_header usability... " >&6; }
5274
cat >conftest.$ac_ext <<_ACEOF
5277
cat confdefs.h >>conftest.$ac_ext
5278
cat >>conftest.$ac_ext <<_ACEOF
5279
/* end confdefs.h. */
5280
$ac_includes_default
5281
#include <$ac_header>
5283
rm -f conftest.$ac_objext
5284
if { (ac_try="$ac_compile"
5286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287
*) ac_try_echo=$ac_try;;
5289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5290
$as_echo "$ac_try_echo") >&5
5291
(eval "$ac_compile") 2>conftest.er1
5293
grep -v '^ *+' conftest.er1 >conftest.err
5295
cat conftest.err >&5
5296
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297
(exit $ac_status); } && {
5298
test -z "$ac_c_werror_flag" ||
5299
test ! -s conftest.err
5300
} && test -s conftest.$ac_objext; then
5301
ac_header_compiler=yes
5303
$as_echo "$as_me: failed program was:" >&5
5304
sed 's/^/| /' conftest.$ac_ext >&5
5306
ac_header_compiler=no
5309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5311
$as_echo "$ac_header_compiler" >&6; }
5313
# Is the header present?
5314
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5315
$as_echo_n "checking $ac_header presence... " >&6; }
5316
cat >conftest.$ac_ext <<_ACEOF
5319
cat confdefs.h >>conftest.$ac_ext
5320
cat >>conftest.$ac_ext <<_ACEOF
5321
/* end confdefs.h. */
5322
#include <$ac_header>
5324
if { (ac_try="$ac_cpp conftest.$ac_ext"
5326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327
*) ac_try_echo=$ac_try;;
5329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5330
$as_echo "$ac_try_echo") >&5
5331
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5333
grep -v '^ *+' conftest.er1 >conftest.err
5335
cat conftest.err >&5
5336
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337
(exit $ac_status); } >/dev/null && {
5338
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5339
test ! -s conftest.err
5341
ac_header_preproc=yes
5343
$as_echo "$as_me: failed program was:" >&5
5344
sed 's/^/| /' conftest.$ac_ext >&5
5346
ac_header_preproc=no
5349
rm -f conftest.err conftest.$ac_ext
5350
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5351
$as_echo "$ac_header_preproc" >&6; }
5353
# So? What about this header?
5354
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5356
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5357
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5358
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5359
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5360
ac_header_preproc=yes
5363
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5364
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5365
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5366
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5367
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5368
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5369
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5370
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5371
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5372
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5373
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5374
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5376
## ---------------------------------------- ##
5377
## Report this to linux-nfs@vger.kernel.org ##
5378
## ---------------------------------------- ##
5380
) | sed "s/^/$as_me: WARNING: /" >&2
5383
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5384
$as_echo_n "checking for $ac_header... " >&6; }
5385
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386
$as_echo_n "(cached) " >&6
5388
eval "$as_ac_Header=\$ac_header_preproc"
5390
ac_res=`eval 'as_val=${'$as_ac_Header'}
5391
$as_echo "$as_val"'`
5392
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5393
$as_echo "$ac_res" >&6; }
5396
as_val=`eval 'as_val=${'$as_ac_Header'}
5397
$as_echo "$as_val"'`
5398
if test "x$as_val" = x""yes; then
5399
cat >>confdefs.h <<_ACEOF
5400
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404
{ { $as_echo "$as_me:$LINENO: error: libcap headers not found." >&5
5405
$as_echo "$as_me: error: libcap headers not found." >&2;}
5406
{ (exit 1); exit 1; }; }
5063
5414
# Check whether user wants TCP wrappers support