]> andersk Git - openssh.git/commitdiff
- (djm) [configure.ac] add a --without-openssl-header-check option to
authordjm <djm>
Mon, 5 Mar 2007 00:51:27 +0000 (00:51 +0000)
committerdjm <djm>
Mon, 5 Mar 2007 00:51:27 +0000 (00:51 +0000)
   configure, as some platforms (OS X) ship OpenSSL headers whose version
   does not match that of the shipping library. ok dtucker@

ChangeLog
configure.ac

index 31f779c4dd3ed9a06da3baf02fb8921d8c9e1e67..06172d61ca248134471b1651022e6cf4c8354da9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+20070304
+ - (djm) [configure.ac] add a --without-openssl-header-check option to
+   configure, as some platforms (OS X) ship OpenSSL headers whose version
+   does not match that of the shipping library. ok dtucker@
+
 20070303
  - (dtucker) [regress/agent-ptrace.sh] Make ttrace gdb error a little more
    general to cover newer gdb versions on HP-UX.
index d83c50fea45ce836e2e9cfb13cb0515b8c3fba41..a07aa3c3d75705795abf765a2193e27fb8c1158b 100644 (file)
@@ -1857,6 +1857,14 @@ int main(void) {
        ]
 )
 
+AC_ARG_WITH(openssl-header-check,
+       [  --without-openssl-header-check Disable OpenSSL version consistency check],
+       [  if test "x$withval" = "xno" ; then
+               openssl_check_nonfatal=1
+          fi
+       ]
+)
+
 # Sanity check OpenSSL headers
 AC_MSG_CHECKING([whether OpenSSL's headers match the library])
 AC_RUN_IFELSE(
@@ -1870,9 +1878,18 @@ int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
        ],
        [
                AC_MSG_RESULT(no)
-               AC_MSG_ERROR([Your OpenSSL headers do not match your library.
-Check config.log for details.
+               if test "x$openssl_check_nonfatal" = "x"; then
+                       AC_MSG_ERROR([Your OpenSSL headers do not match your
+library. Check config.log for details.
+If you are sure your installation is consistent, you can disable the check
+by running "./configure --without-openssl-header-check".
+Also see contrib/findssl.sh for help identifying header/library mismatches.
+])
+               else
+                       AC_MSG_WARN([Your OpenSSL headers do not match your
+library. Check config.log for details.
 Also see contrib/findssl.sh for help identifying header/library mismatches.])
+               fi
        ],
        [
                AC_MSG_WARN([cross compiling: not checking])
This page took 0.046212 seconds and 5 git commands to generate.