renatofilho@930: AC_INIT(gmyth-upnp, 0.7.1) renatofilho@929: AC_PREREQ(2.52) renatofilho@929: AC_CONFIG_SRCDIR(configure.ac) renatofilho@929: AC_CANONICAL_BUILD renatofilho@929: AC_CANONICAL_HOST renatofilho@929: AC_ISC_POSIX melunko@249: renatofilho@929: AM_INIT_AUTOMAKE(1.6 dist-bzip2) renatofilho@929: AM_CONFIG_HEADER(config.h) melunko@249: melunko@249: dnl make aclocal work in maintainer mode melunko@249: AC_SUBST(ACLOCAL_AMFLAGS, "-I m4") melunko@249: renatofilho@929: AC_PROG_CXX melunko@249: AC_PROG_CC renatofilho@929: AM_PROG_CC_STDC renatofilho@929: AC_HEADER_STDC renatofilho@929: AC_C_BIGENDIAN renatofilho@929: AC_C_CONST renatofilho@929: renatofilho@929: AC_LIBTOOL_WIN32_DLL renatofilho@929: define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl melunko@249: AC_PROG_LIBTOOL melunko@249: melunko@249: # Checks required packages melunko@249: melunko@249: # Check for Glib2.0 melunko@249: PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no) melunko@249: melunko@249: # Give error and exit if we don't have glib melunko@249: if test "x$HAVE_GLIB" = "xno"; then melunko@249: AC_MSG_ERROR(you need glib-2.0 installed) melunko@249: fi melunko@249: melunko@249: # make GLIB_CFLAGS and GLIB_LIBS available melunko@249: AC_SUBST(GLIB_CFLAGS) melunko@249: AC_SUBST(GLIB_LIBS) melunko@249: melunko@249: # Check for GObject2.0 melunko@249: PKG_CHECK_MODULES(GOBJECT, melunko@249: gobject-2.0, melunko@249: HAVE_GOBJECT=yes, HAVE_GOBJECT=no) melunko@249: melunko@249: # Give error and exit if we don't have gobject melunko@249: if test "x$HAVE_GOBJECT" = "xno"; then melunko@249: AC_MSG_ERROR(you need gobject-2.0 installed) melunko@249: fi melunko@249: melunko@249: # make GOBJECT_CFLAGS and GOBJECT_LIBS available melunko@249: AC_SUBST(GOBJECT_CFLAGS) melunko@249: AC_SUBST(GOBJECT_LIBS) melunko@249: renatofilho@909: ## Check for gmyth-0.7 renatofilho@909: PKG_CHECK_MODULES(LIBGMYTH, gmyth >= 0.7, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no) melunko@249: renatofilho@909: # Give error and exit if we don't have gmyth-0.7 rosfran@252: if test "x$HAVE_LIBGMYTH" = "xno"; then renatofilho@909: AC_MSG_ERROR([you need gmyth installed]) rosfran@252: fi rosfran@252: rosfran@252: # make LIBXML_CFLAGS and LIBXML_LIBS available rosfran@252: AC_SUBST(LIBGMYTH_CFLAGS) rosfran@252: AC_SUBST(LIBGMYTH_LIBS) rosfran@252: renatofilho@909: PKG_CHECK_MODULES(LIBUPNP, libupnp, HAVE_LIBUPNP=yes, HAVE_LIBUPNP=no) rosfran@252: renatofilho@909: if test "x$HAVE_LIBUPNP" = "xno"; then renatofilho@909: AC_MSG_ERROR([you need libupnp installed]) rosfran@252: fi rosfran@252: renatofilho@909: AC_SUBST(LIBUPNP_CFLAGS) renatofilho@909: AC_SUBST(LIBIPNP_LIBS) melunko@249: melunko@249: AC_OUTPUT([ melunko@249: Makefile melunko@249: src/Makefile renatofilho@923: tests/Makefile rosfran@252: gmyth-upnp.pc])