]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
configure: Fix unexpanded ALSA_DATA_DIR
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Mar 2019 11:36:30 +0000 (12:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Mar 2019 11:36:30 +0000 (12:36 +0100)
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>
configure.ac

index 1be4a70c803c367528aaf07839430801bc7f0c78..5b131e704c2fc68a33a2d51893befaa55d4ad6f3 100644 (file)
@@ -211,7 +211,7 @@ if test -z "$alsadatadir"; then
     eval dir="$datadir"
     case "$dir" in
     /*) ;;
-    *) dir="$dir"
+    *) eval dir="$dir"
     esac
     alsadatadir="$dir/alsa"
 fi