Skip to content

Commit

Permalink
Check for OpenSSL version
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Mar 1, 2016
1 parent 762c4ff commit 8c341d5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 8c341d5

Please sign in to comment.