Check for OpenSSL headers/libraries

This commit is contained in:
Aaron Culliney 2014-03-30 10:37:34 -07:00
parent c2c1236cbe
commit 37df0d52bb
2 changed files with 13 additions and 1 deletions

View File

@ -156,7 +156,7 @@ AC_ARG_ENABLE([audio], AS_HELP_STRING([--disable-audio], [Disable emulator audio
], [
#include <AL/al.h>
#include <AL/alc.h>
])
])
], [
AC_MSG_WARN([Could not find OpenAL headers, sound will be disabled])
])
@ -177,6 +177,18 @@ dnl Debugger & classic interface ...
AC_ARG_ENABLE([debugger], AS_HELP_STRING([--disable-debugger], [Disable 6502 debugging console]), [], [
AC_DEFINE(DEBUGGER, 1, [Enable 6502 debugger module])
META_O="src/meta/debug.o src/meta/debugger.o src/meta/opcodes.o"
AC_CHECK_HEADER(openssl/sha.h, [
AC_SEARCH_LIBS(SHA1, crypto, [
AC_DEFINE(HAVE_OPENSSL, 1, [Use OpenSSL])
], [
AC_MSG_WARN([Could not find OpenSSL libraries, certain functionality will be disabled])
], [])
], [
AC_MSG_WARN([Could not find openssl/sha.h header])
], [
#include <openssl/sha.h>
])
])
AC_SUBST(META_O)

BIN
disks/testvm1.dsk.gz Normal file

Binary file not shown.