Changeset View
Changeset View
Standalone View
Standalone View
b/configure.ac
Context not available. | |||||
AC_HELP_STRING([--enable-pinentry-gnome3], [build GNOME 3 pinentry]), | AC_HELP_STRING([--enable-pinentry-gnome3], [build GNOME 3 pinentry]), | ||||
pinentry_gnome_3=$enableval, pinentry_gnome_3=maybe) | pinentry_gnome_3=$enableval, pinentry_gnome_3=maybe) | ||||
dnl check for pkg-config | |||||
if test "$pinentry_gtk_2" != "no" -o "$pinentry_gnome_3" != "no"; then | |||||
if test -z "${PKG_CONFIG}"; then | |||||
pinentry_gtk_2=no | |||||
pinentry_gnome_3=no | |||||
fi | |||||
fi | |||||
dnl check if the module gtk+-2.0 exists | dnl check if the module gtk+-2.0 exists | ||||
if test "$pinentry_gtk_2" != "no" -o "$pinentry_gnome_3" != "no"; then | if test "$pinentry_gtk_2" != "no" -o "$pinentry_gnome_3" != "no"; then | ||||
AC_MSG_CHECKING([for gtk+-2]) | PKG_CHECK_MODULES( | ||||
"${PKG_CONFIG}" --exists gtk+-2.0 | GTK2, | ||||
if test $? -ne 0 ; then | [gtk+-2.0 >= 2.4.0], | ||||
AC_MSG_RESULT([no]) | [ | ||||
AC_MSG_WARN([pkg-config could not find the module gtk+-2.0]) | test "$pinentry_gtk_2" != "no" && pinentry_gtk_2=yes | ||||
pinentry_gtk_2=no | test "$pinentry_gnome_3" != "no" && pinentry_gnome_3=yes | ||||
pinentry_gnome_3=no | ], | ||||
else | [ | ||||
AC_MSG_RESULT([yes]) | AC_MSG_WARN([pkg-config could not find the module gtk+-2.0]) | ||||
AC_MSG_CHECKING([gtk+-2 version >= 2.4.0]) | |||||
modvers=`"${PKG_CONFIG}" --modversion gtk+-2.0` | |||||
AC_MSG_RESULT([$modvers]) | |||||
"${PKG_CONFIG}" --atleast-version=2.4.0 gtk+-2.0 | |||||
if test $? -ne 0 ; then | |||||
AC_MSG_WARN([building GTK+-2 pinentry disabled]) | |||||
pinentry_gtk_2=no | pinentry_gtk_2=no | ||||
pinentry_gnome_3=no | pinentry_gnome_3=no | ||||
else | ] | ||||
GTK2CFLAGS=`"${PKG_CONFIG}" --cflags gtk+-2.0` | ) | ||||
GTK2LIBS=`"${PKG_CONFIG}" --libs gtk+-2.0` | |||||
AC_SUBST(GTK2CFLAGS) | |||||
AC_SUBST(GTK2LIBS) | |||||
if test "$pinentry_gtk_2" != "no" | |||||
then | |||||
pinentry_gtk_2=yes | |||||
fi | |||||
if test "$pinentry_gnome_3" != "no" | |||||
then | |||||
pinentry_gnome_3=yes | |||||
fi | |||||
fi | |||||
fi | |||||
fi | fi | ||||
AM_CONDITIONAL(BUILD_PINENTRY_GTK_2, test "$pinentry_gtk_2" = "yes") | AM_CONDITIONAL(BUILD_PINENTRY_GTK_2, test "$pinentry_gtk_2" = "yes") | ||||
if test "$pinentry_gnome_3" != "no"; then | if test "$pinentry_gnome_3" != "no"; then | ||||
AC_MSG_CHECKING([for gcr]) | PKG_CHECK_MODULES( | ||||
"${PKG_CONFIG}" --exists gcr-3,gcr-base-3 | GNOME3, | ||||
if test $? -ne 0 ; then | [gcr-3,gcr-base-3], | ||||
AC_MSG_RESULT([no]) | [ | ||||
AC_MSG_WARN([pkg-config could not find the module gcr-3,gcr-base-3]) | pinentry_gnome_3=yes | ||||
pinentry_gnome_3=no | AC_DEFINE(GCR_API_SUBJECT_TO_CHANGE, 1, [Nod nod]) | ||||
else | ], | ||||
AC_MSG_RESULT([yes]) | [ | ||||
GNOME3CFLAGS=`"${PKG_CONFIG}" --cflags gcr-3,gcr-base-3` | AC_MSG_WARN([pkg-config could not find the module gcr-3,gcr-base-3]) | ||||
GNOME3LIBS=`"${PKG_CONFIG}" --libs gcr-3,gcr-base-3` | pinentry_gnome_3=no | ||||
AC_SUBST(GNOME3CFLAGS) | ] | ||||
AC_SUBST(GNOME3LIBS) | ) | ||||
AC_DEFINE(GCR_API_SUBJECT_TO_CHANGE, 1, [Nod nod]) | |||||
pinentry_gnome_3=yes | |||||
fi | |||||
fi | fi | ||||
AM_CONDITIONAL(BUILD_PINENTRY_GNOME_3, test "$pinentry_gnome_3" = "yes") | AM_CONDITIONAL(BUILD_PINENTRY_GNOME_3, test "$pinentry_gnome_3" = "yes") | ||||
Context not available. | |||||
[optionally cache passphrases using libsecret]), | [optionally cache passphrases using libsecret]), | ||||
libsecret=$enableval, libsecret=maybe) | libsecret=$enableval, libsecret=maybe) | ||||
dnl check for pkg-config | |||||
if test "$libsecret" != "no"; then | |||||
if test -z "${PKG_CONFIG}" ; then | |||||
libsecret=no | |||||
fi | |||||
fi | |||||
dnl check if the module libsecret exists | dnl check if the module libsecret exists | ||||
if test "$libsecret" != "no"; then | if test "$libsecret" != "no"; then | ||||
AC_MSG_CHECKING([for libsecret]) | PKG_CHECK_MODULES( | ||||
"${PKG_CONFIG}" --exists 'libsecret-1' | LIBSECRET, | ||||
if test $? -ne 0 ; then | [libsecret-1], | ||||
AC_MSG_RESULT([no]) | [libsecret=yes], | ||||
AC_MSG_WARN([pkg-config could not find the modules libsecret-1]) | [ | ||||
libsecret=no | AC_MSG_WARN([pkg-config could not find the module libsecret-1]) | ||||
else | libsecret=no | ||||
AC_MSG_RESULT([yes]) | ] | ||||
LIBSECRET_CFLAGS=`"${PKG_CONFIG}" --cflags 'libsecret-1'` | ) | ||||
LIBSECRET_LIBS=`"${PKG_CONFIG}" --libs 'libsecret-1'` | |||||
libsecret=yes | |||||
fi | |||||
fi | fi | ||||
AM_CONDITIONAL(BUILD_WITH_LIBSECRET, test "$libsecret" = "yes") | AM_CONDITIONAL(BUILD_WITH_LIBSECRET, test "$libsecret" = "yes") | ||||
if test "$libsecret" = "yes"; then | if test "$libsecret" = "yes"; then | ||||
Context not available. |