dnl initialize autoconf
dnl when going to/from release please set the nano (fourth number) right !
dnl releases only do Wall, cvs and prerelease does Werror too
-AC_INIT(GStreamer, 0.10.18.1,
+AC_INIT(GStreamer, 0.10.21.1,
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
gstreamer)
AG_GST_INIT
dnl - interfaces added -> increment AGE
dnl - interfaces removed -> AGE = 0
dnl sets GST_LT_LDFLAGS
-AS_LIBTOOL(GST, 16, 0, 16)
+AS_LIBTOOL(GST, 18, 0, 18)
dnl FIXME: this macro doesn't actually work;
dnl the generated libtool script has no support for the listed tags.
dnl So this needs to be fixed first if we want to use this
dnl AS_LIBTOOL_TAGS
+AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
dnl *** autotools stuff ****
dnl set up gettext
dnl the version check needs to stay here because autopoint greps for it
-AM_GNU_GETTEXT_VERSION([0.11.5])
+AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])
AG_GST_GETTEXT([gstreamer-$GST_MAJORMINOR])
GST_REGISTRY_DOC_TYPES=
fi
AC_SUBST(GST_REGISTRY_DOC_TYPES)
-AG_GST_CHECK_SUBSYSTEM_DISABLE(ENUMTYPES,[enum types])
-AM_CONDITIONAL(GST_DISABLE_ENUMTYPES, test "x$GST_DISABLE_ENUMTYPES" = "xyes")
-AG_GST_CHECK_SUBSYSTEM_DISABLE(INDEX,[index])
-AM_CONDITIONAL(GST_DISABLE_INDEX, test "x$GST_DISABLE_INDEX" = "xyes")
-dnl define a substitution to use in docs/gst/gstreamer.types
-if test "x$GST_DISABLE_INDEX" = "xyes"
-then
- GST_INDEX_DOC_TYPES="%"
-else
- GST_INDEX_DOC_TYPES=
-fi
-AC_SUBST(GST_INDEX_DOC_TYPES)
AG_GST_CHECK_SUBSYSTEM_DISABLE(NET,[network distribution])
AM_CONDITIONAL(GST_DISABLE_NET, test "x$GST_DISABLE_NET" = "xyes")
AG_GST_CHECK_SUBSYSTEM_DISABLE(PLUGIN,[plugin])
AM_CONDITIONAL(GST_DISABLE_PLUGIN, test "x$GST_DISABLE_PLUGIN" = "xyes")
-AG_GST_CHECK_SUBSYSTEM_DISABLE(URI,[uri handlers])
-AM_CONDITIONAL(GST_DISABLE_URI, test "x$GST_DISABLE_URI" = "xyes")
AG_GST_ARG_DEBUG
AG_GST_ARG_PROFILING
dnl Use binary registry
AC_ARG_ENABLE(binary-registry,
- AC_HELP_STRING([--enable-binary-registry],
- [enable experimental binary registry]),
+ AC_HELP_STRING([--disable-binary-registry],
+ [disable binary registry]),
[
case "${enableval}" in
yes) USE_BINARY_REGISTRY=yes ;;
no) USE_BINARY_REGISTRY=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-binary-registry) ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-binary-registry) ;;
esac
],
- [USE_BINARY_REGISTRY=no]) dnl Default value
+ [USE_BINARY_REGISTRY=yes]) dnl Default value
if test "x$USE_BINARY_REGISTRY" = xyes; then
dnl for config.h:
fi
AC_SUBST(GST_HAVE_UNALIGNED_ACCESS_DEFINE)
-dnl check for extra platform specific plugin suffixes
+dnl check for platform specific settings
case $host_os in
- darwin* | rhapsody*)
+ rhapsody*)
AC_DEFINE_UNQUOTED(GST_EXTRA_MODULE_SUFFIX, [".dylib"], [Extra platform specific plugin suffix])
+ ;;
+ darwin*)
+ AC_DEFINE_UNQUOTED(GST_EXTRA_MODULE_SUFFIX, [".dylib"], [Extra platform specific plugin suffix])
+ AC_DEFINE_UNQUOTED(GST_HAVE_UNSAFE_FORK, 1, [Defined when registry scanning through fork is unsafe])
;;
+ cygwin* | mingw* | msvc* | mks*)
+ dnl HAVE_WIN32 currently means "disable POSIXisms".
+ AC_DEFINE_UNQUOTED(HAVE_WIN32, 1, [Defined if compiling for Windows])
+ ;;
*)
;;
esac
dnl affected plugins must include config.h
AC_SYS_LARGEFILE
-dnl HAVE_WIN32 currently means "disable POSIXisms".
-case "$host" in
- *-*-mingw*)
- AC_DEFINE_UNQUOTED(HAVE_WIN32, 1, [Defined if compiling for Windows])
- ;;
- *)
- ;;
-esac
-
dnl *** checks for programs ***
dnl find a compiler
fi
dnl we require flex and bison for building the parser
-AG_GST_BISON_CHECK
-AG_GST_FLEX_CHECK
+if test "x$GST_DISABLE_PARSE" != xyes; then
+ AG_GST_BISON_CHECK
+ AG_GST_FLEX_CHECK
+fi
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
dnl *** checks for libraries ***
-dnl For interactive UNIX (a Sun thing)
-dnl FIXME: this adds -lcposix to LIBS, but I doubt we use LIBS
-AC_ISC_POSIX
-
dnl check for libm, for sin()
AC_CHECK_LIBM
AC_SUBST(LIBM)
dnl Check for stdio_ext.f for __fbufsize
AC_CHECK_HEADERS([stdio_ext.h])
+dnl Check for valgrind.h
+dnl separate from HAVE_VALGRIND because you can have the program, but not
+dnl the dev package
+AC_CHECK_HEADERS([valgrind/valgrind.h], HAVE_VALGRIND_H=yes)
+
+dnl used in gst/gstpoll.c
+AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
+AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
+if test "x$HAVE_WINSOCK2_H" = "xyes"; then
+ WIN32_LIBS="-lws2_32"
+ AC_SUBST(WIN32_LIBS)
+fi
+
dnl *** checks for types/defines ***
dnl *** checks for structures ***
save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -D_GNU_SOURCE"
AC_CHECK_LIB(dl, dladdr,
- AC_DEFINE(HAVE_DLADDR, 1,
- [Defined if we have dladdr ()]))
+ AC_DEFINE(HAVE_DLADDR, 1, [Defined if we have dladdr ()])
+ LIBS="$LIBS -ldl")
CFLAGS="$save_cflags"
dnl check for inet_aton()
AC_SUBST(GST_DISABLE_XML_DEFINE)
dnl check for "check", unit testing library/header
-AM_PATH_CHECK(0.9.2,
- [
- HAVE_CHECK=yes
- AC_MSG_NOTICE(CHECK_CFLAGS: $CHECK_CFLAGS)
- AC_MSG_NOTICE(CHECK_LIBS: $CHECK_LIBS)
- ],
- HAVE_CHECK=no)
+if test "$cross_compiling" != yes; then
+ AM_PATH_CHECK(0.9.2,
+ HAVE_CHECK=yes,
+ HAVE_CHECK=no)
+else
+ HAVE_CHECK=no
+fi
AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
dnl pkg-config check that for libcheck that works for cross-compiling
AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
AC_SUBST(GST_LICENSE)
-dnl define LIBDIR, DATADIR so we can inform people where we live
+dnl define LIBDIR, GST_DATADIR so we can inform people where we live
AS_AC_EXPAND(LIBDIR, $libdir)
AC_DEFINE_UNQUOTED(LIBDIR, "$LIBDIR", [library dir])
AS_AC_EXPAND(DATADIR, $datadir)
-AC_DEFINE_UNQUOTED(DATADIR, "$DATADIR", [data dir])
+AC_DEFINE_UNQUOTED(GST_DATADIR, "$DATADIR", [data dir])
dnl set location of plugin directory
AG_GST_SET_PLUGINDIR
)
AC_OUTPUT
+
+dnl negate for output
+if test "x${GST_DISABLE_LOADSAVE}" = "xno"; then enable_loadsave="yes"; fi
+if test "x${GST_DISABLE_PARSE}" = "xno"; then enable_parse="yes"; fi
+if test "x${GST_DISABLE_OPTION_PARSING}" = "xno"; then enable_option_parsing="yes"; fi
+if test "x${GST_DISABLE_TRACE}" = "xno"; then enable_trace="yes"; fi
+if test "x${GST_DISABLE_ALLOC_TRACE}" = "xno"; then enable_alloc_trace="yes"; fi
+if test "x${GST_DISABLE_PLUGIN}" = "xno"; then enable_plugin="yes"; fi
+if test "x${GST_DISABLE_REGISTRY}" = "xno"; then enable_registry="yes"; fi
+if test "x${GST_DISABLE_NET}" = "xno"; then enable_net="yes"; fi
+
+echo "
+
+Configuration
+ Version : ${VERSION}
+ Source code location : ${srcdir}
+ Prefix : ${prefix}
+ Compiler : ${CC}
+ Package name : ${GST_PACKAGE_NAME}
+ Package origin : ${GST_PACKAGE_ORIGIN}
+
+ Documentation (manuals) : ${enable_docbook}
+ Documentation (API) : ${enable_gtk_doc}
+
+ Pipeline XML load/save : ${enable_loadsave}
+ Command-line parser : ${enable_parse}
+ Option parsing in gst_init : ${enable_option_parsing}
+ Tracing subsystem : ${enable_trace}
+ Allocation tracing : ${enable_alloc_trace}
+ Plugin registry : ${enable_registry}
+ Plugin support : ${enable_plugin}
+ Network support : ${enable_net}
+
+ Debug : ${USE_DEBUG}
+ Profiling : ${USE_PROFILING}
+
+ Building examples : ${BUILD_EXAMPLES}
+ Building test apps : ${BUILD_TESTS}
+ Building tests that fail : ${BUILD_FAILING_TESTS}
+"