1 dnl Copyright (C) 2009 Nick Bowler
2 dnl Copying and distribution of this file, with or without modification,
3 dnl are permitted in any medium without royalty provided the copyright
4 dnl notice and this notice are preserved. This file is offered as-is,
5 dnl without any warranty.
8 AC_INIT([upkg],[0.1],[nbowler@draconx.ca])
9 AC_CONFIG_SRCDIR([src/libupkg.c])
10 AC_CONFIG_HEADER([config.h])
11 AC_CONFIG_MACRO_DIR([m4])
13 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
14 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
19 LT_CONFIG_LTDL_DIR([libltdl])
21 LTDL_INIT([recursive])
23 AM_CONDITIONAL([BUNDLED_LIBLTDL], [test x$LTDLDEPS != x])
27 CHECK_GLIB_2([], [gobject])
30 [AS_HELP_STRING([--with-modlib],
31 [specify which module decoding library to use - one of modplug, none or auto. [default=auto]]
33 [with_modlib=$withval],
41 CHECK_LIBMODPLUG([use_modlib=modplug], [])
44 CHECK_LIBMODPLUG([have_libmodplug=yes], [have_libmodplug=no])
46 if test x$have_libmodplug = xyes; then
53 AC_MSG_ERROR([Invalid argument to --with-modlib: $with_modlib])
56 AC_MSG_CHECKING([which module library to use])
57 AC_MSG_RESULT([$use_modlib])
59 AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])
60 AM_CONDITIONAL([USE_DUMMYMOD], [test x$use_modlib = xnone])