Fix some m4/shell syntax in aclocal.m4, spotted by Jan Stolarek
authorIan Lynagh <ian@well-typed.com>
Thu, 28 Feb 2013 12:52:59 +0000 (12:52 +0000)
committerIan Lynagh <ian@well-typed.com>
Thu, 28 Feb 2013 13:12:44 +0000 (13:12 +0000)
[ ] is m4 syntax, so we need to use 'test foo' rather than '[ foo ]'.

aclocal.m4

index 268e631..415388d 100644 (file)
@@ -1969,7 +1969,7 @@ AC_DEFUN([FIND_LLVM_PROG],[
         save_IFS=$IFS
         IFS=":;"
         for p in ${PATH}; do
-           if [ -d "${p}" ]; then
+           if test -d "${p}"; then
                 $1=`${FindCmd} "${p}" -type f -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' -or -type l -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' | ${SortCmd} -n | tail -1`
                 if test -n "$1"; then
                     break