From 53759b345814d36f75e2a534113e3b1cd0120f08 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 1 Jan 2007 11:30:33 +0000 Subject: [PATCH] Modify C++ testing code to pass when CXXFLAGS contains -Werror. (Closes #75) (BTW, -Werror is a call for trouble anyway due to differring gcc versions) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1362 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 89477e3..bb44c52 100644 --- a/configure.ac +++ b/configure.ac @@ -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++]) ]) -- 2.39.5