3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(silent_bob, 1.1)
10 if test $prefix = "NONE"; then
11 prefix=$ac_default_prefix
13 AC_DEFINE_UNQUOTED(PREFIX, "$prefix", [Install prefix])
14 eval DATA_DIR=`echo $datadir`
15 AC_DEFINE_UNQUOTED(CONFIG_DATA_DIR, "$DATA_DIR", [Data dir path])
17 AC_CHECK_LIB(gclib_c, gc_realloc, HAVE_GCLIB="yes")
18 if test "x$HAVE_GCLIB" = "x"; then
19 AC_MSG_ERROR([To build SilentBob you need to install GCLib first (http://sourceforge.net/projects/silentbob)])
21 AC_OUTPUT(Makefile data/Makefile src/sblib/Makefile src/Makefile src/plugins/Makefile)