comparison configure.ac @ 728:171f42746b88

Fix detection of COMI style libSIDPlay2 API after semi-recent changes in libSIDPlay2's CVS version.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 22 Oct 2009 14:54:33 +0300
parents 369c1f4414e2
children 92c284766c49
comparison
equal deleted inserted replaced
727:369c1f4414e2 728:171f42746b88
115 AC_MSG_CHECKING([libSIDPlay2 API style]) 115 AC_MSG_CHECKING([libSIDPlay2 API style])
116 tmp_CPPFLAGS="$CPPFLAGS" 116 tmp_CPPFLAGS="$CPPFLAGS"
117 if test -d "$xs_sidplay2_includes"; then 117 if test -d "$xs_sidplay2_includes"; then
118 CPPFLAGS="$CPPFLAGS -I${xs_sidplay2_includes}" 118 CPPFLAGS="$CPPFLAGS -I${xs_sidplay2_includes}"
119 fi 119 fi
120 AC_EGREP_HEADER([SIDIID], [sidplay/sidplay2.h], 120 AC_EGREP_HEADER([::Iid], [sidplay/sidplay2.h],
121 [xs_have_sidplay2_api="yes"], 121 [xs_have_sidplay2_api="yes"],
122 [xs_have_sidplay2_api="(old style API)"] 122 [
123 AC_EGREP_HEADER([SIDIID],
124 [xs_have_sidplay2_api="yes"],
125 [xs_have_sidplay2_api="(old style API)"])
126 ]
123 ) 127 )
124 if test "x$xs_have_sidplay2_api" = "xyes"; then 128 if test "x$xs_have_sidplay2_api" = "xyes"; then
125 AC_LINK_IFELSE([ 129 AC_LINK_IFELSE([
126 AC_LANG_PROGRAM( 130 AC_LANG_PROGRAM(
127 [#include <sidplay/sidunknown.h>], 131 [#include <sidplay/sidunknown.h>],