1AC_INIT("", "", [khanh.v.nguyen@intel.com]) 2 3AC_CONFIG_MACRO_DIR(m4) 4 5AS_MIX_VERSION(mixcommon, MIXCOMMON, 0, 1, 7) 6 7AM_INIT_AUTOMAKE($PACKAGE, $VERSION) 8#AM_INIT_AUTOMAKE([-Wall -Werror foreign]) 9 10AC_PROG_CC 11AC_PROG_LIBTOOL 12 13AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes , no) 14 15dnl Give error and exit if we don't have pkgconfig 16if test "x$HAVE_PKGCONFIG" = "xno"; then 17 AC_MSG_ERROR(you need to have pkgconfig installed !) 18fi 19 20GLIB_REQ=2.16 21dnl Check for glib2 without extra fat, useful for the unversioned tool frontends 22dnl PKG_CHECK_MODULES(GLIB_ONLY, glib-2.0 >= $GLIB_REQ,HAVE_GLIB=yes,HAVE_GLIB=no) 23PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQ,HAVE_GLIB=yes,HAVE_GLIB=no) 24if test "x$HAVE_GLIB" = "xno"; then 25 AC_MSG_ERROR(You need glib development packages installed !) 26fi 27 28PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= $GLIB_REQ,HAVE_GOBJECT=yes,HAVE_GOBJECT=no) 29if test "x$HAVE_GOBJECT" = "xno"; then 30 AC_MSG_ERROR(You need glib development packages installed !) 31fi 32 33AC_CONFIG_HEADERS([config.h]) 34AC_CONFIG_FILES([ 35 mixcommon.pc 36 Makefile 37 src/Makefile 38]) 39AC_OUTPUT 40