qtdemux: Fix the problem that framerate don't include in caps
[platform/upstream/gst-plugins-good.git] / m4 / check-libheader.m4
index 42db689..a7fc5a6 100644 (file)
@@ -15,26 +15,23 @@ dnl EXTRA-CPPFLAGS      - extra C preprocessor flags, i.e. -I/usr/X11R6/include
 dnl
 dnl Based on GST_CHECK_LIBHEADER from gstreamer plugins 0.3.1.
 dnl
-AC_DEFUN(CHECK_LIBHEADER,
+AC_DEFUN([CHECK_LIBHEADER],
 [
   AC_CHECK_LIB([$2], [$3], HAVE_[$1]=yes, HAVE_[$1]=no, [$7])
   check_libheader_feature_name=translit([$1], A-Z, a-z)
 
   if test "x$HAVE_[$1]" = "xyes"; then
-
     check_libheader_save_CPPFLAGS=$CPPFLAGS
     CPPFLAGS="[$8] $CPPFLAGS"
     AC_CHECK_HEADER([$4], :, HAVE_[$1]=no)
     CPPFLAGS=$check_libheader_save_CPPFLAGS
+  fi
 
-    if test "x$HAVE_[$1]" = "xyes"; then
-      dnl execute what needs to be
-      ifelse([$5], , :, [$5])
-      AC_MSG_NOTICE(feature $check_libheader_feature_name is found)
-    else
-      ifelse([$6], , :, [$6])
-    fi
+  if test "x$HAVE_[$1]" = "xyes"; then
+    ifelse([$5], , :, [$5])
+    AC_MSG_NOTICE($check_libheader_feature_name was found)
   else
+    ifelse([$6], , :, [$6])
     AC_MSG_WARN($check_libheader_feature_name not found)
   fi
   AC_SUBST(HAVE_[$1])