m4/gst-check.m4: AC_SUBST CFLAGS and LIBS do a non-command because something is strip...
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 20 Jan 2006 15:57:12 +0000 (15:57 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 20 Jan 2006 15:57:12 +0000 (15:57 +0000)
Original commit message from CVS:
2006-01-20  Thomas Vander Stichele  <thomas at apestaart dot org>

* m4/gst-check.m4:
AC_SUBST CFLAGS and LIBS
do a non-command because something is stripping out our AC_SUBST

ChangeLog
m4/gst-check.m4

index 1bf4905..0d89da8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * m4/gst-check.m4:
          AC_SUBST CFLAGS and LIBS
+         do a non-command because something is stripping out our AC_SUBST
 
 2006-01-20  Thomas Vander Stichele  <thomas at apestaart dot org>
 
index 39423b9..ffaed4d 100644 (file)
@@ -21,7 +21,9 @@ AC_DEFUN([GST_CHECK_MODULES],
   required=ifelse([$5], , "yes", [$5]) dnl required by default
 
   PKG_CHECK_MODULES([$1], $module >= $minver,
-    HAVE_[$1]="yes", HAVE_[$1]="no")
+    [
+      HAVE_[$1]="yes"
+    ], HAVE_[$1]="no")
 
   if test "x$HAVE_[$1]" = "xno"; then
     if test "x$required" = "xyes"; then
@@ -30,10 +32,12 @@ AC_DEFUN([GST_CHECK_MODULES],
       AC_MSG_NOTICE([no $module >= $minver ($name) found])
     fi
   else
-    dnl PKG_CHECK_MODULES does not AC_SUBST our CFLAGS and LIBS;
-    dnl for convenience, we do
-    AC_SUBST([$module]_CFLAGS)
-    AC_SUBST([$module]_LIBS)
+    dnl PKG_CHECK_MODULES does not AC_SUBST our CFLAGS and LIBS automatically
+    AC_SUBST([$1]_CFLAGS)
+    AC_SUBST([$2]_LIBS)
+    dnl something is tricking us and removing the AC_SUBST calls, leaving
+    dnl an empty else block
+    echo -n
   fi
 ]))