summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2005-06-06 20:37:22 +0000
committerKen Raeburn <raeburn@mit.edu>2005-06-06 20:37:22 +0000
commit19515e00c276b3e2d630d38f74d086b9d6b70d36 (patch)
tree1875536f9259d029ac7bec824dd6393c7a22a15c
parenta89f2c9654fefb3fef6539030a6267ef59c14f7e (diff)
downloadkrb5-19515e00c276b3e2d630d38f74d086b9d6b70d36.tar.gz
krb5-19515e00c276b3e2d630d38f74d086b9d6b70d36.tar.xz
krb5-19515e00c276b3e2d630d38f74d086b9d6b70d36.zip
Fix gcc preprocessor warnings due to last change
* configure.in: Put #undef for the PACKAGE_* symbols at the start of autoconf.h. Use a leading comment to hide the #undef from the autoconf substitutions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17228 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/ChangeLog6
-rw-r--r--src/configure.in9
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d0ded4ca7..8f4f9efbd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-06 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Put #undef for the PACKAGE_* symbols at the start
+ of autoconf.h. Use a leading comment to hide the #undef from the
+ autoconf substitutions.
+
2005-06-01 Ken Raeburn <raeburn@mit.edu>
* configure.in: Identify package in AC_INIT call.
diff --git a/src/configure.in b/src/configure.in
index f789255e2..937dca21c 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -455,6 +455,15 @@ dnl
AC_C_INLINE
AH_TOP([
#ifndef KRB5_AUTOCONF_H
+/* Leading comment stops autoconf/config.status from turning these
+ into #define statements. But the preprocessor will still pay
+ attention to them. (Comment removal is in translation phase 3;
+ processing of #undef is phase 4.) */
+/*x*/#undef PACKAGE_NAME
+/*x*/#undef PACKAGE_VERSION
+/*x*/#undef PACKAGE_BUGREPORT
+/*x*/#undef PACKAGE_STRING
+/*x*/#undef PACKAGE_TARNAME
])
AH_BOTTOM([
#if defined(__GNUC__) && !defined(inline)