Code

Clean up after checking compiler flags and fix C++ tests.
authorSebastian Harl <sh@tokkee.org>
Wed, 28 Oct 2015 22:19:52 +0000 (23:19 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 28 Oct 2015 22:19:52 +0000 (23:19 +0100)
They just happened to work fine when done right after C tests.

configure.ac

index af72e21fd742dfd05b9b7b1307a0b4a381a01fb3..95394ebd839bbd146fe90df994693d348b4c6721 100644 (file)
@@ -83,16 +83,16 @@ test_cc_flags() {
        AC_LANG_CONFTEST([int main(void){}])
        $CC -c conftest.c $CFLAGS $STRICT_CFLAGS $@ > /dev/null 2> /dev/null
        ret=$?
-       rm -f conftest.o
+       rm -f conftest.o conftest.c
        return $ret
 }
 
 test_cxx_flags() {
        AC_LANG_PUSH(C++)
        AC_LANG_CONFTEST([int main(void){}])
-       $CXX -c conftest.c $CXXFLAGS $STRICT_CXXFLAGS $@ > /dev/null 2> /dev/null
+       $CXX -c conftest.cpp $CXXFLAGS $STRICT_CXXFLAGS $@ > /dev/null 2> /dev/null
        ret=$?
-       rm -f conftest.o
+       rm -f conftest.o conftest.cpp
        AC_LANG_POP(C++)
        return $ret
 }