Solaris requires a re-order of libraries (at least on MY solaris box)
authorwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 23 Apr 2003 16:00:43 +0000 (16:00 +0000)
committerwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 23 Apr 2003 16:00:43 +0000 (16:00 +0000)
to make sure we link -lxml-security before -lcrypto.

git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@383 cb58f699-b61c-0410-a6fe-9272a202ed29

configure.ac

index 4713545..f4594ea 100644 (file)
@@ -108,6 +108,13 @@ AC_TRY_LINK(
                LIBS="$saved_LIBS"
        ])
 
+AC_CHECK_HEADER([openssl/ssl.h],,
+                AC_MSG_ERROR([unable to find openssl header files]))
+AC_CHECK_LIB([crypto], [ERR_load_CRYPTO_strings],,
+             AC_MSG_ERROR([unable to link with openssl libraries]))
+AC_CHECK_LIB([ssl], [SSL_library_init],, 
+             AC_MSG_ERROR([unable to link with openssl libraries]))
+
 AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,
                 AC_MSG_ERROR([unable to find xsec header files]))
 saved_LIBS="$LIBS"
@@ -120,13 +127,6 @@ AC_TRY_LINK(
                 LIBS="$saved_LIBS"
         ])
 
-AC_CHECK_HEADER([openssl/ssl.h],,
-                AC_MSG_ERROR([unable to find openssl header files]))
-AC_CHECK_LIB([crypto], [ERR_load_CRYPTO_strings],,
-             AC_MSG_ERROR([unable to link with openssl libraries]))
-AC_CHECK_LIB([ssl], [SSL_library_init],, 
-             AC_MSG_ERROR([unable to link with openssl libraries]))
-
 AC_CHECK_HEADER([log4cpp/Category.hh],,
                 AC_MSG_ERROR([unable to find log4cpp header files]))