Mercurial > emacs
changeset 2737:443605a261b3
* configure.in: Sidestep autoconf's quoting of the second argument
of AC_DEFINE, so we can specify the value to put there. It would
be nice if autoconf provided some way to specify computed values
for macros.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Mon, 10 May 1993 19:20:56 +0000 |
parents | d6ff54640930 |
children | 263aa966f295 |
files | configure1.in |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure1.in Mon May 10 16:31:21 1993 +0000 +++ b/configure1.in Mon May 10 19:20:56 1993 +0000 @@ -992,8 +992,18 @@ AC_SUBST(C_SWITCH_X_SITE) AC_SUBST(CFLAGS) -AC_DEFINE(config_machfile, \"${machfile}\") -AC_DEFINE(config_opsysfile, \"${opsysfile}\") +dnl This is hopefully a temporary hack. In autoconf version 1.3, +dnl the second argument to AC_DEFINE is quoted in every which way, +dnl so (as far as I can tell) there's no way to compute the value +dnl the CPP macro should receive. We cripple that quoting for a +dnl bit, invoke AC_DEFINE, and then uncripple it. + +define([hold_ac_define_sedquote], defn([AC_DEFINE_SEDQUOTE])) +define([AC_DEFINE_SEDQUOTE],[$1]) +AC_DEFINE(config_machfile, "\"${machfile}\"") +AC_DEFINE(config_opsysfile, "\"${opsysfile}\"") +define([AC_DEFINE_SEDQUOTE],hold_ac_define_sedquote) + AC_DEFINE(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) AC_DEFINE(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) [