[svn r600] Added clean-up code to the GMyth test cases.
2 # Process this file with autoconf to produce a configure script.
6 AC_INIT([gmyth-stream],[0.1])
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CONFIG_HEADER(config.h)
11 AS_VERSION(gmyth-stream, GMYTH_STREAM, 0, 1, 0, 0, GMYTH_STREAM_SVN="no", GMYTH_STREAM_SVN="yes")
12 GMYTH_STREAM_MAJORMINOR=$GMYTH_STREAM_MAJOR_VERSION.$GMYTH_STREAM_MINOR_VERSION
13 AC_SUBST(GMYTH_STREAM_MAJORMINOR)
15 dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
17 dnl make aclocal work in maintainer mode
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
20 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
22 # Checks for programs.
24 # Make sure CFLAGS is defined to stop AC_PROC_CC adding -g
25 CFLAGS="$CFLAGS -Wall"
29 # Checks for libraries.
31 # Checks for header files.
34 #Test if --disable-debug given
36 AC_HELP_STRING([--disable-debug], [enable debugging mode]))
37 if test x"$enable_debug" != xno; then
38 CFLAGS="$CFLAGS -g -DGMYTH_STREAM_USE_DEBUG"
40 CFLAGS="$CFLAGS -O2 -DG_DISABLE_CHECKS"
44 # Checks required packages ####################################################
45 ###############################################################################
47 ## Check for pkgconfig ########################################################
48 ###############################################################################
49 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
50 if test "x$HAVE_PKGCONFIG" = "xno"; then
51 AC_MSG_ERROR(you need to have pkgconfig installed !)
54 ## Check for Glib2.0 ##########################################################
55 ###############################################################################
56 PKG_CHECK_MODULES(GLIB, glib-2.0 gobject-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
57 if test "x$HAVE_GLIB" = "xno"; then
58 AC_MSG_ERROR(you need glib-2.0 installed)
69 gmyth-stream-client.pc
74 if test "x$enable_debug" != "xno"; then
75 AC_MSG_NOTICE([Debug: Enabled])
77 AC_MSG_NOTICE([Debug: Disabled])