]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Get rid of ugly bash2 requirement
authorAbramo Bagnara <abramo@alsa-project.org>
Sun, 1 Jul 2001 17:31:39 +0000 (17:31 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Sun, 1 Jul 2001 17:31:39 +0000 (17:31 +0000)
configure.in

index 8378678174d70f9ac696f8435d3957f3ffd03158..7c69e68bda3267fb930f942a6f95d555053a4203 100644 (file)
@@ -55,9 +55,13 @@ if test -z $BASH; then
   echo "Please, use the GNU BASH shell..."
   exit 0
 fi
-DATADIR=${datadir/\$\{prefix\}/$prefix}
-DATADIR=${DATADIR/./$PWD}
-AC_DEFINE_UNQUOTED(DATADIR, "$DATADIR")
+
+eval dir="$datadir"
+case "$dir" in
+/*) ;;
+*) dir="$PWD/$dir"
+esac
+AC_DEFINE_UNQUOTED(DATADIR, "$dir")
 
 AC_OUTPUT(Makefile doc/Makefile include/Makefile src/Makefile \
           src/control/Makefile src/mixer/Makefile src/pcm/Makefile \