aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-10 19:20:56 +0000
committerJim Blandy1993-05-10 19:20:56 +0000
commit0ca2af7c0b4c9edfaaed391d9bf34cb7ed148a1b (patch)
tree278ec23fbe2a579f529afc02f5b6bfdc68b1d4e3
parent3ed788ec2c7c30515738ea1cf9c89cd459e2e858 (diff)
downloademacs-0ca2af7c0b4c9edfaaed391d9bf34cb7ed148a1b.tar.gz
emacs-0ca2af7c0b4c9edfaaed391d9bf34cb7ed148a1b.zip
* 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.
-rwxr-xr-xconfigure1.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure1.in b/configure1.in
index 6aa4967d2b7..a75861e593a 100755
--- a/configure1.in
+++ b/configure1.in
@@ -992,8 +992,18 @@ AC_SUBST(LD_SWITCH_X_SITE)
992AC_SUBST(C_SWITCH_X_SITE) 992AC_SUBST(C_SWITCH_X_SITE)
993AC_SUBST(CFLAGS) 993AC_SUBST(CFLAGS)
994 994
995AC_DEFINE(config_machfile, \"${machfile}\") 995dnl This is hopefully a temporary hack. In autoconf version 1.3,
996AC_DEFINE(config_opsysfile, \"${opsysfile}\") 996dnl the second argument to AC_DEFINE is quoted in every which way,
997dnl so (as far as I can tell) there's no way to compute the value
998dnl the CPP macro should receive. We cripple that quoting for a
999dnl bit, invoke AC_DEFINE, and then uncripple it.
1000
1001define([hold_ac_define_sedquote], defn([AC_DEFINE_SEDQUOTE]))
1002define([AC_DEFINE_SEDQUOTE],[$1])
1003AC_DEFINE(config_machfile, "\"${machfile}\"")
1004AC_DEFINE(config_opsysfile, "\"${opsysfile}\"")
1005define([AC_DEFINE_SEDQUOTE],hold_ac_define_sedquote)
1006
997AC_DEFINE(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) 1007AC_DEFINE(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
998AC_DEFINE(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) 1008AC_DEFINE(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
999[ 1009[