This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
[patch] Checking for GNU make
- To: libstdc++ at sources dot redhat dot com
- Subject: [patch] Checking for GNU make
- From: Branko Čibej <branko dot cibej at hermes dot si>
- Date: Sun, 10 Sep 2000 20:03:16 +0200
- Organization: HERMES SoftLab
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