]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Ported r248 from branches/v2_2_7 (expand prefix in path written to stdout)
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 10 Feb 2010 19:00:46 +0000 (19:00 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 10 Feb 2010 19:00:46 +0000 (19:00 +0000)
configure.in

index 6b23e5000132b402c628170f44a338157cd6ea7a..34bd3d739d320fd3d7ad092fb833bd2794b43537 100644 (file)
@@ -139,8 +139,7 @@ AC_ARG_ENABLE(sargphp,
     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
 
@@ -153,7 +152,11 @@ AC_ARG_ENABLE(languagedir,
         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)
 
@@ -167,7 +170,11 @@ AC_ARG_ENABLE(fontdir,
     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
@@ -181,7 +188,11 @@ AC_ARG_ENABLE(imagedir,
         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)