1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

Fix expansion when setting LOCALEDIR

Use the localedir variable so configure's --localedir option is
honoured. Expand the variable twice to first expand the datadir
and then the prefix variable referenced by datadir.

Noticed by Witold, who also made a similar fix (modulo --localedir)
in elinks-0.12 098fb87065.
This commit is contained in:
Jonas Fonseca 2008-02-07 11:36:34 +01:00
parent 504eb26ae5
commit e1d82ba441

View File

@ -1275,7 +1275,9 @@ AC_DEFINE_UNQUOTED(CONFDIR, "$CONFDIR", [Directory containing default config])
AC_SUBST(CONFDIR)
# Create LOCALEDIR #define for config.h
LOCALEDIR=`eval echo "$datadir/locale"`
test -z "$localedir" && localedir="$datadir/locale"
localedir0=`eval echo "$localedir"`
LOCALEDIR=`eval echo "$localedir0"`
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [Directory containing locales])
AC_SUBST(LOCALEDIR)