]> git.lyx.org Git - lyx.git/commitdiff
Use a more portable construct
authorEnrico Forestieri <forenr@lyx.org>
Sun, 17 Jul 2016 21:50:34 +0000 (23:50 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 17 Jul 2016 21:50:34 +0000 (23:50 +0200)
Some shells do not understand the $() notation for command substitution.

config/qt4.m4

index 03f0c05341f7c128f6495013cf9d2d80dd0db89b..2f5f775632cb63fa9ebff1d25e5e33bf4fa4e9e9 100644 (file)
@@ -77,8 +77,8 @@ AC_DEFUN([QT_FIND_TOOL],
        elif qtchooser -l 2>/dev/null | grep -q ^$qt_ext\$ >/dev/null ; then
                AC_PATH_PROG(qtc_path, qtchooser, [], [$PATH])
                AC_PATH_PROG($2_path, $2, [], [$PATH])
-               qtc_path=$(dirname "$qtc_path")
-               $2_path=$(dirname "$$2_path")
+               qtc_path=`dirname "$qtc_path"`
+               $2_path=`dirname "$$2_path"`
                if test "$qtc_path" = "$$2_path" ; then
                        AC_CHECK_PROG($1, $2, [$2 -qt=$qt_ext],, [$PATH])
                fi