configure: ensure HAVE_ENCODERS is placed in config.h
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 17 Jul 2012 13:27:39 +0000 (13:27 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 17 Jul 2012 13:27:39 +0000 (13:27 +0000)
configure.ac

index d7f81a59bc7b6b70f610a97c23d3a710d3234fa0..7165032c23e08feb95f4ee0bdec4faa139d7ee7b 100644 (file)
@@ -139,8 +139,11 @@ GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugi
 AC_SUBST(GST_PLUGIN_LDFLAGS)
 
 dnl encoders - they can be missing
-AC_CHECK_HEADER([ti/sdo/codecs/h264enc/ih264enc.h],[HAVE_ENCODERS=1])
+AC_CHECK_HEADERS([ti/sdo/codecs/h264enc/ih264enc.h],[HAVE_ENCODERS=1])
 AM_CONDITIONAL(HAVE_ENCODERS, test "$HAVE_ENCODERS" = "1")
+if test "$HAVE_ENCODERS" = "1"; then
+  AC_DEFINE(HAVE_ENCODERS, 1, [Define if encoder headers are available])
+fi
 
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_OUTPUT