Build: POSIX shell isn't required if scripts are disabled.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 26 Dec 2014 10:00:05 +0000 (12:00 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 26 Dec 2014 10:00:05 +0000 (12:00 +0200)
INSTALL
configure.ac

diff --git a/INSTALL b/INSTALL
index ee3228914c9880b81adcc2393042d6c3923f6a05..cb7f9bf526743f4dc7f20c4c6d3b2a35724f7887 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -474,7 +474,8 @@ XZ Utils Installation
     to POSIX. The configure script tries to find such a shell. If
     it fails, you can force the shell to be used by passing
     gl_cv_posix_shell=/path/to/posix-sh as an argument to the configure
-    script.
+    script. Alternatively you can omit the installation of scripts and
+    this error by passing --disable-scripts to configure.
 
 
 4.3. configure works but build fails at crc32_x86.S
index c0247b54f96cc5da6d170b289ff9d3cdb1c04d1d..0efaaecc64eef9bafe71cdde4dfdd6dd675fdcd4 100644 (file)
@@ -474,7 +474,7 @@ AM_CONDITIONAL([COND_SYMVERS], [test "x$enable_symbol_versions" = xyes])
 
 echo
 gl_POSIX_SHELL
-if test -z "$POSIX_SHELL" ; then
+if test -z "$POSIX_SHELL" && test "x$enable_scripts" = xyes ; then
        AC_MSG_ERROR([No POSIX conforming shell (sh) was found.])
 fi