~logan/ubuntu/trusty/pinentry/0.8.3-1ubuntu1

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2005-01-27 19:10:07 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050127191007-83ptn4mcw63mu085
Tags: 0.7.2-1
* New upstream release
* Added new -gtk2 flavor.
* Build dependencies revised accordingly.
* Added more copyright holders to debian/copyright.
* Removed compatibility symlinks.
* Converted to CDBS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for pinentry 0.7.1.
 
3
# Generated by GNU Autoconf 2.59 for pinentry 0.7.2.
4
4
#
5
5
# Report bugs to <gpa-dev@gnupg.org>.
6
6
#
269
269
# Identity of this package.
270
270
PACKAGE_NAME='pinentry'
271
271
PACKAGE_TARNAME='pinentry'
272
 
PACKAGE_VERSION='0.7.1'
273
 
PACKAGE_STRING='pinentry 0.7.1'
 
272
PACKAGE_VERSION='0.7.2'
 
273
PACKAGE_STRING='pinentry 0.7.2'
274
274
PACKAGE_BUGREPORT='gpa-dev@gnupg.org'
275
275
 
276
276
ac_unique_file="pinentry/pinentry.h"
311
311
# include <unistd.h>
312
312
#endif"
313
313
 
314
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP SETCAP LIBCAP NCURSES_INCLUDE LIBNCURSES LIBTERMCAP LIBCURSES BUILD_LIBPINENTRY_CURSES_TRUE BUILD_LIBPINENTRY_CURSES_FALSE BUILD_PINENTRY_CURSES_TRUE BUILD_PINENTRY_CURSES_FALSE FALLBACK_CURSES_TRUE FALLBACK_CURSES_FALSE LIBICONV GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS BUILD_PINENTRY_GTK_TRUE BUILD_PINENTRY_GTK_FALSE CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS QT_CXXFLAGS QT_LDFLAGS QT_LIBS QTE_NORTTI LIBPTHREAD USE_THREADS QT_MT_LDFLAGS QT_MT_LIBS qt_libraries qt_includes QT_INCLUDES MOC LIB_QPE x_libraries QT_RPATH BUILD_PINENTRY_QT_TRUE BUILD_PINENTRY_QT_FALSE LIBOBJS LTLIBOBJS'
 
314
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S WINDRES ac_ct_WINDRES HAVE_DOSISH_SYSTEM_TRUE HAVE_DOSISH_SYSTEM_FALSE HAVE_W32_SYSTEM_TRUE HAVE_W32_SYSTEM_FALSE EGREP SETCAP LIBCAP NCURSES_INCLUDE LIBNCURSES LIBTERMCAP LIBCURSES BUILD_LIBPINENTRY_CURSES_TRUE BUILD_LIBPINENTRY_CURSES_FALSE BUILD_PINENTRY_CURSES_TRUE BUILD_PINENTRY_CURSES_FALSE FALLBACK_CURSES_TRUE FALLBACK_CURSES_FALSE GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS BUILD_PINENTRY_GTK_TRUE BUILD_PINENTRY_GTK_FALSE LIBICONV LTLIBICONV PKGCONFIG GTK2CFLAGS GTK2LIBS BUILD_PINENTRY_GTK_2_TRUE BUILD_PINENTRY_GTK_2_FALSE CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS QT_CXXFLAGS QT_LDFLAGS QT_LIBS QTE_NORTTI LIBPTHREAD USE_THREADS QT_MT_LDFLAGS QT_MT_LIBS qt_libraries qt_includes QT_INCLUDES MOC LIB_QPE x_libraries QT_RPATH BUILD_PINENTRY_QT_TRUE BUILD_PINENTRY_QT_FALSE BUILD_PINENTRY_W32_TRUE BUILD_PINENTRY_W32_FALSE PINENTRY_DEFAULT LIBOBJS LTLIBOBJS'
315
315
ac_subst_files=''
316
316
 
317
317
# Initialize some variables set by options.
792
792
  # Omit some internal or obsolete options to make the list less imposing.
793
793
  # This message is too long to be a string in the A/UX 3.1 sh.
794
794
  cat <<_ACEOF
795
 
\`configure' configures pinentry 0.7.1 to adapt to many kinds of systems.
 
795
\`configure' configures pinentry 0.7.2 to adapt to many kinds of systems.
796
796
 
797
797
Usage: $0 [OPTION]... [VAR=VALUE]...
798
798
 
862
862
 
863
863
if test -n "$ac_init_help"; then
864
864
  case $ac_init_help in
865
 
     short | recursive ) echo "Configuration of pinentry 0.7.1:";;
 
865
     short | recursive ) echo "Configuration of pinentry 0.7.2:";;
866
866
   esac
867
867
  cat <<\_ACEOF
868
868
 
869
869
Optional Features:
870
870
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
871
871
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
872
 
  --enable-maintainer-mode enable make rules and dependencies not useful
873
 
                          (and sometimes confusing) to the casual installer
874
 
  --disable-dependency-tracking Speeds up one-time builds
875
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
872
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
873
                          (and sometimes confusing) to the casual installer
 
874
  --disable-dependency-tracking  speeds up one-time build
 
875
  --enable-dependency-tracking   do not reject slow dependency extractors
876
876
  --enable-pinentry-curses
877
877
                          build curses pinentry
878
878
  --enable-fallback-curses
881
881
  --enable-pinentry-gtk   build GTK+ pinentry
882
882
  --disable-glibtest       Do not try to compile and run a test GLIB program
883
883
  --disable-gtktest       Do not try to compile and run a test GTK program
 
884
  --disable-rpath         do not hardcode runtime library paths
 
885
  --enable-pinentry-gtk2  build GTK+-2 pinentry
884
886
  --enable-pinentry-qt    build Qt pinentry
885
887
  --enable-embedded       link to Qt-embedded, don't use X
886
888
  --enable-palmtop       link to Qt-embedded, don't use X, link to the Qt Palmtop Environment
899
901
                          then no special ncurses include files are used.
900
902
  --without-ncurses-include-dir
901
903
                          Equivalent to --with-ncurses-include-dir=none
902
 
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
903
904
  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)
904
905
  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
905
906
  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
906
907
  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
 
908
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
909
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
910
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
907
911
  --with-x                use the X Window System
908
912
  --with-qt-dir=DIR       where the root of Qt is installed
909
913
  --with-qt-includes=DIR  where the Qt includes are.
1020
1024
test -n "$ac_init_help" && exit 0
1021
1025
if $ac_init_version; then
1022
1026
  cat <<\_ACEOF
1023
 
pinentry configure 0.7.1
 
1027
pinentry configure 0.7.2
1024
1028
generated by GNU Autoconf 2.59
1025
1029
 
1026
1030
Copyright (C) 2003 Free Software Foundation, Inc.
1034
1038
This file contains any messages produced by compilers while
1035
1039
running configure, to aid debugging if configure makes a mistake.
1036
1040
 
1037
 
It was created by pinentry $as_me 0.7.1, which was
 
1041
It was created by pinentry $as_me 0.7.2, which was
1038
1042
generated by GNU Autoconf 2.59.  Invocation command line was
1039
1043
 
1040
1044
  $ $0 $@
1373
1377
          ac_config_headers="$ac_config_headers config.h"
1374
1378
 
1375
1379
 
1376
 
am__api_version="1.7"
 
1380
am__api_version="1.9"
1377
1381
ac_aux_dir=
1378
1382
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1379
1383
  if test -f $ac_dir/install-sh; then
1536
1540
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1537
1541
rm conftest.sed
1538
1542
 
1539
 
 
1540
1543
# expand $ac_aux_dir to an absolute path
1541
1544
am_aux_dir=`cd $ac_aux_dir && pwd`
1542
1545
 
1550
1553
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1551
1554
fi
1552
1555
 
 
1556
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1557
  # We used to keeping the `.' as first argument, in order to
 
1558
  # allow $(mkdir_p) to be used without argument.  As in
 
1559
  #   $(mkdir_p) $(somedir)
 
1560
  # where $(somedir) is conditionally defined.  However this is wrong
 
1561
  # for two reasons:
 
1562
  #  1. if the package is installed by a user who cannot write `.'
 
1563
  #     make install will fail,
 
1564
  #  2. the above comment should most certainly read
 
1565
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1566
  #     so it does not work when $(somedir) is undefined and
 
1567
  #     $(DESTDIR) is not.
 
1568
  #  To support the latter case, we have to write
 
1569
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1570
  #  so the `.' trick is pointless.
 
1571
  mkdir_p='mkdir -p --'
 
1572
else
 
1573
  # On NextStep and OpenStep, the `mkdir' command does not
 
1574
  # recognize any option.  It will interpret all options as
 
1575
  # directories to create, and then abort because `.' already
 
1576
  # exists.
 
1577
  for d in ./-p ./--version;
 
1578
  do
 
1579
    test -d $d && rmdir $d
 
1580
  done
 
1581
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1582
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1583
    mkdir_p='$(mkinstalldirs)'
 
1584
  else
 
1585
    mkdir_p='$(install_sh) -d'
 
1586
  fi
 
1587
fi
 
1588
 
1553
1589
for ac_prog in gawk mawk nawk awk
1554
1590
do
1555
1591
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1628
1664
fi
1629
1665
rmdir .tst 2>/dev/null
1630
1666
 
1631
 
 # test to see if srcdir already configured
 
1667
# test to see if srcdir already configured
1632
1668
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1633
1669
   test -f $srcdir/config.status; then
1634
1670
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1676
1712
 
1677
1713
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1678
1714
 
1679
 
 
1680
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1681
 
 
1682
1715
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1683
1716
 
1684
1717
# Installed binaries are usually stripped using `strip' when the user
1771
1804
 
1772
1805
# We need awk for the "check" target.  The system "awk" is bad on
1773
1806
# some platforms.
1774
 
 
1775
 
 
 
1807
# Always define AMTAR for backward compatibility.
 
1808
 
 
1809
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1810
 
 
1811
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1812
 
 
1813
 
 
1814
 
 
1815
 
 
1816
 
 
1817
 
 
1818
 
 
1819
cat >>confdefs.h <<\_ACEOF
 
1820
#define _GNU_SOURCE 1
 
1821
_ACEOF
1776
1822
 
1777
1823
 
1778
1824
 
2902
2948
    : > sub/conftest.c
2903
2949
    for i in 1 2 3 4 5 6; do
2904
2950
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2905
 
      : > sub/conftst$i.h
 
2951
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2952
      # Solaris 8's {/usr,}/bin/sh.
 
2953
      touch sub/conftst$i.h
2906
2954
    done
2907
2955
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2908
2956
 
2930
2978
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2931
2979
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2932
2980
      # icc doesn't choke on unknown options, it will just issue warnings
2933
 
      # (even with -Werror).  So we grep stderr for any message
2934
 
      # that says an option was ignored.
2935
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2981
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2982
      # that says an option was ignored or not supported.
 
2983
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2984
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2985
      # The diagnosis changed in icc 8.0:
 
2986
      #   icc: Command line remark: option '-MP' not supported
 
