bk: 435ecab37RnR0mEdjBf9AAmtuZsRlQ
case "$ans" in
no) ;;
yes) # Look in:
- ans="/usr/lib /usr/lib/openssl /usr/local/lib /usr/local/ssl/lib"
+ ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib"
;;
*) # Look where they said
;;
test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
;;
*)
+ test -f $i/libcrypto.so -a -f $i/libssl.so && break
test -f $i/libcrypto.a -a -f $i/libssl.a && break
;;
esac
case "$ans" in
no) ;;
yes) # look in:
- ans="/usr/include /usr/local/include /usr/local/ssl/include"
+ ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
;;
*) # Look where they said
;;
}
#endif
+#ifdef OPENSSL
+ if ((SSLeay() ^ OPENSSL_VERSION_NUMBER) & ~0xff0L) {
+ msyslog(LOG_ERR,
+ "ntpd: OpenSSL version mismatch. Built against %lx, you have %lx\n",
+ OPENSSL_VERSION_NUMBER, SSLeay());
+ exit(1);
+ }
+#endif
+
#ifdef SYS_WINNT
/*
* Initialize the time structures and variables