diff --git a/configure b/configure index 0928ae3e..f7a332f9 100755 --- a/configure +++ b/configure @@ -3082,9 +3082,6 @@ echo "$as_me: error: could not find dlopen. Try --disable-modules" >&2;} # (dynamic_lookup might only work on 10.4 and later) fi - appendCXX "-D_MODDIR_=\\\"${MODDIR}\\\"" - appendCXX "-D_DATADIR_=\\\"${DATADIR}\\\"" - if test -z "$NOPERL"; then # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 @@ -3274,6 +3271,9 @@ echo "$as_me: error: could not find libsasl2. Try --disable-sasl." >&2;} fi fi + + appendCXX "-D_MODDIR_=\\\"${MODDIR}\\\"" + appendCXX "-D_DATADIR_=\\\"${DATADIR}\\\"" fi VERSION=0.067 diff --git a/configure.in b/configure.in index 28414684..474e21e2 100644 --- a/configure.in +++ b/configure.in @@ -198,9 +198,6 @@ if test "$MODULES" = "yes"; then # (dynamic_lookup might only work on 10.4 and later) fi - appendCXX "-D_MODDIR_=\\\"${MODDIR}\\\"" - appendCXX "-D_DATADIR_=\\\"${DATADIR}\\\"" - if test -z "$NOPERL"; then AC_PATH_PROG([PERL], [perl], []) if test -n "$PERL"; then @@ -217,6 +214,9 @@ if test "$MODULES" = "yes"; then [: Dont let autoconf add -lsasl2, Makefile handles that], AC_MSG_ERROR([could not find libsasl2. Try --disable-sasl.])) fi + + appendCXX "-D_MODDIR_=\\\"${MODDIR}\\\"" + appendCXX "-D_DATADIR_=\\\"${DATADIR}\\\"" fi VERSION=AC_PACKAGE_VERSION