[llvm-commits] CVS: llvm/autoconf/configure.ac

Brian Gaeke gaeke at cs.uiuc.edu
Wed Oct 8 16:45:01 PDT 2003


Changes in directory llvm/autoconf:

configure.ac updated: 1.36 -> 1.37

---
Log message:

Use 3-arg form of AC_DEFINE.
Check for strsignal(), which isn't found everywhere, and sys_siglist,
 which can be used to implement it.


---
Diffs of the changes:  (+8 -4)

Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.36 llvm/autoconf/configure.ac:1.37
--- llvm/autoconf/configure.ac:1.36	Tue Oct  7 16:57:39 2003
+++ llvm/autoconf/configure.ac	Wed Oct  8 16:44:07 2003
@@ -407,10 +407,10 @@
 AC_CHECK_LIB(elf, elf_begin)
 
 dnl dlopen() is required for plugin support.
-AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1]),AC_MSG_WARN([dlopen() not found - disabling plugin support]))
+AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1],[Define if dlopen() is available on this platform.]),AC_MSG_WARN([dlopen() not found - disabling plugin support]))
 
 dnl mallinfo is optional; the code can compile (minus features) without it
-AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1]))
+AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],[Define if mallinfo() is available on this platform.]))
 
 dnl
 dnl The math libraries are used by the test code, but not by the actual LLVM
@@ -449,7 +449,7 @@
 AC_C_INLINE
 
 dnl Check for machine endian-ness
-AC_C_BIGENDIAN(AC_DEFINE([ENDIAN_BIG]),AC_DEFINE(ENDIAN_LITTLE))
+AC_C_BIGENDIAN(AC_DEFINE([ENDIAN_BIG],[],[Define if the machine is Big-Endian]),AC_DEFINE([ENDIAN_LITTLE],[],[Define if the machine is Little-Endian]))
 
 dnl Check for types
 AC_TYPE_PID_T
@@ -481,7 +481,11 @@
 fi
 AC_HEADER_MMAP_ANONYMOUS
 AC_TYPE_SIGNAL
-AC_CHECK_FUNCS(getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll)
+AC_CHECK_FUNCS(getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll strsignal)
+AC_CHECK_DECLS([sys_siglist],[],[],[
+#if HAVE_SIGNAL_H
+#include <signal.h>
+#endif])
 
 dnl
 dnl Need to check mmap for MAP_PRIVATE, MAP_ANONYMOUS, MAP_ANON, MAP_FIXED





More information about the llvm-commits mailing list