[mpich-commits] r10818 - in mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc: . config include/private src

balaji at mcs.anl.gov balaji at mcs.anl.gov
Thu Jan 3 12:17:41 CST 2013


Author: balaji
Date: 2013-01-03 12:17:41 -0600 (Thu, 03 Jan 2013)
New Revision: 10818

Modified:
   mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/Makefile.am
   mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/autogen.sh
   mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/config/hwloc.m4
   mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/configure.ac
   mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/include/private/private.h
   mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/src/Makefile.am
Log:
Merge hydra-specific hwloc patches from r10740.

No reviewer.

Modified: mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/Makefile.am
===================================================================
--- mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/Makefile.am	2013-01-03 18:17:36 UTC (rev 10817)
+++ mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/Makefile.am	2013-01-03 18:17:41 UTC (rev 10818)
@@ -9,10 +9,10 @@
 
 SUBDIRS = src include
 if HWLOC_BUILD_STANDALONE
-SUBDIRS += utils tests
+# SUBDIRS += utils tests
 # We need doc/ if HWLOC_BUILD_DOXYGEN, or during make install if HWLOC_INSTALL_DOXYGEN.
 # There's no INSTALL_SUBDIRS, so always enter doc/ and check HWLOC_BUILD/INSTALL_DOXYGEN there
-SUBDIRS += doc
+# SUBDIRS += doc
 endif
 
 # Do not let automake automatically add the non-standalone dirs to the

Modified: mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/autogen.sh
===================================================================
--- mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/autogen.sh	2013-01-03 18:17:36 UTC (rev 10817)
+++ mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/autogen.sh	2013-01-03 18:17:41 UTC (rev 10818)
@@ -1,2 +1,2 @@
 :
-autoreconf -ivf
+autoreconf ${autoreconf_args:"-ivf"}

Modified: mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/config/hwloc.m4
===================================================================
--- mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/config/hwloc.m4	2013-01-03 18:17:36 UTC (rev 10817)
+++ mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/config/hwloc.m4	2013-01-03 18:17:41 UTC (rev 10818)
@@ -573,6 +573,16 @@
     AC_CHECK_HEADERS([malloc.h])
     AC_CHECK_FUNCS([getpagesize memalign posix_memalign])
 
+    # when autoheader is run, it doesn't know about
+    # PAC_FUNC_NEEDS_DECL, so it doesn't generate an appropriate line
+    # in config.h.in.  We need to fool it with a dummy AC_DEFINE().
+    if false ; then
+       AC_DEFINE([NEEDS_GETPAGESIZE_DECL], 1, [Define to 1 if getpagesize needs a declaration])
+    fi
+    if test $ac_cv_func_getpagesize = "yes" ; then
+       PAC_FUNC_NEEDS_DECL([#include <unistd.h>],getpagesize)
+    fi
+
     AC_CHECK_HEADERS([sys/utsname.h])
     AC_CHECK_FUNCS([uname])
 

Modified: mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/configure.ac
===================================================================
--- mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/configure.ac	2013-01-03 18:17:36 UTC (rev 10817)
+++ mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/configure.ac	2013-01-03 18:17:41 UTC (rev 10818)
@@ -176,6 +176,19 @@
 #CPPFLAGS="$CPPFLAGS -I$HWLOC_top_builddir"
 AC_CONFIG_COMMANDS_PRE([LT_CONFIG_H=`expr "$LT_CONFIG_H" : '.*/\(.*\)'`])
 
+## Enable creation of libtool-style versioning or no versioning
+AC_ARG_ENABLE(versioning,
+        [AC_HELP_STRING([--enable-versioning],[Enable library versioning])],,
+        [enable_versioning=yes])
+
+if test "$enable_versioning" = "yes" ; then
+   libhwloc_so_versionflags="-version-info \$(libhwloc_so_version)"
+else
+   libhwloc_so_versionflags="-avoid-version"
+fi
+export libhwloc_so_versionflags
+AC_SUBST(libhwloc_so_versionflags)
+
 # Party on
 AC_OUTPUT
 

Modified: mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/include/private/private.h
===================================================================
--- mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/include/private/private.h	2013-01-03 18:17:36 UTC (rev 10817)
+++ mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/include/private/private.h	2013-01-03 18:17:41 UTC (rev 10818)
@@ -29,6 +29,10 @@
 #endif
 #include <string.h>
 
+#if defined(HAVE_GETPAGESIZE) && defined(NEEDS_GETPAGESIZE_DECL)
+int getpagesize(void);
+#endif
+
 #ifdef HWLOC_HAVE_ATTRIBUTE_FORMAT
 # if HWLOC_HAVE_ATTRIBUTE_FORMAT
 #  define __hwloc_attribute_format(type, str, arg)  __attribute__((__format__(type, str, arg)))

Modified: mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/src/Makefile.am
===================================================================
--- mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/src/Makefile.am	2013-01-03 18:17:36 UTC (rev 10817)
+++ mpich2/trunk/src/pm/hydra/tools/topo/hwloc/hwloc/src/Makefile.am	2013-01-03 18:17:41 UTC (rev 10818)
@@ -136,7 +136,7 @@
 # Installable library
 
 libhwloc_la_SOURCES = $(sources)
-libhwloc_la_LDFLAGS = $(ldflags) -version-info $(libhwloc_so_version) $(HWLOC_LIBS)
+libhwloc_la_LDFLAGS = $(ldflags) $(libhwloc_so_versionflags) $(HWLOC_LIBS)
 
 if HWLOC_HAVE_PLUGINS
 AM_CPPFLAGS += $(LTDLINCL)



More information about the commits mailing list