sid: Fix cross-compilation by using AC_TRY_LINK instead of AC_TRY_RUN

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917899
This commit is contained in:
Helmut Grohne 2019-01-17 17:29:38 +02:00 committed by Sebastian Dröge
parent 2365d2b5d7
commit 248f174c3e

View file

@ -16,13 +16,9 @@ if test $HAVE_SIDPLAY = "yes"; then
LIBS="-lsidplay"
AC_TRY_RUN([
#include <sidplay/player.h>
int main()
{ sidTune tune = sidTune(0); }
],
AC_TRY_LINK([#include <sidplay/player.h>],
[sidTune tune = sidTune(0);],
HAVE_SIDPLAY="yes",
HAVE_SIDPLAY="no",
HAVE_SIDPLAY="no")
LIBS="$ac_libs_safe"