+dnl Copyright (C) 2009 Nick Bowler
+dnl Copying and distribution of this file, with or without modification,
+dnl are permitted in any medium without royalty provided the copyright
+dnl notice and this notice are preserved. This file is offered as-is,
+dnl without any warranty.
+
AC_PREREQ(2.62)
AC_INIT([upkg],[0.1],[nbowler@draconx.ca])
AC_CONFIG_SRCDIR([src/libupkg.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC_C99
gl_EARLY
gl_INIT
-AC_ARG_WITH([gobject],
- [AS_HELP_STRING([--with-gobject],
- [build tools requiring libgobject [default=yes]]
- )],
- [],
- [with_gobject=yes])
-
-have_gobject=no
-if test x$with_gobject = xyes; then
-AM_PATH_GLIB_2_0(, [have_gobject=yes], [have_gobject=no], [gobject])
-fi
+CHECK_GLIB_2([], [gobject])
AC_ARG_WITH([modlib],
[AS_HELP_STRING([--with-modlib],
AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])
AM_CONDITIONAL([USE_DUMMYMOD], [test x$use_modlib = xnone])
-AM_CONDITIONAL([BUILD_UPKG], [test x$have_gobject = xyes])
-
AC_CONFIG_FILES([
Makefile
libltdl/Makefile
lib/Makefile
src/Makefile
+ libuobject.pc
])
AC_OUTPUT