summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-09-14 06:17:21 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-09-14 06:17:21 +0000
commitd28c7c87d77061cee22af8a46865f4fa5d23cae2 (patch)
treea5aac94a5a73308affc179f4d9b10e9dd9b973fc
parent3f0ffd31cf0331fb3f26f34353bcc34124b7dc7e (diff)
downloadbcm5719-llvm-d28c7c87d77061cee22af8a46865f4fa5d23cae2.tar.gz
bcm5719-llvm-d28c7c87d77061cee22af8a46865f4fa5d23cae2.zip
Add a HAVE_MACH_MACH_H #define to detect the presence of the mach/mach.h
header file on Darwin. llvm-svn: 30319
-rw-r--r--llvm/autoconf/configure.ac2
-rwxr-xr-xllvm/configure3
-rw-r--r--llvm/include/llvm/Config/config.h.in3
3 files changed, 6 insertions, 2 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index 1490d009827..65a1ce3956b 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -619,7 +619,7 @@ AC_HEADER_TIME
AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h unistd.h utime.h])
AC_CHECK_HEADERS([windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h])
-AC_CHECK_HEADERS([sys/types.h malloc/malloc.h])
+AC_CHECK_HEADERS([sys/types.h malloc/malloc.h mach/mach.h])
if test "$ENABLE_THREADS" -eq 1 ; then
AC_CHECK_HEADERS(pthread.h)
fi
diff --git a/llvm/configure b/llvm/configure
index 7f35be5d566..06c053140ce 100755
--- a/llvm/configure
+++ b/llvm/configure
@@ -28833,7 +28833,8 @@ done
-for ac_header in sys/types.h malloc/malloc.h
+
+for ac_header in sys/types.h malloc/malloc.h mach/mach.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
diff --git a/llvm/include/llvm/Config/config.h.in b/llvm/include/llvm/Config/config.h.in
index 705e8558e1f..0c12b1d5ed2 100644
--- a/llvm/include/llvm/Config/config.h.in
+++ b/llvm/include/llvm/Config/config.h.in
@@ -200,6 +200,9 @@
/* Define if lt_dlopen() is available on this platform */
#undef HAVE_LT_DLOPEN
+/* Define to 1 if you have the <mach/mach.h> header file. */
+#undef HAVE_MACH_MACH_H
+
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
#undef HAVE_MACH_O_DYLD_H
OpenPOWER on IntegriCloud