3824
for ac_func in seteuid stpcpy mmap
3826
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3827
echo "$as_me:$LINENO: checking for $ac_func" >&5
3828
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3829
if eval "test \"\${$as_ac_var+set}\" = set"; then
3830
echo $ECHO_N "(cached) $ECHO_C" >&6
3832
cat >conftest.$ac_ext <<_ACEOF
3835
cat confdefs.h >>conftest.$ac_ext
3836
cat >>conftest.$ac_ext <<_ACEOF
3837
/* end confdefs.h. */
3838
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3839
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3840
#define $ac_func innocuous_$ac_func
3842
/* System header to define __stub macros and hopefully few prototypes,
3843
which can conflict with char $ac_func (); below.
3844
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3845
<limits.h> exists even on freestanding compilers. */
3848
# include <limits.h>
3850
# include <assert.h>
3855
/* Override any gcc2 internal prototype to avoid an error. */
3860
/* We use char because int might match the return type of a gcc2
3861
builtin and then its argument prototype would still apply. */
3863
/* The GNU C library defines this for functions which it implements
3864
to always fail with ENOSYS. Some functions are actually named
3865
something starting with __ and the normal name is an alias. */
3866
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3869
char (*f) () = $ac_func;
3878
return f != $ac_func;
3883
rm -f conftest.$ac_objext conftest$ac_exeext
3884
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3885
(eval $ac_link) 2>conftest.er1
3887
grep -v '^ *+' conftest.er1 >conftest.err
3889
cat conftest.err >&5
3890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891
(exit $ac_status); } &&
3892
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897
(exit $ac_status); }; } &&
3898
{ ac_try='test -s conftest$ac_exeext'
3899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903
(exit $ac_status); }; }; then
3904
eval "$as_ac_var=yes"
3906
echo "$as_me: failed program was:" >&5
3907
sed 's/^/| /' conftest.$ac_ext >&5
3909
eval "$as_ac_var=no"
3911
rm -f conftest.err conftest.$ac_objext \
3912
conftest$ac_exeext conftest.$ac_ext
3914
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3915
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3916
if test `eval echo '${'$as_ac_var'}'` = yes; then
3917
cat >>confdefs.h <<_ACEOF
3918
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3925
for ac_func in mlock
3927
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3928
echo "$as_me:$LINENO: checking for $ac_func" >&5
3929
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3930
if eval "test \"\${$as_ac_var+set}\" = set"; then
3931
echo $ECHO_N "(cached) $ECHO_C" >&6
3933
cat >conftest.$ac_ext <<_ACEOF
3936
cat confdefs.h >>conftest.$ac_ext
3937
cat >>conftest.$ac_ext <<_ACEOF
3938
/* end confdefs.h. */
3939
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3940
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3941
#define $ac_func innocuous_$ac_func
3943
/* System header to define __stub macros and hopefully few prototypes,
3944
which can conflict with char $ac_func (); below.
3945
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946
<limits.h> exists even on freestanding compilers. */
3949
# include <limits.h>
3951
# include <assert.h>
3956
/* Override any gcc2 internal prototype to avoid an error. */
3961
/* We use char because int might match the return type of a gcc2
3962
builtin and then its argument prototype would still apply. */
3964
/* The GNU C library defines this for functions which it implements
3965
to always fail with ENOSYS. Some functions are actually named
3966
something starting with __ and the normal name is an alias. */
3967
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3970
char (*f) () = $ac_func;
3979
return f != $ac_func;
3984
rm -f conftest.$ac_objext conftest$ac_exeext
3985
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986
(eval $ac_link) 2>conftest.er1
3988
grep -v '^ *+' conftest.er1 >conftest.err
3990
cat conftest.err >&5
3991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
(exit $ac_status); } &&
3993
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3994
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998
(exit $ac_status); }; } &&
3999
{ ac_try='test -s conftest$ac_exeext'
4000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004
(exit $ac_status); }; }; then
4005
eval "$as_ac_var=yes"
4007
echo "$as_me: failed program was:" >&5
4008
sed 's/^/| /' conftest.$ac_ext >&5
4010
eval "$as_ac_var=no"
4012
rm -f conftest.err conftest.$ac_objext \
4013
conftest$ac_exeext conftest.$ac_ext
4015
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4016
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4017
if test `eval echo '${'$as_ac_var'}'` = yes; then
4018
cat >>confdefs.h <<_ACEOF
4019
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4025
if test "$ac_cv_func_mlock" = "no"; then
4048
# Checks for header files.
4027
4051
echo "$as_me:$LINENO: checking for egrep" >&5
4028
4052
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4307
for ac_header in string.h unistd.h langinfo.h termio.h locale.h
4309
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4310
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311
echo "$as_me:$LINENO: checking for $ac_header" >&5
4312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4313
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4314
echo $ECHO_N "(cached) $ECHO_C" >&6
4316
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4317
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319
# Is the header compilable?
4320
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4321
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4322
cat >conftest.$ac_ext <<_ACEOF
4325
cat confdefs.h >>conftest.$ac_ext
4326
cat >>conftest.$ac_ext <<_ACEOF
4327
/* end confdefs.h. */
4328
$ac_includes_default
4329
#include <$ac_header>
4331
rm -f conftest.$ac_objext
4332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333
(eval $ac_compile) 2>conftest.er1
4335
grep -v '^ *+' conftest.er1 >conftest.err
4337
cat conftest.err >&5
4338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339
(exit $ac_status); } &&
4340
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345
(exit $ac_status); }; } &&
4346
{ ac_try='test -s conftest.$ac_objext'
4347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351
(exit $ac_status); }; }; then
4352
ac_header_compiler=yes
4354
echo "$as_me: failed program was:" >&5
4355
sed 's/^/| /' conftest.$ac_ext >&5
4357
ac_header_compiler=no
4359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4361
echo "${ECHO_T}$ac_header_compiler" >&6
4363
# Is the header present?
4364
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4365
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4366
cat >conftest.$ac_ext <<_ACEOF
4369
cat confdefs.h >>conftest.$ac_ext
4370
cat >>conftest.$ac_ext <<_ACEOF
4371
/* end confdefs.h. */
4372
#include <$ac_header>
4374
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4375
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4377
grep -v '^ *+' conftest.er1 >conftest.err
4379
cat conftest.err >&5
4380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
(exit $ac_status); } >/dev/null; then
4382
if test -s conftest.err; then
4383
ac_cpp_err=$ac_c_preproc_warn_flag
4384
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4391
if test -z "$ac_cpp_err"; then
4392
ac_header_preproc=yes
4394
echo "$as_me: failed program was:" >&5
4395
sed 's/^/| /' conftest.$ac_ext >&5
4397
ac_header_preproc=no
4399
rm -f conftest.err conftest.$ac_ext
4400
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4401
echo "${ECHO_T}$ac_header_preproc" >&6
4403
# So? What about this header?
4404
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4406
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4407
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4408
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4409
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4410
ac_header_preproc=yes
4413
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4414
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4415
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4416
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4417
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4418
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4419
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4420
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4421
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4422
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4423
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4424
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4427
## -------------------------------- ##
4428
## Report this to gpa-dev@gnupg.org ##
4429
## -------------------------------- ##
4432
sed "s/^/$as_me: WARNING: /" >&2
4435
echo "$as_me:$LINENO: checking for $ac_header" >&5
4436
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438
echo $ECHO_N "(cached) $ECHO_C" >&6
4440
eval "$as_ac_Header=\$ac_header_preproc"
4442
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4443
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4446
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4447
cat >>confdefs.h <<_ACEOF
4448
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4459
for ac_func in seteuid stpcpy mmap
4461
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462
echo "$as_me:$LINENO: checking for $ac_func" >&5
4463
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464
if eval "test \"\${$as_ac_var+set}\" = set"; then
4465
echo $ECHO_N "(cached) $ECHO_C" >&6
4467
cat >conftest.$ac_ext <<_ACEOF
4470
cat confdefs.h >>conftest.$ac_ext
4471
cat >>conftest.$ac_ext <<_ACEOF
4472
/* end confdefs.h. */
4473
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4474
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4475
#define $ac_func innocuous_$ac_func
4477
/* System header to define __stub macros and hopefully few prototypes,
4478
which can conflict with char $ac_func (); below.
4479
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480
<limits.h> exists even on freestanding compilers. */
4483
# include <limits.h>
4485
# include <assert.h>
4490
/* Override any gcc2 internal prototype to avoid an error. */
4495
/* We use char because int might match the return type of a gcc2
4496
builtin and then its argument prototype would still apply. */
4498
/* The GNU C library defines this for functions which it implements
4499
to always fail with ENOSYS. Some functions are actually named
4500
something starting with __ and the normal name is an alias. */
4501
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4504
char (*f) () = $ac_func;
4513
return f != $ac_func;
4518
rm -f conftest.$ac_objext conftest$ac_exeext
4519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4520
(eval $ac_link) 2>conftest.er1
4522
grep -v '^ *+' conftest.er1 >conftest.err
4524
cat conftest.err >&5
4525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
(exit $ac_status); } &&
4527
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532
(exit $ac_status); }; } &&
4533
{ ac_try='test -s conftest$ac_exeext'
4534
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538
(exit $ac_status); }; }; then
4539
eval "$as_ac_var=yes"
4541
echo "$as_me: failed program was:" >&5
4542
sed 's/^/| /' conftest.$ac_ext >&5
4544
eval "$as_ac_var=no"
4546
rm -f conftest.err conftest.$ac_objext \
4547
conftest$ac_exeext conftest.$ac_ext
4549
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4550
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4551
if test `eval echo '${'$as_ac_var'}'` = yes; then
4552
cat >>confdefs.h <<_ACEOF
4553
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4560
for ac_func in mlock
4562
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4563
echo "$as_me:$LINENO: checking for $ac_func" >&5
4564
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4565
if eval "test \"\${$as_ac_var+set}\" = set"; then
4566
echo $ECHO_N "(cached) $ECHO_C" >&6
4568
cat >conftest.$ac_ext <<_ACEOF
4571
cat confdefs.h >>conftest.$ac_ext
4572
cat >>conftest.$ac_ext <<_ACEOF
4573
/* end confdefs.h. */
4574
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4575
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4576
#define $ac_func innocuous_$ac_func
4578
/* System header to define __stub macros and hopefully few prototypes,
4579
which can conflict with char $ac_func (); below.
4580
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581
<limits.h> exists even on freestanding compilers. */
4584
# include <limits.h>
4586
# include <assert.h>
4591
/* Override any gcc2 internal prototype to avoid an error. */
4596
/* We use char because int might match the return type of a gcc2
4597
builtin and then its argument prototype would still apply. */
4599
/* The GNU C library defines this for functions which it implements
4600
to always fail with ENOSYS. Some functions are actually named
4601
something starting with __ and the normal name is an alias. */
4602
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605
char (*f) () = $ac_func;
4614
return f != $ac_func;
4619
rm -f conftest.$ac_objext conftest$ac_exeext
4620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4621
(eval $ac_link) 2>conftest.er1
4623
grep -v '^ *+' conftest.er1 >conftest.err
4625
cat conftest.err >&5
4626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627
(exit $ac_status); } &&
4628
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633
(exit $ac_status); }; } &&
4634
{ ac_try='test -s conftest$ac_exeext'
4635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639
(exit $ac_status); }; }; then
4640
eval "$as_ac_var=yes"
4642
echo "$as_me: failed program was:" >&5
4643
sed 's/^/| /' conftest.$ac_ext >&5
4645
eval "$as_ac_var=no"
4647
rm -f conftest.err conftest.$ac_objext \
4648
conftest$ac_exeext conftest.$ac_ext
4650
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4651
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4652
if test `eval echo '${'$as_ac_var'}'` = yes; then
4653
cat >>confdefs.h <<_ACEOF
4654
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4660
if test "$ac_cv_func_mlock" = "no"; then
4279
4662
for ac_header in sys/mman.h
4281
4664
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571
if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
5575
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5576
if test "${with_libiconv_prefix+set}" = set; then
5577
withval="$with_libiconv_prefix"
5579
for dir in `echo "$withval" | tr : ' '`; do
5580
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5581
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
5586
echo "$as_me:$LINENO: checking for iconv" >&5
5587
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5588
if test "${am_cv_func_iconv+set}" = set; then
5589
echo $ECHO_N "(cached) $ECHO_C" >&6
5592
am_cv_func_iconv="no, consider installing GNU libiconv"
5594
cat >conftest.$ac_ext <<_ACEOF
5597
cat confdefs.h >>conftest.$ac_ext
5598
cat >>conftest.$ac_ext <<_ACEOF
5599
/* end confdefs.h. */
5605
iconv_t cd = iconv_open("","");
5606
iconv(cd,NULL,NULL,NULL,NULL);
5612
rm -f conftest.$ac_objext conftest$ac_exeext
5613
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614
(eval $ac_link) 2>conftest.er1
5616
grep -v '^ *+' conftest.er1 >conftest.err
5618
cat conftest.err >&5
5619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620
(exit $ac_status); } &&
5621
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626
(exit $ac_status); }; } &&
5627
{ ac_try='test -s conftest$ac_exeext'
5628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632
(exit $ac_status); }; }; then
5633
am_cv_func_iconv=yes
5635
echo "$as_me: failed program was:" >&5
5636
sed 's/^/| /' conftest.$ac_ext >&5
5639
rm -f conftest.err conftest.$ac_objext \
5640
conftest$ac_exeext conftest.$ac_ext
5641
if test "$am_cv_func_iconv" != yes; then
5642
am_save_LIBS="$LIBS"
5643
LIBS="$LIBS -liconv"
5644
cat >conftest.$ac_ext <<_ACEOF
5647
cat confdefs.h >>conftest.$ac_ext
5648
cat >>conftest.$ac_ext <<_ACEOF
5649
/* end confdefs.h. */
5655
iconv_t cd = iconv_open("","");
5656
iconv(cd,NULL,NULL,NULL,NULL);
5662
rm -f conftest.$ac_objext conftest$ac_exeext
5663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664
(eval $ac_link) 2>conftest.er1
5666
grep -v '^ *+' conftest.er1 >conftest.err
5668
cat conftest.err >&5
5669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670
(exit $ac_status); } &&
5671
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5672
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676
(exit $ac_status); }; } &&
5677
{ ac_try='test -s conftest$ac_exeext'
5678
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682
(exit $ac_status); }; }; then
5684
am_cv_func_iconv=yes
5686
echo "$as_me: failed program was:" >&5
5687
sed 's/^/| /' conftest.$ac_ext >&5
5690
rm -f conftest.err conftest.$ac_objext \
5691
conftest$ac_exeext conftest.$ac_ext
5692
LIBS="$am_save_LIBS"
5696
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5697
echo "${ECHO_T}$am_cv_func_iconv" >&6
5698
if test "$am_cv_func_iconv" = yes; then
5956
if test "$pinentry_curses" = "yes"; then
5700
5958
cat >>confdefs.h <<\_ACEOF
5701
#define HAVE_ICONV 1
5704
echo "$as_me:$LINENO: checking for iconv declaration" >&5
5705
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
5706
if test "${am_cv_proto_iconv+set}" = set; then
5707
echo $ECHO_N "(cached) $ECHO_C" >&6
5710
cat >conftest.$ac_ext <<_ACEOF
5713
cat confdefs.h >>conftest.$ac_ext
5714
cat >>conftest.$ac_ext <<_ACEOF
5715
/* end confdefs.h. */
5723
#if defined(__STDC__) || defined(__cplusplus)
5724
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5737
rm -f conftest.$ac_objext
5738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739
(eval $ac_compile) 2>conftest.er1
5741
grep -v '^ *+' conftest.er1 >conftest.err
5743
cat conftest.err >&5
5744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745
(exit $ac_status); } &&
5746
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751
(exit $ac_status); }; } &&
5752
{ ac_try='test -s conftest.$ac_objext'
5753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757
(exit $ac_status); }; }; then
5758
am_cv_proto_iconv_arg1=""
5760
echo "$as_me: failed program was:" >&5
5761
sed 's/^/| /' conftest.$ac_ext >&5
5763
am_cv_proto_iconv_arg1="const"
5765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5769
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5770
echo "$as_me:$LINENO: result: ${ac_t:-
5771
}$am_cv_proto_iconv" >&5
5772
echo "${ECHO_T}${ac_t:-
5773
}$am_cv_proto_iconv" >&6
5775
cat >>confdefs.h <<_ACEOF
5776
#define ICONV_CONST $am_cv_proto_iconv_arg1
5781
if test "$am_cv_lib_iconv" = yes; then
5959
#define PINENTRY_CURSES 1
5788
5965
# Check whether --enable-pinentry-gtk or --disable-pinentry-gtk was given.
5789
5966
if test "${enable_pinentry_gtk+set}" = set; then
6467
6648
BUILD_PINENTRY_GTK_FALSE=
6651
if test "$pinentry_gtk" = "yes"; then
6653
cat >>confdefs.h <<\_ACEOF
6654
#define PINENTRY_GTK 1
6659
if test "$pinentry_curses" = "yes" \
6660
-o "$fallback_curses" = "yes" \
6661
-o "$pinentry_gtk" = "yes"; then
6663
if test "X$prefix" = "XNONE"; then
6664
acl_final_prefix="$ac_default_prefix"
6666
acl_final_prefix="$prefix"
6668
if test "X$exec_prefix" = "XNONE"; then
6669
acl_final_exec_prefix='${prefix}'
6671
acl_final_exec_prefix="$exec_prefix"
6673
acl_save_prefix="$prefix"
6674
prefix="$acl_final_prefix"
6675
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6676
prefix="$acl_save_prefix"
6679
# Check whether --with-gnu-ld or --without-gnu-ld was given.
6680
if test "${with_gnu_ld+set}" = set; then
6681
withval="$with_gnu_ld"
6682
test "$withval" = no || with_gnu_ld=yes
6686
# Prepare PATH_SEPARATOR.
6687
# The user is always right.
6688
if test "${PATH_SEPARATOR+set}" != set; then
6689
echo "#! /bin/sh" >conf$$.sh
6690
echo "exit 0" >>conf$$.sh
6692
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6700
if test "$GCC" = yes; then
6701
# Check if gcc -print-prog-name=ld gives a path.
6702
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6703
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6706
# gcc leaves a trailing carriage return which upsets mingw
6707
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6709
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6712
# Accept absolute paths.
6713
[\\/]* | [A-Za-z]:[\\/]*)
6714
re_direlt='/[^/][^/]*/\.\./'
6715
# Canonicalize the path of ld
6716
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6717
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6718
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6720
test -z "$LD" && LD="$ac_prog"
6723
# If it fails, then pretend we aren't using GCC.
6727
# If it is relative, then search for the first ld in PATH.
6731
elif test "$with_gnu_ld" = yes; then
6732
echo "$as_me:$LINENO: checking for GNU ld" >&5
6733
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6735
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6736
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6738
if test "${acl_cv_path_LD+set}" = set; then
6739
echo $ECHO_N "(cached) $ECHO_C" >&6
6741
if test -z "$LD"; then
6742
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6743
for ac_dir in $PATH; do
6744
test -z "$ac_dir" && ac_dir=.
6745
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6746
acl_cv_path_LD="$ac_dir/$ac_prog"
6747
# Check to see if the program is GNU ld. I'd rather use --version,
6748
# but apparently some GNU ld's only accept -v.
6749
# Break only if it was the GNU/non-GNU ld that we prefer.
6750
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6751
*GNU* | *'with BFD'*)
6752
test "$with_gnu_ld" != no && break ;;
6754
test "$with_gnu_ld" != yes && break ;;
6760
acl_cv_path_LD="$LD" # Let the user override the test with a path.
6764
LD="$acl_cv_path_LD"
6765
if test -n "$LD"; then
6766
echo "$as_me:$LINENO: result: $LD" >&5
6767
echo "${ECHO_T}$LD" >&6
6769
echo "$as_me:$LINENO: result: no" >&5
6770
echo "${ECHO_T}no" >&6
6772
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6773
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6774
{ (exit 1); exit 1; }; }
6775
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6776
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6777
if test "${acl_cv_prog_gnu_ld+set}" = set; then
6778
echo $ECHO_N "(cached) $ECHO_C" >&6
6780
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
6781
case `$LD -v 2>&1 </dev/null` in
6782
*GNU* | *'with BFD'*)
6783
acl_cv_prog_gnu_ld=yes ;;
6785
acl_cv_prog_gnu_ld=no ;;
6788
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6789
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6790
with_gnu_ld=$acl_cv_prog_gnu_ld
6794
echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6795
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6796
if test "${acl_cv_rpath+set}" = set; then
6797
echo $ECHO_N "(cached) $ECHO_C" >&6
6800
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6801
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6807
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6808
echo "${ECHO_T}$acl_cv_rpath" >&6
6810
libext="$acl_cv_libext"
6811
shlibext="$acl_cv_shlibext"
6812
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6813
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6814
hardcode_direct="$acl_cv_hardcode_direct"
6815
hardcode_minus_L="$acl_cv_hardcode_minus_L"
6816
# Check whether --enable-rpath or --disable-rpath was given.
6817
if test "${enable_rpath+set}" = set; then
6818
enableval="$enable_rpath"
6832
acl_save_prefix="$prefix"
6833
prefix="$acl_final_prefix"
6834
acl_save_exec_prefix="$exec_prefix"
6835
exec_prefix="$acl_final_exec_prefix"
6837
eval additional_includedir=\"$includedir\"
6838
eval additional_libdir=\"$libdir\"
6840
exec_prefix="$acl_save_exec_prefix"
6841
prefix="$acl_save_prefix"
6844
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6845
if test "${with_libiconv_prefix+set}" = set; then
6846
withval="$with_libiconv_prefix"
6848
if test "X$withval" = "Xno"; then
6851
if test "X$withval" = "X"; then
6853
acl_save_prefix="$prefix"
6854
prefix="$acl_final_prefix"
6855
acl_save_exec_prefix="$exec_prefix"
6856
exec_prefix="$acl_final_exec_prefix"
6858
eval additional_includedir=\"$includedir\"
6859
eval additional_libdir=\"$libdir\"
6861
exec_prefix="$acl_save_exec_prefix"
6862
prefix="$acl_save_prefix"
6865
additional_includedir="$withval/include"
6866
additional_libdir="$withval/lib"
6876
names_already_handled=
6877
names_next_round='iconv '
6878
while test -n "$names_next_round"; do
6879
names_this_round="$names_next_round"
6881
for name in $names_this_round; do
6883
for n in $names_already_handled; do
6884
if test "$n" = "$name"; then
6889
if test -z "$already_handled"; then
6890
names_already_handled="$names_already_handled $name"
6891
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6892
eval value=\"\$HAVE_LIB$uppername\"
6893
if test -n "$value"; then
6894
if test "$value" = yes; then
6895
eval value=\"\$LIB$uppername\"
6896
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6897
eval value=\"\$LTLIB$uppername\"
6898
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6907
if test $use_additional = yes; then
6908
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6909
found_dir="$additional_libdir"
6910
found_so="$additional_libdir/lib$name.$shlibext"
6911
if test -f "$additional_libdir/lib$name.la"; then
6912
found_la="$additional_libdir/lib$name.la"
6915
if test -f "$additional_libdir/lib$name.$libext"; then
6916
found_dir="$additional_libdir"
6917
found_a="$additional_libdir/lib$name.$libext"
6918
if test -f "$additional_libdir/lib$name.la"; then
6919
found_la="$additional_libdir/lib$name.la"
6924
if test "X$found_dir" = "X"; then
6925
for x in $LDFLAGS $LTLIBICONV; do
6927
acl_save_prefix="$prefix"
6928
prefix="$acl_final_prefix"
6929
acl_save_exec_prefix="$exec_prefix"
6930
exec_prefix="$acl_final_exec_prefix"
6932
exec_prefix="$acl_save_exec_prefix"
6933
prefix="$acl_save_prefix"
6937
dir=`echo "X$x" | sed -e 's/^X-L//'`
6938
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6940
found_so="$dir/lib$name.$shlibext"
6941
if test -f "$dir/lib$name.la"; then
6942
found_la="$dir/lib$name.la"
6945
if test -f "$dir/lib$name.$libext"; then
6947
found_a="$dir/lib$name.$libext"
6948
if test -f "$dir/lib$name.la"; then
6949
found_la="$dir/lib$name.la"
6955
if test "X$found_dir" != "X"; then
6960
if test "X$found_dir" != "X"; then
6961
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6962
if test "X$found_so" != "X"; then
6963
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6964
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6967
for x in $ltrpathdirs; do
6968
if test "X$x" = "X$found_dir"; then
6973
if test -z "$haveit"; then
6974
ltrpathdirs="$ltrpathdirs $found_dir"
6976
if test "$hardcode_direct" = yes; then
6977
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6979
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6980
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6982
for x in $rpathdirs; do
6983
if test "X$x" = "X$found_dir"; then
6988
if test -z "$haveit"; then
6989
rpathdirs="$rpathdirs $found_dir"
6993
for x in $LDFLAGS $LIBICONV; do
6995
acl_save_prefix="$prefix"
6996
prefix="$acl_final_prefix"
6997
acl_save_exec_prefix="$exec_prefix"
6998
exec_prefix="$acl_final_exec_prefix"
7000
exec_prefix="$acl_save_exec_prefix"
7001
prefix="$acl_save_prefix"
7003
if test "X$x" = "X-L$found_dir"; then
7008
if test -z "$haveit"; then
7009
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7011
if test "$hardcode_minus_L" != no; then
7012
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7014
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7020
if test "X$found_a" != "X"; then
7021
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7023
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7026
additional_includedir=
7027
case "$found_dir" in
7029
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7030
additional_includedir="$basedir/include"
7033
if test "X$additional_includedir" != "X"; then
7034
if test "X$additional_includedir" != "X/usr/include"; then
7036
if test "X$additional_includedir" = "X/usr/local/include"; then
7037
if test -n "$GCC"; then
7039
linux*) haveit=yes;;
7043
if test -z "$haveit"; then
7044
for x in $CPPFLAGS $INCICONV; do
7046
acl_save_prefix="$prefix"
7047
prefix="$acl_final_prefix"
7048
acl_save_exec_prefix="$exec_prefix"
7049
exec_prefix="$acl_final_exec_prefix"
7051
exec_prefix="$acl_save_exec_prefix"
7052
prefix="$acl_save_prefix"
7054
if test "X$x" = "X-I$additional_includedir"; then
7059
if test -z "$haveit"; then
7060
if test -d "$additional_includedir"; then
7061
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7067
if test -n "$found_la"; then
7068
save_libdir="$libdir"
7070
*/* | *\\*) . "$found_la" ;;
7071
*) . "./$found_la" ;;
7073
libdir="$save_libdir"
7074
for dep in $dependency_libs; do
7077
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7078
if test "X$additional_libdir" != "X/usr/lib"; then
7080
if test "X$additional_libdir" = "X/usr/local/lib"; then
7081
if test -n "$GCC"; then
7083
linux*) haveit=yes;;
7087
if test -z "$haveit"; then
7089
for x in $LDFLAGS $LIBICONV; do
7091
acl_save_prefix="$prefix"
7092
prefix="$acl_final_prefix"
7093
acl_save_exec_prefix="$exec_prefix"
7094
exec_prefix="$acl_final_exec_prefix"
7096
exec_prefix="$acl_save_exec_prefix"
7097
prefix="$acl_save_prefix"
7099
if test "X$x" = "X-L$additional_libdir"; then
7104
if test -z "$haveit"; then
7105
if test -d "$additional_libdir"; then
7106
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7110
for x in $LDFLAGS $LTLIBICONV; do
7112
acl_save_prefix="$prefix"
7113
prefix="$acl_final_prefix"
7114
acl_save_exec_prefix="$exec_prefix"
7115
exec_prefix="$acl_final_exec_prefix"
7117
exec_prefix="$acl_save_exec_prefix"
7118
prefix="$acl_save_prefix"
7120
if test "X$x" = "X-L$additional_libdir"; then
7125
if test -z "$haveit"; then
7126
if test -d "$additional_libdir"; then
7127
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7134
dir=`echo "X$dep" | sed -e 's/^X-R//'`
7135
if test "$enable_rpath" != no; then
7137
for x in $rpathdirs; do
7138
if test "X$x" = "X$dir"; then
7143
if test -z "$haveit"; then
7144
rpathdirs="$rpathdirs $dir"
7147
for x in $ltrpathdirs; do
7148
if test "X$x" = "X$dir"; then
7153
if test -z "$haveit"; then
7154
ltrpathdirs="$ltrpathdirs $dir"
7159
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7162
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7165
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7166
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7172
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7173
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7179
if test "X$rpathdirs" != "X"; then
7180
if test -n "$hardcode_libdir_separator"; then
7182
for found_dir in $rpathdirs; do
7183
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7185
acl_save_libdir="$libdir"
7187
eval flag=\"$hardcode_libdir_flag_spec\"
7188
libdir="$acl_save_libdir"
7189
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7191
for found_dir in $rpathdirs; do
7192
acl_save_libdir="$libdir"
7194
eval flag=\"$hardcode_libdir_flag_spec\"
7195
libdir="$acl_save_libdir"
7196
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7200
if test "X$ltrpathdirs" != "X"; then
7201
for found_dir in $ltrpathdirs; do
7202
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7212
am_save_CPPFLAGS="$CPPFLAGS"
7214
for element in $INCICONV; do
7216
for x in $CPPFLAGS; do
7218
acl_save_prefix="$prefix"
7219
prefix="$acl_final_prefix"
7220
acl_save_exec_prefix="$exec_prefix"
7221
exec_prefix="$acl_final_exec_prefix"
7223
exec_prefix="$acl_save_exec_prefix"
7224
prefix="$acl_save_prefix"
7226
if test "X$x" = "X$element"; then
7231
if test -z "$haveit"; then
7232
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7237
echo "$as_me:$LINENO: checking for iconv" >&5
7238
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7239
if test "${am_cv_func_iconv+set}" = set; then
7240
echo $ECHO_N "(cached) $ECHO_C" >&6
7243
am_cv_func_iconv="no, consider installing GNU libiconv"
7245
cat >conftest.$ac_ext <<_ACEOF
7248
cat confdefs.h >>conftest.$ac_ext
7249
cat >>conftest.$ac_ext <<_ACEOF
7250
/* end confdefs.h. */
7256
iconv_t cd = iconv_open("","");
7257
iconv(cd,NULL,NULL,NULL,NULL);
7263
rm -f conftest.$ac_objext conftest$ac_exeext
7264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265
(eval $ac_link) 2>conftest.er1
7267
grep -v '^ *+' conftest.er1 >conftest.err
7269
cat conftest.err >&5
7270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271
(exit $ac_status); } &&
7272
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277
(exit $ac_status); }; } &&
7278
{ ac_try='test -s conftest$ac_exeext'
7279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283
(exit $ac_status); }; }; then
7284
am_cv_func_iconv=yes
7286
echo "$as_me: failed program was:" >&5
7287
sed 's/^/| /' conftest.$ac_ext >&5
7290
rm -f conftest.err conftest.$ac_objext \
7291
conftest$ac_exeext conftest.$ac_ext
7292
if test "$am_cv_func_iconv" != yes; then
7293
am_save_LIBS="$LIBS"
7294
LIBS="$LIBS $LIBICONV"
7295
cat >conftest.$ac_ext <<_ACEOF
7298
cat confdefs.h >>conftest.$ac_ext
7299
cat >>conftest.$ac_ext <<_ACEOF
7300
/* end confdefs.h. */
7306
iconv_t cd = iconv_open("","");
7307
iconv(cd,NULL,NULL,NULL,NULL);
7313
rm -f conftest.$ac_objext conftest$ac_exeext
7314
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315
(eval $ac_link) 2>conftest.er1
7317
grep -v '^ *+' conftest.er1 >conftest.err
7319
cat conftest.err >&5
7320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321
(exit $ac_status); } &&
7322
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7323
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327
(exit $ac_status); }; } &&
7328
{ ac_try='test -s conftest$ac_exeext'
7329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333
(exit $ac_status); }; }; then
7335
am_cv_func_iconv=yes
7337
echo "$as_me: failed program was:" >&5
7338
sed 's/^/| /' conftest.$ac_ext >&5
7341
rm -f conftest.err conftest.$ac_objext \
7342
conftest$ac_exeext conftest.$ac_ext
7343
LIBS="$am_save_LIBS"
7347
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7348
echo "${ECHO_T}$am_cv_func_iconv" >&6
7349
if test "$am_cv_func_iconv" = yes; then
7351
cat >>confdefs.h <<\_ACEOF
7352
#define HAVE_ICONV 1
7356
if test "$am_cv_lib_iconv" = yes; then
7357
echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7358
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7359
echo "$as_me:$LINENO: result: $LIBICONV" >&5
7360
echo "${ECHO_T}$LIBICONV" >&6
7362
CPPFLAGS="$am_save_CPPFLAGS"
7369
if test "$am_cv_func_iconv" = yes; then
7370
echo "$as_me:$LINENO: checking for iconv declaration" >&5
7371
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7372
if test "${am_cv_proto_iconv+set}" = set; then
7373
echo $ECHO_N "(cached) $ECHO_C" >&6
7376
cat >conftest.$ac_ext <<_ACEOF
7379
cat confdefs.h >>conftest.$ac_ext
7380
cat >>conftest.$ac_ext <<_ACEOF
7381
/* end confdefs.h. */
7389
#if defined(__STDC__) || defined(__cplusplus)
7390
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7403
rm -f conftest.$ac_objext
7404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405
(eval $ac_compile) 2>conftest.er1
7407
grep -v '^ *+' conftest.er1 >conftest.err
7409
cat conftest.err >&5
7410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411
(exit $ac_status); } &&
7412
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417
(exit $ac_status); }; } &&
7418
{ ac_try='test -s conftest.$ac_objext'
7419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423
(exit $ac_status); }; }; then
7424
am_cv_proto_iconv_arg1=""
7426
echo "$as_me: failed program was:" >&5
7427
sed 's/^/| /' conftest.$ac_ext >&5
7429
am_cv_proto_iconv_arg1="const"
7431
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7432
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7435
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7436
echo "$as_me:$LINENO: result: ${ac_t:-
7437
}$am_cv_proto_iconv" >&5
7438
echo "${ECHO_T}${ac_t:-
7439
}$am_cv_proto_iconv" >&6
7441
cat >>confdefs.h <<_ACEOF
7442
#define ICONV_CONST $am_cv_proto_iconv_arg1
7451
# Check whether --enable-pinentry-gtk2 or --disable-pinentry-gtk2 was given.
7452
if test "${enable_pinentry_gtk2+set}" = set; then
7453
enableval="$enable_pinentry_gtk2"
7454
pinentry_gtk_2=$enableval
7456
pinentry_gtk_2=maybe
7459
if test "$pinentry_gtk_2" != "no"; then
7460
# Extract the first word of "pkg-config", so it can be a program name with args.
7461
set dummy pkg-config; ac_word=$2
7462
echo "$as_me:$LINENO: checking for $ac_word" >&5
7463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464
if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
7465
echo $ECHO_N "(cached) $ECHO_C" >&6
7467
if test -n "$PKGCONFIG"; then
7468
ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
7470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474
test -z "$as_dir" && as_dir=.
7475
for ac_exec_ext in '' $ac_executable_extensions; do
7476
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477
ac_cv_prog_PKGCONFIG="yes"
7478
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484
test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
7487
PKGCONFIG=$ac_cv_prog_PKGCONFIG
7488
if test -n "$PKGCONFIG"; then
7489
echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
7490
echo "${ECHO_T}$PKGCONFIG" >&6
7492
echo "$as_me:$LINENO: result: no" >&5
7493
echo "${ECHO_T}no" >&6
7496
if test x"$PKGCONFIG" != xyes ; then
7501
if test "$pinentry_gtk_2" != "no"; then
7502
echo "$as_me:$LINENO: checking for gtk+-2" >&5
7503
echo $ECHO_N "checking for gtk+-2... $ECHO_C" >&6
7504
pkg-config --exists gtk+-2.0
7505
if test $? -ne 0 ; then
7506
echo "$as_me:$LINENO: result: no" >&5
7507
echo "${ECHO_T}no" >&6
7508
{ echo "$as_me:$LINENO: WARNING: pkg-config could not find the module gtk+-2.0" >&5
7509
echo "$as_me: WARNING: pkg-config could not find the module gtk+-2.0" >&2;}
7512
echo "$as_me:$LINENO: result: yes" >&5
7513
echo "${ECHO_T}yes" >&6
7514
echo "$as_me:$LINENO: checking gtk+-2 version >= 2.4.0" >&5
7515
echo $ECHO_N "checking gtk+-2 version >= 2.4.0... $ECHO_C" >&6
7516
modvers=`pkg-config --modversion gtk+-2.0`
7517
echo "$as_me:$LINENO: result: $modvers" >&5
7518
echo "${ECHO_T}$modvers" >&6
7519
pkg-config --atleast-version=2.4.0 gtk+-2.0
7520
if test $? -ne 0 ; then
7521
{ echo "$as_me:$LINENO: WARNING: building GTK+-2 pinentry disabled" >&5
7522
echo "$as_me: WARNING: building GTK+-2 pinentry disabled" >&2;}
7525
GTK2CFLAGS=`pkg-config --cflags gtk+-2.0`
7526
GTK2LIBS=`pkg-config --libs gtk+-2.0`
7535
if test "$pinentry_gtk_2" = "yes"; then
7536
BUILD_PINENTRY_GTK_2_TRUE=
7537
BUILD_PINENTRY_GTK_2_FALSE='#'
7539
BUILD_PINENTRY_GTK_2_TRUE='#'
7540
BUILD_PINENTRY_GTK_2_FALSE=
7368
8447
echo "$as_me:$LINENO: checking for X" >&5
7369
8448
echo $ECHO_N "checking for X... $ECHO_C" >&6
7372
# Check whether --with-x or --without-x was given.
7373
if test "${with_x+set}" = set; then
7377
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7378
if test "x$with_x" = xno; then
7379
# The user explicitly disabled X.
7382
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7383
# Both variables are already set.
7386
if test "${ac_cv_have_x+set}" = set; then
7387
echo $ECHO_N "(cached) $ECHO_C" >&6
7389
# One or both of the vars are not set, and there is no cached value.
7390
ac_x_includes=no ac_x_libraries=no
7392
if mkdir conftest.dir; then
7394
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
7395
cat >Imakefile <<'_ACEOF'
7397
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7399
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7400
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7401
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7402
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7403
for ac_extension in a so sl; do
7404
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7405
test -f $ac_im_libdir/libX11.$ac_extension; then
7406
ac_im_usrlibdir=$ac_im_libdir; break
7409
# Screen out bogus values from the imake configuration. They are
7410
# bogus both because they are the default anyway, and because
7411
# using them would break gcc on systems where it needs fixed includes.
7412
case $ac_im_incroot in
7414
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7416
case $ac_im_usrlibdir in
7418
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7425
# Standard set of common directories for X headers.
7426
# Check X11 before X11Rn because it is often a symlink to the current release.
7438
/usr/local/X11/include
7439
/usr/local/X11R6/include
7440
/usr/local/X11R5/include
7441
/usr/local/X11R4/include
7443
/usr/local/include/X11
7444
/usr/local/include/X11R6
7445
/usr/local/include/X11R5
7446
/usr/local/include/X11R4
7450
/usr/XFree86/include/X11
7454
/usr/unsupported/include
7456
/usr/local/x11r5/include
7457
/usr/lpp/Xamples/include
7459
/usr/openwin/include
7460
/usr/openwin/share/include'
7462
if test "$ac_x_includes" = no; then
7463
# Guess where to find include files, by looking for Intrinsic.h.
7464
# First, try using that file with no special directory specified.
7465
cat >conftest.$ac_ext <<_ACEOF
7468
cat confdefs.h >>conftest.$ac_ext
7469
cat >>conftest.$ac_ext <<_ACEOF
7470
/* end confdefs.h. */
7471
#include <X11/Intrinsic.h>
7473
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7474
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7476
grep -v '^ *+' conftest.er1 >conftest.err
7478
cat conftest.err >&5
7479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480
(exit $ac_status); } >/dev/null; then
7481
if test -s conftest.err; then
7482
ac_cpp_err=$ac_c_preproc_warn_flag
7483
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7490
if test -z "$ac_cpp_err"; then
7491
# We can compile using X headers with no special include directory.
7494
echo "$as_me: failed program was:" >&5
7495
sed 's/^/| /' conftest.$ac_ext >&5
7497
for ac_dir in $ac_x_header_dirs; do
7498
if test -r "$ac_dir/X11/Intrinsic.h"; then
7499
ac_x_includes=$ac_dir
7504
rm -f conftest.err conftest.$ac_ext
7505
fi # $ac_x_includes = no
7507
if test "$ac_x_libraries" = no; then
7508
# Check for the libraries.
7509
# See if we find them without any special options.
7510
# Don't add to $LIBS permanently.
7513
cat >conftest.$ac_ext <<_ACEOF
7516
cat confdefs.h >>conftest.$ac_ext
7517
cat >>conftest.$ac_ext <<_ACEOF
7518
/* end confdefs.h. */
7519
#include <X11/Intrinsic.h>
7528
rm -f conftest.$ac_objext conftest$ac_exeext
7529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530
(eval $ac_link) 2>conftest.er1
7532
grep -v '^ *+' conftest.er1 >conftest.err
7534
cat conftest.err >&5
7535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536
(exit $ac_status); } &&
7537
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542
(exit $ac_status); }; } &&
7543
{ ac_try='test -s conftest$ac_exeext'
7544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548
(exit $ac_status); }; }; then
7550
# We can link X programs with no special library path.
7553
echo "$as_me: failed program was:" >&5
7554
sed 's/^/| /' conftest.$ac_ext >&5
7557
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7559
# Don't even attempt the hair of trying to link an X program!
7560
for ac_extension in a so sl; do
7561
if test -r $ac_dir/libXt.$ac_extension; then
7562
ac_x_libraries=$ac_dir
7568
rm -f conftest.err conftest.$ac_objext \
7569
conftest$ac_exeext conftest.$ac_ext
7570
fi # $ac_x_libraries = no
7572
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7573
# Didn't find X anywhere. Cache the known absence of X.
7574
ac_cv_have_x="have_x=no"
7576
# Record where we found X for the cache.
7577
ac_cv_have_x="have_x=yes \
7578
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7583
eval "$ac_cv_have_x"
7586
if test "$have_x" != yes; then
7587
echo "$as_me:$LINENO: result: $have_x" >&5
7588
echo "${ECHO_T}$have_x" >&6
7591
# If each of the values was on the command line, it overrides each guess.
7592
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7593
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7594
# Update the cache value to reflect the command line values.
7595
ac_cv_have_x="have_x=yes \
7596
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7597
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7598
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7601
if test "$no_x" = yes; then
8450
ac_path_x_has_been_run=yes
8452
# Check whether --with-x or --without-x was given.
8453
if test "${with_x+set}" = set; then
8457
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8458
if test "x$with_x" = xno; then
8459
# The user explicitly disabled X.
8462
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8463
# Both variables are already set.
8466
if test "${ac_cv_have_x+set}" = set; then
8467
echo $ECHO_N "(cached) $ECHO_C" >&6
8469
# One or both of the vars are not set, and there is no cached value.
8470
ac_x_includes=no ac_x_libraries=no
8472
if mkdir conftest.dir; then
8474
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
8475
cat >Imakefile <<'_ACEOF'
8477
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8479
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8480
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8481
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8482
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8483
for ac_extension in a so sl; do
8484
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8485
test -f $ac_im_libdir/libX11.$ac_extension; then
8486
ac_im_usrlibdir=$ac_im_libdir; break
8489
# Screen out bogus values from the imake configuration. They are
8490
# bogus both because they are the default anyway, and because
8491
# using them would break gcc on systems where it needs fixed includes.
8492
case $ac_im_incroot in
8494
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8496
case $ac_im_usrlibdir in
8498
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8505
# Standard set of common directories for X headers.
8506
# Check X11 before X11Rn because it is often a symlink to the current release.
8518
/usr/local/X11/include
8519
/usr/local/X11R6/include
8520
/usr/local/X11R5/include
8521
/usr/local/X11R4/include
8523
/usr/local/include/X11
8524
/usr/local/include/X11R6
8525
/usr/local/include/X11R5
8526
/usr/local/include/X11R4
8530
/usr/XFree86/include/X11
8534
/usr/unsupported/include
8536
/usr/local/x11r5/include
8537
/usr/lpp/Xamples/include
8539
/usr/openwin/include
8540
/usr/openwin/share/include'
8542
if test "$ac_x_includes" = no; then
8543
# Guess where to find include files, by looking for a specified header file.
8544
# First, try using that file with no special directory specified.
8545
cat >conftest.$ac_ext <<_ACEOF
8548
cat confdefs.h >>conftest.$ac_ext
8549
cat >>conftest.$ac_ext <<_ACEOF
8550
/* end confdefs.h. */
8551
#include <X11/Intrinsic.h>
8553
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8556
grep -v '^ *+' conftest.er1 >conftest.err
8558
cat conftest.err >&5
8559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560
(exit $ac_status); } >/dev/null; then
8561
if test -s conftest.err; then
8562
ac_cpp_err=$ac_c_preproc_warn_flag
8563
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8570
if test -z "$ac_cpp_err"; then
8571
# We can compile using X headers with no special include directory.
8574
echo "$as_me: failed program was:" >&5
8575
sed 's/^/| /' conftest.$ac_ext >&5
8577
for ac_dir in $ac_x_header_dirs; do
8578
if test -r "$ac_dir/X11/Intrinsic.h"; then
8579
ac_x_includes=$ac_dir
8584
rm -f conftest.err conftest.$ac_ext
8585
fi # $ac_x_includes = no
8587
if test "$ac_x_libraries" = no; then
8588
# Check for the libraries.
8589
# See if we find them without any special options.
8590
# Don't add to $LIBS permanently.
8593
cat >conftest.$ac_ext <<_ACEOF
8596
cat confdefs.h >>conftest.$ac_ext
8597
cat >>conftest.$ac_ext <<_ACEOF
8598
/* end confdefs.h. */
8599
#include <X11/Intrinsic.h>
8608
rm -f conftest.$ac_objext conftest$ac_exeext
8609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610
(eval $ac_link) 2>conftest.er1
8612
grep -v '^ *+' conftest.er1 >conftest.err
8614
cat conftest.err >&5
8615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616
(exit $ac_status); } &&
8617
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622
(exit $ac_status); }; } &&
8623
{ ac_try='test -s conftest$ac_exeext'
8624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628
(exit $ac_status); }; }; then
8630
# We can link X programs with no special library path.
8633
echo "$as_me: failed program was:" >&5
8634
sed 's/^/| /' conftest.$ac_ext >&5
8637
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8639
# Don't even attempt the hair of trying to link an X program!
8640
for ac_extension in a so sl; do
8641
if test -r $ac_dir/libXt.$ac_extension; then
8642
ac_x_libraries=$ac_dir
8648
rm -f conftest.err conftest.$ac_objext \
8649
conftest$ac_exeext conftest.$ac_ext
8650
fi # $ac_x_libraries = no
8652
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8653
# Didn't find X anywhere. Cache the known absence of X.
8654
ac_cv_have_x="have_x=no"
8656
# Record where we found X for the cache.
8657
ac_cv_have_x="have_x=yes \
8658
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8663
eval "$ac_cv_have_x"
8666
if test "$have_x" != yes; then
8667
echo "$as_me:$LINENO: result: $have_x" >&5
8668
echo "${ECHO_T}$have_x" >&6
8671
# If each of the values was on the command line, it overrides each guess.
8672
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8673
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8674
# Update the cache value to reflect the command line values.
8675
ac_cv_have_x="have_x=yes \
8676
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8677
# It might be that x_includes is empty (headers are found in the
8678
# standard search path. Then output the corresponding message
8679
ac_out_x_includes=$x_includes
8680
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8681
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8682
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8686
if test "x$ac_path_x_has_been_run" != xyes; then
8687
echo "$as_me:$LINENO: checking for X" >&5
8688
echo $ECHO_N "checking for X... $ECHO_C" >&6
8690
ac_path_x_has_been_run=yes
8692
# Check whether --with-x or --without-x was given.
8693
if test "${with_x+set}" = set; then
8697
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8698
if test "x$with_x" = xno; then
8699
# The user explicitly disabled X.
8702
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8703
# Both variables are already set.
8706
if test "${ac_cv_have_x+set}" = set; then
8707
echo $ECHO_N "(cached) $ECHO_C" >&6
8709
# One or both of the vars are not set, and there is no cached value.
8710
ac_x_includes=no ac_x_libraries=no
8712
if mkdir conftest.dir; then
8714
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
8715
cat >Imakefile <<'_ACEOF'
8717
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8719
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8720
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8721
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8722
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8723
for ac_extension in a so sl; do
8724
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8725
test -f $ac_im_libdir/libX11.$ac_extension; then
8726
ac_im_usrlibdir=$ac_im_libdir; break
8729
# Screen out bogus values from the imake configuration. They are
8730
# bogus both because they are the default anyway, and because
8731
# using them would break gcc on systems where it needs fixed includes.
8732
case $ac_im_incroot in
8734
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8736
case $ac_im_usrlibdir in
8738
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8745
# Standard set of common directories for X headers.
8746
# Check X11 before X11Rn because it is often a symlink to the current release.
8758
/usr/local/X11/include
8759
/usr/local/X11R6/include
8760
/usr/local/X11R5/include
8761
/usr/local/X11R4/include
8763
/usr/local/include/X11
8764
/usr/local/include/X11R6
8765
/usr/local/include/X11R5
8766
/usr/local/include/X11R4
8770
/usr/XFree86/include/X11
8774
/usr/unsupported/include
8776
/usr/local/x11r5/include
8777
/usr/lpp/Xamples/include
8779
/usr/openwin/include
8780
/usr/openwin/share/include'
8782
if test "$ac_x_includes" = no; then
8783
# Guess where to find include files, by looking for a specified header file.
8784
# First, try using that file with no special directory specified.
8785
cat >conftest.$ac_ext <<_ACEOF
8788
cat confdefs.h >>conftest.$ac_ext
8789
cat >>conftest.$ac_ext <<_ACEOF
8790
/* end confdefs.h. */
8791
#include <X11/Intrinsic.h>
8793
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8794
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8796
grep -v '^ *+' conftest.er1 >conftest.err
8798
cat conftest.err >&5
8799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800
(exit $ac_status); } >/dev/null; then
8801
if test -s conftest.err; then
8802
ac_cpp_err=$ac_c_preproc_warn_flag
8803
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8810
if test -z "$ac_cpp_err"; then
8811
# We can compile using X headers with no special include directory.
8814
echo "$as_me: failed program was:" >&5
8815
sed 's/^/| /' conftest.$ac_ext >&5
8817
for ac_dir in $ac_x_header_dirs; do
8818
if test -r "$ac_dir/X11/Intrinsic.h"; then
8819
ac_x_includes=$ac_dir
8824
rm -f conftest.err conftest.$ac_ext
8825
fi # $ac_x_includes = no
8827
if test "$ac_x_libraries" = no; then
8828
# Check for the libraries.
8829
# See if we find them without any special options.
8830
# Don't add to $LIBS permanently.
8833
cat >conftest.$ac_ext <<_ACEOF
8836
cat confdefs.h >>conftest.$ac_ext
8837
cat >>conftest.$ac_ext <<_ACEOF
8838
/* end confdefs.h. */
8839
#include <X11/Intrinsic.h>
8848
rm -f conftest.$ac_objext conftest$ac_exeext
8849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850
(eval $ac_link) 2>conftest.er1
8852
grep -v '^ *+' conftest.er1 >conftest.err
8854
cat conftest.err >&5
8855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856
(exit $ac_status); } &&
8857
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8858
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862
(exit $ac_status); }; } &&
8863
{ ac_try='test -s conftest$ac_exeext'
8864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868
(exit $ac_status); }; }; then
8870
# We can link X programs with no special library path.
8873
echo "$as_me: failed program was:" >&5
8874
sed 's/^/| /' conftest.$ac_ext >&5
8877
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8879
# Don't even attempt the hair of trying to link an X program!
8880
for ac_extension in a so sl; do
8881
if test -r $ac_dir/libXt.$ac_extension; then
8882
ac_x_libraries=$ac_dir
8888
rm -f conftest.err conftest.$ac_objext \
8889
conftest$ac_exeext conftest.$ac_ext
8890
fi # $ac_x_libraries = no
8892
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8893
# Didn't find X anywhere. Cache the known absence of X.
8894
ac_cv_have_x="have_x=no"
8896
# Record where we found X for the cache.
8897
ac_cv_have_x="have_x=yes \
8898
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8903
eval "$ac_cv_have_x"
8906
if test "$have_x" != yes; then
8907
echo "$as_me:$LINENO: result: $have_x" >&5
8908
echo "${ECHO_T}$have_x" >&6
8911
# If each of the values was on the command line, it overrides each guess.
8912
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8913
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8914
# Update the cache value to reflect the command line values.
8915
ac_cv_have_x="have_x=yes \
8916
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8917
# It might be that x_includes is empty (headers are found in the
8918
# standard search path. Then output the corresponding message
8919
ac_out_x_includes=$x_includes
8920
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8921
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8922
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8926
if test "$no_x" = yes; then
7602
8927
# Not all programs may use this symbol, but it does not hurt to define it.
7604
8929
cat >>confdefs.h <<\_ACEOF