diff options
| author | Theodore Tso <tytso@mit.edu> | 1994-11-03 02:03:10 +0000 |
|---|---|---|
| committer | Theodore Tso <tytso@mit.edu> | 1994-11-03 02:03:10 +0000 |
| commit | 4e38f3c9aecfaddb70a55659be83689849e21d9a (patch) | |
| tree | 3d2209bdff7f2539980c4656a4c56d0efb973abd /src | |
| parent | cf9ac845265436ad4c9cefb983bf10d6d651d2a0 (diff) | |
| download | krb5-4e38f3c9aecfaddb70a55659be83689849e21d9a.tar.gz krb5-4e38f3c9aecfaddb70a55659be83689849e21d9a.tar.xz krb5-4e38f3c9aecfaddb70a55659be83689849e21d9a.zip | |
Add support for a new "--with-cppopts" value where you can put -DXXXXX
such that they are found by autoconf tests that use run the
preprocessor over header files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4615 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/aclocal.m4 | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 85e83c6bb..34773357d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +Wed Nov 2 20:39:14 1994 Theodore Y. Ts'o (tytso@dcl) + + * aclocal.m4 (CONFIG_RULES, WITH_CPPOPTS): Add support for a new + "--with-cppopts" value where you can put -DXXXXX such that + they are found by autoconf tests that use run the + preprocessor over header files. + Sat Oct 22 13:25:18 1994 (tytso@rsx-11) * aclocal.m4 (CopyHeader): Remove header file from include diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 30178a185..3c4bff18c 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -101,7 +101,8 @@ $2::<<< for i in $(SUBDIRS) ;\ do \ (cd $$i ; echo>>> $1 <<<"in $(CURRENT_DIR)$$i..."; \ - $(MAKE) $(MFLAGS) CCOPTS="$(CCOPTS)" CC="$(CC)" \ + $(MAKE) $(MFLAGS) CC="$(CC)" \ + CPPOPTS="$(CPPOPTS)" CCOPTS="$(CCOPTS)" \ CURRENT_DIR=$(CURRENT_DIR)$$i/ >>>$2<<<); \ done>>> changequote([,])dnl @@ -139,6 +140,7 @@ dnl drop in standard configure rebuild rules -- CONFIG_RULES dnl define(CONFIG_RULES,[ WITH_CC dnl +WITH_CPPOPTS dnl AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl [ SHELL=/bin/sh @@ -289,6 +291,16 @@ CFLAGS="$CFLAGS $withval", CCOPTS=)dnl AC_SUBST(CCOPTS)])dnl dnl +dnl set $(CPPOPTS) from --with-cppopts=value +dnl +define(WITH_CPPOPTS,[ +AC_ARG_WITH([cppopts],[select compiler preprocessor command line options], +echo CPPOPTS=$withval +CPPOPTS=$withval +CPPFLAGS="$CPPFLAGS $withval", +echo CPPOPTS defaults to $CPPOPTS)dnl +AC_SUBST(CPPOPTS)])dnl +dnl dnl Imake LinkFile rule, so they occur in the right place -- LinkFile(dst,src) dnl define(LinkFile,[ |
