This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Checking for GNU make


The configure check for GNU make (GLIBCPP_CHECK_GNU_MAKE) uses
"grep -q", which doesn't work on Solaris 2.6. This patch uses the
-c option instead to do the same thing.

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70


2000-09-10  Branko Cibej  <branko.cibej@hermes.si>

 * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Replace "grep -q" with
 "grep -c".


Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.57
diff -c -p -r1.57 acinclude.m4
*** acinclude.m4 2000/09/07 22:40:16 1.57
--- acinclude.m4 2000/09/10 18:00:57
*************** AC_DEFUN(
*** 1564,1570 ****
            _cv_gnu_make_command='' ;
  dnl Search all the common names for GNU make
            for a in "${MAKE:-make}" make gmake gnumake ; do
!                   if  ( $a --version 2> /dev/null | grep  -q GNU  ) ;  then
                            _cv_gnu_make_command=$a ;
                            break;
                    fi
--- 1564,1571 ----
            _cv_gnu_make_command='' ;
  dnl Search all the common names for GNU make
            for a in "${MAKE:-make}" make gmake gnumake ; do
!                   if [ "`$a --version 2> /dev/null | grep -c GNU`" != "0" ]
!                   then
                            _cv_gnu_make_command=$a ;
                            break;
                    fi

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]