]> git.meshlink.io Git - catta/commitdiff
Modify C++ testing code to pass when CXXFLAGS contains -Werror. (Closes #75) (BTW...
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Jan 2007 11:30:33 +0000 (11:30 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Jan 2007 11:30:33 +0000 (11:30 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1362 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

configure.ac

index 89477e3de24e3e41ccae596e9fa9eec839362bc3..bb44c52b492bf8f3f41f860ac3a87ea4642ec943 100644 (file)
@@ -60,7 +60,7 @@ AC_PROG_LIBTOOL
 
 AC_CACHE_CHECK([whether the C++ compiler works], [avahi_cv_sys_cxx_works], [
     AC_LANG_PUSH([C++])
-    AC_COMPILE_IFELSE([int main() { }], [avahi_cv_sys_cxx_works=yes],
+    AC_COMPILE_IFELSE([int main() { return 0; }], [avahi_cv_sys_cxx_works=yes],
         [avahi_cv_sys_cxx_works=no])
     AC_LANG_POP([C++])
     ])