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
This commit is contained in:
Brian Gaeke 2004-02-23 18:16:07 +00:00
parent 295d4b8590
commit 008bb70f8a

View File

@ -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)
])
#