RESTRICT define in use.
IssueID #240
CCFLAGS=@CFLAGS@ -I.. -I../hdrs -I/usr/include/lua5.1 @CPPFLAGS@ @PCRE_CFLAGS@ -Werror
LDFLAGS=@LDFLAGS@
-CLIBS=@LIBS@ @PCRE_LIBS@ -llua5.1 -lltdl
+CLIBS=@LIBS@ @PCRE_LIBS@ -llua5.1
INSTALL=@INSTALL@
INSTALLDIR=$installdir
CP=@CP@
-
+m4_include([m4/ltdl.m4])
# SQL Includes
m4_include(m4/lib_mysql.m4)
m4_include(m4/sqlite.m4)
m4_include(m4/ax_ld_check_flag.m4)
m4_include(m4/ax_check_openssl.m4)
-# m4_include(m4/ltdl.m4)
# ===========================================================================
# http://autoconf-archive.cryp.to/ax_c___attribute__.html
/* config.h.in. Generated from configure.ac by autoheader. */
+
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
+
+
/* Don't use translation messages */
#undef DONT_TRANSLATE
/* sys/types.h */
#undef I_SYS_TYPES
+/* Name of package being built */
+#undef PACKAGE
+
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define if uptime exists */
#undef UPTIME
+/* Defined as __cdecl if the compiler can handle tat keyword to specify
+ C-style argument passing convetions. */
+#undef WIN32_CDECL
+
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */
/* Define as `fork' if `vfork' does not work. */
#undef vfork
+
+
+#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_ */
+
# this is the gnu suggested m4 macro file for lua.. doesn't work so well though
-AC_PREREQ([2.61])
-AC_INIT([CobraMUSH], [0.80], [devteam@cobramush.org])
+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_ */
+ ])
+
AC_CANONICAL_BUILD
if test "x$CFLAGS" = "x"; then
-# lua
-# Need to create lua detection that works..
-
-
### Programs
AC_PATH_PROG(CAT, cat)
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)
static NVAL angle_to_rad(NVAL angle, const char *from);
static NVAL rad_to_angle(NVAL angle, const char *to);
-static double frac(double v, double *restrict n, double *RESTRICT d,
+static double frac(double v, double *restrict n, double *restrict d,
double error);
int format_long(intmax_t n, char *buff, char **bp, int maxlen, int base);
* \return -1.0 if (v < MIN || v > MAX || error < 0.0) | (v - n/d) / v | otherwise.
*/
static double
-frac(double v, double *restrict n, double *RESTRICT d, double error)
+frac(double v, double *restrict n, double *restrict d, double error)
{
/* Based on a routine found in netlib (http://www.netlib.org) by