2987
      if (grep 'ignoring option' conftest.err ||
 
2988
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2936
2989
        am_cv_CC_dependencies_compiler_type=$depmode
2937
2990
        break
2938
2991
      fi
3750
3803
    : > sub/conftest.c
3751
3804
    for i in 1 2 3 4 5 6; do
3752
3805
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3753
 
      : > sub/conftst$i.h
 
3806
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3807
      # Solaris 8's {/usr,}/bin/sh.
 
3808
      touch sub/conftst$i.h
3754
3809
    done
3755
3810
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756
3811
 
3778
3833
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3779
3834
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3780
3835
      # icc doesn't choke on unknown options, it will just issue warnings
3781
 
      # (even with -Werror).  So we grep stderr for any message
3782
 
      # that says an option was ignored.
3783
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3836
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3837
      # that says an option was ignored or not supported.
 
3838
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3839
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3840
      # The diagnosis changed in icc 8.0:
 
3841
      #   icc: Command line remark: option '-MP' not supported
 
3842
      if (grep 'ignoring option' conftest.err ||
 
3843
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3784
3844
        am_cv_CXX_dependencies_compiler_type=$depmode
3785
3845
        break
3786
3846
      fi
3811
3871
fi
3812
3872
 
3813
3873
 
 
3874
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3875
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3876
LN_S=$as_ln_s
 
3877
if test "$LN_S" = "ln -s"; then
 
3878
  echo "$as_me:$LINENO: result: yes" >&5
 
3879
echo "${ECHO_T}yes" >&6
 
3880
else
 
3881
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3882
echo "${ECHO_T}no, using $LN_S" >&6
 
3883
fi
 
3884
 
 
3885
if test -n "$ac_tool_prefix"; then
 
3886
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
3887
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
3888
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3889
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3890
if test "${ac_cv_prog_WINDRES+set}" = set; then
 
3891
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3892
else
 
3893
  if test -n "$WINDRES"; then
 
3894
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 
3895
else
 
3896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3897
for as_dir in $PATH
 
3898
do
 
3899
  IFS=$as_save_IFS
 
3900
  test -z "$as_dir" && as_dir=.
 
3901
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3902
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3903
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 
3904
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3905
    break 2
 
3906
  fi
 
3907
done
 
3908
done
 
3909
 
 
3910
fi
 
3911
fi
 
3912
WINDRES=$ac_cv_prog_WINDRES
 
3913
if test -n "$WINDRES"; then
 
3914
  echo "$as_me:$LINENO: result: $WINDRES" >&5
 
3915
echo "${ECHO_T}$WINDRES" >&6
 
3916
else
 
3917
  echo "$as_me:$LINENO: result: no" >&5
 
3918
echo "${ECHO_T}no" >&6
 
3919
fi
 
3920
 
 
3921
fi
 
3922
if test -z "$ac_cv_prog_WINDRES"; then
 
3923
  ac_ct_WINDRES=$WINDRES
 
3924
  # Extract the first word of "windres", so it can be a program name with args.
 
3925
set dummy windres; ac_word=$2
 
3926
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3927
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3928
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
 
3929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3930
else
 
3931
  if test -n "$ac_ct_WINDRES"; then
 
3932
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 
3933
else
 
3934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3935
for as_dir in $PATH
 
3936
do
 
3937
  IFS=$as_save_IFS
 
3938
  test -z "$as_dir" && as_dir=.
 
3939
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3940
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3941
    ac_cv_prog_ac_ct_WINDRES="windres"
 
3942
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3943
    break 2
 
3944
  fi
 
3945
done
 
3946
done
 
3947
 
 
3948
  test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
 
3949
fi
 
3950
fi
 
3951
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 
3952
if test -n "$ac_ct_WINDRES"; then
 
3953
  echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
 
3954
echo "${ECHO_T}$ac_ct_WINDRES" >&6
 
3955
else
 
3956
  echo "$as_me:$LINENO: result: no" >&5
 
3957
echo "${ECHO_T}no" >&6
 
3958
fi
 
3959
 
 
3960
  WINDRES=$ac_ct_WINDRES
 
3961
else
 
3962
  WINDRES="$ac_cv_prog_WINDRES"
 
3963
fi
 
3964
 
 
3965
 
 
3966
 
 
3967
have_dosish_system=no
 
3968
have_w32_system=no
 
3969
case "${host}" in
 
3970
    *-mingw32*)
 
3971
 
 
3972
cat >>confdefs.h <<\_ACEOF
 
3973
#define USE_ONLY_8DOT3 1
 
3974
_ACEOF
 
3975
 
 
3976
 
 
3977
cat >>confdefs.h <<\_ACEOF
 
3978
#define HAVE_DRIVE_LETTERS 1
 
3979
_ACEOF
 
3980
 
 
3981
        have_dosish_system=yes
 
3982
        have_w32_system=yes
 
3983
        ;;
 
3984
    i?86-emx-os2 | i?86-*-os2*emx )
 
3985
        # OS/2 with the EMX environment
 
3986
        cat >>confdefs.h <<\_ACEOF
 
3987
#define HAVE_DRIVE_LETTERS 1
 
3988
_ACEOF
 
3989
 
 
3990
        have_dosish_system=yes
 
3991
        ;;
 
3992
 
 
3993
    i?86-*-msdosdjgpp*)
 
3994
        # DOS with the DJGPP environment
 
3995
        cat >>confdefs.h <<\_ACEOF
 
3996
#define HAVE_DRIVE_LETTERS 1
 
3997
_ACEOF
 
3998
 
 
3999
        have_dosish_system=yes
 
4000
        ;;
 
4001
esac
 
4002
 
 
4003
if test "$have_dosish_system" = yes; then
 
4004
 
 
4005
cat >>confdefs.h <<\_ACEOF
 
4006
#define HAVE_DOSISH_SYSTEM 1
 
4007
_ACEOF
 
4008
 
 
4009
fi
 
4010
 
 
4011
 
 
4012
if test "$have_dosish_system" = yes; then
 
4013
  HAVE_DOSISH_SYSTEM_TRUE=
 
4014
  HAVE_DOSISH_SYSTEM_FALSE='#'
 
4015
else
 
4016
  HAVE_DOSISH_SYSTEM_TRUE='#'
 
4017
  HAVE_DOSISH_SYSTEM_FALSE=
 
4018
fi
 
4019
 
 
4020
 
 
4021
if test "$have_w32_system" = yes; then
 
4022
 
 
4023
cat >>confdefs.h <<\_ACEOF
 
4024
#define HAVE_W32_SYSTEM 1
 
4025
_ACEOF
 
4026
 
 
4027
fi
 
4028
 
 
4029
 
 
4030
if test "$have_w32_system" = yes; then
 
4031
  HAVE_W32_SYSTEM_TRUE=
 
4032
  HAVE_W32_SYSTEM_FALSE='#'
 
4033
else
 
4034
  HAVE_W32_SYSTEM_TRUE='#'
 
4035
  HAVE_W32_SYSTEM_FALSE=
 
4036
fi
 
4037
 
 
4038
 
 
4039
 
 
4040
 
3814
4041
 
3815
4042
if test "$GCC" = yes; then
3816
4043
    CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
3818
4045
fi
3819
4046
 
3820
4047
 
3821
 
 
3822
 
 
3823
 
 
3824
 
for ac_func in seteuid stpcpy mmap
3825
 
do
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
3831
 
else
3832
 
  cat >conftest.$ac_ext <<_ACEOF
3833
 
/* confdefs.h.  */
3834
 
_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
3841
 
 
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.  */
3846
 
 
3847
 
#ifdef __STDC__
3848
 
# include <limits.h>
3849
 
#else
3850
 
# include <assert.h>
3851
 
#endif
3852
 
 
3853
 
#undef $ac_func
3854
 
 
3855
 
/* Override any gcc2 internal prototype to avoid an error.  */
3856
 
#ifdef __cplusplus
3857
 
extern "C"
3858
 
{
3859
 
#endif
3860
 
/* We use char because int might match the return type of a gcc2
3861
 
   builtin and then its argument prototype would still apply.  */
3862
 
char $ac_func ();
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)
3867
 
choke me
3868
 
#else
3869
 
char (*f) () = $ac_func;
3870
 
#endif
3871
 
#ifdef __cplusplus
3872
 
}
3873
 
#endif
3874
 
 
3875
 
int
3876
 
main ()
3877
 
{
3878
 
return f != $ac_func;
3879
 
  ;
3880
 
  return 0;
3881
 
}
3882
 
_ACEOF
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
3886
 
  ac_status=$?
3887
 
  grep -v '^ *+' conftest.er1 >conftest.err
3888
 
  rm -f conftest.er1
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
3894
 
  (eval $ac_try) 2>&5
3895
 
  ac_status=$?
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
3900
 
  (eval $ac_try) 2>&5
3901
 
  ac_status=$?
3902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903
 
  (exit $ac_status); }; }; then
3904
 
  eval "$as_ac_var=yes"
3905
 
else
3906
 
  echo "$as_me: failed program was:" >&5
3907
 
sed 's/^/| /' conftest.$ac_ext >&5
3908
 
 
3909
 
eval "$as_ac_var=no"
3910
 
fi
3911
 
rm -f conftest.err conftest.$ac_objext \
3912
 
      conftest$ac_exeext conftest.$ac_ext
3913
 
fi
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
3919
 
_ACEOF
3920
 
 
3921
 
fi
3922
 
done
3923
 
 
3924
 
 
3925
 
for ac_func in mlock
3926
 
do
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
3932
 
else
3933
 
  cat >conftest.$ac_ext <<_ACEOF
3934
 
/* confdefs.h.  */
3935
 
_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
3942
 
 
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.  */
3947
 
 
3948
 
#ifdef __STDC__
3949
 
# include <limits.h>
3950
 
#else
3951
 
# include <assert.h>
3952
 
#endif
3953
 
 
3954
 
#undef $ac_func
3955
 
 
3956
 
/* Override any gcc2 internal prototype to avoid an error.  */
3957
 
#ifdef __cplusplus
3958
 
extern "C"
3959
 
{
3960
 
#endif
3961
 
/* We use char because int might match the return type of a gcc2
3962
 
   builtin and then its argument prototype would still apply.  */
3963
 
char $ac_func ();
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)
3968
 
choke me
3969
 
#else
3970
 
char (*f) () = $ac_func;
3971
 
#endif
3972
 
#ifdef __cplusplus
3973
 
}
3974
 
#endif
3975
 
 
3976
 
int
3977
 
main ()
3978
 
{
3979
 
return f != $ac_func;
3980
 
  ;
3981
 
  return 0;
3982
 
}
3983
 
_ACEOF
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
3987
 
  ac_status=$?
3988
 
  grep -v '^ *+' conftest.er1 >conftest.err
3989
 
  rm -f conftest.er1
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
3995
 
  (eval $ac_try) 2>&5
3996
 
  ac_status=$?
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
4001
 
  (eval $ac_try) 2>&5
4002
 
  ac_status=$?
4003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004
 
  (exit $ac_status); }; }; then
4005
 
  eval "$as_ac_var=yes"
4006
 
else
4007
 
  echo "$as_me: failed program was:" >&5
4008
 
sed 's/^/| /' conftest.$ac_ext >&5
4009
 
 
4010
 
eval "$as_ac_var=no"
4011
 
fi
4012
 
rm -f conftest.err conftest.$ac_objext \
4013
 
      conftest$ac_exeext conftest.$ac_ext
4014
 
fi
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
4020
 
_ACEOF
4021
 
 
4022
 
fi
4023
 
done
4024
 
 
4025
 
    if test "$ac_cv_func_mlock" = "no"; then
 
4048
# Checks for header files.
 
4049
 
4026
4050
 
4027
4051
echo "$as_me:$LINENO: checking for egrep" >&5
4028
4052
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4276
4300
 
4277
4301
 
4278
4302
 
 
4303
 
 
4304
 
 
4305
 
 
4306
 
 
4307
for ac_header in string.h unistd.h langinfo.h termio.h locale.h
 
4308
do
 
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
 
4315
fi
 
4316
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4317
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4318
else
 
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
 
4323
/* confdefs.h.  */
 
4324
_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>
 
4330
_ACEOF
 
4331
rm -f conftest.$ac_objext
 
4332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4333
  (eval $ac_compile) 2>conftest.er1
 
4334
  ac_status=$?
 
4335
  grep -v '^ *+' conftest.er1 >conftest.err
 
4336
  rm -f conftest.er1
 
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
 
4342
  (eval $ac_try) 2>&5
 
4343
  ac_status=$?
 
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
 
4348
  (eval $ac_try) 2>&5
 
4349
  ac_status=$?
 
4350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4351
  (exit $ac_status); }; }; then
 
4352
  ac_header_compiler=yes
 
4353
else
 
4354
  echo "$as_me: failed program was:" >&5
 
4355
sed 's/^/| /' conftest.$ac_ext >&5
 
4356
 
 
4357
ac_header_compiler=no
 
4358
fi
 
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
 
4362
 
 
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
 
4367
/* confdefs.h.  */
 
4368
_ACEOF
 
4369
cat confdefs.h >>conftest.$ac_ext
 
4370
cat >>conftest.$ac_ext <<_ACEOF
 
4371
/* end confdefs.h.  */
 
4372
#include <$ac_header>
 
4373
_ACEOF
 
4374
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4375
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4376
  ac_status=$?
 
4377
  grep -v '^ *+' conftest.er1 >conftest.err
 
4378
  rm -f conftest.er1
 
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
 
4385
  else
 
4386
    ac_cpp_err=
 
4387
  fi
 
4388
else
 
4389
  ac_cpp_err=yes
 
4390
fi
 
4391
if test -z "$ac_cpp_err"; then
 
4392
  ac_header_preproc=yes
 
4393
else
 
4394
  echo "$as_me: failed program was:" >&5
 
4395
sed 's/^/| /' conftest.$ac_ext >&5
 
4396
 
 
4397
  ac_header_preproc=no
 
4398
fi
 
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
 
4402
 
 
4403
# So?  What about this header?
 
4404
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4405
  yes:no: )
 
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
 
4411
    ;;
 
4412
  no: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;}
 
4425
    (
 
4426
      cat <<\_ASBOX
 
4427
## -------------------------------- ##
 
4428
## Report this to gpa-dev@gnupg.org ##
 
4429
## -------------------------------- ##
 
4430
_ASBOX
 
4431
    ) |
 
4432
      sed "s/^/$as_me: WARNING:     /" >&2
 
4433
    ;;
 
4434
esac
 
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
 
4439
else
 
4440
  eval "$as_ac_Header=\$ac_header_preproc"
 
4441
fi
 
4442
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4443
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4444
 
 
4445
fi
 
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
 
4449
_ACEOF
 
4450
 
 
4451
fi
 
4452
 
 
4453
done
 
4454
 
 
4455
 
 
4456
 
 
4457
 
 
4458
 
 
4459
for ac_func in seteuid stpcpy mmap
 
4460
do
 
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
 
4466
else
 
4467
  cat >conftest.$ac_ext <<_ACEOF
 
4468
/* confdefs.h.  */
 
4469
_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
 
4476
 
 
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.  */
 
4481
 
 
4482
#ifdef __STDC__
 
4483
# include <limits.h>
 
4484
#else
 
4485
# include <assert.h>
 
4486
#endif
 
4487
 
 
4488
#undef $ac_func
 
