configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for a define in the...
authorTim-Philipp Müller <tim@centricular.net>
Sat, 8 Sep 2007 20:54:54 +0000 (20:54 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 8 Sep 2007 20:54:54 +0000 (20:54 +0000)
Original commit message from CVS:
* configure.ac:
Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for a
define in the lame headers.  This has the advantage that
it should still work when we're cross-compiling (#452025).

ChangeLog
common
configure.ac

index fdd0a94..eace0e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-09-08  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * configure.ac:
+         Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for a
+         define in the lame headers.  This has the advantage that
+         it should still work when we're cross-compiling (#452025).
+
 2007-08-24  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * gst/dvdlpcmdec/gstdvdlpcmdec.c:
diff --git a/common b/common
index cd25ca7..7675278 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit cd25ca736bc2446800de2180ad71fc1da858d324
+Subproject commit 76752780462a3c4da712d56d54c45402144b3d0f
index 65bfd19..6ac7ae1 100644 (file)
@@ -308,14 +308,7 @@ AG_GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
     LAME_LIBS="-lmp3lame -lm"
     dnl is lame presets available
     LAME_CFLAGS=""
-    AC_TRY_RUN([
-#include <lame/lame.h>
-int main (int argc, char *argv[])
-{
-  printf("%d\n", MEDIUM);
-  return 0;
-}
-      ],
+    AC_TRY_COMPILE([#include <lame/lame.h>], [ int preset = MEDIUM ],
       [LAME_CFLAGS="-DGSTLAME_PRESET"],
       [LAME_CFLAGS=""]
     )