build: use more portable shell syntax in search of working shell
authorJim Meyering <meyering@fb.com>
Sun, 9 Jun 2013 22:16:53 +0000 (15:16 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 9 Jun 2013 22:16:53 +0000 (15:16 -0700)
* m4/shell.m4: Adjust sh/case syntax not to evoke a syntax
error from Solaris 10's /bin/sh.

m4/shell.m4

index fbde6965278d431fa2ba30cba6d0347f5253e728..017aa27a0900f20a538f20cfd5e121da48fcf2cc 100644 (file)
@@ -37,7 +37,7 @@ AC_DEFUN([AC_PROG_SHELL],
       ac_cv_path_shell=no
 
       case $SHELL in
-      (/*)
+      /*)
         rm -f conftest.c
         if ("$SHELL" -c "$ac_command") 2>/dev/null; then
           ac_cv_path_shell=$SHELL
@@ -45,7 +45,7 @@ AC_DEFUN([AC_PROG_SHELL],
       esac
 
       case $ac_cv_path_shell in
-      (no)
+      no)
         # Prefer shells that are more likely to be installed in the
         # same place on all hosts of this platform.  Therefore, prefer
         # shells in /bin and /usr/bin to shells in the installer's
@@ -57,7 +57,7 @@ AC_DEFUN([AC_PROG_SHELL],
         do
           IFS=$as_save_IFS
           case $as_dir in
-          (/*)
+          /*)
             for ac_base in sh bash ksh sh5; do
               rm -f conftest.c
               if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
@@ -66,7 +66,7 @@ AC_DEFUN([AC_PROG_SHELL],
               fi
             done
             case $ac_cv_path_shell in
-            (/*) break
+            /*) break
             esac
           esac
         done