X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fconfigure.ac;h=ba592c3d3fa16ea4d7991e731ed6549337943648;hb=c9c7edc3c74fb80d6c0192790702a31010304110;hp=b5eed7a90620d5cfe7eb58363fde2e92e2964c03;hpb=b7107f0efa41f07efd6ea5b058a393a4d98c61bc;p=citadel.git diff --git a/webcit/configure.ac b/webcit/configure.ac index b5eed7a90..ba592c3d3 100644 --- a/webcit/configure.ac +++ b/webcit/configure.ac @@ -343,6 +343,36 @@ fi AC_SUBST(SETUP_LIBS) + +if test "$prefix" = NONE; then + LOCALEDIR=$ac_default_prefix + WWWDIR=$ac_default_prefix +else + LOCALEDIR=$prefix + WWWDIR=$prefix +fi + +dnl where to put the locale files +AC_ARG_WITH(localedir, + [ --with-localedir directory to put the locale files to], + [ if test "x$withval" != "xno" ; then + LOCALEDIR=$withval + fi + ] +) +AC_SUBST(LOCALEDIR) + +dnl Checks where to put our templates +AC_ARG_WITH(wwwdir, + [ --with-wwwdir directory to put our templates], + [ if test "x$withval" != "xno" ; then + WWWDIR=$withval + fi + ] +) +AC_SUBST(WWWDIR) + + AC_OUTPUT(Makefile po/Makefile ) echo ------------------------------------------------------------------------