GNOME Bugzilla – Bug 307480
problem with MAKE check in configure
Last modified: 2005-10-29 10:12:55 UTC
Version details: 2.6.1 Distribution/Version: Solaris 8 Sparc, RedHat Enterprise Linux 3.0 AMD64 glibmm's configure script does not work if MAKE != make, but e.g. /some/special/gmake. Here is a patch for configure, but I guess it has to be fixed in some configure.in, aclocal.m4 or the like... diff -ruN glibmm-2.6.1-old/configure glibmm-2.6.1/configure --- glibmm-2.6.1-old/configure 2005-06-13 10:05:22.441622000 +0200 +++ glibmm-2.6.1/configure 2005-06-13 10:07:28.882415000 +0200 @@ -19670,9 +19670,9 @@ -echo "$as_me:$LINENO: checking whether make is GNU Make" >&5 -echo $ECHO_N "checking whether make is GNU Make... $ECHO_C" >&6 -if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then +echo "$as_me:$LINENO: checking whether ${MAKE-make} is GNU Make" >&5 +echo $ECHO_N "checking whether ${MAKE-make} is GNU Make... $ECHO_C" >&6 +if ${MAKE-make} --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else
This must be a problem with autoconf or automake. Normally they handle this fine. I'm sure you can make a simple test case for them. My examples here might help: http://www.openismus.com/documents/linux/automake/automake.shtml#ExampleFiles
Please do try a simple test case. This is almost certainly not a gtkmm bug.
I'm likely to close this soon as it looks like a general autotools problem, and I'd expect many othere software builds to have the same problem.
The offending code does not come from autoconf/automake, but is part of the glibmm distro: glibmm-2.8.0/scripts/macros.m4: dnl AL_PROG_GNU_MAKE(ACTION_NOT_FOUND) dnl Check for GNU make (no sun make) dnl AC_DEFUN([AL_PROG_GNU_MAKE],[ dnl dnl Check for GNU make (stolen from gtk+/configure.in) AC_MSG_CHECKING(whether make is GNU Make) if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) if test "$host_vendor" = "sun" ; then $1 fi fi ]) It would work nicely if the one line above was changed to: if ${MAKE-make} --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then ^^^^^^^^^^^^ -Marek
Ah, many thanks.
Applied. Thanks. I have no idea why the change is better (a ChangeLog entry might have explained this to me.) but it does not seem to break anything.