Set -std=XXX flags earlier; use in AC_COMPILE_IFELSE()
authorPeter Griess <pgriess@fb.com>
Wed, 9 Oct 2013 18:50:05 +0000 (11:50 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 24 Oct 2013 21:53:41 +0000 (14:53 -0700)
commit9d456e4f65bb7bdf84c2e41dd4fa9820588726b5
tree189e915835a13abcb6149eb093ba6f86a5b6b0bc
parente5b563e9dad4c29ce666653da8a294708ef06a0e
Set -std=XXX flags earlier; use in AC_COMPILE_IFELSE()

Summary:
- We had a bug where AC_COMPILE_IFELSE() invocations weren't using the
same -std=XXX flags that we're using in our actual build. This
happened because we made these checks before figuring out which
flag to use.
- Stop setting -std=XXX flags in CPPFLAGS. It's only useful for
CFLAGS/CXXFLAGS.

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

Reviewed By: meyering@fb.com

FB internal diff: D1003972
folly/configure.ac