diff --git a/configure b/configure index 3b89882..e5e7930 100755 --- a/configure +++ b/configure @@ -15,19 +15,12 @@ PKG_LIBS="-lssl -lcrypto" PKG_CFLAGS="" # Use pkg-config if available -pkg-config --version >/dev/null 2>&1 +pkg-config ${PKG_CONFIG_NAME} --atleast-version=1.0 2>/dev/null if [ $? -eq 0 ]; then PKGCONFIG_CFLAGS=`pkg-config --cflags ${PKG_CONFIG_NAME}` PKGCONFIG_LIBS=`pkg-config --libs ${PKG_CONFIG_NAME}` fi -# Prevent OSX from linking against OpenSSL 0.9.8 -case "$OSTYPE" in "darwin"*) - unset PKGCONFIG_CFLAGS - unset PKGCONFIG_LIBS - ;; -esac - # Note that cflags may be empty in case of success if [ "$INCLUDE_DIR" ] || [ "$LIB_DIR" ]; then echo "Found INCLUDE_DIR and/or LIB_DIR!"