1 AC_INIT(gmyth-upnp, 0.7.0)
3 AC_CONFIG_SRCDIR(configure.ac)
8 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
9 AM_CONFIG_HEADER(config.h)
11 dnl make aclocal work in maintainer mode
12 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
22 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
25 # Checks required packages
28 PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
30 # Give error and exit if we don't have glib
31 if test "x$HAVE_GLIB" = "xno"; then
32 AC_MSG_ERROR(you need glib-2.0 installed)
35 # make GLIB_CFLAGS and GLIB_LIBS available
39 # Check for GObject2.0
40 PKG_CHECK_MODULES(GOBJECT,
42 HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
44 # Give error and exit if we don't have gobject
45 if test "x$HAVE_GOBJECT" = "xno"; then
46 AC_MSG_ERROR(you need gobject-2.0 installed)
49 # make GOBJECT_CFLAGS and GOBJECT_LIBS available
50 AC_SUBST(GOBJECT_CFLAGS)
51 AC_SUBST(GOBJECT_LIBS)
53 ## Check for gmyth-0.7
54 PKG_CHECK_MODULES(LIBGMYTH, gmyth >= 0.7, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no)
56 # Give error and exit if we don't have gmyth-0.7
57 if test "x$HAVE_LIBGMYTH" = "xno"; then
58 AC_MSG_ERROR([you need gmyth installed])
61 # make LIBXML_CFLAGS and LIBXML_LIBS available
62 AC_SUBST(LIBGMYTH_CFLAGS)
63 AC_SUBST(LIBGMYTH_LIBS)
65 PKG_CHECK_MODULES(LIBUPNP, libupnp, HAVE_LIBUPNP=yes, HAVE_LIBUPNP=no)
67 if test "x$HAVE_LIBUPNP" = "xno"; then
68 AC_MSG_ERROR([you need libupnp installed])
71 AC_SUBST(LIBUPNP_CFLAGS)
72 AC_SUBST(LIBIPNP_LIBS)