1998-10-17 14:47:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
|
|
|
PGM=GnuPG
|
|
|
|
DIE=no
|
|
|
|
|
1998-10-18 15:21:22 +00:00
|
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1 ; then
|
|
|
|
:
|
|
|
|
else
|
1998-10-17 14:47:14 +00:00
|
|
|
echo
|
|
|
|
echo "**Error**: You must have "\`autoconf\'" installed to compile $PGM."
|
1998-10-21 17:34:36 +00:00
|
|
|
echo ' (version 2.10 or newer is required)'
|
1998-10-18 15:21:22 +00:00
|
|
|
DIE="yes"
|
|
|
|
fi
|
1998-10-17 14:47:14 +00:00
|
|
|
|
1998-10-18 15:21:22 +00:00
|
|
|
if (automake --version) < /dev/null > /dev/null 2>&1 ; then
|
|
|
|
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
1998-10-21 17:34:36 +00:00
|
|
|
if (aclocal --version | awk 'NR==1 { if( $4 >= 1.3 ) exit 1; exit 0; }');
|
|
|
|
then
|
|
|
|
echo "**Error**: "\`aclocal\'" is too old."
|
|
|
|
echo ' (version 1.3 or newer is required)'
|
|
|
|
DIE="yes"
|
|
|
|
fi
|
1998-10-18 15:21:22 +00:00
|
|
|
else
|
1998-10-17 14:47:14 +00:00
|
|
|
echo
|
|
|
|
echo "**Error**: Missing "\`aclocal\'". The version of "\`automake\'
|
|
|
|
echo " installed doesn't appear recent enough."
|
1998-10-18 15:21:22 +00:00
|
|
|
DIE="yes"
|
|
|
|
fi
|
1998-10-21 17:34:36 +00:00
|
|
|
|
1998-10-18 15:21:22 +00:00
|
|
|
else
|
|
|
|
echo
|
|
|
|
echo "**Error**: You must have "\`automake\'" installed to compile $PGM."
|
|
|
|
echo ' (version 1.3 or newer is required)'
|
|
|
|
DIE="yes"
|
|
|
|
fi
|
1998-10-17 14:47:14 +00:00
|
|
|
|
|
|
|
if test "$DIE" = "yes"; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
automake --gnu;
|
|
|
|
autoheader
|
|
|
|
autoconf
|
|
|
|
|
1998-10-21 17:34:36 +00:00
|
|
|
echo "Ready to run ./configure"
|
|
|
|
|