about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-08-14 04:46:28 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-08-14 04:46:28 +0000
commitf9cda7964fcdb3e86381df36c1cbfea62de749ab (patch)
tree9867c98be175dd1e11d930860df9467b27f1818b
parent7102a4696c91cc10e48cb21854435183d72b3e84 (diff)
downloadzsh-f9cda7964fcdb3e86381df36c1cbfea62de749ab.tar.gz
zsh-f9cda7964fcdb3e86381df36c1cbfea62de749ab.tar.xz
zsh-f9cda7964fcdb3e86381df36c1cbfea62de749ab.zip
12601: Tweak --enable-cflags et al.
-rw-r--r--ChangeLog6
-rw-r--r--aczsh.m46
-rw-r--r--configure.in2
3 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a4f6fb1a..435aaa21c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-13  Bart Schaefer  <schaefer@zsh.org>
+
+	* 12601: aczsh.m4, configure.in: configure --enable-cflags and the
+	like, i.e., with no =... part, should preserve the environment
+	values for CFLAGS etc. rather than erase them.
+
 2000-08-11  Peter Stephenson  <pws@csr.com>
 
 	* 12598: INSTALL, aczsh.m4, configure.in: --enable-cppflags=...,
diff --git a/aczsh.m4 b/aczsh.m4
index 329c38431..e835dcede 100644
--- a/aczsh.m4
+++ b/aczsh.m4
@@ -631,18 +631,18 @@ AC_DEFUN(zsh_COMPILE_FLAGS,
     AC_ARG_ENABLE(cflags,
 	[  --enable-cflags=...        specify C compiler flags],
 	if test "$enableval" = "yes"
-	then CFLAGS="$1"
+	then CFLAGS="$2"
 	else CFLAGS="$enable_cflags"
 	fi)
     AC_ARG_ENABLE(ldflags,
 	[  --enable-ldflags=...       specify linker flags],
 	if test "$enableval" = "yes"
-	then LDFLAGS="$2"
+	then LDFLAGS="$3"
 	else LDFLAGS="$enable_ldflags"
 	fi)
     AC_ARG_ENABLE(libs,
 	[  --enable-libs=...          specify link libraries],
 	if test "$enableval" = "yes"
-	then LIBS="$3"
+	then LIBS="$4"
 	else LIBS="$enable_libs"
 	fi)])
diff --git a/configure.in b/configure.in
index f76aff044..51a40ed10 100644
--- a/configure.in
+++ b/configure.in
@@ -49,7 +49,7 @@ dnl Handle --program-prefix, --program-suffix, etc.
 zsh_ARG_PROGRAM
 
 dnl Handle setting of compile flags (CPPFLAGS, CFLAGS, LDFLAGS, LIBS).
-zsh_COMPILE_FLAGS
+zsh_COMPILE_FLAGS($CPPFLAGS, $CFLAGS, $LDFLAGS, $LIBS)
 
 dnl Do you want to debug zsh?
 undefine([zsh-debug])dnl