From a727ca6a6d7ff334cc63181e24a7f3ea282e940d Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 17 Jan 2014 21:00:30 +0000 Subject: [PATCH] Fix ./configure not to fail on non-bash Thanks to jayne for patch --- m4/ac_pkg_swig.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/ac_pkg_swig.m4 b/m4/ac_pkg_swig.m4 index 544fe0d2..889f1a96 100644 --- a/m4/ac_pkg_swig.m4 +++ b/m4/ac_pkg_swig.m4 @@ -126,10 +126,10 @@ AC_DEFUN([AC_PROG_SWIG],[ $ac_path_SWIG -python -py3 -c++ -shadow conftest-python.i >&AS_MESSAGE_LOG_FD && \ echo "python wrapper created" >&AS_MESSAGE_LOG_FD && \ echo "testing std::set... ">&AS_MESSAGE_LOG_FD && \ - grep SInt_discard conftest.py >& /dev/null && \ + grep SInt_discard conftest.py > /dev/null 2>&1 && \ echo "std::set works" >&AS_MESSAGE_LOG_FD && \ echo "testing PyInt_FromSize_t..." >&AS_MESSAGE_LOG_FD && \ - grep '#define PyInt_FromSize_t' conftest-python_wrap.cxx >& /dev/null && \ + grep '#define PyInt_FromSize_t' conftest-python_wrap.cxx > /dev/null 2>&1 && \ echo "PyInt_FromSize_t is defined" >&AS_MESSAGE_LOG_FD && \ $ac_path_SWIG -perl -c++ -shadow conftest-perl.i >&AS_MESSAGE_LOG_FD && \ echo "perl wrapper created" >&AS_MESSAGE_LOG_FD && \