4489
 
 
4490
/* Override any gcc2 internal prototype to avoid an error.  */
 
4491
#ifdef __cplusplus
 
4492
extern "C"
 
4493
{
 
4494
#endif
 
4495
/* We use char because int might match the return type of a gcc2
 
4496
   builtin and then its argument prototype would still apply.  */
 
4497
char $ac_func ();
 
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)
 
4502
choke me
 
4503
#else
 
4504
char (*f) () = $ac_func;
 
4505
#endif
 
4506
#ifdef __cplusplus
 
4507
}
 
4508
#endif
 
4509
 
 
4510
int
 
4511
main ()
 
4512
{
 
4513
return f != $ac_func;
 
4514
  ;
 
4515
  return 0;
 
4516
}
 
4517
_ACEOF
 
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
 
4521
  ac_status=$?
 
4522
  grep -v '^ *+' conftest.er1 >conftest.err
 
4523
  rm -f conftest.er1
 
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
 
4529
  (eval $ac_try) 2>&5
 
4530
  ac_status=$?
 
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
 
4535
  (eval $ac_try) 2>&5
 
4536
  ac_status=$?
 
4537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4538
  (exit $ac_status); }; }; then
 
4539
  eval "$as_ac_var=yes"
 
4540
else
 
4541
  echo "$as_me: failed program was:" >&5
 
4542
sed 's/^/| /' conftest.$ac_ext >&5
 
4543
 
 
4544
eval "$as_ac_var=no"
 
4545
fi
 
4546
rm -f conftest.err conftest.$ac_objext \
 
4547
      conftest$ac_exeext conftest.$ac_ext
 
4548
fi
 
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
 
4554
_ACEOF
 
4555
 
 
4556
fi
 
4557
done
 
4558
 
 
4559
 
 
4560
for ac_func in mlock
 
4561
do
 
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
 
4567
else
 
4568
  cat >conftest.$ac_ext <<_ACEOF
 
4569
/* confdefs.h.  */
 
4570
_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
 
4577
 
 
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.  */
 
4582
 
 
4583
#ifdef __STDC__
 
4584
# include <limits.h>
 
4585
#else
 
4586
# include <assert.h>
 
4587
#endif
 
4588
 
 
4589
#undef $ac_func
 
4590
 
 
4591
/* Override any gcc2 internal prototype to avoid an error.  */
 
4592
#ifdef __cplusplus
 
4593
extern "C"
 
4594
{
 
4595
#endif
 
4596
/* We use char because int might match the return type of a gcc2
 
4597
   builtin and then its argument prototype would still apply.  */
 
4598
char $ac_func ();
 
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)
 
4603
choke me
 
4604
#else
 
4605
char (*f) () = $ac_func;
 
4606
#endif
 
4607
#ifdef __cplusplus
 
4608
}
 
4609
#endif
 
4610
 
 
4611
int
 
4612
main ()
 
4613
{
 
4614
return f != $ac_func;
 
4615
  ;
 
4616
  return 0;
 
4617
}
 
4618
_ACEOF
 
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
 
4622
  ac_status=$?
 
4623
  grep -v '^ *+' conftest.er1 >conftest.err
 
4624
  rm -f conftest.er1
 
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
 
4630
  (eval $ac_try) 2>&5
 
4631
  ac_status=$?
 
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
 
4636
  (eval $ac_try) 2>&5
 
4637
  ac_status=$?
 
4638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4639
  (exit $ac_status); }; }; then
 
4640
  eval "$as_ac_var=yes"
 
4641
else
 
4642
  echo "$as_me: failed program was:" >&5
 
4643
sed 's/^/| /' conftest.$ac_ext >&5
 
4644
 
 
4645
eval "$as_ac_var=no"
 
4646
fi
 
4647
rm -f conftest.err conftest.$ac_objext \
 
4648
      conftest$ac_exeext conftest.$ac_ext
 
4649
fi
 
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
 
4655
_ACEOF
 
4656
 
 
4657
fi
 
4658
done
 
4659
 
 
4660
    if test "$ac_cv_func_mlock" = "no"; then
 
4661
 
4279
4662
for ac_header in sys/mman.h
4280
4663
do
4281
4664
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5525
5908
else
5526
5909
  if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
5527
5910
    { { echo "$as_me:$LINENO: error:
 
5911
***
5528
5912
*** The curses library is required. The latest version of
5529
5913
*** ncurses is always available from ftp://ftp.gnu.org/gnu/ncurses/.
5530
 
" >&5
 
5914
***" >&5
5531
5915
echo "$as_me: error:
 
5916
***
5532
5917
*** The curses library is required. The latest version of
5533
5918
*** ncurses is always available from ftp://ftp.gnu.org/gnu/ncurses/.
5534
 
" >&2;}
 
5919
***" >&2;}
5535
5920
   { (exit 1); exit 1; }; }
5536
5921
  fi
5537
5922
  pinentry_curses=no
5568
5953
fi
5569
5954
 
5570
5955
 
5571
 
if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
5572
 
 
5573
 
 
5574
 
 
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"
5578
 
 
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
5582
 
    done
5583
 
 
5584
 
fi;
5585
 
 
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
5590
 
else
5591
 
 
5592
 
    am_cv_func_iconv="no, consider installing GNU libiconv"
5593
 
    am_cv_lib_iconv=no
5594
 
    cat >conftest.$ac_ext <<_ACEOF
5595
 
/* confdefs.h.  */
5596
 
_ACEOF
5597
 
cat confdefs.h >>conftest.$ac_ext
5598
 
cat >>conftest.$ac_ext <<_ACEOF
5599
 
/* end confdefs.h.  */
5600
 
#include <stdlib.h>
5601
 
#include <iconv.h>
5602
 
int
5603
 
main ()
5604
 
{
5605
 
iconv_t cd = iconv_open("","");
5606
 
       iconv(cd,NULL,NULL,NULL,NULL);
5607
 
       iconv_close(cd);
5608
 
  ;
5609
 
  return 0;
5610
 
}
5611
 
_ACEOF
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
5615
 
  ac_status=$?
5616
 
  grep -v '^ *+' conftest.er1 >conftest.err
5617
 
  rm -f conftest.er1
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
5623
 
  (eval $ac_try) 2>&5
5624
 
  ac_status=$?
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
5629
 
  (eval $ac_try) 2>&5
5630
 
  ac_status=$?
5631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632
 
  (exit $ac_status); }; }; then
5633
 
  am_cv_func_iconv=yes
5634
 
else
5635
 
  echo "$as_me: failed program was:" >&5
5636
 
sed 's/^/| /' conftest.$ac_ext >&5
5637
 
 
5638
 
fi
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
5645
 
/* confdefs.h.  */
5646
 
_ACEOF
5647
 
cat confdefs.h >>conftest.$ac_ext
5648
 
cat >>conftest.$ac_ext <<_ACEOF
5649
 
/* end confdefs.h.  */
5650
 
#include <stdlib.h>
5651
 
#include <iconv.h>
5652
 
int
5653
 
main ()
5654
 
{
5655
 
iconv_t cd = iconv_open("","");
5656
 
         iconv(cd,NULL,NULL,NULL,NULL);
5657
 
         iconv_close(cd);
5658
 
  ;
5659
 
  return 0;
5660
 
}
5661
 
_ACEOF
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
5665
 
  ac_status=$?
5666
 
  grep -v '^ *+' conftest.er1 >conftest.err
5667
 
  rm -f conftest.er1
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
5673
 
  (eval $ac_try) 2>&5
5674
 
  ac_status=$?
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
5679
 
  (eval $ac_try) 2>&5
5680
 
  ac_status=$?
5681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682
 
  (exit $ac_status); }; }; then
5683
 
  am_cv_lib_iconv=yes
5684
 
        am_cv_func_iconv=yes
5685
 
else
5686
 
  echo "$as_me: failed program was:" >&5
5687
 
sed 's/^/| /' conftest.$ac_ext >&5
5688
 
 
5689
 
fi
5690
 
rm -f conftest.err conftest.$ac_objext \
5691
 
      conftest$ac_exeext conftest.$ac_ext
5692
 
      LIBS="$am_save_LIBS"
5693
 
    fi
5694
 
 
5695
 
fi
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
5699
5957
 
5700
5958
cat >>confdefs.h <<\_ACEOF
5701
 
#define HAVE_ICONV 1
5702
 
_ACEOF
5703
 
 
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
5708
 
else
5709
 
 
5710
 
      cat >conftest.$ac_ext <<_ACEOF
5711
 
/* confdefs.h.  */
5712
 
_ACEOF
5713
 
cat confdefs.h >>conftest.$ac_ext
5714
 
cat >>conftest.$ac_ext <<_ACEOF
5715
 
/* end confdefs.h.  */
5716
 
 
5717
 
#include <stdlib.h>
5718
 
#include <iconv.h>
5719
 
extern
5720
 
#ifdef __cplusplus
5721
 
"C"
5722
 
#endif
5723
 
#if defined(__STDC__) || defined(__cplusplus)
5724
 
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5725
 
#else
5726
 
size_t iconv();
5727
 
#endif
5728
 
 
5729
 
int
5730
 
main ()
5731
 
{
5732
 
 
5733
 
  ;
5734
 
  return 0;
5735
 
}
5736
 
_ACEOF
5737
 
rm -f conftest.$ac_objext
5738
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739
 
  (eval $ac_compile) 2>conftest.er1
5740
 
  ac_status=$?
5741
 
  grep -v '^ *+' conftest.er1 >conftest.err
5742
 
  rm -f conftest.er1
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
5748
 
  (eval $ac_try) 2>&5
5749
 
  ac_status=$?
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
5754
 
  (eval $ac_try) 2>&5
5755
 
  ac_status=$?
5756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757
 
  (exit $ac_status); }; }; then
5758
 
  am_cv_proto_iconv_arg1=""
5759
 
else
5760
 
  echo "$as_me: failed program was:" >&5
5761
 
sed 's/^/| /' conftest.$ac_ext >&5
5762
 
 
5763
 
am_cv_proto_iconv_arg1="const"
5764
 
fi
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);"
5767
 
fi
5768
 
 
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
5774
 
 
5775
 
cat >>confdefs.h <<_ACEOF
5776
 
#define ICONV_CONST $am_cv_proto_iconv_arg1
5777
 
_ACEOF
5778
 
 
5779
 
  fi
5780
 
  LIBICONV=
5781
 
  if test "$am_cv_lib_iconv" = yes; then
5782
 
    LIBICONV="-liconv"
5783
 
  fi
5784
 
 
5785
 
 
5786
 
fi
 
5959
#define PINENTRY_CURSES 1
 
5960
_ACEOF
 
5961
 
 
5962
fi
 
5963
 
5787
5964
 
5788
5965
# Check whether --enable-pinentry-gtk or --disable-pinentry-gtk was given.
5789
5966
if test "${enable_pinentry_gtk+set}" = set; then
6104
6281
     GLIB_LIBS=""
6105
6282
     if test "$pinentry_gtk" = "yes"; then
6106
6283
    { { echo "$as_me:$LINENO: error:
 
6284
***
6107
6285
*** GLIB 1.2.0 or newer is required. The latest version of GLIB
6108
6286
*** is always available from ftp://ftp.gtk.org/.
6109
 
" >&5
 
6287
***" >&5
6110
6288
echo "$as_me: error:
 
6289
***
6111
6290
*** GLIB 1.2.0 or newer is required. The latest version of GLIB
6112
6291
*** is always available from ftp://ftp.gtk.org/.
6113
 
" >&2;}
 
6292
***" >&2;}
6114
6293
   { (exit 1); exit 1; }; }
6115
6294
else
6116
6295
    pinentry_gtk=no
6436
6615
     GTK_LIBS=""
6437
6616
     if test "$pinentry_gtk" = "yes"; then
6438
6617
    { { echo "$as_me:$LINENO: error:
 
6618
***
6439
6619
*** GTK+ 1.2.0 or newer is required. The latest version of GTK+
6440
6620
*** is always available form ftp://ftp.gtk.org/.
6441
 
" >&5
 
6621
***" >&5
6442
6622
echo "$as_me: error:
 
6623
***
6443
6624
*** GTK+ 1.2.0 or newer is required. The latest version of GTK+
6444
6625
*** is always available form ftp://ftp.gtk.org/.
6445
 
" >&2;}
 
6626
***" >&2;}
6446
6627
   { (exit 1); exit 1; }; }
6447
6628
else
6448
6629
    pinentry_gtk=no
6467
6648
  BUILD_PINENTRY_GTK_FALSE=
6468
6649
fi
6469
6650
 
 
6651
if test "$pinentry_gtk" = "yes"; then
 
6652
 
 
6653
cat >>confdefs.h <<\_ACEOF
 
6654
#define PINENTRY_GTK 1
 
6655
_ACEOF
 
6656
 
 
6657
fi
 
6658
 
 
6659
if test "$pinentry_curses" = "yes" \
 
6660
        -o "$fallback_curses" = "yes" \
 
6661
        -o "$pinentry_gtk" = "yes"; then
 
6662
 
 
6663
      if test "X$prefix" = "XNONE"; then
 
6664
    acl_final_prefix="$ac_default_prefix"
 
6665
  else
 
6666
    acl_final_prefix="$prefix"
 
6667
  fi
 
6668
  if test "X$exec_prefix" = "XNONE"; then
 
6669
    acl_final_exec_prefix='${prefix}'
 
6670
  else
 
6671
    acl_final_exec_prefix="$exec_prefix"
 
6672
  fi
 
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"
 
6677
 
 
6678
 
 
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
 
6683
else
 
6684
  with_gnu_ld=no
 
6685
fi;
 
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
 
6691
  chmod +x conf$$.sh
 
6692
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
6693
    PATH_SEPARATOR=';'
 
6694
  else
 
6695
    PATH_SEPARATOR=:
 
6696
  fi
 
6697
  rm -f conf$$.sh
 
6698
fi
 
6699
ac_prog=ld
 
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
 
6704
  case $host in
 
6705
  *-*-mingw*)
 
6706
    # gcc leaves a trailing carriage return which upsets mingw
 
6707
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
6708
  *)
 
