diff --git a/configure b/configure index 8034e7bd77..e3089e21b4 100755 --- a/configure +++ b/configure @@ -17948,8 +17948,14 @@ EOF +if test "x$prefix" != "xNONE"; then + wxPREFIX=$prefix +else + wxPREFIX=$ac_default_prefix +fi + cat >> confdefs.h <&6 -echo "configure:18103: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:18109: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 diff --git a/configure.in b/configure.in index ccfc7e049a..550cea8ce1 100644 --- a/configure.in +++ b/configure.in @@ -4510,7 +4510,13 @@ dnl --------------------------------------------------------------------------- dnl define the variable containing the installation prefix (used in dcpsg.cpp) dnl --------------------------------------------------------------------------- -AC_DEFINE_UNQUOTED(wxINSTALL_PREFIX, $prefix) +if test "x$prefix" != "xNONE"; then + wxPREFIX=$prefix +else + wxPREFIX=$ac_default_prefix +fi + +AC_DEFINE_UNQUOTED(wxINSTALL_PREFIX, "$wxPREFIX") dnl --------------------------------------------------------------------------- dnl Output the makefiles and such from the results found above