1998-03-05 00:53:54 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
1999-07-27 07:39:34 +08:00
|
|
|
export CFLAGS
|
|
|
|
export LDFLAGS
|
|
|
|
|
2000-06-06 17:01:06 +08:00
|
|
|
LTV="libtoolize (GNU libtool) 1.3.5"
|
1999-01-27 03:55:43 +08:00
|
|
|
ACV="Autoconf version 2.13"
|
|
|
|
AMV="automake (GNU automake) 1.4"
|
|
|
|
USAGE="
|
|
|
|
You need to install:
|
2000-06-07 04:06:09 +08:00
|
|
|
libtool-1.3.5
|
1999-01-27 03:55:43 +08:00
|
|
|
autoconf-2.13
|
1999-03-18 02:11:01 +08:00
|
|
|
automake-1.4
|
1999-01-27 03:55:43 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
[ "`libtoolize --version`" != "$LTV" ] && echo "$USAGE" && exit 1
|
|
|
|
[ "`autoconf --version`" != "$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
|
|
|
|
1999-01-26 03:46:40 +08:00
|
|
|
(cd popt; ./autogen.sh --noconfigure "$@")
|
|
|
|
libtoolize --copy --force
|
|
|
|
aclocal
|
1998-03-05 00:53:54 +08:00
|
|
|
autoheader
|
1999-01-26 03:46:40 +08:00
|
|
|
automake
|
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
|
2001-01-01 04:46:18 +08:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=${infodir} --mandir=${mandir} "$@"
|
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
|