Typo.
[platform/upstream/rpm.git] / autogen.sh
1 #!/bin/sh
2
3 LTV="libtoolize (GNU libtool) 1.2d"
4 ACV="Autoconf version 2.13"
5 AMV="automake (GNU automake) 1.4"
6 USAGE="
7 You need to install:
8         libtool-1.2d
9         autoconf-2.13
10         automake-2.4
11 "
12
13 [ "`libtoolize --version`" != "$LTV" ] && echo "$USAGE" && exit 1
14 [ "`autoconf --version`" != "$ACV" ] && echo "$USAGE" && exit 1
15 [ "`automake --version | head -1`" != "$AMV" ] && echo "$USAGE" && exit 1
16
17 (cd popt; ./autogen.sh --noconfigure "$@")
18 libtoolize --copy --force
19 aclocal
20 autoheader
21 automake
22 autoconf
23
24 if [ "$1" = "--noconfigure" ]; then 
25     exit 0;
26 fi
27
28 if [ X"$@" = X  -a "X`uname -s`" = "XLinux" ]; then
29     ./configure --disable-shared --prefix=/usr
30 else
31     ./configure --disable-shared "$@"
32 fi