6709
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
6710
  esac
 
6711
  case $ac_prog in
 
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%/%"`
 
6719
      done
 
6720
      test -z "$LD" && LD="$ac_prog"
 
6721
      ;;
 
6722
  "")
 
6723
    # If it fails, then pretend we aren't using GCC.
 
6724
    ac_prog=ld
 
6725
    ;;
 
6726
  *)
 
6727
    # If it is relative, then search for the first ld in PATH.
 
6728
    with_gnu_ld=unknown
 
6729
    ;;
 
6730
  esac
 
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
 
6734
else
 
6735
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
6736
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
6737
fi
 
6738
if test "${acl_cv_path_LD+set}" = set; then
 
6739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6740
else
 
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 ;;
 
6753
      *)
 
6754
        test "$with_gnu_ld" != yes && break ;;
 
6755
      esac
 
6756
    fi
 
6757
  done
 
6758
  IFS="$ac_save_ifs"
 
6759
else
 
6760
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
6761
fi
 
6762
fi
 
6763
 
 
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
 
6768
else
 
6769
  echo "$as_me:$LINENO: result: no" >&5
 
6770
echo "${ECHO_T}no" >&6
 
6771
fi
 
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
 
6779
else
 
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 ;;
 
6784
*)
 
6785
  acl_cv_prog_gnu_ld=no ;;
 
6786
esac
 
6787
fi
 
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
 
6791
 
 
6792
 
 
6793
 
 
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
 
6798
else
 
6799
 
 
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
 
6802
    . ./conftest.sh
 
6803
    rm -f ./conftest.sh
 
6804
    acl_cv_rpath=done
 
6805
 
 
6806
fi
 
6807
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
6808
echo "${ECHO_T}$acl_cv_rpath" >&6
 
6809
  wl="$acl_cv_wl"
 
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"
 
6819
  :
 
6820
else
 
6821
  enable_rpath=yes
 
6822
fi;
 
6823
 
 
6824
 
 
6825
 
 
6826
 
 
6827
 
 
6828
 
 
6829
 
 
6830
    use_additional=yes
 
6831
 
 
6832
  acl_save_prefix="$prefix"
 
6833
  prefix="$acl_final_prefix"
 
6834
  acl_save_exec_prefix="$exec_prefix"
 
6835
  exec_prefix="$acl_final_exec_prefix"
 
6836
 
 
6837
    eval additional_includedir=\"$includedir\"
 
6838
    eval additional_libdir=\"$libdir\"
 
6839
 
 
6840
  exec_prefix="$acl_save_exec_prefix"
 
6841
  prefix="$acl_save_prefix"
 
6842
 
 
6843
 
 
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"
 
6847
 
 
6848
    if test "X$withval" = "Xno"; then
 
6849
      use_additional=no
 
6850
    else
 
6851
      if test "X$withval" = "X"; then
 
6852
 
 
6853
  acl_save_prefix="$prefix"
 
6854
  prefix="$acl_final_prefix"
 
6855
  acl_save_exec_prefix="$exec_prefix"
 
6856
  exec_prefix="$acl_final_exec_prefix"
 
6857
 
 
6858
          eval additional_includedir=\"$includedir\"
 
6859
          eval additional_libdir=\"$libdir\"
 
6860
 
 
6861
  exec_prefix="$acl_save_exec_prefix"
 
6862
  prefix="$acl_save_prefix"
 
6863
 
 
6864
      else
 
6865
        additional_includedir="$withval/include"
 
6866
        additional_libdir="$withval/lib"
 
6867
      fi
 
6868
    fi
 
6869
 
 
6870
fi;
 
6871
      LIBICONV=
 
6872
  LTLIBICONV=
 
6873
  INCICONV=
 
6874
  rpathdirs=
 
6875
  ltrpathdirs=
 
6876
  names_already_handled=
 
6877
  names_next_round='iconv '
 
6878
  while test -n "$names_next_round"; do
 
6879
    names_this_round="$names_next_round"
 
6880
    names_next_round=
 
6881
    for name in $names_this_round; do
 
6882
      already_handled=
 
6883
      for n in $names_already_handled; do
 
6884
        if test "$n" = "$name"; then
 
6885
          already_handled=yes
 
6886
          break
 
6887
        fi
 
6888
      done
 
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"
 
6899
          else
 
6900
                                    :
 
6901
          fi
 
6902
        else
 
6903
                              found_dir=
 
6904
          found_la=
 
6905
          found_so=
 
6906
          found_a=
 
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"
 
6913
              fi
 
6914
            else
 
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"
 
6920
                fi
 
6921
              fi
 
6922
            fi
 
6923
          fi
 
6924
          if test "X$found_dir" = "X"; then
 
6925
            for x in $LDFLAGS $LTLIBICONV; do
 
6926
 
 
6927
  acl_save_prefix="$prefix"
 
6928
  prefix="$acl_final_prefix"
 
6929
  acl_save_exec_prefix="$exec_prefix"
 
6930
  exec_prefix="$acl_final_exec_prefix"
 
6931
  eval x=\"$x\"
 
6932
  exec_prefix="$acl_save_exec_prefix"
 
6933
  prefix="$acl_save_prefix"
 
6934
 
 
6935
              case "$x" in
 
6936
                -L*)
 
6937
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
6938
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
6939
                    found_dir="$dir"
 
6940
                    found_so="$dir/lib$name.$shlibext"
 
6941
                    if test -f "$dir/lib$name.la"; then
 
6942
                      found_la="$dir/lib$name.la"
 
6943
                    fi
 
6944
                  else
 
6945
                    if test -f "$dir/lib$name.$libext"; then
 
6946
                      found_dir="$dir"
 
6947
                      found_a="$dir/lib$name.$libext"
 
6948
                      if test -f "$dir/lib$name.la"; then
 
6949
                        found_la="$dir/lib$name.la"
 
6950
                      fi
 
6951
                    fi
 
6952
                  fi
 
6953
                  ;;
 
6954
              esac
 
6955
              if test "X$found_dir" != "X"; then
 
6956
                break
 
6957
              fi
 
6958
            done
 
6959
          fi
 
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"
 
6965
              else
 
6966
                                                                                haveit=
 
6967
                for x in $ltrpathdirs; do
 
6968
                  if test "X$x" = "X$found_dir"; then
 
6969
                    haveit=yes
 
6970
                    break
 
6971
                  fi
 
6972
                done
 
6973
                if test -z "$haveit"; then
 
6974
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
6975
                fi
 
6976
                                if test "$hardcode_direct" = yes; then
 
6977
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
6978
                else
 
6979
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
6980
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
6981
                                                            haveit=
 
6982
                    for x in $rpathdirs; do
 
6983
                      if test "X$x" = "X$found_dir"; then
 
6984
                        haveit=yes
 
6985
                        break
 
6986
                      fi
 
6987
                    done
 
6988
                    if test -z "$haveit"; then
 
6989
                      rpathdirs="$rpathdirs $found_dir"
 
6990
                    fi
 
6991
                  else
 
6992
                                                                                haveit=
 
6993
                    for x in $LDFLAGS $LIBICONV; do
 
6994
 
 
6995
  acl_save_prefix="$prefix"
 
6996
  prefix="$acl_final_prefix"
 
6997
  acl_save_exec_prefix="$exec_prefix"
 
6998
  exec_prefix="$acl_final_exec_prefix"
 
6999
  eval x=\"$x\"
 
7000
  exec_prefix="$acl_save_exec_prefix"
 
7001
  prefix="$acl_save_prefix"
 
7002
 
 
7003
                      if test "X$x" = "X-L$found_dir"; then
 
7004
                        haveit=yes
 
7005
                        break
 
7006
                      fi
 
7007
                    done
 
7008
                    if test -z "$haveit"; then
 
7009
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
7010
                    fi
 
7011
                    if test "$hardcode_minus_L" != no; then
 
7012
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7013
                    else
 
7014
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7015
                    fi
 
7016
                  fi
 
7017
                fi
 
7018
              fi
 
7019
            else
 
7020
              if test "X$found_a" != "X"; then
 
7021
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
7022
              else
 
7023
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
7024
              fi
 
7025
            fi
 
7026
                        additional_includedir=
 
7027
            case "$found_dir" in
 
7028
              */lib | */lib/)
 
7029
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
7030
                additional_includedir="$basedir/include"
 
7031
                ;;
 
7032
            esac
 
7033
            if test "X$additional_includedir" != "X"; then
 
7034
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
7035
                haveit=
 
7036
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
7037
                  if test -n "$GCC"; then
 
7038
                    case $host_os in
 
7039
                      linux*) haveit=yes;;
 
7040
                    esac
 
7041
                  fi
 
7042
                fi
 
7043
                if test -z "$haveit"; then
 
7044
                  for x in $CPPFLAGS $INCICONV; do
 
7045
 
 
7046
  acl_save_prefix="$prefix"
 
7047
  prefix="$acl_final_prefix"
 
7048
  acl_save_exec_prefix="$exec_prefix"
 
7049
  exec_prefix="$acl_final_exec_prefix"
 
7050
  eval x=\"$x\"
 
7051
  exec_prefix="$acl_save_exec_prefix"
 
7052
  prefix="$acl_save_prefix"
 
7053
 
 
7054
                    if test "X$x" = "X-I$additional_includedir"; then
 
7055
                      haveit=yes
 
7056
                      break
 
7057
                    fi
 
7058
                  done
 
7059
                  if test -z "$haveit"; then
 
7060
                    if test -d "$additional_includedir"; then
 
7061
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
7062
                    fi
 
7063
                  fi
 
7064
                fi
 
7065
              fi
 
7066
            fi
 
7067
                        if test -n "$found_la"; then
 
7068
                                                        save_libdir="$libdir"
 
7069
              case "$found_la" in
 
