From: Christian Weisgerber Date: Thu, 11 Nov 2010 18:08:18 +0000 (-0700) Subject: mknod: avoid false failure with dash X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ffa8a74ff8edd3a6e2ce5e9fd0ecf670eb9a11e;p=pspp mknod: avoid false failure with dash * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 9b23f76752..8c4cde9581 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-11 Christian Weisgerber (tiny change) + + mknod: avoid false failure with dash + * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax. + 2010-11-11 Paul Eggert unlink: Fix "is it should" typo in diagnostic. diff --git a/m4/mknod.m4 b/m4/mknod.m4 index c13644b844..a49409a399 100644 --- a/m4/mknod.m4 +++ b/m4/mknod.m4 @@ -1,4 +1,4 @@ -# serial 2 +# serial 3 # See if we need to provide mknod replacement. dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. @@ -30,7 +30,7 @@ AC_DEFUN([gl_FUNC_MKNOD], if (!geteuid ()) return 99; if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;]])], [gl_cv_func_mknod_works=yes], - [if test $? == 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then + [if test $? = 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then AC_MSG_FAILURE([you should not run configure as root ]dnl [(set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)]) fi