From c002043749612fc416e3949a0d9ed7cb1ca8c68e Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Thu, 3 Mar 2005 22:19:56 +0000
Subject: [PATCH] Fix autoconf problem when running configure on a different
 system with different software version.

---
 NEWS       | 5 ++++-
 autogen.sh | 7 +++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 5fd5c27e96c..0965abcd803 100644
--- a/NEWS
+++ b/NEWS
@@ -4,11 +4,14 @@ documents those changes that are of interest to users and admins.
 * Changes in SLURM 0.4.7
 ========================
  -- Remove some BGL specific headers that IBM now distributes.
+ -- Change autogen.sh to deal with problems running autoconf on one
+    system and configure on another with different software versions.
 
 * Changes in SLURM 0.4.6
 ========================
  -- smap now works on non-BGL systems.
- -- took tv.h out of partition_allocator so it would work withn driver 080 from IBM.
+ -- took tv.h out of partition_allocator so it would work withn driver 080 
+    from IBM.
  -- updated slurmd signal handling to prevent possible user killing of daemon.
 
 * Changes in SLURM 0.4.5
diff --git a/autogen.sh b/autogen.sh
index 925d6b4e702..6c9a77232c9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -87,4 +87,11 @@ if [ -e config.log    ]; then
    echo "removing old config.log."
    rm -f config.log
 fi
+
+# touch slurm/slurm.h.in to avoid re-running autoheader
+# after aclocal.m4 is generated, which can fail on some 
+# systems lacking the proper libtools. Note slurm/slurm.h
+# should be static (not build by autogen.sh).
+touch slurm/slurm.h.in
+
 echo "now run ./configure to configure slurm for your environment."
-- 
GitLab