From f15a03e711a6dc16de951ecc126becabea6423f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 8 Sep 2007 20:54:54 +0000 Subject: [PATCH] configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for a define in the lame headers. This has the advan... 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 | 7 +++++++ common | 2 +- configure.ac | 9 +-------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index fdd0a94..eace0e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-09-08 Tim-Philipp Müller + + * 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 * gst/dvdlpcmdec/gstdvdlpcmdec.c: diff --git a/common b/common index cd25ca7..7675278 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit cd25ca736bc2446800de2180ad71fc1da858d324 +Subproject commit 76752780462a3c4da712d56d54c45402144b3d0f diff --git a/configure.ac b/configure.ac index 65bfd19..6ac7ae1 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -int main (int argc, char *argv[]) -{ - printf("%d\n", MEDIUM); - return 0; -} - ], + AC_TRY_COMPILE([#include ], [ int preset = MEDIUM ], [LAME_CFLAGS="-DGSTLAME_PRESET"], [LAME_CFLAGS=""] ) -- 2.7.4