diff options
author | John Criswell <criswell@uiuc.edu> | 2004-09-24 21:19:06 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2004-09-24 21:19:06 +0000 |
commit | 4046846d2cb36a6281b853c73776584063cca19d (patch) | |
tree | 6191874566147f65063c83f4f05387e9a0102638 /autoconf | |
parent | 9f011866e90928b9b798692a9cf0180e8f327540 (diff) | |
download | llvm-4046846d2cb36a6281b853c73776584063cca19d.tar.gz llvm-4046846d2cb36a6281b853c73776584063cca19d.tar.bz2 llvm-4046846d2cb36a6281b853c73776584063cca19d.tar.xz |
Updated the last two header files so that they are configured with
AC_CONFIG_HEADERS. This should prevent LLVM from needlessly re-compiling
on a re-configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 10 | ||||
-rw-r--r-- | autoconf/m4/cxx_bidi_iterator.m4 | 7 | ||||
-rw-r--r-- | autoconf/m4/cxx_fwd_iterator.m4 | 7 | ||||
-rw-r--r-- | autoconf/m4/cxx_std_iterator.m4 | 7 |
4 files changed, 17 insertions, 14 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 53377e4e08..c0e6e13fe9 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -42,12 +42,12 @@ dnl Configure header files AC_CONFIG_HEADERS(include/llvm/Config/config.h) dnl Configure other output file -AC_CONFIG_FILES(Makefile.config - include/llvm/Support/ThreadSupport.h - include/llvm/ADT/iterator) +AC_CONFIG_FILES(Makefile.config) AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h]) AC_CONFIG_HEADERS([include/llvm/ADT/hash_map]) AC_CONFIG_HEADERS([include/llvm/ADT/hash_set]) +AC_CONFIG_HEADERS([include/llvm/Support/ThreadSupport.h]) +AC_CONFIG_HEADERS([include/llvm/ADT/iterator]) dnl Do special configuration of Makefiles AC_CONFIG_MAKEFILE(Makefile) @@ -255,8 +255,8 @@ AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],[Define if mallinfo dnl pthread locking functions are optional - but llvm will not be thread-safe dnl without locks. -AC_SEARCH_LIBS(pthread_mutex_lock,pthread,HAVE_PTHREAD_MUTEX_LOCK=1,HAVE_PTHREAD_MUTEX_LOCK=0) -AC_SUBST(HAVE_PTHREAD_MUTEX_LOCK) +AC_SEARCH_LIBS(pthread_mutex_lock,pthread,AC_DEFINE([HAVE_PTHREAD_MUTEX_LOCK],[1],[Have pthread_mutex_lock])) +dnl AC_SUBST(HAVE_PTHREAD_MUTEX_LOCK) dnl Checks for header files. dnl We don't check for ancient stuff or things that are guaranteed to be there diff --git a/autoconf/m4/cxx_bidi_iterator.m4 b/autoconf/m4/cxx_bidi_iterator.m4 index 959d4fc224..d7de85630b 100644 --- a/autoconf/m4/cxx_bidi_iterator.m4 +++ b/autoconf/m4/cxx_bidi_iterator.m4 @@ -13,9 +13,10 @@ using namespace std; #endif]], [[bidirectional_iterator<int,int> t; return 0;]])],[ac_cv_cxx_have_bi_iterator=yes],[ac_cv_cxx_have_bi_iterator=no]) AC_LANG_POP([C++]) ]) -HAVE_BI_ITERATOR=0 if test "$ac_cv_cxx_have_bi_iterator" = yes then - HAVE_BI_ITERATOR=1 + AC_DEFINE(HAVE_BI_ITERATOR,1,[Have bi-directional iterator]) +else + AC_DEFINE(HAVE_BI_ITERATOR,0,[Does not have bi-directional iterator]) fi -AC_SUBST(HAVE_BI_ITERATOR)]) +]) diff --git a/autoconf/m4/cxx_fwd_iterator.m4 b/autoconf/m4/cxx_fwd_iterator.m4 index 73711b5621..eb7660c7c2 100644 --- a/autoconf/m4/cxx_fwd_iterator.m4 +++ b/autoconf/m4/cxx_fwd_iterator.m4 @@ -11,11 +11,12 @@ using namespace std; #endif]], [[forward_iterator<int,int> t; return 0;]])],[ac_cv_cxx_have_fwd_iterator=yes],[ac_cv_cxx_have_fwd_iterator=no]) AC_LANG_POP([C++]) ]) -HAVE_FWD_ITERATOR=0 if test "$ac_cv_cxx_have_fwd_iterator" = yes then - HAVE_FWD_ITERATOR=1 + AC_DEFINE(HAVE_FWD_ITERATOR,1,[Have forward iterator]) +else + AC_DEFINE(HAVE_FWD_ITERATOR,0,[Does not have forward iterator]) fi -AC_SUBST(HAVE_FWD_ITERATOR)]) +]) diff --git a/autoconf/m4/cxx_std_iterator.m4 b/autoconf/m4/cxx_std_iterator.m4 index 578dcc4a21..38a611764c 100644 --- a/autoconf/m4/cxx_std_iterator.m4 +++ b/autoconf/m4/cxx_std_iterator.m4 @@ -15,11 +15,12 @@ using namespace std; ac_cv_cxx_have_std_iterator=no) AC_LANG_POP([C++]) ]) -HAVE_STD_ITERATOR=0 if test "$ac_cv_cxx_have_std_iterator" = yes then - HAVE_STD_ITERATOR=1 + AC_DEFINE(HAVE_STD_ITERATOR,1,[Have std namespace iterator]) +else + AC_DEFINE(HAVE_STD_ITERATOR,0,[Does not have std namespace iterator]) fi -AC_SUBST(HAVE_STD_ITERATOR)]) +]) |