2
# Run this to generate all the initial makefiles, etc.
3
# Taken from the GNOME package http://www.gnome.org
6
PKG_NAME="rxtx library"
10
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
12
echo "**Error**: You must have "\`autoconf\'" installed to compile rxtx."
13
echo "Download the appropriate package for your distribution,"
14
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
18
# avoid libtool on Mac OS X codename Darwin Dmitry
21
if test `uname` != "Darwin"; then
22
(libtool --version) < /dev/null > /dev/null 2>&1 || {
24
echo "**Error**: You must have "\`libtool\'" installed to compile rxtx."
25
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz"
26
echo "(or a newer version if it is available)"
31
(automake --version) < /dev/null > /dev/null 2>&1 || {
33
echo "**Error**: You must have "\`automake\'" installed to compile rxtx."
34
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
35
echo "(or a newer version if it is available)"
41
# if no automake, don't bother testing for aclocal
42
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
44
echo "**Error**: Missing "\`aclocal\'". The version of "\`automake\'
45
echo "installed doesn't appear recent enough."
46
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
47
echo "(or a newer version if it is available)"
51
if test "$DIE" -eq 1; then
55
#if test -z "$*"; then
56
# echo "**Warning**: I am going to run "\`configure\'" with no arguments."
57
# echo "If you wish to pass any to it, please specify them on the"
58
# echo \`$0\'" command line."
62
for j in `find $srcdir -name configure.in -print`
65
if test -f $i/NO-AUTO-GEN; then
66
echo skipping $i -- flagged as no auto-gen
68
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $j`
71
test -n "$macrodirs" && echo \`aclocal\' will also look in \`$macrodirs\'
73
aclocalinclude="$ACLOCAL_FLAGS"; \
74
for k in $macrodirs; do \
75
if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \
76
else echo "**Warning**: No such directory \`$k'. Ignored."; fi; \
78
libtoolize --copy --force; \
79
aclocal $aclocalinclude; \
80
autoheader; automake --add-missing --gnu; autoheader; autoconf)
84
if test x$NOCONFIGURE = x; then
85
#echo running $srcdir/configure --enable-maintainer-mode "$@"
86
#$srcdir/configure --enable-maintainer-mode "$@" \
87
#&& echo Now type \`make\' to compile the $PKG_NAME
89
echo Skipping configure process.