summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f05d37a..483ade2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,8 +65,12 @@ AH_TEMPLATE([TINYPROXY_STATHOST],
[This controls remote proxy stats display.])
AC_ARG_WITH(stathost,
[AC_HELP_STRING([--with-stathost=HOST], [Default status host])],
- [AC_DEFINE_UNQUOTED(TINYPROXY_STATHOST, "$withval")],
- [AC_DEFINE_UNQUOTED(TINYPROXY_STATHOST, "tinyproxy.stats")])
+ [AC_DEFINE_UNQUOTED(TINYPROXY_STATHOST, "$withval")
+ TINYPROXY_STATHOST="$withval"],
+ [AC_DEFINE_UNQUOTED(TINYPROXY_STATHOST, "tinyproxy.stats")
+ TINYPROXY_STATHOST="tinyproxy.stats"])
+
+AC_SUBST(TINYPROXY_STATHOST)
dnl Add compiler-specific optimization flags
TP_ARG_ENABLE(debug,