public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: dlm: master - build: cleanup autogen and stop warnings on configure
Date: Wed, 17 Jun 2009 11:28:00 -0000	[thread overview]
Message-ID: <20090617112830.130C21201EA@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=5965b6926fe46b7ecb16719c85383fbcfa1b48f4
Commit:        5965b6926fe46b7ecb16719c85383fbcfa1b48f4
Parent:        c8a0c09ab027104babf5584b7552b2053c8f72ba
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed Jun 17 13:27:52 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Jun 17 13:27:52 2009 +0200

build: cleanup autogen and stop warnings on configure

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 autogen.sh   |  151 +---------------------------------------------------------
 configure.ac |    2 +-
 2 files changed, 2 insertions(+), 151 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 647ec5e..7f0f2eb 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,153 +1,4 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
-testProgram()
-{
-  cmd=$1
-
-  if [ -z "$cmd" ]; then
-    return 1;
-  fi
-
-  arch=`uname -s`
-
-  # Make sure the which is in an if-block... on some platforms it throws exceptions
-  #
-  # The ERR trap is not executed if the failed command is part
-  #   of an until or while loop, part of an if statement, part of a &&
-  #   or  ||  list.
-  if
-     which $cmd  </dev/null >/dev/null 2>&1
-  then
-      :
-  else
-      return 1
-  fi
-
-  # The GNU standard is --version
-  if
-      $cmd --version </dev/null >/dev/null 2>&1
-  then
-      return 0
-  fi
-
-  # Maybe it suppports -V instead
-  if
-      $cmd -V </dev/null >/dev/null 2>&1
-  then
-      return 0
-  fi
-
-  # Nope, the program seems broken
-  return 1
-}
-
-arch=`uname -s`
-# Disable the errors on FreeBSD until a fix can be found.
-if [ ! "$arch" = "FreeBSD" ]; then
-set -e
-#
-#	All errors are fatal from here on out...
-#	The shell will complain and exit on any "uncaught" error code.
-#
-#
-#	And the trap will ensure sure some kind of error message comes out.
-#
-trap 'echo ""; echo "$0 exiting due to error (sorry!)." >&2' 0
-fi
-
-RC=0
-
-gnu="ftp://ftp.gnu.org/pub/gnu"
-
-# Check for Autoconf
-for command in autoconf autoconf213 autoconf253 autoconf259
-do
-  if
-      testProgram $command == 1
-  then
-    autoconf=$command
-    autoheader=`echo  "$autoconf" | sed -e 's/autoconf/autoheader/'`
-    autom4te=`echo  "$autoconf" | sed -e 's/autoconf/autmo4te/'`
-    autoreconf=`echo  "$autoconf" | sed -e 's/autoconf/autoreconf/'`
-    autoscan=`echo  "$autoconf" | sed -e 's/autoconf/autoscan/'`
-    autoupdate=`echo  "$autoconf" | sed -e 's/autoconf/autoupdate/'`
-    ifnames=`echo  "$autoconf" | sed -e 's/autoconf/ifnames/'`
-  fi
-done
-
-# Check for automake
-for command in automake19 automake-1.9 automake
-do
-  if
-      testProgram $command
-  then
-    automake=$command
-    aclocal=`echo  "$automake" | sed -e 's/automake/aclocal/'`
-
-  fi
-done
-
-# Check for libtool
-for command in libtoolize
-do
-  if
-      testProgram $command
-  then
-    libtoolize=$command
-  fi
-done
-
-if [ -z $autoconf ]; then
-    echo You must have autoconf installed to compile this package.
-    echo Download the appropriate package for your system,
-    echo or get the source tarball at: $gnu/autoconf/
-    exit 1
-
-elif [ -z $automake ]; then
-    echo You must have automake installed to compile this package.
-    echo Download the appropriate package for your system,
-    echo or get the source tarball at: $gnu/automake/
-    exit 1
-
-elif [ -z $libtoolize ]; then
-    echo You must have libtool installed to compile this package.
-    echo Download the appropriate package for your system,
-    echo or get the source tarball at: $gnu/libtool/
-    exit 1
-
-fi
-
-# Create local copies so that the incremental updates will work.
-rm -f ./autoconf ./automake ./autoheader ./libtoolize
-ln -s `which $autoconf` ./autoconf
-ln -s `which $automake` ./automake
-ln -s `which $autoheader` ./autoheader
-ln -s `which $libtoolize` ./libtoolize
-
-printf "$autoconf:\t"
-$autoconf --version | head -n 1
-
-printf "$automake:\t"
-$automake --version | head -n 1
-
-printf "$libtoolize:\t"
-$libtoolize --version | head -n 1
-
-echo $libtoolize --copy --install
-$libtoolize --copy --install
-
-echo $aclocal $ACLOCAL_FLAGS
-$aclocal $ACLOCAL_FLAGS
-
-echo $autoheader
-$autoheader
-
-echo $automake --add-missing --include-deps --copy
-$automake --add-missing --include-deps --copy
-
-echo $autoconf
-$autoconf
-
-echo Now run ./configure
-trap '' 0
+autoreconf -i -v && echo Now run ./configure and make
diff --git a/configure.ac b/configure.ac
index a2a7b60..d16492b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
 
 AC_PREREQ([2.63b])
 AC_INIT([dlm], [master], [linux-cluster@redhat.com])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([-Wno-portability])
 LT_PREREQ([2.2.7])
 LT_INIT
 


                 reply	other threads:[~2009-06-17 11: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=20090617112830.130C21201EA@lists.fedorahosted.org \
    --to=fabbione@fedoraproject.org \
    --cc=cluster-cvs-relay@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).