When no --with-alsadatadir is given, configure scripts takes
$datadir/alsa as the default location, while it's expanded to
$prefix/data/alsa. Although ALSA_DATA_DIR is set via
AC_DEFINE_UNQUOTED(), this expands only $alsadatadir itself and not
about the $prefix in the content. For resolving this, we need to do
eval twice.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
eval dir="$datadir"
case "$dir" in
/*) ;;
- *) dir="$dir"
+ *) eval dir="$dir"
esac
alsadatadir="$dir/alsa"
fi