fi
],[SARGPHPDIR="/var/www/html"])
if test "$SARGPHPDIR" ; then
- tempfullpath=`eval "echo $SARGPHPDIR"`
- echo "using $tempfullpath as the directory to install sarg-php"
+ echo "using $SARGPHPDIR as the directory to install sarg-php"
AC_SUBST(SARGPHPDIR)
fi
LANGDIR=$enableval
fi
],[LANGDIR="${datarootdir}/sarg/languages"])
-tempfullpath=`eval "echo $LANGDIR"`
+if test "x$prefix" == "xNONE" ; then
+ tempfullpath=`prefix=$ac_default_prefix ; eval "echo $LANGDIR"`
+else
+ tempfullpath=`eval "echo $LANGDIR"`
+fi
echo "using $tempfullpath as the directory of the translations"
AC_SUBST(LANGDIR)
fi
],[FONTDIR="${datarootdir}/sarg/fonts"])
if test "$FONTDIR" ; then
- tempfullpath=`eval "echo $FONTDIR"`
+ if test "x$prefix" == "xNONE" ; then
+ tempfullpath=`prefix=$ac_default_prefix ; eval "echo $FONTDIR"`
+ else
+ tempfullpath=`eval "echo $FONTDIR"`
+ fi
echo "using $tempfullpath as the directory of the fonts"
AC_SUBST(FONTDIR)
fi
IMAGEDIR=$enableval
fi
],[IMAGEDIR="${datarootdir}/sarg/images"])
-tempfullpath=`eval "echo $IMAGEDIR"`
+if test "x$prefix" == "xNONE" ; then
+ tempfullpath=`prefix=$ac_default_prefix ; eval "echo $IMAGEDIR"`
+else
+ tempfullpath=`eval "echo $IMAGEDIR"`
+fi
echo "using $tempfullpath as the directory of the images"
AC_SUBST(IMAGEDIR)