]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't check for tr1/type_traits in configure if type_traits was found.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Sep 2013 23:48:52 +0000 (23:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Sep 2013 23:48:52 +0000 (23:48 +0000)
This is just an optimization: don't waste time checking for tr1 header if we
already found the standard one that we're going to use if it's available.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index e5e08e50206b6055ec78ec869ac61bb937ace5e3..fb6bd0dd31b5636f580e4720e4d2401478a7a4df 100755 (executable)
--- a/configure
+++ b/configure
@@ -21894,7 +21894,7 @@ if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   cat >>confdefs.h <<_ACEOF
 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
-
+ break
 fi
 
 done
index 48442ab9252bd0197aa595b2e47f6edbb9481255..4ae4fc3e65a65a22b77a6e212685f651ac304fa8 100644 (file)
@@ -2104,7 +2104,7 @@ if test "$wxUSE_STL" = "yes"; then
     fi
 fi
 
-AC_CHECK_HEADERS([type_traits tr1/type_traits])
+AC_CHECK_HEADERS([type_traits tr1/type_traits], break)
 
 dnl check for atomic operations builtins for wx/atomic.h:
 WX_ATOMIC_BUILTINS