diff options
author | James Peach <jpeach@samba.org> | 2006-02-10 02:46:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:01 -0500 |
commit | 30122f61c35b1af977efd6e4727204c2e2e1c7a3 (patch) | |
tree | 5e647c4e47201503e2f6d0f32263c04d8130d4ca /source/aclocal.m4 | |
parent | 341d554e2f7a117c7098633b24cb18c7ff25a011 (diff) | |
download | samba-30122f61c35b1af977efd6e4727204c2e2e1c7a3.tar.gz samba-30122f61c35b1af977efd6e4727204c2e2e1c7a3.tar.xz samba-30122f61c35b1af977efd6e4727204c2e2e1c7a3.zip |
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.
Diffstat (limited to 'source/aclocal.m4')
-rw-r--r-- | source/aclocal.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/aclocal.m4 b/source/aclocal.m4 index 3d6642d3737..86c43f80dc0 100644 --- a/source/aclocal.m4 +++ b/source/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) |