Commit 0ca2af7c authored by Jim Blandy's avatar Jim Blandy
Browse files

* 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.
parent 3ed788ec
......@@ -992,8 +992,18 @@ AC_SUBST(LD_SWITCH_X_SITE)
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]))
AC_DEFINE(config_machfile, "\"${machfile}\"")
AC_DEFINE(config_opsysfile, "\"${opsysfile}\"")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment