diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-03-17 11:50:44 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2008-03-17 11:50:44 +0000 |
commit | 2167f10a2a5fbe07a1fc8d52c9a41eede6802d34 (patch) | |
tree | 5a3b9ab6d71c63db57f34e7b71b3d03b98addfa6 | |
parent | c1eb86060eb31bdf02de2bbae81b80b784670afe (diff) |
2008-03-16 Marc-Andre Lureau <marcandre.lureau@gmail.com>
* autogen.sh: updated to run configure with usual maintainer
options.
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | autogen.sh | 61 |
2 files changed, 65 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2008-03-16 Marc-Andre Lureau <marcandre.lureau@gmail.com> + + * autogen.sh: updated to run "configure" with usual maintainer + options. + 2007-03-02 Alexander Larsson <alexl@redhat.com> * Makefile.in: @@ -1,2 +1,61 @@ #!/bin/sh -autoconf +# Run this to generate all the initial makefiles, etc. + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +PROJECT=hicolor-icon-theme +TEST_TYPE=-f +FILE=index.theme + +DIE=0 + +(autoconf --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have autoconf installed to compile $PROJECT." + echo "Download the appropriate package for your distribution," + echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" + DIE=1 +} + +if test "$DIE" -eq 1; then + exit 1 +fi + +test $TEST_TYPE $FILE || { + echo "You must run this script in the top-level $PROJECT directory" + exit 1 +} + +if test -z "$*"; then + echo "I am going to run ./configure with no arguments - if you wish " + echo "to pass any to it, please specify them on the $0 command line." +fi + +autoconf || echo "autoconf failed - version 2.5x is probably required" + +cd $ORIGDIR + +run_configure=true +for arg in $*; do + case $arg in + --no-configure) + run_configure=false + ;; + *) + ;; + esac +done + +if $run_configure; then + $srcdir/configure --enable-maintainer-mode --config-cache "$@" + echo + echo "Now type 'make' to compile $PROJECT." +else + echo + echo "Now run 'configure' and 'make' to compile $PROJECT." +fi + |