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