CCFLAGS=@CFLAGS@ -I.. -I../hdrs -I/usr/include/lua5.1 @CPPFLAGS@ @PCRE_CFLAGS@ -Werror
LDFLAGS=@LDFLAGS@
-CLIBS=@LIBS@ @PCRE_LIBS@ -llua5.1
+CLIBS=@LIBS@ @PCRE_LIBS@ @LIBLTDL@ -llua5.1
INSTALL=@INSTALL@
INSTALLDIR=$installdir
CP=@CP@
AC_PREREQ([2.67])
AC_INIT([CobraMUSH], [0.80], [http://redmine.cobramush.org])
AC_CONFIG_HEADERS(config.h)
-# Setup some default stuff we need set in config.h
-AC_DEFINE(PACKAGE, ["CobraMUSH"], [Name of package being built])
-AC_DEFINE(WIN32_CDECL, , [Defined as __cdecl if the compiler can handle tat keyword to specify C-style argument passing convetions.])
-AH_TOP([
-#ifndef _CONFIG_H_
-#define _CONFIG_H_
- ])
-AH_BOTTOM([
-#ifdef _MSC_VER
-#define WIN32_CDECL __cdecl
-#else
-#define WIN32_CDECL
-#endif
-#ifdef HAVE_INOTIFY_INIT
-#define HAVE_INOTIFY
-#endif
-#if HAVE_STDBOOL_H
-# include <stdbool.h>
-#else
-# if ! HAVE__BOOL
-# ifdef __cplusplus
-typedef bool _Bool;
-# else
-# define _Bool signed char
-# endif
-# endif
-# define bool _Bool
-# define false 0
-# define true 1
-# define __bool_true_false_are_defined 1
-#endif
-#ifdef HAVE_SSL
-#define HAS_OPENSSL
-#endif
-/* Someday work to get rid of these. They're left over from the pre-void days */
-typedef void* Malloc_t;
-typedef void Free_t;
-#endif /* _CONFIG_H_ */
- ])
+m4_include(m4/confsetup.m4)
AC_CANONICAL_BUILD
[LIBLTDL=-lltdl], [LIBLTDL=])],
[LIBLTDL=])
+AC_SUBST([LIBLTDL])
### Programs
AC_CHECK_SIZEOF([void *])
### Libraries
-AC_CHECK_LIB(ltdl, [lt_dlopen])
AC_CHECK_LIB(m, sin)
AC_CHECK_LIB(intl, gettext)
AC_CHECK_LIB(crypt, crypt)
--- /dev/null
+# Setup some default stuff we need set in config.h
+AC_DEFINE(PACKAGE, ["CobraMUSH"], [Name of package being built])
+AC_DEFINE(WIN32_CDECL, , [Defined as __cdecl if the compiler can handle tat keyword to specify C-style argument passing convetions.])
+AH_TOP([
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
+ ])
+AH_BOTTOM([
+#ifdef _MSC_VER
+#define WIN32_CDECL __cdecl
+#else
+#define WIN32_CDECL
+#endif
+#ifdef HAVE_INOTIFY_INIT
+#define HAVE_INOTIFY
+#endif
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# if ! HAVE__BOOL
+# ifdef __cplusplus
+typedef bool _Bool;
+# else
+# define _Bool signed char
+# endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
+#ifdef HAVE_SSL
+#define HAS_OPENSSL
+#endif
+
+/* Someday work to get rid of these. They're left over from the pre-void days */
+typedef void* Malloc_t;
+typedef void Free_t;
+#endif /* _CONFIG_H_ */
+ ])
+
+