X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=configure;h=2e1f1232791dc1c1680e0cb2f089c113b407c0ee;hb=0cd708a881cb4c6f398381b43be3521a36ca8bd4;hp=7290f16064350247dfa4d2d5f2fcbba096a9bf2b;hpb=4b8f9231090ada43f7e16987ec46ac7f45a914ec;p=pkg%2Fabook.git diff --git a/configure b/configure index 7290f16..2e1f123 100755 --- a/configure +++ b/configure @@ -10189,7 +10189,15 @@ _ACEOF -localedir="$ac_default_prefix/share/locale" + + + + abook_localedir="$datadir/locale" + abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" + eval echo \""$abook_localedir"\" )` + +localedir="\$(datadir)/locale" + # Check whether --with-localedir or --without-localedir was given. if test "${with_localedir+set}" = set; then @@ -10197,13 +10205,13 @@ if test "${with_localedir+set}" = set; then fi; if test "x$with_localedir" != "x"; then + abook_localedir="$with_localedir" localedir="$with_localedir" -elif test "x${prefix}" != "xNONE"; then - localedir="$prefix/share/locale" fi + cat >>confdefs.h <<_ACEOF -#define LOCALEDIR "$localedir" +#define LOCALEDIR "$abook_localedir" _ACEOF