1 dnl Copyright © 2009-2012, 2015, 2019 Nick Bowler
3 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 dnl This is free software: you are free to do what the fuck you want to.
5 dnl There is NO WARRANTY, to the extent permitted by law.
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 -Wno-portability foreign subdir-objects])
14 AM_SILENT_RULES([yes])
20 LT_CONFIG_LTDL_DIR([libltdl])
22 LTDL_INIT([nonrecursive])
26 m4_include([lib/gnulib.mk])
28 CHECK_GLIB_2([], [gobject])
31 [AS_HELP_STRING([--with-modlib],
32 [specify which module decoding library to use - one of modplug, none or auto. [default=auto]]
34 [with_modlib=$withval],
38 AS_CASE([$with_modlib],
40 [modplug], [DX_LIB_LIBMODPLUG([use_modlib=modplug])],
41 [auto], [DX_LIB_LIBMODPLUG([use_modlib=modplug], [:])],
42 [AC_MSG_ERROR([Invalid argument to --with-modlib: $with_modlib])])
44 AC_MSG_CHECKING([which module library to use])
45 AC_MSG_RESULT([$use_modlib])
47 AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])
48 AM_CONDITIONAL([USE_DUMMYMOD], [test x$use_modlib = xnone])