]> granicus.if.org Git - apache/commitdiff
Force --with-optim and --with-port to have argument values, since
authorRoy T. Fielding <fielding@apache.org>
Sun, 28 Jan 2001 06:46:23 +0000 (06:46 +0000)
committerRoy T. Fielding <fielding@apache.org>
Sun, 28 Jan 2001 06:46:23 +0000 (06:46 +0000)
they result in later compile errors otherwise.

I would have removed --with-optim in favor of just setting it with
an environment variable, but then it wouldn't be saved in config.nice.
A better solution is needed because these arguments can only accept
a single value (quotes and spaces are stripped).  Perhaps setting
OPTIM within config.nice?  First things first.

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

configure.in

index 63f7f75ad44f327ee64b97615a3f861a0dc63dcc..d253f1e617eb7902f243a85732b5b58469b615fb 100644 (file)
@@ -112,10 +112,10 @@ AC_CHECK_LIB(nsl, gethostname)
 AC_CHECK_LIB(socket, socket)
 
 AC_ARG_WITH(optim,[  --with-optim="FLAGS"      compiler optimisation flags],
-        [OPTIM="$withval"])
+        [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-optim requires a value (the optimisation flags)'); else OPTIM="$withval"; fi])
 
 AC_ARG_WITH(port,[  --with-port=PORT        Port on which to listen (default is 80)],
-        [PORT="$withval"],
+        [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-port requires a value (the TCP port number)'); else PORT="$withval"; fi],
        [PORT=80])
 
 AC_ARG_WITH(debug,[  --with-debug            Turn on debugging and compile time warnings],