[llvm-commits] CVS: llvm/autoconf/configure.ac
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Feb 23 16:08:33 PST 2004
Changes in directory llvm/autoconf:
configure.ac updated: 1.77 -> 1.78
---
Log message:
Add SUBSTing checks for sys/types.h and inttypes.h; add DataTypes.h to AC_OUTPUT.
---
Diffs of the changes: (+15 -2)
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.77 llvm/autoconf/configure.ac:1.78
--- llvm/autoconf/configure.ac:1.77 Mon Feb 23 15:30:36 2004
+++ llvm/autoconf/configure.ac Mon Feb 23 16:07:01 2004
@@ -234,6 +234,18 @@
dnl Checks for POSIX and other various system-specific header files
AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h)
+dnl Check for things that need to be included in public headers, and so
+dnl for which we may not have access to a HAVE_* preprocessor #define.
+dnl (primarily used in DataTypes.h)
+AC_CHECK_HEADER([sys/types.h],
+ [INCLUDE_SYS_TYPES_H='#include <sys/types.h>'],
+ [INCLUDE_SYS_TYPES_H=''])
+AC_SUBST(INCLUDE_SYS_TYPES_H)
+AC_CHECK_HEADER([inttypes.h],
+ [INCLUDE_INTTYPES_H='#include <inttypes.h>'],
+ [INCLUDE_INTTYPES_H=''])
+AC_SUBST(INCLUDE_INTTYPES_H)
+
dnl Check for types
AC_TYPE_PID_T
AC_TYPE_SIZE_T
@@ -446,10 +458,11 @@
dnl Create the output files
AC_OUTPUT(Makefile.config
- include/Support/iterator
+ include/Support/DataTypes.h
+ include/Support/ThreadSupport.h
include/Support/hash_map
include/Support/hash_set
- include/Support/ThreadSupport.h)
+ include/Support/iterator)
dnl Warn loudly if llvm-gcc was not obviously working
if test $llvmgccwarn = yes
More information about the llvm-commits
mailing list