7070
                */* | *\\*) . "$found_la" ;;
 
7071
                *) . "./$found_la" ;;
 
7072
              esac
 
7073
              libdir="$save_libdir"
 
7074
                            for dep in $dependency_libs; do
 
7075
                case "$dep" in
 
7076
                  -L*)
 
7077
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
7078
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
7079
                      haveit=
 
7080
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
7081
                        if test -n "$GCC"; then
 
7082
                          case $host_os in
 
7083
                            linux*) haveit=yes;;
 
7084
                          esac
 
7085
                        fi
 
7086
                      fi
 
7087
                      if test -z "$haveit"; then
 
7088
                        haveit=
 
7089
                        for x in $LDFLAGS $LIBICONV; do
 
7090
 
 
7091
  acl_save_prefix="$prefix"
 
7092
  prefix="$acl_final_prefix"
 
7093
  acl_save_exec_prefix="$exec_prefix"
 
7094
  exec_prefix="$acl_final_exec_prefix"
 
7095
  eval x=\"$x\"
 
7096
  exec_prefix="$acl_save_exec_prefix"
 
7097
  prefix="$acl_save_prefix"
 
7098
 
 
7099
                          if test "X$x" = "X-L$additional_libdir"; then
 
7100
                            haveit=yes
 
7101
                            break
 
7102
                          fi
 
7103
                        done
 
7104
                        if test -z "$haveit"; then
 
7105
                          if test -d "$additional_libdir"; then
 
7106
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
7107
                          fi
 
7108
                        fi
 
7109
                        haveit=
 
7110
                        for x in $LDFLAGS $LTLIBICONV; do
 
7111
 
 
7112
  acl_save_prefix="$prefix"
 
7113
  prefix="$acl_final_prefix"
 
7114
  acl_save_exec_prefix="$exec_prefix"
 
7115
  exec_prefix="$acl_final_exec_prefix"
 
7116
  eval x=\"$x\"
 
7117
  exec_prefix="$acl_save_exec_prefix"
 
7118
  prefix="$acl_save_prefix"
 
7119
 
 
7120
                          if test "X$x" = "X-L$additional_libdir"; then
 
7121
                            haveit=yes
 
7122
                            break
 
7123
                          fi
 
7124
                        done
 
7125
                        if test -z "$haveit"; then
 
7126
                          if test -d "$additional_libdir"; then
 
7127
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
7128
                          fi
 
7129
                        fi
 
7130
                      fi
 
7131
                    fi
 
7132
                    ;;
 
7133
                  -R*)
 
7134
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
7135
                    if test "$enable_rpath" != no; then
 
7136
                                                                  haveit=
 
7137
                      for x in $rpathdirs; do
 
7138
                        if test "X$x" = "X$dir"; then
 
7139
                          haveit=yes
 
7140
                          break
 
7141
                        fi
 
7142
                      done
 
7143
                      if test -z "$haveit"; then
 
7144
                        rpathdirs="$rpathdirs $dir"
 
7145
                      fi
 
7146
                                                                  haveit=
 
7147
                      for x in $ltrpathdirs; do
 
7148
                        if test "X$x" = "X$dir"; then
 
7149
                          haveit=yes
 
7150
                          break
 
7151
                        fi
 
7152
                      done
 
7153
                      if test -z "$haveit"; then
 
7154
                        ltrpathdirs="$ltrpathdirs $dir"
 
7155
                      fi
 
7156
                    fi
 
7157
                    ;;
 
7158
                  -l*)
 
7159
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
7160
                    ;;
 
7161
                  *.la)
 
7162
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
7163
                    ;;
 
7164
                  *)
 
7165
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
7166
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
7167
                    ;;
 
7168
                esac
 
7169
              done
 
7170
            fi
 
7171
          else
 
7172
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7173
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
7174
          fi
 
7175
        fi
 
7176
      fi
 
7177
    done
 
7178
  done
 
7179
  if test "X$rpathdirs" != "X"; then
 
7180
    if test -n "$hardcode_libdir_separator"; then
 
7181
                        alldirs=
 
7182
      for found_dir in $rpathdirs; do
 
7183
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
7184
      done
 
7185
            acl_save_libdir="$libdir"
 
7186
      libdir="$alldirs"
 
7187
      eval flag=\"$hardcode_libdir_flag_spec\"
 
7188
      libdir="$acl_save_libdir"
 
7189
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7190
    else
 
7191
            for found_dir in $rpathdirs; do
 
7192
        acl_save_libdir="$libdir"
 
7193
        libdir="$found_dir"
 
7194
        eval flag=\"$hardcode_libdir_flag_spec\"
 
7195
        libdir="$acl_save_libdir"
 
7196
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7197
      done
 
7198
    fi
 
7199
  fi
 
7200
  if test "X$ltrpathdirs" != "X"; then
 
7201
            for found_dir in $ltrpathdirs; do
 
7202
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
7203
    done
 
7204
  fi
 
7205
 
 
7206
 
 
7207
 
 
7208
 
 
7209
 
 
7210
 
 
7211
 
 
7212
          am_save_CPPFLAGS="$CPPFLAGS"
 
7213
 
 
7214
  for element in $INCICONV; do
 
7215
    haveit=
 
7216
    for x in $CPPFLAGS; do
 
7217
 
 
7218
  acl_save_prefix="$prefix"
 
7219
  prefix="$acl_final_prefix"
 
7220
  acl_save_exec_prefix="$exec_prefix"
 
7221
  exec_prefix="$acl_final_exec_prefix"
 
7222
  eval x=\"$x\"
 
7223
  exec_prefix="$acl_save_exec_prefix"
 
7224
  prefix="$acl_save_prefix"
 
7225
 
 
7226
      if test "X$x" = "X$element"; then
 
7227
        haveit=yes
 
7228
        break
 
7229
      fi
 
7230
    done
 
7231
    if test -z "$haveit"; then
 
7232
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
7233
    fi
 
7234
  done
 
7235
 
 
7236
 
 
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
 
7241
else
 
7242
 
 
7243
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
7244
    am_cv_lib_iconv=no
 
7245
    cat >conftest.$ac_ext <<_ACEOF
 
7246
/* confdefs.h.  */
 
7247
_ACEOF
 
7248
cat confdefs.h >>conftest.$ac_ext
 
7249
cat >>conftest.$ac_ext <<_ACEOF
 
7250
/* end confdefs.h.  */
 
7251
#include <stdlib.h>
 
7252
#include <iconv.h>
 
7253
int
 
7254
main ()
 
7255
{
 
7256
iconv_t cd = iconv_open("","");
 
7257
       iconv(cd,NULL,NULL,NULL,NULL);
 
7258
       iconv_close(cd);
 
7259
  ;
 
7260
  return 0;
 
7261
}
 
7262
_ACEOF
 
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
 
7266
  ac_status=$?
 
7267
  grep -v '^ *+' conftest.er1 >conftest.err
 
7268
  rm -f conftest.er1
 
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
 
7274
  (eval $ac_try) 2>&5
 
7275
  ac_status=$?
 
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
 
7280
  (eval $ac_try) 2>&5
 
7281
  ac_status=$?
 
7282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7283
  (exit $ac_status); }; }; then
 
7284
  am_cv_func_iconv=yes
 
7285
else
 
7286
  echo "$as_me: failed program was:" >&5
 
7287
sed 's/^/| /' conftest.$ac_ext >&5
 
7288
 
 
7289
fi
 
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
 
7296
/* confdefs.h.  */
 
7297
_ACEOF
 
7298
cat confdefs.h >>conftest.$ac_ext
 
7299
cat >>conftest.$ac_ext <<_ACEOF
 
7300
/* end confdefs.h.  */
 
7301
#include <stdlib.h>
 
7302
#include <iconv.h>
 
7303
int
 
7304
main ()
 
7305
{
 
7306
iconv_t cd = iconv_open("","");
 
7307
         iconv(cd,NULL,NULL,NULL,NULL);
 
7308
         iconv_close(cd);
 
7309
  ;
 
7310
  return 0;
 
7311
}
 
7312
_ACEOF
 
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
 
7316
  ac_status=$?
 
7317
  grep -v '^ *+' conftest.er1 >conftest.err
 
7318
  rm -f conftest.er1
 
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
 
7324
  (eval $ac_try) 2>&5
 
7325
  ac_status=$?
 
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
 
7330
  (eval $ac_try) 2>&5
 
7331
  ac_status=$?
 
7332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7333
  (exit $ac_status); }; }; then
 
7334
  am_cv_lib_iconv=yes
 
7335
        am_cv_func_iconv=yes
 
7336
else
 
7337
  echo "$as_me: failed program was:" >&5
 
7338
sed 's/^/| /' conftest.$ac_ext >&5
 
7339
 
 
7340
fi
 
7341
rm -f conftest.err conftest.$ac_objext \
 
7342
      conftest$ac_exeext conftest.$ac_ext
 
7343
      LIBS="$am_save_LIBS"
 
7344
    fi
 
7345
 
 
7346
fi
 
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
 
7350
 
 
7351
cat >>confdefs.h <<\_ACEOF
 
7352
#define HAVE_ICONV 1
 
7353
_ACEOF
 
7354
 
 
7355
  fi
 
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
 
7361
  else
 
7362
            CPPFLAGS="$am_save_CPPFLAGS"
 
7363
    LIBICONV=
 
7364
    LTLIBICONV=
 
7365
  fi
 
7366
 
 
7367
 
 
7368
 
 
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
 
7374
else
 
7375
 
 
7376
      cat >conftest.$ac_ext <<_ACEOF
 
7377
/* confdefs.h.  */
 
7378
_ACEOF
 
7379
cat confdefs.h >>conftest.$ac_ext
 
7380
cat >>conftest.$ac_ext <<_ACEOF
 
7381
/* end confdefs.h.  */
 
7382
 
 
7383
#include <stdlib.h>
 
7384
#include <iconv.h>
 
7385
extern
 
7386
#ifdef __cplusplus
 
7387
"C"
 
7388
#endif
 
7389
#if defined(__STDC__) || defined(__cplusplus)
 
7390
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
7391
#else
 
7392
size_t iconv();
 
7393
#endif
 
7394
 
 
7395
int
 
7396
main ()
 
7397
{
 
7398
 
 
7399
  ;
 
7400
  return 0;
 
7401
}
 
7402
_ACEOF
 
7403
rm -f conftest.$ac_objext
 
7404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7405
  (eval $ac_compile) 2>conftest.er1
 
7406
  ac_status=$?
 
7407
  grep -v '^ *+' conftest.er1 >conftest.err
 
7408
  rm -f conftest.er1
 
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
 
7414
  (eval $ac_try) 2>&5
 
7415
  ac_status=$?
 
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
 
7420
  (eval $ac_try) 2>&5
 
7421
  ac_status=$?
 
7422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7423
  (exit $ac_status); }; }; then
 
7424
  am_cv_proto_iconv_arg1=""
 
7425
else
 
7426
  echo "$as_me: failed program was:" >&5
 
7427
sed 's/^/| /' conftest.$ac_ext >&5
 
7428
 
 
7429
am_cv_proto_iconv_arg1="const"
 
7430
fi
 
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);"
 
7433
fi
 
7434
 
 
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
 
7440
 
 
7441
cat >>confdefs.h <<_ACEOF
 
7442
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
7443
_ACEOF
 
7444
 
 
7445
  fi
 
7446
 
 
7447
fi
 
7448
 
 
7449
 
 
7450
 
 
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
 
7455
else
 
7456
  pinentry_gtk_2=maybe
 
7457
fi;
 
7458
 
 
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
 
7466
else
 
7467
  if test -n "$PKGCONFIG"; then
 
7468
  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
 
7469
else
 
7470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7471
for as_dir in $PATH
 
7472
do
 
7473
  IFS=$as_save_IFS
 
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
 
7479
    break 2
 
7480
  fi
 
7481
done
 
7482
done
 
7483
 
 
7484
  test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
 
7485
fi
 
7486
fi
 
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
 
7491
else
 
7492
  echo "$as_me:$LINENO: result: no" >&5
 
7493
echo "${ECHO_T}no" >&6
 
7494
fi
 
7495
 
 
7496
        if test x"$PKGCONFIG" != xyes ; then
 
7497
                pinentry_gtk_2=no
 
7498
        fi
 
7499
fi
 
7500
 
 
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;}
 
7510
                pinentry_gtk_2=no
 
7511
        else
 
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;}
 
7523
                        pinentry_gtk_2=no
 
7524
                else
 
7525
                        GTK2CFLAGS=`pkg-config --cflags gtk+-2.0`
 
7526
                        GTK2LIBS=`pkg-config --libs gtk+-2.0`
 
7527
 
 
7528
 
 
7529
                        pinentry_gtk_2=yes
 
7530
                fi
 
7531
        fi
 
7532
fi
 
7533
 
 
7534
 
 
7535
if test "$pinentry_gtk_2" = "yes"; then
 
7536
  BUILD_PINENTRY_GTK_2_TRUE=
 
7537
  BUILD_PINENTRY_GTK_2_FALSE='#'
 
7538
else
 
7539
  BUILD_PINENTRY_GTK_2_TRUE='#'
 
7540
  BUILD_PINENTRY_GTK_2_FALSE=
 
7541
fi
6470
7542
 
6471
7543
 
6472
7544
 
6872
7944
    : > sub/conftest.c
6873
7945
    for i in 1 2 3 4 5 6; do
6874
7946
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6875
 
      : > sub/conftst$i.h
 
7947
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7948
      # Solaris 8's {/usr,}/bin/sh.
 
7949
      touch sub/conftst$i.h
6876
7950
    done
6877
7951
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6878
7952
 
6900
7974
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6901
7975
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6902
7976
      # icc doesn't choke on unknown options, it will just issue warnings
6903
 
      # (even with -Werror).  So we grep stderr for any message
6904
 
      # that says an option was ignored.
6905
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
7977
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7978
      # that says an option was ignored or not supported.
 
7979
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7980
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7981
      # The diagnosis changed in icc 8.0:
 
7982
      #   icc: Command line remark: option '-MP' not supported
 
7983
      if (grep 'ignoring option' conftest.err ||
 
7984
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6906
7985
        am_cv_CXX_dependencies_compiler_type=$depmode
6907
7986
        break
6908
7987
      fi
7368
8447
  echo "$as_me:$LINENO: checking for X" >&5
7369
8448
echo $ECHO_N "checking for X... $ECHO_C" >&6
7370
8449
 
7371
 
 
7372
 
# Check whether --with-x or --without-x was given.
7373
 
if test "${with_x+set}" = set; then
7374
 
  withval="$with_x"
7375
 
 
7376
 
fi;
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.
7380
 
  have_x=disabled
7381
 
else
7382
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7383
 
    # Both variables are already set.
7384
 
    have_x=yes
7385
 
  else
7386
 
    if test "${ac_cv_have_x+set}" = set; then
7387
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7388
 
else
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
7391
 
rm -fr conftest.dir
7392
 
if mkdir conftest.dir; then
7393
 
  cd conftest.dir
7394
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7395
 
  cat >Imakefile <<'_ACEOF'
7396
 
acfindx:
7397
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7398
 
_ACEOF
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
7407
 
      fi
7408
 
    done
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
7413
 
        /usr/include) ;;
7414
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7415
 
    esac
7416
 
    case $ac_im_usrlibdir in
7417
 
        /usr/lib | /lib) ;;
7418
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7419
 
    esac
7420
 
  fi
7421
 
  cd ..
7422
 
  rm -fr conftest.dir
7423
 
fi
7424
 
 
7425
 
# Standard set of common directories for X headers.
7426
 
# Check X11 before X11Rn because it is often a symlink to the current release.
7427
 
ac_x_header_dirs='
7428
 
/usr/X11/include
7429
 
/usr/X11R6/include
7430
 
