AC_PREREQ(2.53) AC_INIT(gupnp-tools, 0.1.1, http://www.gupnp.org/) AM_INIT_AUTOMAKE() AC_CONFIG_SRCDIR(src/universal-cp.h) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_ISC_POSIX AC_PROG_CC AC_STDC_HEADERS AC_PROG_LIBTOOL AC_FUNC_MMAP GUPNP_REQUIRED=0.4 LIBGLADE_REQUIRED=2.6.0 PKG_CHECK_MODULES(LIBGUPNP, gupnp-1.0 >= $GUPNP_REQUIRED \ libglade-2.0 >= $LIBGLADE_REQUIRED) # glib-genmarshal GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) # Debugging AC_ARG_ENABLE(debug, [ --enable-debug enable debugging],, enable_debug=no) if test "x$enable_debug" = "xyes"; then CFLAGS="$CFLAGS -g -Wall -Werror" fi # Gettext GETTEXT_PACKAGE=gupnp-tools AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used]) ALL_LINGUAS="" AM_GLIB_GNU_GETTEXT AM_GLIB_DEFINE_LOCALEDIR([LOCALEDIR]) AC_OUTPUT([ Makefile src/Makefile src/pixmaps/Makefile ])