~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
export CFLAGS
 
4
export LDFLAGS
 
5
 
 
6
LTV="libtoolize (GNU libtool) 1.4"
 
7
ACV="Autoconf version 2.13"
 
8
AMV="automake (GNU automake) 1.4-p5"
 
9
USAGE="
 
10
This script documents the versions of the tools I'm using to build rpm:
 
11
        libtool-1.4
 
12
        autoconf-2.13
 
13
        automake-1.4-p5
 
14
Simply edit this script to change the libtool/autoconf/automake versions
 
15
checked if you need to, as rpm should build (and has built) with all
 
16
recent versions of libtool/autoconf/automake.
 
17
"
 
18
 
 
19
[ "`libtoolize --version`" != "$LTV" ] && echo "$USAGE" && exit 1
 
20
[ "`autoconf --version`" != "$ACV" ] && echo "$USAGE" && exit 1
 
21
[ "`automake --version | head -1 | sed -e 's/1\.4[a-z]/1.4/'`" != "$AMV" ] && echo "$USAGE" && exit 1
 
22
 
 
23
(cd popt; ./autogen.sh --noconfigure "$@")
 
24
libtoolize --copy --force
 
25
aclocal
 
26
autoheader
 
27
automake
 
28
autoconf
 
29
 
 
30
if [ "$1" = "--noconfigure" ]; then 
 
31
    exit 0;
 
32
fi
 
33
 
 
34
if [ X"$@" = X  -a "X`uname -s`" = "XLinux" ]; then
 
35
    if [ -d /usr/share/man ]; then
 
36
        mandir=/usr/share/man
 
37
        infodir=/usr/share/info
 
38
    else
 
39
        mandir=/usr/man
 
40
        infodir=/usr/info
 
41
    fi
 
42
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} "$@"
 
43
else
 
44
    ./configure "$@"
 
45
fi