diff options
author | Tim Wilde <github@krellis.org> | 2011-10-30 00:08:51 +0200 |
---|---|---|
committer | Tim Wilde <github@krellis.org> | 2011-10-30 00:08:51 +0200 |
commit | c72affb3a8387d606eb837bd9b47e238aa6edec3 (patch) | |
tree | bd51b37fe5c80245fdd2f1da9a512884af3b91b9 | |
parent | 81d0718bbb09fbf098a84f16278d51d9058e63ec (diff) | |
download | smokeping-c72affb3a8387d606eb837bd9b47e238aa6edec3.tar.gz smokeping-c72affb3a8387d606eb837bd9b47e238aa6edec3.tar.xz |
Make $prefix available for HTDOCSDIR
Code lifted from the Tor Project's configure.in
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ba210dc..2ff9ff3 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,18 @@ AC_ARG_ENABLE(pkgonly, [Skip all checking])]) AC_SUBST(enable_pkgonly) +# $prefix stores the value of the --prefix command line option, or +# NONE if the option wasn't set. In the case that it wasn't set, make +# it be the default, so that we can use it to expand directories now. +if test "x$prefix" = "xNONE"; then + prefix=$ac_default_prefix +fi + +# and similarly for $exec_prefix +if test "x$exec_prefix" = "xNONE"; then + exec_prefix=$prefix +fi + HTDOCSDIR=${prefix}/htdocs AC_ARG_WITH(htdocs-dir,AC_HELP_STRING([--with-htdocs-dir=DIR],[Where to install htdocs [PREFIX/htdocs]]), [HTDOCSDIR=$withval]) AC_SUBST(HTDOCSDIR) |