diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-12 21:41:34 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-12 21:51:54 +0100 |
commit | 131ad1a8f9aeebee3a7560e09c73cdbba8573feb (patch) | |
tree | 78fbe4d0dc0cb8d6eaf8799d53b6ecb748ad3155 /plugins/sid/sidplay-libs/builders/resid-builder/acinclude.m4 | |
parent | 9ae08cc0f9bed7a62801e2526537fcffe14e53a9 (diff) |
sid player is now real plugin (dynamically loaded)
ported sid code to new API
moved to different md5 library
added more md5 functions to plugin API
Diffstat (limited to 'plugins/sid/sidplay-libs/builders/resid-builder/acinclude.m4')
-rw-r--r-- | plugins/sid/sidplay-libs/builders/resid-builder/acinclude.m4 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/sid/sidplay-libs/builders/resid-builder/acinclude.m4 b/plugins/sid/sidplay-libs/builders/resid-builder/acinclude.m4 new file mode 100644 index 00000000..5fcfce10 --- /dev/null +++ b/plugins/sid/sidplay-libs/builders/resid-builder/acinclude.m4 @@ -0,0 +1,39 @@ +dnl ------------------------------------------------------------------------- +dnl Try to find resid includes and library. +dnl ------------------------------------------------------------------------- + +AC_DEFUN(SID2_FIND_LIBRESID, +[ + if test "$SID2_LIB_CHECK" != "0"; then + MY_FIND_LIB(resid,,,resid/sid.h sid.h,SID *mySID,sid2_header) + else + MY_FIND_LIB_NO_CHECK(resid,resid/sid.h sid.h,sid2_header) + fi + + dnl list exported variables here so end up in makefile + AC_SUBST(LIBRESID_CXXFLAGS) + AC_SUBST(LIBRESID_LDFLAGS) + + if test "$sid2_header" = sid.h; then + AC_DEFINE(HAVE_USER_RESID,, + [Define this to \#include sid.h instead of resid/resid.h] + ) + fi + + if test "$SID2_LIB_CHECK" != "0"; then + AC_MSG_CHECKING([for extended resid features]) + MY_TRY_COMPILE($LIBRESID_CXXFLAGS,$LIBRESID_LDFLAGS,$sid2_header,SID mySID; + mySID.mute(0,true),sid2_works) + + if test "$sid2_works" = NO; then + AC_MSG_RESULT(no); + # Found non patched version of resid + AC_MSG_ERROR([ +resid requires patching to function with sidplay2. +Patches are available from http://sidplay2.sourceforge.net + ]) + else + AC_MSG_RESULT(yes); + fi + fi +]) |