/usr/X11R5/include
7431
 
/usr/X11R4/include
7432
 
 
7433
 
/usr/include/X11
7434
 
/usr/include/X11R6
7435
 
/usr/include/X11R5
7436
 
/usr/include/X11R4
7437
 
 
7438
 
/usr/local/X11/include
7439
 
/usr/local/X11R6/include
7440
 
/usr/local/X11R5/include
7441
 
/usr/local/X11R4/include
7442
 
 
7443
 
/usr/local/include/X11
7444
 
/usr/local/include/X11R6
7445
 
/usr/local/include/X11R5
7446
 
/usr/local/include/X11R4
7447
 
 
7448
 
/usr/X386/include
7449
 
/usr/x386/include
7450
 
/usr/XFree86/include/X11
7451
 
 
7452
 
/usr/include
7453
 
/usr/local/include
7454
 
/usr/unsupported/include
7455
 
/usr/athena/include
7456
 
/usr/local/x11r5/include
7457
 
/usr/lpp/Xamples/include
7458
 
 
7459
 
/usr/openwin/include
7460
 
/usr/openwin/share/include'
7461
 
 
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
7466
 
/* confdefs.h.  */
7467
 
_ACEOF
7468
 
cat confdefs.h >>conftest.$ac_ext
7469
 
cat >>conftest.$ac_ext <<_ACEOF
7470
 
/* end confdefs.h.  */
7471
 
#include <X11/Intrinsic.h>
7472
 
_ACEOF
7473
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7474
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7475
 
  ac_status=$?
7476
 
  grep -v '^ *+' conftest.er1 >conftest.err
7477
 
  rm -f conftest.er1
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
7484
 
  else
7485
 
    ac_cpp_err=
7486
 
  fi
7487
 
else
7488
 
  ac_cpp_err=yes
7489
 
fi
7490
 
if test -z "$ac_cpp_err"; then
7491
 
  # We can compile using X headers with no special include directory.
7492
 
ac_x_includes=
7493
 
else
7494
 
  echo "$as_me: failed program was:" >&5
7495
 
sed 's/^/| /' conftest.$ac_ext >&5
7496
 
 
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
7500
 
    break
7501
 
  fi
7502
 
done
7503
 
fi
7504
 
rm -f conftest.err conftest.$ac_ext
7505
 
fi # $ac_x_includes = no
7506
 
 
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.
7511
 
  ac_save_LIBS=$LIBS
7512
 
  LIBS="-lXt $LIBS"
7513
 
  cat >conftest.$ac_ext <<_ACEOF
7514
 
/* confdefs.h.  */
7515
 
_ACEOF
7516
 
cat confdefs.h >>conftest.$ac_ext
7517
 
cat >>conftest.$ac_ext <<_ACEOF
7518
 
/* end confdefs.h.  */
7519
 
#include <X11/Intrinsic.h>
7520
 
int
7521
 
main ()
7522
 
{
7523
 
XtMalloc (0)
7524
 
  ;
7525
 
  return 0;
7526
 
}
7527
 
_ACEOF
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
7531
 
  ac_status=$?
7532
 
  grep -v '^ *+' conftest.er1 >conftest.err
7533
 
  rm -f conftest.er1
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
7539
 
  (eval $ac_try) 2>&5
7540
 
  ac_status=$?
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
7545
 
  (eval $ac_try) 2>&5
7546
 
  ac_status=$?
7547
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548
 
  (exit $ac_status); }; }; then
7549
 
  LIBS=$ac_save_LIBS
7550
 
# We can link X programs with no special library path.
7551
 
ac_x_libraries=
7552
 
else
7553
 
  echo "$as_me: failed program was:" >&5
7554
 
sed 's/^/| /' conftest.$ac_ext >&5
7555
 
 
7556
 
LIBS=$ac_save_LIBS
7557
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7558
 
do
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
7563
 
      break 2
7564
 
    fi
7565
 
  done
7566
 
done
7567
 
fi
7568
 
rm -f conftest.err conftest.$ac_objext \
7569
 
      conftest$ac_exeext conftest.$ac_ext
7570
 
fi # $ac_x_libraries = no
7571
 
 
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"
7575
 
else
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"
7579
 
fi
7580
 
fi
7581
 
 
7582
 
  fi
7583
 
  eval "$ac_cv_have_x"
7584
 
fi # $with_x != no
7585
 
 
7586
 
if test "$have_x" != yes; then
7587
 
  echo "$as_me:$LINENO: result: $have_x" >&5
7588
 
echo "${ECHO_T}$have_x" >&6
7589
 
  no_x=yes
7590
 
else
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
7599
 
fi
7600
 
 
7601
 
  if test "$no_x" = yes; then
 
8450
ac_path_x_has_been_run=yes
 
8451
 
 
8452
# Check whether --with-x or --without-x was given.
 
8453
if test "${with_x+set}" = set; then
 
8454
  withval="$with_x"
 
8455
 
 
8456
fi;
 
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.
 
8460
  have_x=disabled
 
8461
else
 
8462
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
8463
    # Both variables are already set.
 
8464
    have_x=yes
 
8465
  else
 
8466
    if test "${ac_cv_have_x+set}" = set; then
 
8467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8468
else
 
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
 
8471
rm -fr conftest.dir
 
8472
if mkdir conftest.dir; then
 
8473
  cd conftest.dir
 
8474
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
8475
  cat >Imakefile <<'_ACEOF'
 
8476
acfindx:
 
8477
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
8478
_ACEOF
 
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
 
8487
      fi
 
8488
    done
 
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
 
8493
        /usr/include) ;;
 
8494
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
8495
    esac
 
8496
    case $ac_im_usrlibdir in
 
8497
        /usr/lib | /lib) ;;
 
8498
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
8499
    esac
 
8500
  fi
 
8501
  cd ..
 
8502
  rm -fr conftest.dir
 
8503
fi
 
8504
 
 
8505
# Standard set of common directories for X headers.
 
8506
# Check X11 before X11Rn because it is often a symlink to the current release.
 
8507
ac_x_header_dirs='
 
8508
/usr/X11/include
 
8509
/usr/X11R6/include
 
8510
/usr/X11R5/include
 
8511
/usr/X11R4/include
 
8512
 
 
8513
/usr/include/X11
 
8514
/usr/include/X11R6
 
8515
/usr/include/X11R5
 
8516
/usr/include/X11R4
 
8517
 
 
8518
/usr/local/X11/include
 
8519
/usr/local/X11R6/include
 
8520
/usr/local/X11R5/include
 
8521
/usr/local/X11R4/include
 
8522
 
 
8523
/usr/local/include/X11
 
8524
/usr/local/include/X11R6
 
8525
/usr/local/include/X11R5
 
8526
/usr/local/include/X11R4
 
8527
 
 
8528
/usr/X386/include
 
8529
/usr/x386/include
 
8530
/usr/XFree86/include/X11
 
8531
 
 
8532
/usr/include
 
8533
/usr/local/include
 
8534
/usr/unsupported/include
 
8535
/usr/athena/include
 
8536
/usr/local/x11r5/include
 
8537
/usr/lpp/Xamples/include
 
8538
 
 
8539
/usr/openwin/include
 
8540
/usr/openwin/share/include'
 
8541
 
 
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
 
8546
/* confdefs.h.  */
 
8547
_ACEOF
 
8548
cat confdefs.h >>conftest.$ac_ext
 
8549
cat >>conftest.$ac_ext <<_ACEOF
 
8550
/* end confdefs.h.  */
 
8551
#include <X11/Intrinsic.h>
 
8552
_ACEOF
 
8553
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8554
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8555
  ac_status=$?
 
8556
  grep -v '^ *+' conftest.er1 >conftest.err
 
8557
  rm -f conftest.er1
 
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
 
8564
  else
 
8565
    ac_cpp_err=
 
8566
  fi
 
8567
else
 
8568
  ac_cpp_err=yes
 
8569
fi
 
8570
if test -z "$ac_cpp_err"; then
 
8571
  # We can compile using X headers with no special include directory.
 
8572
ac_x_includes=
 
8573
else
 
8574
  echo "$as_me: failed program was:" >&5
 
8575
sed 's/^/| /' conftest.$ac_ext >&5
 
8576
 
 
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
 
8580
    break
 
8581
  fi
 
8582
done
 
8583
fi
 
8584
rm -f conftest.err conftest.$ac_ext
 
8585
fi # $ac_x_includes = no
 
8586
 
 
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.
 
8591
  ac_save_LIBS=$LIBS
 
8592
  LIBS="-lXt $LIBS"
 
8593
  cat >conftest.$ac_ext <<_ACEOF
 
8594
/* confdefs.h.  */
 
8595
_ACEOF
 
8596
cat confdefs.h >>conftest.$ac_ext
 
8597
cat >>conftest.$ac_ext <<_ACEOF
 
8598
/* end confdefs.h.  */
 
8599
#include <X11/Intrinsic.h>
 
8600
int
 
8601
main ()
 
8602
{
 
8603
XtMalloc (0)
 
8604
  ;
 
8605
  return 0;
 
8606
}
 
8607
_ACEOF
 
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
 
8611
  ac_status=$?
 
8612
  grep -v '^ *+' conftest.er1 >conftest.err
 
8613
  rm -f conftest.er1
 
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
 
8619
  (eval $ac_try) 2>&5
 
8620
  ac_status=$?
 
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
 
8625
  (eval $ac_try) 2>&5
 
8626
  ac_status=$?
 
8627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8628
  (exit $ac_status); }; }; then
 
8629
  LIBS=$ac_save_LIBS
 
8630
# We can link X programs with no special library path.
 
8631
ac_x_libraries=
 
8632
else
 
8633
  echo "$as_me: failed program was:" >&5
 
8634
sed 's/^/| /' conftest.$ac_ext >&5
 
8635
 
 
8636
LIBS=$ac_save_LIBS
 
8637
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
8638
do
 
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
 
8643
      break 2
 
8644
    fi
 
8645
  done
 
8646
done
 
8647
fi
 
8648
rm -f conftest.err conftest.$ac_objext \
 
8649
      conftest$ac_exeext conftest.$ac_ext
 
8650
fi # $ac_x_libraries = no
 
8651
 
 
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"
 
8655
else
 
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"
 
8659
fi
 
8660
fi
 
8661
 
 
8662
  fi
 
8663
  eval "$ac_cv_have_x"
 
8664
fi # $with_x != no
 
8665
 
 
8666
if test "$have_x" != yes; then
 
8667
  echo "$as_me:$LINENO: result: $have_x" >&5
 
8668
echo "${ECHO_T}$have_x" >&6
 
8669
  no_x=yes
 
8670
else
 
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
 
8683
fi
 
8684
 
 
8685
 
 
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
 
8689
 
 
8690
ac_path_x_has_been_run=yes
 
8691
 
 
8692
# Check whether --with-x or --without-x was given.
 
8693
if test "${with_x+set}" = set; then
 
8694
  withval="$with_x"
 
8695
 
 
8696
fi;
 
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.
 
8700
  have_x=disabled
 
8701
else
 
8702
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
8703
    # Both variables are already set.
 
8704
    have_x=yes
 
8705
  else
 
8706
    if test "${ac_cv_have_x+set}" = set; then
 
8707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8708
else
 
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
 
8711
rm -fr conftest.dir
 
8712
if mkdir conftest.dir; then
 
8713
  cd conftest.dir
 
8714
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
8715
  cat >Imakefile <<'_ACEOF'
 
8716
acfindx:
 
8717
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
8718
_ACEOF
 
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
 
8727
      fi
 
8728
    done
 
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
 
8733
        /usr/include) ;;
 
8734
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
8735
    esac
 
8736
    case $ac_im_usrlibdir in
 
8737
        /usr/lib | /lib) ;;
 
8738
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
8739
    esac
 
8740
  fi
 
8741
  cd ..
 
8742
  rm -fr conftest.dir
 
8743
fi
 
8744
 
 
8745
# Standard set of common directories for X headers.
 
8746
# Check X11 before X11Rn because it is often a symlink to the current release.
 
8747
ac_x_header_dirs='
 
8748
/usr/X11/include
 
8749
/usr/X11R6/include
 
8750
/usr/X11R5/include
 
8751
/usr/X11R4/include
 
8752
 
 
8753
/usr/include/X11
 
8754
/usr/include/X11R6
 
8755
/usr/include/X11R5
 
8756
/usr/include/X11R4
 
8757
 
 
8758
/usr/local/X11/include
 
8759
/usr/local/X11R6/include
 
8760
/usr/local/X11R5/include
 
8761
/usr/local/X11R4/include
 
8762
 
 
8763
/usr/local/include/X11
 
8764
/usr/local/include/X11R6
 
8765
/usr/local/include/X11R5
 
8766
/usr/local/include/X11R4
 
8767
 
 
8768
/usr/X386/include
 
8769
/usr/x386/include
 
8770
/usr/XFree86/include/X11
 
8771
 
 
8772
/usr/include
 
8773
/usr/local/include
 
8774
/usr/unsupported/include
 
8775
/usr/athena/include
 
8776
/usr/local/x11r5/include
 
8777
/usr/lpp/Xamples/include
 
8778
 
 
8779
/usr/openwin/include
 
8780
/usr/openwin/share/include'
 
