diff options
author | Ken Raeburn <raeburn@mit.edu> | 2002-09-14 02:45:50 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2002-09-14 02:45:50 +0000 |
commit | 40201aadec103327acfec591aee25a43f5531ed6 (patch) | |
tree | e32801f609418109c6fabe66b0b3e1f42f9ed5d2 /src/aclocal.m4 | |
parent | 25935ea0f4fcd60eca8dba0371ea168fd729e908 (diff) | |
download | krb5-40201aadec103327acfec591aee25a43f5531ed6.tar.gz krb5-40201aadec103327acfec591aee25a43f5531ed6.tar.xz krb5-40201aadec103327acfec591aee25a43f5531ed6.zip |
Work out pathname for gcc fixincludes headers via "-print-libgcc-file-name" and
substitutions in depgen.sed at "make depend" time, and emit patterns into
depfix2.sed to strip them out of dependencies, instead of hard-coding pathnames
for Athena gcc installations we know about in depfix.sed.
Verify that gcc is being used, before trying to rebuild dependencies.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14861 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 3ccec6b62..af8865eac 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -444,6 +444,12 @@ AC_REQUIRE([KRB5_AC_CHECK_FOR_CFLAGS]) AC_ARG_WITH([cc],AC_HELP_STRING(--with-cc=COMPILER,deprecated; use CC=...), AC_MSG_ERROR(option --with-cc is deprecated; use CC=...)) AC_PROG_CC +krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu +if test $ac_cv_c_compiler_gnu = yes ; then + HAVE_GCC=yes + else HAVE_GCC= +fi +AC_SUBST(HAVE_GCC) # maybe add -Waggregate-return, or can we assume that actually works by now? # -Wno-comment is for SunOS system header <sys/stream.h> extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \ |