bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2.0.8p1 build fixes


From: Dave Love
Subject: 2.0.8p1 build fixes
Date: Tue, 23 Sep 2003 17:51:50 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)

These changes allow 2.0.8p1 to build under Irix cc, for instance.
They account for the use of alloca and inline functions.  It looks as
if you need the same thing for 2.1.0b2.

The alloca test assumes alloca.c is added to the distribution for
systems which don't have it.  I can supply a copy.

--- src/cf.defs.h       2003/09/23 09:15:01     1.1
+++ src/cf.defs.h       2003/09/23 09:15:24
@@ -242,6 +242,9 @@
 # include <sched.h>
 #endif
 
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
 
 /*******************************************************************/
 /* Various defines                                                 */
--- configure.ac        2003/09/22 22:39:30     1.1
+++ configure.ac        2003/09/23 09:13:54
@@ -333,6 +333,7 @@
 dnl ######################################################################
 
 AC_C_CONST
+AC_C_INLINE
 
 dnl ######################################################################
 dnl Check for special functions
@@ -343,6 +344,7 @@
 AC_CHECK_FUNCS(strstr putenv drand48 srand48 getaddrinfo)
 AC_CHECK_FUNCS(bcopy mkfifo statfs statvfs door)
 AC_CHECK_FUNCS(sysinfo setsid strdup strrchr strerror snprintf sysconf)
+AC_FUNC_ALLOCA
 
 dnl #######################################################################
 dnl Newer BSD systems don't have a compatible rtentry - use ortentry




reply via email to

[Prev in Thread] Current Thread [Next in Thread]