Skip to content

Commit

Permalink
Fixed bug 954 (sdl-mixer flac test is not cross-compile friendly)
Browse files Browse the repository at this point in the history
 Mike Frysinger      2010-02-17 03:28:55 PST

the current flac test uses AC_TRY_RUN for no real reason.  the same exact
result can be found via a simple compile test.
  • Loading branch information
slouken committed Feb 17, 2011
1 parent b503d85 commit 9cb3e16
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions configure.in
Expand Up @@ -482,16 +482,14 @@ if test x$enable_music_flac = xyes; then
LIBS_SAVED="$LIBS"
LIBS="-lFLAC"
AC_MSG_CHECKING([for libflac so-name version >= $libflac_ver])
AC_TRY_RUN([
AC_TRY_COMPILE([
#include "FLAC/export.h"
#include "stdio.h"
int main( int argc, char *argv[] ) {
],[
#if defined(FLAC_API_VERSION_CURRENT) && (FLAC_API_VERSION_CURRENT >= $libflac_ver)
return 0;
#else
return 1;
#error "old-flac"
#endif
}
], have_flac_ver=yes, have_flac_ver=no)
LIBS="$LIBS_SAVED"
AC_MSG_RESULT($have_flac_ver)
Expand Down

0 comments on commit 9cb3e16

Please sign in to comment.