[mpich2-commits] r4057 - mpich2/trunk/maint

gropp at mcs.anl.gov gropp at mcs.anl.gov
Fri Mar 13 10:33:53 CDT 2009


Author: gropp
Date: 2009-03-13 10:33:53 -0500 (Fri, 13 Mar 2009)
New Revision: 4057

Modified:
   mpich2/trunk/maint/simplemake.in
Log:
Added support for environment variable RANLIBNEEDED which, if set to NO, will cause simplemake to omit the RANLIB steps

Modified: mpich2/trunk/maint/simplemake.in
===================================================================
--- mpich2/trunk/maint/simplemake.in	2009-03-13 15:32:31 UTC (rev 4056)
+++ mpich2/trunk/maint/simplemake.in	2009-03-13 15:33:53 UTC (rev 4057)
@@ -10,7 +10,9 @@
 $includedir = ".";
 $skipAction = 0;
 $makefilebase = "Makefile.base";
-$ranliblib    = 1;
+$ranliblib    = 1;   # only set to 0 on systems where ar 
+                     # computes a symbol table index.  Also see RANLIBNEEDED
+                     # environment variable
 $useinclude = 0;     # set to 1 to make the Makefiles refer to a single
                      # base makefile.
 $include_list = "";
@@ -66,7 +68,6 @@
 if (defined($ENV{"CHECKTARGETS"})) {
     $gCheckForTargets = 1;
 }
-
 $autoconf_args = ""; # Extra arguments for autoconf
 $acincdir_arg = "-l";
 
@@ -141,6 +142,16 @@
     $Sleep = $SleepSlow;
 }
 
+# Check environment variable to see if ranlib is needed.
+if (defined($ENV{"RANLIBNEEDED"})) {
+    my $val = $ENV{"RANLIBNEEDED"};
+    if ($val eq "YES" || $val eq "yes" || $val == 1) {
+	$ranliblib = 1;
+    }
+    elsif ($val eq "NO" || $val eq "no" || $val == 0) {
+	$ranliblib = 0;
+    }
+}
 
 #
 # Output File end-of-line character



More information about the mpich2-commits mailing list