The following proposed patch for stable 3.1, partially reverts the configure
routine that tried to guess the libdir directory by assuming biarch rules from
fedora linux (breaking all amd64 BSD and x64 Solaris) and overriding the
libdir parameter passed at configure time (breaking fedora linux ppc64).

It restores the functionality needed to allow setting libdir while still using
libdir at compile time to setup the path for modules and as an intermediate
solution until removing the need to hardcode the module path in the
configuration is backported from trunk.

Carlo
---
Index: configure.in
===================================================================
--- configure.in        (revision 1531)
+++ configure.in        (working copy)
@@ -111,7 +111,6 @@
 dnl The following cpu_vendor_os string goes into config.h.
 dnl
 AC_DEFINE_UNQUOTED(HOST_OS, "$host_os", HOST_OS)
-AC_DEFINE_UNQUOTED(ARCH, "$host_cpu", ARCH)
 AC_DEFINE_UNQUOTED(CPU_VENDOR_OS, "$host", CPU_VENDOR_OS)
 dnl AC_CYGWIN
 
@@ -576,18 +575,18 @@
 AC_SUBST(varstatedir)
 AC_DEFINE_UNQUOTED(VARSTATEDIR, "$varstatedir", VARSTATEDIR)
 
-dnl Python module config files need to know where to look for libraries 
(/usr/lib vs /usr/lib64)
-AC_SUBST_FILE(libdir)
-if test "x$prefix" = xNONE; then
-  prefix="$ac_default_prefix"
+if test x"$libdir" = x"\${exec_prefix}/lib"; then
+   if test x"$exec_prefix" = xNONE; then
+      if test x"$prefix" = xNONE; then
+         exec_prefix="$ac_default_prefix"
+      else
+         exec_prefix="$prefix"
+      fi
+   fi
+   libdir=`eval echo "$libdir"`
 fi
+AC_SUBST(libdir)
 
-if test "x$host_cpu" = "xx86_64"; then
-  libdir="$prefix/lib64"
-else
-  libdir="$prefix/lib"
-fi
-
 AC_OUTPUT(Makefile 
           ganglia-config
           tests/Makefile 
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to