Detect libc++ in configure.ac.
authorPeter Griess <pgriess@fb.com>
Tue, 8 Oct 2013 23:57:39 +0000 (16:57 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 24 Oct 2013 21:53:41 +0000 (14:53 -0700)
commit77cc480dad0500f00717a5feec7ac37a4e3ac0a9
treef9c563af2c2fc3b93dad69cdb66020920ce89ffe
parent1342be122f3d7bdaa33880851786716b810591b8
Detect libc++ in configure.ac.

Summary:
- Explicitly detect use of libc++ in configure.ac and reflect this in
folly-config.h. Do this rather than looking for to pop up organically
_LIBCPP_VERSION since this only exists if we've included some libc++
header files prior to refernce. This isn't always the case, e.g. in
Portability.h.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: simpkins@fb.com

FB internal diff: D1002958
folly/Portability.h
folly/configure.ac
folly/test/ScopeGuardTest.cpp