1998-03-05 00:53:54 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
1999-07-27 07:39:34 +08:00
|
|
|
export CFLAGS
|
|
|
|
export LDFLAGS
|
|
|
|
|
2002-02-11 05:13:52 +08:00
|
|
|
LTV="libtoolize (GNU libtool) 1.4.2"
|
2002-05-02 06:13:00 +08:00
|
|
|
ACV="autoconf (GNU Autoconf) 2.53"
|
|
|
|
AMV="automake (GNU automake) 1.6.1"
|
1999-01-27 03:55:43 +08:00
|
|
|
USAGE="
|
2001-06-29 06:19:08 +08:00
|
|
|
This script documents the versions of the tools I'm using to build rpm:
|
2002-02-11 05:13:52 +08:00
|
|
|
libtool-1.4.2
|
2002-05-02 06:13:00 +08:00
|
|
|
autoconf-2.53
|
|
|
|
automake-1.6.1
|
2001-06-29 06:19:08 +08:00
|
|
|
Simply edit this script to change the libtool/autoconf/automake versions
|
|
|
|
checked if you need to, as rpm should build (and has built) with all
|
|
|
|
recent versions of libtool/autoconf/automake.
|
1999-01-27 03:55:43 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
[ "`libtoolize --version`" != "$LTV" ] && echo "$USAGE" && exit 1
|
2002-02-11 05:13:52 +08:00
|
|
|
[ "`autoconf --version | head -1`" != "$ACV" ] && echo "$USAGE" && exit 1
|
1999-02-16 11:07:24 +08:00
|
|
|
[ "`automake --version | head -1 | sed -e 's/1\.4[a-z]/1.4/'`" != "$AMV" ] && echo "$USAGE" && exit 1
|
1999-01-27 03:55:43 +08:00
|
|
|
|
2002-05-02 06:13:00 +08:00
|
|
|
(echo "--- popt"; cd popt; ./autogen.sh --noconfigure "$@")
|
|
|
|
(echo "--- zlib"; cd zlib; ./autogen.sh --noconfigure "$@")
|
|
|
|
(echo "--- beecrypt"; cd beecrypt; ./autogen.sh --noconfigure "$@")
|
2002-06-20 10:19:21 +08:00
|
|
|
(echo "--- libelf"; cd libelf; ./autogen.sh --noconfigure "$@")
|
2002-05-02 06:13:00 +08:00
|
|
|
|
2002-06-20 10:19:21 +08:00
|
|
|
echo "--- rpm"
|
1999-01-26 03:46:40 +08:00
|
|
|
libtoolize --copy --force
|
|
|
|
aclocal
|
1998-03-05 00:53:54 +08:00
|
|
|
autoheader
|
2002-05-02 06:13:00 +08:00
|
|
|
automake -a -c
|
1998-03-05 00:53:54 +08:00
|
|
|
autoconf
|
|
|
|
|
|
|
|
if [ "$1" = "--noconfigure" ]; then
|
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
1998-09-06 04:02:08 +08:00
|
|
|
if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
|
2000-06-01 23:40:30 +08:00
|
|
|
if [ -d /usr/share/man ]; then
|
|
|
|
mandir=/usr/share/man
|
|
|
|
infodir=/usr/share/info
|
|
|
|
else
|
|
|
|
mandir=/usr/man
|
|
|
|
infodir=/usr/info
|
|
|
|
fi
|
2002-05-26 01:15:20 +08:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} --without-javaglue "$@"
|
1998-03-05 00:53:54 +08:00
|
|
|
else
|
1999-04-12 06:15:26 +08:00
|
|
|
./configure "$@"
|
1998-03-05 00:53:54 +08:00
|
|
|
fi
|