Permalink
Browse files

Fix ./configure not to fail on non-bash

Thanks to jayne for patch

(cherry picked from commit a727ca6)
  • Loading branch information...
DarthGandalf committed Jan 17, 2014
1 parent bd2c099 commit e31635d05ded95d5b7aa203d735464116c2535c2
Showing with 2 additions and 2 deletions.
  1. +2 −2 m4/ac_pkg_swig.m4
View
@@ -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 && \

0 comments on commit e31635d

Please sign in to comment.