public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: fabbione@sourceware.org
To: cluster-cvs@sources.redhat.com, cluster-devel@redhat.com
Subject: Cluster Project branch, STABLE2, updated. cluster-2.02.00-2-g241d93e
Date: Fri, 07 Mar 2008 04:28:00 -0000	[thread overview]
Message-ID: <20080307042819.5222.qmail@sourceware.org> (raw)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=241d93efae78a509e8cae5a2300ff2205686a5f9

The branch, STABLE2 has been updated
       via  241d93efae78a509e8cae5a2300ff2205686a5f9 (commit)
      from  3aa78efa2839cc3c00c8f70a3e2bb4c09ddc463c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 241d93efae78a509e8cae5a2300ff2205686a5f9
Author: Fabio M. Di Nitto <fabbione@fabbione.net>
Date:   Fri Mar 7 05:23:32 2008 +0100

    [BUILD] Fix build system with openais whitetank
    
    Attempt to autodetect if we are building against openais trunk
    or whitetank release. So far the only way is to detect is to if
    liblogsys is installed or not. So far none of the openais headers
    include a version that could be used to #ifdef within the code directly.
    
    Allow to force the build against whitetank release by adding
    --openaiswhitetank configure option.
    
    Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>

-----------------------------------------------------------------------

Summary of changes:
 cman/daemon/Makefile  |    3 +--
 configure             |   10 ++++++++++
 make/defines.mk.input |    1 +
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/cman/daemon/Makefile b/cman/daemon/Makefile
index ff169e1..0532e9b 100644
--- a/cman/daemon/Makefile
+++ b/cman/daemon/Makefile
@@ -22,11 +22,10 @@ include $(OBJDIR)/make/clean.mk
 include $(OBJDIR)/make/install.mk
 include $(OBJDIR)/make/uninstall.mk
 
-CFLAGS += -DOPENAIS_EXTERNAL_SERVICE
+CFLAGS += -DOPENAIS_EXTERNAL_SERVICE ${openaiswhitetank}
 CFLAGS += -fPIC
 CFLAGS += -I${ccsincdir} -I${openaisincdir}
 CFLAGS += -I${incdir}
-#CFLAGS += -DOPENAIS_WHITETANK
 
 LDFLAGS += -L${ccslibdir} -lccs 
 
diff --git a/configure b/configure
index fd7825e..be49f7f 100755
--- a/configure
+++ b/configure
@@ -62,6 +62,7 @@ my %options = (
 	readlinelibdir => \$readlinelibdir,
 	openaisincdir => \$openaisincdir,
 	openaislibdir => \$openaislibdir,
+	openaiswhitetank => \$openaiswhitetank,
 	aisexecbin => \$aisexecbin,
 	virtincdir => \$virtincdir,
 	virtlibdir => \$virtlibdir,
@@ -127,6 +128,7 @@ my $err = &GetOptions (\%options,
 		    'readlinelibdir=s',
 		    'openaisincdir=s',
 		    'openaislibdir=s',
+		    'openaiswhitetank',
 		    'aisexecbin=s',
 		    'virtincdir=s',
 		    'virtlibdir=s',
@@ -207,6 +209,7 @@ if ($help || !$err) {
   print "--readlinelibdir=\tthe base directory for readline libraries.  (Default: {libdir})\n";
   print "--openaisincdir=\tthe base directory for openais include files.  (Default: {incdir})\n";
   print "--openaislibdir=\tthe base directory for openais libraries.  (Default: {libdir}/openais)\n";
+  print "--openaiswhitetank\tforce build against openais whitetank releases.  (Default: autodetect)\n";
   print "--aisexecbin=\tlocation of aisexec executable file.  (Default: /usr/sbin/aisexec)\n";
   print "--nssincdir=\tthe base directory for libnss include files.  (Default: {incdir}/nss3)\n";
   print "--nsslibdir=\tthe base directory for libnss libraries.  (Default: {libdir})\n";
@@ -446,6 +449,12 @@ if (!$openaisincdir) {
 if (!$openaislibdir) {
   $openaislibdir="${libdir}/openais";
 }
+if (((!$openaiswhitetank) && (! -f "$openaislibdir/liblogsys.a" )) || ($openaiswhitetank)) {
+  $openaiswhitetank="-DOPENAIS_WHITETANK";
+  printf "\nBuilding against OpenAIS Whitetank\n";
+} else {
+  $openaiswhitetank="";
+}
 if (!$aisexecbin) {
   $aisexecbin="/usr/sbin/aisexec";
 }
@@ -592,6 +601,7 @@ while (<IFILE>) {
   $_ =~ s/\@SLANGLIBDIR\@/$slanglibdir/;
   $_ =~ s/\@OPENAISINCDIR\@/$openaisincdir/;
   $_ =~ s/\@OPENAISLIBDIR\@/$openaislibdir/;
+  $_ =~ s/\@OPENAISWHITETANK\@/$openaiswhitetank/;
   $_ =~ s/\@AISEXECBIN\@/$aisexecbin/;
   $_ =~ s/\@XENINCDIR\@/$xenincdir/;
   $_ =~ s/\@XENLIBDIR\@/$xenlibdir/;
diff --git a/make/defines.mk.input b/make/defines.mk.input
index 3f3f0e5..f3c732c 100644
--- a/make/defines.mk.input
+++ b/make/defines.mk.input
@@ -58,6 +58,7 @@ nsprincdir ?= @NSPRINCDIR@
 nsprlibdir ?= @NSPRLIBDIR@
 openaisincdir ?= @OPENAISINCDIR@
 openaislibdir ?= @OPENAISLIBDIR@
+openaiswhitetank ?= @OPENAISWHITETANK@
 aisexecbin ?= @AISEXECBIN@
 xenincdir ?= @XENINCDIR@
 xenlibdir ?= @XENLIBDIR@


hooks/post-receive
--
Cluster Project


                 reply	other threads:[~2008-03-07  4:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080307042819.5222.qmail@sourceware.org \
    --to=fabbione@sourceware.org \
    --cc=cluster-cvs@sources.redhat.com \
    --cc=cluster-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).