summaryrefslogtreecommitdiff
path: root/autoconf/acinclude.m4
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-23 18:16:07 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-23 18:16:07 +0000
commit008bb70f8aac4fc51549fa0a1510a3c7f7ac11ac (patch)
tree94d8f40b2fe79dd37fae3b3701b825322d535ea4 /autoconf/acinclude.m4
parent295d4b859023f32d1a172922195ff8c252266016 (diff)
downloadllvm-008bb70f8aac4fc51549fa0a1510a3c7f7ac11ac.tar.gz
llvm-008bb70f8aac4fc51549fa0a1510a3c7f7ac11ac.tar.bz2
llvm-008bb70f8aac4fc51549fa0a1510a3c7f7ac11ac.tar.xz
Make all iterator checks use AC_SUBST instead of AC_DEFINE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/acinclude.m4')
-rw-r--r--autoconf/acinclude.m421
1 files changed, 15 insertions, 6 deletions
diff --git a/autoconf/acinclude.m4 b/autoconf/acinclude.m4
index 972721ce66..4a5612e347 100644
--- a/autoconf/acinclude.m4
+++ b/autoconf/acinclude.m4
@@ -6013,9 +6013,12 @@ using namespace std;
ac_cv_cxx_have_std_iterator=yes, ac_cv_cxx_have_std_iterator=no)
AC_LANG_RESTORE
])
-if test "$ac_cv_cxx_have_std_iterator" = yes; then
- AC_DEFINE(HAVE_STD_ITERATOR,,[define if the compiler has STL iterators])
+HAVE_STD_ITERATOR=0
+if test "$ac_cv_cxx_have_std_iterator" = yes
+then
+ HAVE_STD_ITERATOR=1
fi
+AC_SUBST(HAVE_STD_ITERATOR)
])
#
@@ -6035,9 +6038,12 @@ using namespace std;
ac_cv_cxx_have_bi_iterator=yes, ac_cv_cxx_have_bi_iterator=no)
AC_LANG_RESTORE
])
-if test "$ac_cv_cxx_have_bi_iterator" = yes; then
- AC_DEFINE(HAVE_BI_ITERATOR,,[define if the compiler has bidirectional iterator])
+HAVE_BI_ITERATOR=0
+if test "$ac_cv_cxx_have_bi_iterator" = yes
+then
+ HAVE_BI_ITERATOR=1
fi
+AC_SUBST(HAVE_BI_ITERATOR)
])
#
@@ -6057,9 +6063,12 @@ using namespace std;
ac_cv_cxx_have_fwd_iterator=yes, ac_cv_cxx_have_fwd_iterator=no)
AC_LANG_RESTORE
])
-if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
- AC_DEFINE(HAVE_FWD_ITERATOR,,[define if the compiler has STL iterators])
+HAVE_FWD_ITERATOR=0
+if test "$ac_cv_cxx_have_fwd_iterator" = yes
+then
+ HAVE_FWD_ITERATOR=1
fi
+AC_SUBST(HAVE_FWD_ITERATOR)
])
#