Skip to contentSkip to conversation

Fix some autoconf issues

PATCH In review Danny Al-Gaaf 2 participants 4 messages Jan 23, 2013 – Jan 24, 2013

lore
Share & tools
lore
#0 lore raw

cover Fix some autoconf issues

These patches contains some autoconf fixes/cleanups.

Danny Al-Gaaf (2):
configure: fix RPM_RELEASE
configure: remove -m4_include(m4/acx_pthread.m4)

 configure.ac | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.1.1
#1 lore raw

PATCH 1/2 configure: fix RPM_RELEASE

Use git to get RPM_RELEASE only if this is a git repo clone and if the git command is available on the system.

---
 configure.ac | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
configure.ac +8 -1
index b67e5cd..f87140f 100644
@@ -12,8 +12,15 @@ AC_PREREQ(2.59)
 AC_INIT([ceph], [0.56], [[email protected]])
 
 # Create release string.  Used with VERSION for RPMs.
+RPM_RELEASE=0
 AC_SUBST(RPM_RELEASE)
-RPM_RELEASE=`if expr index $(git describe --always) '-' > /dev/null ; then git describe --always | cut -d- -f2- | tr '-' '.' ; else echo "0"; fi`
+if test -d ".git" ; then
+  AC_CHECK_PROG(GIT_CHECK, git, yes)
+  if test x"$GIT_CHECK" = x"yes"; then
+    RPM_RELEASE=`if expr index $(git describe --always) '-' > /dev/null ; then git describe --always | cut -d- -f2- | tr '-' '.' ; else echo "0"; fi`
+  fi
+fi
+AC_MSG_NOTICE([RPM_RELEASE='$RPM_RELEASE'])
 
 AC_CONFIG_MACRO_DIR([m4])
 
Signature · 1 line
1.8.1.1
#2 lore raw

PATCH 2/2 configure: remove -m4_include(m4/acx_pthread.m4)

In reply to Danny Al-Gaaf

Since we use already AC_CONFIG_MACRO_DIR, no need to include m4/acx_pthread.m4 extra.

---
 configure.ac | 1 -
 1 file changed, 1 deletion(-)
configure.ac +0 -1
index f87140f..ffbd150 100644
@@ -1,6 +1,5 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
-m4_include(m4/acx_pthread.m4)
 
 # Autoconf
 AC_PREREQ(2.59)
Signature · 1 line
1.8.1.1
#3 lore raw

Re: [PATCH 2/2] configure: remove -m4_include(m4/acx_pthread.m4)

Hi Danny -

These two patches are now in the wip-rpm-update-2 branch. Will merge into master after build test.

Thanks,
Gary

Quoted 26 lines · Danny Al-Gaaf

Since we use already AC_CONFIG_MACRO_DIR, no need to include m4/acx_pthread.m4 extra.

---
configure.ac | 1 -

1 file changed, 1 deletion(-)
configure.ac +0 -1
index f87140f..ffbd150 100644
@@ -1,6 +1,5 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
-m4_include(m4/acx_pthread.m4)
 
 # Autoconf
 AC_PREREQ(2.59)
Signature · 6 lines
1.8.1.1

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html