diff options
author | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2014-07-23 14:54:03 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2014-07-23 14:54:03 -0300 |
commit | b425ec957a2dc92b872c26b80559bfaca625b121 (patch) | |
tree | 781d3033db9c0826a44d734000a3319a00fe5a17 /configure.ac | |
parent | cb10e929f20cfa2f971e2bee80e8b82b9989ad65 (diff) |
cxx: Fixed --disable-c++11 option
The use of AM_CONDITIONAL for setting LDFLAGS and CXXFLAGS was wrong
because it ends up setting HAVE_CXX11 unconditionally.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 5e6248e46..6188c0561 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -246,13 +246,15 @@ if test "x${HAVE_CXX11}" = "x1" -a "x${want_cxx11}" = "xyes"; then | |||
246 | evas-cxx >= efl_version \ | 246 | evas-cxx >= efl_version \ |
247 | " | 247 | " |
248 | have_cxx11="yes" | 248 | have_cxx11="yes" |
249 | LDFLAGS="${LDFLAGS} -shared -fPIC -DPIC" | ||
250 | CXXFLAGS="${CXXFLAGS} -fPIC -DPIC" | ||
249 | ], | 251 | ], |
250 | [have_cxx11="no"] | 252 | [have_cxx11="no"] |
251 | ) | 253 | ) |
254 | else | ||
255 | have_cxx11="no" | ||
252 | fi | 256 | fi |
253 | AM_CONDITIONAL([HAVE_CXX11], [test "x${have_cxx11}" = "xyes"]) | 257 | AM_CONDITIONAL([HAVE_CXX11], [test "x${have_cxx11}" = "xyes"]) |
254 | AM_CONDITIONAL([HAVE_CXX11], [LDFLAGS="${LDFLAGS} -shared -fPIC -DPIC"]) | ||
255 | AM_CONDITIONAL([HAVE_CXX11], [CXXFLAGS="${CXXFLAGS} -fPIC -DPIC"]) | ||
256 | 258 | ||
257 | have_elementary_x="no" | 259 | have_elementary_x="no" |
258 | want_elementary_x="auto" | 260 | want_elementary_x="auto" |
@@ -772,7 +774,9 @@ echo | |||
772 | echo "Compilation................: make (or gmake)" | 774 | echo "Compilation................: make (or gmake)" |
773 | echo " CPPFLAGS.................: $CPPFLAGS" | 775 | echo " CPPFLAGS.................: $CPPFLAGS" |
774 | echo " CFLAGS...................: $CFLAGS" | 776 | echo " CFLAGS...................: $CFLAGS" |
777 | if test "x${have_cxx11}" = "xyes"; then | ||
775 | echo " CXXFLAGS.................: $CXXFLAGS" | 778 | echo " CXXFLAGS.................: $CXXFLAGS" |
779 | fi | ||
776 | echo " LDFLAGS..................: $LDFLAGS" | 780 | echo " LDFLAGS..................: $LDFLAGS" |
777 | echo | 781 | echo |
778 | if test "${build_tests}" = "none"; then | 782 | if test "${build_tests}" = "none"; then |