summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-09-17 02:07:50 +0000
committerKarl Heuer <kwzh@gnu.org>1994-09-17 02:07:50 +0000
commit64cfec5c1ce7fc11719d908c5bb67dc50c194799 (patch)
treec9960578551f515b533fb438475be25a190cf819 /configure1.in
parentf0fc0b1a46c0accb687a02d395af5fce40dfb51b (diff)
downloademacs-64cfec5c1ce7fc11719d908c5bb67dc50c194799.tar.gz
(config_options): New shell variable.
Pass its value to C code in EMACS_CONFIG_OPTIONS.
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure1.in b/configure1.in
index dc831bc8469..640d5264918 100755
--- a/configure1.in
+++ b/configure1.in
@@ -147,6 +147,7 @@ done
### However, it also turns out that many shells cannot expand ${10} at all.
### So using an index variable doesn't work either. It is possible to use
### some shell magic to make 'set x "$arguments"; shift' work portably.
+config_options=
while [ $# != 0 ]; do
arg="$1"; shift
case "${arg}" in
@@ -161,6 +162,7 @@ while [ $# != 0 ]; do
valomitted=no
;;
-*)
+ config_options="${config_options} ${arg}"
## If FOO is a boolean argument, --FOO is equivalent to
## --FOO=yes. Otherwise, the value comes from the next
## argument - see below.
@@ -1592,6 +1594,7 @@ AC_SUBST(machfile)
AC_SUBST(opsysfile)
AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${configuration}\"")
+AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "\"${config_options}\"")
AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})