isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit d529bc3887f852446ac82746dbfff76f7374e5d6
parent 47bdbb4aab0785ec779dbc8c418026ed5e3bed1c
Author: Helmut Grohne <helmut@subdivi.de>
Date:   Sat, 19 Aug 2017 13:22:26 +0200

use autoconf's built-in pkg-config support for OpenSSL

the hand-crafted suppport did not work with cross-builds.

Diffstat:
Mconfigure.ac | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -54,13 +54,13 @@ if test "x$ob_cv_with_ssl" != xno; then dnl Detect the pkg-config tool, as it may have extra info about the openssl dnl installation we can use. I *believe* this is what we are expected to do dnl on really recent Redhat Linux hosts. - AC_PATH_PROG(PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin) - if test "$PKGCONFIG" != "no" ; then + PKG_PROG_PKG_CONFIG + if test "x$PKG_CONFIG" != "x" ; then AC_MSG_CHECKING([OpenSSL presence with pkg-config]) - if $PKGCONFIG --exists openssl; then - SSL_LIBS=`$PKGCONFIG --libs-only-l openssl` - SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl` - SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl` + if $PKG_CONFIG --exists openssl; then + SSL_LIBS=`$PKG_CONFIG --libs-only-l openssl` + SSL_LDFLAGS=`$PKG_CONFIG --libs-only-L openssl` + SSL_CPPFLAGS=`$PKG_CONFIG --cflags-only-I openssl` have_ssl_paths=yes AC_MSG_RESULT([found]) else