From 457e6ac0430abc9961747366e0ec90d755362d1d Mon Sep 17 00:00:00 2001 From: James Peach Date: Fri, 10 Feb 2006 02:46:45 +0000 Subject: r13425: Revert all the "clever" compiler options checks. They broke the build on Solaris, AIX and S390. The fundamental problem is that macros like AX_CFLAGS_IRIX_OPTION can spuriously succeed. (This used to be commit 30122f61c35b1af977efd6e4727204c2e2e1c7a3) --- source3/aclocal.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source3/aclocal.m4') diff --git a/source3/aclocal.m4 b/source3/aclocal.m4 index 3d6642d373..86c43f80dc 100644 --- a/source3/aclocal.m4 +++ b/source3/aclocal.m4 @@ -76,6 +76,18 @@ AC_DEFUN(SMB_SUBSYSTEM, ifelse([$2], , :, [rm -f $2]) ]) +dnl AC_PROG_CC_FLAG(flag) +AC_DEFUN(AC_PROG_CC_FLAG, +[AC_CACHE_CHECK(whether ${CC-cc} accepts -$1, ac_cv_prog_cc_$1, +[echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -$1 -c conftest.c 2>&1`"; then + ac_cv_prog_cc_$1=yes +else + ac_cv_prog_cc_$1=no +fi +rm -f conftest* +])]) + dnl see if a declaration exists for a function or variable dnl defines HAVE_function_DECL if it exists dnl AC_HAVE_DECL(var, includes) -- cgit