1dnl check for sidplay 2 3AC_DEFUN([GST_PATH_SIDPLAY], 4[ 5AC_MSG_CHECKING([for libsidplay 1.36.x]) 6 7AC_LANG_PUSH(C++) 8 9AC_CHECK_HEADER(sidplay/player.h, HAVE_SIDPLAY="yes", HAVE_SIDPLAY="no") 10 11if test $HAVE_SIDPLAY = "yes"; then 12 SIDPLAY_LIBS="-lsidplay" 13 14 AC_MSG_CHECKING([whether -lsidplay works]) 15 ac_libs_safe=$LIBS 16 17 LIBS="-lsidplay" 18 19 AC_TRY_RUN([ 20 #include <sidplay/player.h> 21 int main() 22 { sidTune tune = sidTune(0); } 23 ], 24 HAVE_SIDPLAY="yes", 25 HAVE_SIDPLAY="no", 26 HAVE_SIDPLAY="no") 27 28 LIBS="$ac_libs_safe" 29 30 AC_MSG_RESULT([$HAVE_SIDPLAY]) 31fi 32 33SIDPLAY_CFLAGS= 34SIDPLAY_LIBS="-lsidplay" 35AC_SUBST(SIDPLAY_CFLAGS) 36AC_SUBST(SIDPLAY_LIBS) 37 38AC_LANG_POP(C++) 39]) 40