summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-12-23 12:43:31 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-12-23 12:43:31 +0000
commit83b681f127f6841c6e456accd2fa5fd4923e6114 (patch)
tree12c6e75c34fdf87d452995dc1a06f8951fe22eec /configure.ac
parent889e28ef6206d83431709b3eb823122ba40f329e (diff)
configure.ac: Put additional LAME check inside the conditional. Fixes #152339
Original commit message from CVS: * configure.ac: Put additional LAME check inside the conditional. Fixes #152339
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac23
1 files changed, 15 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 63d26287..97064bbe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1188,20 +1188,27 @@ GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
dnl *** lame ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
- GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h, HAVE_LAME="yes" LAME_LIBS="-lmp3lame -lm")
-])
-dnl is lame presets available
-LAME_CFLAGS=""
-AC_TRY_RUN([
+ GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h,
+ [
+ HAVE_LAME="yes"
+ 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;
}
-],[LAME_CFLAGS="-DGSTLAME_PRESET"],[LAME_CFLAGS=""])
-AC_SUBST(LAME_CFLAGS)
-AC_SUBST(LAME_LIBS)
+ ],
+ [LAME_CFLAGS="-DGSTLAME_PRESET"],
+ [LAME_CFLAGS=""]
+ )
+ AC_SUBST(LAME_CFLAGS)
+ AC_SUBST(LAME_LIBS)
+ ])
+])
dnl *** MAS (TODO) ***
dnl translit(dnm, m, l) AM_CONDITIONAL(USE_MAS, true)