cec37c9b66
The current unused implementation for message-ids in the logs depends on automatically generated files. The generated files are not included in the distributed tarball. This causes issues when distributions build packages, they need to re-run ./autogen.sh to create the needed files. I thought of including the generated files in the distribution tarball. However, the contents of these files are not actively used, so it seems to make more sense to drop it all together. These functions were the only users of libintl and gettext too, so dropped the requirement checking from configure.ac. A replacement for the message-id logging framework is in progress. Any changes that this patch makes, can be reverted in the submission of patches for the new framework. Reference: http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/6212 Change-Id: Iea82dd3910944a5c6be3ee393806eccabd575e11 BUG: 1038391 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/7714 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
97 lines
1.9 KiB
Bash
Executable File
97 lines
1.9 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
echo
|
|
echo ... GlusterFS autogen ...
|
|
echo
|
|
|
|
## Check all dependencies are present
|
|
MISSING=""
|
|
|
|
# Check for aclocal
|
|
env aclocal --version > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
ACLOCAL=aclocal
|
|
else
|
|
MISSING="$MISSING aclocal"
|
|
fi
|
|
|
|
# Check for autoconf
|
|
env autoconf --version > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
AUTOCONF=autoconf
|
|
else
|
|
MISSING="$MISSING autoconf"
|
|
fi
|
|
|
|
# Check for autoheader
|
|
env autoheader --version > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
AUTOHEADER=autoheader
|
|
else
|
|
MISSING="$MISSING autoheader"
|
|
fi
|
|
|
|
# Check for automake
|
|
env automake --version > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
AUTOMAKE=automake
|
|
else
|
|
MISSING="$MISSING automake"
|
|
fi
|
|
|
|
# Check for libtoolize or glibtoolize
|
|
env libtoolize --version > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
# libtoolize was found, so use it
|
|
TOOL=libtoolize
|
|
else
|
|
# libtoolize wasn't found, so check for glibtoolize
|
|
env glibtoolize --version > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
TOOL=glibtoolize
|
|
else
|
|
MISSING="$MISSING libtoolize/glibtoolize"
|
|
fi
|
|
fi
|
|
|
|
# Check for tar
|
|
env tar -cf /dev/null /dev/null > /dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
MISSING="$MISSING tar"
|
|
fi
|
|
|
|
## If dependencies are missing, warn the user and abort
|
|
if [ "x$MISSING" != "x" ]; then
|
|
echo "Aborting."
|
|
echo
|
|
echo "The following build tools are missing:"
|
|
echo
|
|
for pkg in $MISSING; do
|
|
echo " * $pkg"
|
|
done
|
|
echo
|
|
echo "Please install them and try again."
|
|
echo
|
|
exit 1
|
|
fi
|
|
|
|
## Do the autogeneration
|
|
echo Running ${ACLOCAL}...
|
|
$ACLOCAL -I ./contrib/aclocal
|
|
echo Running ${AUTOHEADER}...
|
|
$AUTOHEADER
|
|
echo Running ${TOOL}...
|
|
$TOOL --automake --copy --force
|
|
echo Running ${AUTOCONF}...
|
|
$AUTOCONF
|
|
echo Running ${AUTOMAKE}...
|
|
$AUTOMAKE --add-missing --copy --foreign
|
|
|
|
# Run autogen in the argp-standalone sub-directory
|
|
echo "Running autogen.sh in argp-standalone ..."
|
|
( cd contrib/argp-standalone;./autogen.sh )
|
|
|
|
# Instruct user on next steps
|
|
echo
|
|
echo "Please proceed with configuring, compiling, and installing."
|