summaryrefslogtreecommitdiffstats
path: root/llvm/autoconf
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-07-26 16:54:23 +0000
committerReid Kleckner <reid@kleckner.net>2013-07-26 16:54:23 +0000
commit37f69de11b8c1810e29851430da317db5c1350a9 (patch)
treeb1c0e611884c2dcf000ad0098b436dbb888851ba /llvm/autoconf
parent70d98f446e53ad4a8b858ebc6b237c8c416b3645 (diff)
downloadbcm5719-llvm-37f69de11b8c1810e29851430da317db5c1350a9.tar.gz
bcm5719-llvm-37f69de11b8c1810e29851430da317db5c1350a9.zip
Remove dead or useless header checks from cmake and autoconf
On Windows, this improves clean cmake configuration time on my workstation from 1m58s to 1m32s, which is pretty significant. There's probably more that can be done here, but this is the low hanging fruit. Eric volunteered to regenerate ./configure for me. llvm-svn: 187209
Diffstat (limited to 'llvm/autoconf')
-rw-r--r--llvm/autoconf/configure.ac8
-rw-r--r--llvm/autoconf/m4/ltdl.m428
2 files changed, 7 insertions, 29 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index b068a04a9f0..97a14293ea8 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -1531,11 +1531,11 @@ AC_HEADER_TIME
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS([cxxabi.h])
AC_LANG_POP([C++])
-AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
+AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h link.h])
AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h termios.h unistd.h])
-AC_CHECK_HEADERS([utime.h windows.h])
+AC_CHECK_HEADERS([utime.h])
AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h])
-AC_CHECK_HEADERS([sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h])
+AC_CHECK_HEADERS([sys/ioctl.h malloc/malloc.h mach/mach.h])
AC_CHECK_HEADERS([valgrind/valgrind.h])
AC_CHECK_HEADERS([fenv.h])
AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include <fenv.h>]])
@@ -1610,7 +1610,7 @@ AC_CHECK_FUNCS([powf fmodf strtof round ])
AC_CHECK_FUNCS([log log2 log10 exp exp2])
AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ])
AC_CHECK_FUNCS([isatty mkdtemp mkstemp ])
-AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit strdup ])
+AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit ])
AC_CHECK_FUNCS([strerror strerror_r setenv arc4random ])
AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])
AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp writev])
diff --git a/llvm/autoconf/m4/ltdl.m4 b/llvm/autoconf/m4/ltdl.m4
index 0a36dbe7c58..0226f6399db 100644
--- a/llvm/autoconf/m4/ltdl.m4
+++ b/llvm/autoconf/m4/ltdl.m4
@@ -77,15 +77,9 @@ AC_REQUIRE([AC_LTDL_DLSYM_USCORE])
AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS])
AC_REQUIRE([AC_LTDL_FUNC_ARGZ])
-AC_CHECK_HEADERS([assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
- stdio.h unistd.h])
-AC_CHECK_HEADERS([dl.h sys/dl.h dld.h mach-o/dyld.h])
-AC_CHECK_HEADERS([string.h strings.h], [break])
-
-AC_CHECK_FUNCS([strchr index], [break])
-AC_CHECK_FUNCS([strrchr rindex], [break])
-AC_CHECK_FUNCS([memcpy bcopy], [break])
-AC_CHECK_FUNCS([memmove strcmp])
+AC_CHECK_HEADERS([errno.h malloc.h memory.h unistd.h])
+AC_CHECK_HEADERS([mach-o/dyld.h])
+
AC_CHECK_FUNCS([closedir opendir readdir])
])# AC_LIB_LTDL
@@ -385,19 +379,3 @@ if test x"$libltdl_cv_need_uscore" = xyes; then
[Define if dlsym() requires a leading underscore in symbol names.])
fi
])# AC_LTDL_DLSYM_USCORE
-
-# AC_LTDL_FUNC_ARGZ
-# -----------------
-AC_DEFUN([AC_LTDL_FUNC_ARGZ],
-[AC_CHECK_HEADERS([argz.h])
-
-AC_CHECK_TYPES([error_t],
- [],
- [AC_DEFINE([error_t], [int],
- [Define to a type to use for `error_t' if it is not otherwise available.])],
- [#if HAVE_ARGZ_H
-# include <argz.h>
-#endif])
-
-AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify])
-])# AC_LTDL_FUNC_ARGZ
OpenPOWER on IntegriCloud