6 LTV="libtoolize (GNU libtool) 1.5.22"
7 ACV="autoconf (GNU Autoconf) 2.61"
8 AMV="automake (GNU automake) 1.10"
10 This script documents the versions of the tools I'm using to build rpm:
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.
19 libtoolize=`which glibtoolize 2>/dev/null`
22 *) libtoolize=`which libtoolize 2>/dev/null`
25 *) libtoolize=libtoolize
29 [ "`$libtoolize --version | head -1`" != "$LTV" ] && echo "$USAGE" # && exit 1
30 [ "`autoconf --version | head -1`" != "$ACV" ] && echo "$USAGE" # && exit 1
31 [ "`automake --version | head -1 | sed -e 's/1\.4[a-z]/1.4/'`" != "$AMV" ] && echo "$USAGE" # && exit 1
34 if [ X"$@" = X -a "X`uname -s`" = "XDarwin" -a -d /opt/local ]; then
35 export myopts="--prefix=/usr --disable-nls"
36 export CPPFLAGS="-I${myprefix}/include"
39 # XXX add missing config.rpath, kludgery around what's apparently
40 # gettext related stuff...
46 $libtoolize --copy --force
52 if [ "$1" = "--noconfigure" ]; then
56 if [ X"$@" = X -a "X`uname -s`" = "XLinux" ]; then
57 if [ -d /usr/share/man ]; then
59 infodir=/usr/share/info
64 if [ -d /usr/lib/nptl ]; then
65 enable_posixmutexes="--enable-posixmutexes"
69 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} ${enable_posixmutexes} "$@"
71 ./configure ${myopts} "$@"