8781
 
 
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
 
8786
/* confdefs.h.  */
 
8787
_ACEOF
 
8788
cat confdefs.h >>conftest.$ac_ext
 
8789
cat >>conftest.$ac_ext <<_ACEOF
 
8790
/* end confdefs.h.  */
 
8791
#include <X11/Intrinsic.h>
 
8792
_ACEOF
 
8793
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8794
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8795
  ac_status=$?
 
8796
  grep -v '^ *+' conftest.er1 >conftest.err
 
8797
  rm -f conftest.er1
 
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
 
8804
  else
 
8805
    ac_cpp_err=
 
8806
  fi
 
8807
else
 
8808
  ac_cpp_err=yes
 
8809
fi
 
8810
if test -z "$ac_cpp_err"; then
 
8811
  # We can compile using X headers with no special include directory.
 
8812
ac_x_includes=
 
8813
else
 
8814
  echo "$as_me: failed program was:" >&5
 
8815
sed 's/^/| /' conftest.$ac_ext >&5
 
8816
 
 
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
 
8820
    break
 
8821
  fi
 
8822
done
 
8823
fi
 
8824
rm -f conftest.err conftest.$ac_ext
 
8825
fi # $ac_x_includes = no
 
8826
 
 
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.
 
8831
  ac_save_LIBS=$LIBS
 
8832
  LIBS="-lXt $LIBS"
 
8833
  cat >conftest.$ac_ext <<_ACEOF
 
8834
/* confdefs.h.  */
 
8835
_ACEOF
 
8836
cat confdefs.h >>conftest.$ac_ext
 
8837
cat >>conftest.$ac_ext <<_ACEOF
 
8838
/* end confdefs.h.  */
 
8839
#include <X11/Intrinsic.h>
 
8840
int
 
8841
main ()
 
8842
{
 
8843
XtMalloc (0)
 
8844
  ;
 
8845
  return 0;
 
8846
}
 
8847
_ACEOF
 
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
 
8851
  ac_status=$?
 
8852
  grep -v '^ *+' conftest.er1 >conftest.err
 
8853
  rm -f conftest.er1
 
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
 
8859
  (eval $ac_try) 2>&5
 
8860
  ac_status=$?
 
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
 
8865
  (eval $ac_try) 2>&5
 
8866
  ac_status=$?
 
8867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8868
  (exit $ac_status); }; }; then
 
8869
  LIBS=$ac_save_LIBS
 
8870
# We can link X programs with no special library path.
 
8871
ac_x_libraries=
 
8872
else
 
8873
  echo "$as_me: failed program was:" >&5
 
8874
sed 's/^/| /' conftest.$ac_ext >&5
 
8875
 
 
8876
LIBS=$ac_save_LIBS
 
8877
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
8878
do
 
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
 
8883
      break 2
 
8884
    fi
 
8885
  done
 
8886
done
 
8887
fi
 
8888
rm -f conftest.err conftest.$ac_objext \
 
8889
      conftest$ac_exeext conftest.$ac_ext
 
8890
fi # $ac_x_libraries = no
 
8891
 
 
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"
 
8895
else
 
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"
 
8899
fi
 
8900
fi
 
8901
 
 
8902
  fi
 
8903
  eval "$ac_cv_have_x"
 
8904
fi # $with_x != no
 
8905
 
 
8906
if test "$have_x" != yes; then
 
8907
  echo "$as_me:$LINENO: result: $have_x" >&5
 
8908
echo "${ECHO_T}$have_x" >&6
 
8909
  no_x=yes
 
8910
else
 
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
 
8923
fi
 
8924
 
 
8925
fi
 
8926
if test "$no_x" = yes; then
7602
8927
  # Not all programs may use this symbol, but it does not hurt to define it.
7603
8928
 
7604
8929
cat >>confdefs.h <<\_ACEOF
9492
10817
do
9493
10818
  for j in $kde_qt_header;
9494
10819
  do
9495
 
    echo "configure: 9495: $i/$j" >&5
 
10820
    echo "configure: 10820: $i/$j" >&5
9496
10821
    if test -r "$i/$j"; then
9497
10822
      echo "taking that" >&5
9498
10823
      qt_incdir=$i
9666
10991
  qt_includes="$ac_qt_includes"
9667
10992
fi
9668
10993
 
9669
 
if test ! "$kde_qt_libs_given" = "yes"; then
9670
 
 
9671
 
 
9672
 
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
9673
 
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
9674
 
if test "${kde_cv_qt_direct+set}" = set; then
9675
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9676
 
else
9677
 
 
9678
 
ac_ext=cc
9679
 
ac_cpp='$CXXCPP $CPPFLAGS'
9680
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9683
 
 
9684
 
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
9685
 
ac_LIBRARY_PATH="$LIBRARY_PATH"
9686
 
ac_cxxflags_safe="$CXXFLAGS"
9687
 
ac_ldflags_safe="$LDFLAGS"
9688
 
ac_libs_safe="$LIBS"
9689
 
 
9690
 
CXXFLAGS="$CXXFLAGS -I$qt_includes"
9691
 
LDFLAGS="$LDFLAGS $QT_LDFLAGS"
9692
 
LIBS="$QT_LIBS"
9693
 
LD_LIBRARY_PATH=
9694
 
export LD_LIBRARY_PATH
9695
 
LIBRARY_PATH=
9696
 
export LIBRARY_PATH
9697
 
 
9698
 
 
9699
 
 
9700
 
cat > conftest.$ac_ext <<EOF
9701
 
#include "confdefs.h"
9702
 
#include <qglobal.h>
9703
 
#include <qapplication.h>
9704
 
EOF
9705
 
if test "$qt_ver" = "2"; then
9706
 
cat >> conftest.$ac_ext <<EOF
9707
 
#include <qevent.h>
9708
 
#include <qstring.h>
9709
 
#include <qstyle.h>
9710
 
EOF
9711
 
 
9712
 
if test $qt_subver -gt 0; then
9713
 
cat >> conftest.$ac_ext <<EOF
9714
 
#include <qiconview.h>
9715
 
EOF
9716
 
fi
9717
 
fi
9718
 
 
9719
 
if test "$qt_ver" = "3"; then
9720
 
cat >> conftest.$ac_ext <<EOF
9721
 
#include <qcursor.h>
9722
 
#include <qstylefactory.h>
9723
 
#include <private/qucomextra_p.h>
9724
 
EOF
9725
 
fi
9726
 
 
9727
 
echo "#if ! ($qt_verstring)" >> conftest.$ac_ext
9728
 
cat >> conftest.$ac_ext <<EOF
9729
 
#error 1
9730
 
#endif
9731
 
 
9732
 
int main() {
9733
 
EOF
9734
 
if test "$qt_ver" = "2"; then
9735
 
cat >> conftest.$ac_ext <<EOF
9736
 
    QStringList *t = new QStringList();
9737
 
    Q_UNUSED(t);
9738
 
EOF
9739
 
if test $qt_subver -gt 0; then
9740
 
cat >> conftest.$ac_ext <<EOF
9741
 
    QIconView iv(0);
9742
 
    iv.setWordWrapIconText(false);
9743
 
    QString s;
9744
 
    s.setLatin1("Elvis is alive", 14);
9745
 
EOF
9746
 
fi
9747
 
fi
9748
 
if test "$qt_ver" = "3"; then
9749
 
cat >> conftest.$ac_ext <<EOF
9750
 
    (void)QStyleFactory::create(QString::null);
9751
 
    QCursor c(Qt::WhatsThisCursor);
9752
 
EOF
9753
 
fi
9754
 
cat >> conftest.$ac_ext <<EOF
9755
 
    return 0;
9756
 
}
9757
 
EOF
9758
 
 
9759
 
 
9760
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761
 
  (eval $ac_link) 2>&5
9762
 
  ac_status=$?
9763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764
 
  (exit $ac_status); } && test -s conftest; then
9765
 
  kde_cv_qt_direct="yes"
9766
 
else
9767
 
  kde_cv_qt_direct="no"
9768
 
  echo "configure: failed program was:" >&5
9769
 
  cat conftest.$ac_ext >&5
9770
 
fi
9771
 
 
9772
 
rm -f conftest*
9773
 
CXXFLAGS="$ac_cxxflags_safe"
9774
 
LDFLAGS="$ac_ldflags_safe"
9775
 
LIBS="$ac_libs_safe"
9776
 
 
9777
 
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
9778
 
export LD_LIBRARY_PATH
9779
 
LIBRARY_PATH="$ac_LIBRARY_PATH"
9780
 
export LIBRARY_PATH
9781
 
ac_ext=c
9782
 
ac_cpp='$CPP $CPPFLAGS'
9783
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9784
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9785
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9786
 
 
9787
 
 
9788
 
fi
9789
 
 
9790
 
 
9791
 
if test "$kde_cv_qt_direct" = "yes"; then
9792
 
  echo "$as_me:$LINENO: result: yes" >&5
9793
 
echo "${ECHO_T}yes" >&6
9794
 
  qt_libraries=
9795
 
else
9796
 
  echo "$as_me:$LINENO: result: no" >&5
9797
 
echo "${ECHO_T}no" >&6
9798
 
 
9799
 
fi
9800
 
 
9801
 
fi
9802
 
 
9803
10994
 
9804
10995
 
9805
10996
 
9913
11104
 
9914
11105
if test $have_qt = "no"; then
9915
11106
        if test $pinentry_qt = "yes"; then
9916
 
          { { echo "$as_me:$LINENO: error: Qt ($qt_minversion) $ac_qt_notfound not found. Please check your installation!
9917
 
          For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
9918
 
echo "$as_me: error: Qt ($qt_minversion) $ac_qt_notfound not found. Please check your installation!
9919
 
          For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
 
11107
          { { echo "$as_me:$LINENO: error:
 
11108
***
 
11109
*** Qt ($qt_minversion) $ac_qt_notfound not found. Please check your
 
11110
*** installation!  For more details about this problem, look at the
 
11111
*** end of config.log.$missing_qt_mt
 
11112
***" >&5
 
11113
echo "$as_me: error:
 
11114
***
 
11115
*** Qt ($qt_minversion) $ac_qt_notfound not found. Please check your
 
11116
*** installation!  For more details about this problem, look at the
 
11117
*** end of config.log.$missing_qt_mt
 
11118
***" >&2;}
9920
11119
   { (exit 1); exit 1; }; }
9921
11120
        else
9922
11121
          pinentry_qt="no"
9924
11123
fi
9925
11124
if test $have_moc = "no"; then
9926
11125
        if test $pinentry_qt = "yes"; then
9927
 
        { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
9928
 
        Please check whether you installed Qt correctly.
9929
 
        You need to have a running moc binary.
9930
 
        configure tried to run $ac_cv_path_moc and the test didn't
9931
 
        succeed. If configure shouldn't have tried this one, set
9932
 
        the environment variable MOC to the right one before running
9933
 
        configure.
9934
 
        " >&5
9935
 
echo "$as_me: error: No Qt meta object compiler (moc) found!
9936
 
        Please check whether you installed Qt correctly.
9937
 
        You need to have a running moc binary.
9938
 
        configure tried to run $ac_cv_path_moc and the test didn't
9939
 
        succeed. If configure shouldn't have tried this one, set
9940
 
        the environment variable MOC to the right one before running
9941
 
        configure.
9942
 
        " >&2;}
 
11126
        { { echo "$as_me:$LINENO: error:
 
11127
***
 
11128
*** No Qt meta object compiler (moc) found!
 
11129
*** Please check whether you installed Qt correctly.
 
11130
*** You need to have a running moc binary.
 
11131
*** configure tried to run $ac_cv_path_moc and the test didn't
 
11132
*** succeed. If configure shouldn't have tried this one, set
 
11133
*** the environment variable MOC to the right one before running
 
11134
*** configure.
 
11135
***" >&5
 
11136
echo "$as_me: error:
 
11137
***
 
11138
*** No Qt meta object compiler (moc) found!
 
11139
*** Please check whether you installed Qt correctly.
 
11140
*** You need to have a running moc binary.
 
11141
*** configure tried to run $ac_cv_path_moc and the test didn't
 
11142
*** succeed. If configure shouldn't have tried this one, set
 
11143
*** the environment variable MOC to the right one before running
 
11144
*** configure.
 
11145
***" >&2;}
9943
11146
   { (exit 1); exit 1; }; }
9944
11147
        else
9945
11148
          pinentry_qt="no"
9961
11164
fi
9962
11165
 
9963
11166
 
9964
 
 
9965
 
 
9966
 
                                                                                ac_config_files="$ac_config_files assuan/Makefile secmem/Makefile pinentry/Makefile curses/Makefile gtk/Makefile qt/Makefile doc/Makefile Makefile"
 
11167
if test "$pinentry_qt" = "yes"; then
 
11168
 
 
11169
cat >>confdefs.h <<\_ACEOF
 
11170
#define PINENTRY_QT 1
 
11171
_ACEOF
 
11172
 
 
11173
fi
 
11174
 
 
11175
 
 
11176
 
 
11177
#
 
11178
# Check whether we should build the W32 pinentry.  This is actually
 
11179
# the simplest check as we do this only for that platform.
 
11180
#
 
11181
pinentry_w32=no
 
11182
test $have_w32_system = yes && pinentry_w32=yes
 
11183
 
 
11184
 
 
11185
if test "$pinentry_w32" = "yes"; then
 
11186
  BUILD_PINENTRY_W32_TRUE=
 
11187
  BUILD_PINENTRY_W32_FALSE='#'
 
11188
else
 
11189
  BUILD_PINENTRY_W32_TRUE='#'
 
11190
  BUILD_PINENTRY_W32_FALSE=
 
11191
fi
 
11192
 
 
11193
 
 
11194
 
 
11195
#
 
11196
# Figure out the default pinentry
 
11197
#
 
11198
if test "$pinentry_gtk" = "yes"; then
 
11199
   PINENTRY_DEFAULT=pinentry-gtk
 
11200
else
 
11201
  if test "$pinentry_gtk_2" = "yes"; then
 
11202
    PINENTRY_DEFAULT=pinentry-gtk-2
 
11203
  else
 
11204
    if test "$pinentry_qt" = "yes"; then
 
11205
      PINENTRY_DEFAULT=pinentry-qt
 
11206
    else
 
11207
      if test "$pinentry_curses" = "yes"; then
 
11208
        PINENTRY_DEFAULT=pinentry-curses
 
11209
      else
 
11210
        if test "$pinentry_w32" = "yes"; then
 
11211
          PINENTRY_DEFAULT=pinentry-w32
 
11212
        else
 
11213
          { { echo "$as_me:$LINENO: error: No pinentry enabled." >&5
 
11214
echo "$as_me: error: No pinentry enabled." >&2;}
 
11215
   { (exit 1); exit 1; }; }
 
11216
        fi
 
11217
      fi
 
11218
    fi
 
11219
  fi
 
11220
fi
 
11221
 
 
11222
 
 
11223
 
 
11224
                                                                                                    ac_config_files="$ac_config_files assuan/Makefile secmem/Makefile pinentry/Makefile curses/Makefile gtk/Makefile gtk+-2/Makefile qt/Makefile w32/Makefile doc/Makefile Makefile"
9967
11225
 
9968
11226
 
9969
11227
cat >confcache <<\_ACEOF
10085
11343
Usually this means the macro was only invoked conditionally." >&2;}
10086
11344
   { (exit 1); exit 1; }; }
10087
11345
fi
 
11346
if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
 
11347
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
 
11348
Usually this means the macro was only invoked conditionally." >&5
 
11349
echo "$as_me: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
 
11350
Usually this means the macro was only invoked conditionally." >&2;}
 
11351
   { (exit 1); exit 1; }; }
 
11352
fi
 
11353
if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
 
11354
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
 
11355
Usually this means the macro was only invoked conditionally." >&5
 
11356
echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
 
11357
Usually this means the macro was only invoked conditionally." >&2;}
 
11358
   { (exit 1); exit 1; }; }
 
11359
fi
10088
11360
if test -z "${BUILD_LIBPINENTRY_CURSES_TRUE}" && test -z "${BUILD_LIBPINENTRY_CURSES_FALSE}"; then
10089
11361
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBPINENTRY_CURSES\" was never defined.
10090
11362
Usually this means the macro was only invoked conditionally." >&5
10113
11385
Usually this means the macro was only invoked conditionally." >&2;}
10114
11386
   { (exit 1); exit 1; }; }
10115
11387
fi
 
11388
if test -z "${BUILD_PINENTRY_GTK_2_TRUE}" && test -z "${BUILD_PINENTRY_GTK_2_FALSE}"; then
 
11389
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_GTK_2\" was never defined.
 
11390
Usually this means the macro was only invoked conditionally." >&5
 
11391
echo "$as_me: error: conditional \"BUILD_PINENTRY_GTK_2\" was never defined.
 
11392
Usually this means the macro was only invoked conditionally." >&2;}
 
11393
   { (exit 1); exit 1; }; }
 
