Simplify autoconf timegm function check.
[shibboleth/cpp-xmltooling.git] / configure.ac
index d6c5eb2..7b773ed 100644 (file)
@@ -53,7 +53,7 @@ AC_C_CONST
 AC_TYPE_SIZE_T
 
 # Checks for library functions.
-AC_CHECK_FUNCS([strchr strdup strstr])
+AC_CHECK_FUNCS([strchr strdup strstr timegm])
 AC_CHECK_HEADERS([dlfcn.h])
 AC_CHECK_FUNC(dlclose, , [ AC_CHECK_LIB(dl, dlopen) ])
 
@@ -73,7 +73,7 @@ fi
 AC_ARG_WITH(openssl,
     AC_HELP_STRING([--with-openssl=PATH], [where openssl is installed]),
     [if test x_$with_openssl != x_/usr; then
-        SSLLIBS="-L${with_openssl}/lib -lcrypto"
+        SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
         SSLFLAGS="-I${with_openssl}/include"
     fi])
 
@@ -90,7 +90,7 @@ if test "x$SSLLIBS" = "x" ; then
 fi
 
 if test "x$SSLLIBS" = "x" ; then
-    SSLLIBS="-lcrypto"
+    SSLLIBS="-lcrypto -lssl"
 fi
 
 AC_MSG_CHECKING(for OpenSSL libraries)