]> granicus.if.org Git - apache/commitdiff
Replace configure --with-optim option by using and saving the
authorRoy T. Fielding <fielding@apache.org>
Sun, 28 Jan 2001 07:41:15 +0000 (07:41 +0000)
committerRoy T. Fielding <fielding@apache.org>
Sun, 28 Jan 2001 07:41:15 +0000 (07:41 +0000)
environment variable OPTIM instead.  This is needed because configure
options do not support multiple flags separated by spaces.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87887 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
acinclude.m4
configure.in

diff --git a/CHANGES b/CHANGES
index 30e3a7f790a65d5c5f39be7a4444fdd1f26657ea..9e69d1ec56a63e8836d32d73a927f463892a75f4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,10 @@
 Changes with Apache 2.0b1
 
+  *) Replace configure --with-optim option by using and saving the
+     environment variable OPTIM instead.  This is needed because configure
+     options do not support multiple flags separated by spaces.
+     [Roy Fielding]
+
   *) Fix some byterange handling.  If we get a byte range that looks like
      "-999999" where that is past the end of the file, we should return 
      a PARTIAL CONTENT status code, and return the whole file as one big
index 1b9413408677c9d5f113e618579794f5e5f2a618..f9b9e6391149be499eeab0f826af0386b32d9d9b 100644 (file)
@@ -7,6 +7,9 @@ AC_DEFUN(APACHE_CONFIG_NICE,[
 # Created by configure
 
 EOF
+  if test -n "$OPTIM"; then
+    echo "OPTIM=\"$OPTIM\"; export OPTIM" >> $1
+  fi
 
   for arg in [$]0 "[$]@"; do
     echo "\"[$]arg\" \\" >> $1
index d253f1e617eb7902f243a85732b5b58469b615fb..7f00b844734c1c7b64df48da1c8e07b5e06459c7 100644 (file)
@@ -111,8 +111,8 @@ AC_CHECK_LIB(nsl, gethostbyname)
 AC_CHECK_LIB(nsl, gethostname)
 AC_CHECK_LIB(socket, socket)
 
-AC_ARG_WITH(optim,[  --with-optim="FLAGS"      compiler optimisation flags],
-        [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-optim requires a value (the optimisation flags)'); else OPTIM="$withval"; fi])
+AC_ARG_WITH(optim,[  --with-optim="FLAG"      obsolete (use env OPTIM)],
+        [AC_MSG_ERROR('option --with-optim is obsolete; use OPTIM environment variable instead')])
 
 AC_ARG_WITH(port,[  --with-port=PORT        Port on which to listen (default is 80)],
         [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-port requires a value (the TCP port number)'); else PORT="$withval"; fi],