11394
fi
10116
11395
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10117
11396
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10118
11397
Usually this means the macro was only invoked conditionally." >&5
10127
11406
Usually this means the macro was only invoked conditionally." >&2;}
10128
11407
   { (exit 1); exit 1; }; }
10129
11408
fi
 
11409
if test -z "${BUILD_PINENTRY_W32_TRUE}" && test -z "${BUILD_PINENTRY_W32_FALSE}"; then
 
11410
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_W32\" was never defined.
 
11411
Usually this means the macro was only invoked conditionally." >&5
 
11412
echo "$as_me: error: conditional \"BUILD_PINENTRY_W32\" was never defined.
 
11413
Usually this means the macro was only invoked conditionally." >&2;}
 
11414
   { (exit 1); exit 1; }; }
 
11415
fi
10130
11416
 
10131
11417
: ${CONFIG_STATUS=./config.status}
10132
11418
ac_clean_files_save=$ac_clean_files
10398
11684
} >&5
10399
11685
cat >&5 <<_CSEOF
10400
11686
 
10401
 
This file was extended by pinentry $as_me 0.7.1, which was
 
11687
This file was extended by pinentry $as_me 0.7.2, which was
10402
11688
generated by GNU Autoconf 2.59.  Invocation command line was
10403
11689
 
10404
11690
  CONFIG_FILES    = $CONFIG_FILES
10461
11747
 
10462
11748
cat >>$CONFIG_STATUS <<_ACEOF
10463
11749
ac_cs_version="\\
10464
 
pinentry config.status 0.7.1
 
11750
pinentry config.status 0.7.2
10465
11751
configured by $0, generated by GNU Autoconf 2.59,
10466
11752
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10467
11753
 
10576
11862
  "pinentry/Makefile" ) CONFIG_FILES="$CONFIG_FILES pinentry/Makefile" ;;
10577
11863
  "curses/Makefile" ) CONFIG_FILES="$CONFIG_FILES curses/Makefile" ;;
10578
11864
  "gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
 
11865
  "gtk+-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk+-2/Makefile" ;;
10579
11866
  "qt/Makefile" ) CONFIG_FILES="$CONFIG_FILES qt/Makefile" ;;
 
11867
  "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
10580
11868
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10581
11869
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10582
11870
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10677
11965
s,@AUTOMAKE@,$AUTOMAKE,;t t
10678
11966
s,@AUTOHEADER@,$AUTOHEADER,;t t
10679
11967
s,@MAKEINFO@,$MAKEINFO,;t t
10680
 
s,@AMTAR@,$AMTAR,;t t
10681
11968
s,@install_sh@,$install_sh,;t t
10682
11969
s,@STRIP@,$STRIP,;t t
10683
11970
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10684
11971
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
11972
s,@mkdir_p@,$mkdir_p,;t t
10685
11973
s,@AWK@,$AWK,;t t
10686
11974
s,@SET_MAKE@,$SET_MAKE,;t t
10687
11975
s,@am__leading_dot@,$am__leading_dot,;t t
 
11976
s,@AMTAR@,$AMTAR,;t t
 
11977
s,@am__tar@,$am__tar,;t t
 
11978
s,@am__untar@,$am__untar,;t t
10688
11979
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10689
11980
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10690
11981
s,@MAINT@,$MAINT,;t t
10721
12012
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10722
12013
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10723
12014
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
12015
s,@LN_S@,$LN_S,;t t
 
12016
s,@WINDRES@,$WINDRES,;t t
 
12017
s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
 
12018
s,@HAVE_DOSISH_SYSTEM_TRUE@,$HAVE_DOSISH_SYSTEM_TRUE,;t t
 
12019
s,@HAVE_DOSISH_SYSTEM_FALSE@,$HAVE_DOSISH_SYSTEM_FALSE,;t t
 
12020
s,@HAVE_W32_SYSTEM_TRUE@,$HAVE_W32_SYSTEM_TRUE,;t t
 
12021
s,@HAVE_W32_SYSTEM_FALSE@,$HAVE_W32_SYSTEM_FALSE,;t t
10724
12022
s,@EGREP@,$EGREP,;t t
10725
12023
s,@SETCAP@,$SETCAP,;t t
10726
12024
s,@LIBCAP@,$LIBCAP,;t t
10734
12032
s,@BUILD_PINENTRY_CURSES_FALSE@,$BUILD_PINENTRY_CURSES_FALSE,;t t
10735
12033
s,@FALLBACK_CURSES_TRUE@,$FALLBACK_CURSES_TRUE,;t t
10736
12034
s,@FALLBACK_CURSES_FALSE@,$FALLBACK_CURSES_FALSE,;t t
10737
 
s,@LIBICONV@,$LIBICONV,;t t
10738
12035
s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
10739
12036
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
10740
12037
s,@GLIB_LIBS@,$GLIB_LIBS,;t t
10743
12040
s,@GTK_LIBS@,$GTK_LIBS,;t t
10744
12041
s,@BUILD_PINENTRY_GTK_TRUE@,$BUILD_PINENTRY_GTK_TRUE,;t t
10745
12042
s,@BUILD_PINENTRY_GTK_FALSE@,$BUILD_PINENTRY_GTK_FALSE,;t t
 
12043
s,@LIBICONV@,$LIBICONV,;t t
 
12044
s,@LTLIBICONV@,$LTLIBICONV,;t t
 
12045
s,@PKGCONFIG@,$PKGCONFIG,;t t
 
12046
s,@GTK2CFLAGS@,$GTK2CFLAGS,;t t
 
12047
s,@GTK2LIBS@,$GTK2LIBS,;t t
 
12048
s,@BUILD_PINENTRY_GTK_2_TRUE@,$BUILD_PINENTRY_GTK_2_TRUE,;t t
 
12049
s,@BUILD_PINENTRY_GTK_2_FALSE@,$BUILD_PINENTRY_GTK_2_FALSE,;t t
10746
12050
s,@CXXCPP@,$CXXCPP,;t t
10747
12051
s,@X_CFLAGS@,$X_CFLAGS,;t t
10748
12052
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10765
12069
s,@QT_RPATH@,$QT_RPATH,;t t
10766
12070
s,@BUILD_PINENTRY_QT_TRUE@,$BUILD_PINENTRY_QT_TRUE,;t t
10767
12071
s,@BUILD_PINENTRY_QT_FALSE@,$BUILD_PINENTRY_QT_FALSE,;t t
 
12072
s,@BUILD_PINENTRY_W32_TRUE@,$BUILD_PINENTRY_W32_TRUE,;t t
 
12073
s,@BUILD_PINENTRY_W32_FALSE@,$BUILD_PINENTRY_W32_FALSE,;t t
 
12074
s,@PINENTRY_DEFAULT@,$PINENTRY_DEFAULT,;t t
10768
12075
s,@LIBOBJS@,$LIBOBJS,;t t
10769
12076
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10770
12077
CEOF
11390
12697
  else
11391
12698
    continue
11392
12699
  fi
11393
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11394
 
  # Extract the definition of DEP_FILES from the Makefile without
11395
 
  # running `make'.
11396
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
12700
  # Extract the definition of DEPDIR, am__include, and am__quote
 
12701
  # from the Makefile without running `make'.
 
12702
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11397
12703
  test -z "$DEPDIR" && continue
 
12704
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
12705
  test -z "am__include" && continue
 
12706
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11398
12707
  # When using ansi2knr, U may be empty or an underscore; expand it
11399
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
11400
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11401
 
  # We invoke sed twice because it is the simplest approach to
11402
 
  # changing $(DEPDIR) to its actual value in the expansion.
11403
 
  for file in `sed -n -e '
11404
 
    /^DEP_FILES = .*\\\\$/ {
11405
 
      s/^DEP_FILES = //
11406
 
      :loop
11407
 
        s/\\\\$//
11408
 
        p
11409
 
        n
11410
 
        /\\\\$/ b loop
11411
 
      p
11412
 
    }
11413
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
12708
  U=`sed -n 's/^U = //p' < "$mf"`
 
12709
  # Find all dependency output files, they are included files with
 
12710
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
12711
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
12712
  # expansion.
 
12713
  for file in `sed -n "
 
12714
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11414
12715
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11415
12716
    # Make sure the directory exists.
11416
12717
    test -f "$dirpart/$file" && continue
11495
12796
 
11496
12797
        Curses Pinentry: $pinentry_curses
11497
12798
        GTK+ Pinentry: $pinentry_gtk
 
12799
        GTK+-2 Pinentry: $pinentry_gtk_2
11498
12800
        Qt Pinentry: $pinentry_qt
 
12801
        W32 Pinentry: $pinentry_w32
11499
12802
 
11500
12803
        Fallback to Curses: $fallback_curses
 
12804
 
 
12805
        Default Pinentry: $PINENTRY_DEFAULT
11501
12806
" >&5
11502
12807
echo "$as_me:
11503
12808
        Pinentry v${VERSION} has been configured as follows:
11504
12809
 
11505
12810
        Curses Pinentry: $pinentry_curses
11506
12811
        GTK+ Pinentry: $pinentry_gtk
 
12812
        GTK+-2 Pinentry: $pinentry_gtk_2
11507
12813
        Qt Pinentry: $pinentry_qt
 
12814
        W32 Pinentry: $pinentry_w32
11508
12815
 
11509
12816
        Fallback to Curses: $fallback_curses
 
12817
 
 
12818
        Default Pinentry: $PINENTRY_DEFAULT
11510
12819
" >&6;}