From 609b0a7674e0ea02a61ab5f6beec890499c7296b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 4 Oct 2006 12:11:03 +0000 Subject: fixed AC_CHECK_CFLAG test (use .c instead of .c++) svn path=/trunk/externals/zexy/; revision=6074 --- src/acinclude.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acinclude.m4 b/src/acinclude.m4 index 4a7ae76..772fecf 100644 --- a/src/acinclude.m4 +++ b/src/acinclude.m4 @@ -33,12 +33,12 @@ fi AC_DEFUN([AC_CHECK_CFLAGS], [ AC_MSG_CHECKING([whether $CC accepts "$1"]) -cat > conftest.c++ << EOF +cat > conftest.c << EOF int main(){ return 0; } EOF -if $CC $CFLAGS -o conftest.o conftest.c++ [$1] > /dev/null 2>&1 +if $CC $CFLAGS [$1] -o conftest.o conftest.c > /dev/null 2>&1 then AC_MSG_RESULT([yes]) CFLAGS="${CFLAGS} [$1]" -- cgit v1.2.1