fwknop/autogen.sh
Michael Rash c6b2c0def4 Added gpgme autoconf m4 macro to fix an undefined AM_PATH_GPGME error
For systems that don't have libgpgme installed, the addition of the m4/gpgme.m4
file fixes the following error when running the autogen.sh script:

configure.ac:313: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:326: error: possibly undefined macro: AM_PATH_GPGME
configure.ac:329: error: possibly undefined macro: AC_MSG_FAILURE
2013-05-12 22:25:16 -04:00

31 lines
486 B
Bash
Executable File

#!/bin/sh
#
# autogen.sh
#
# Run this script to generate all the initial makefiles, etc.
#
set -x
if [ ! -d m4 ]; then
mkdir m4
fi
if [ ! -d config ]; then
mkdir config
fi
if which libtoolize &> /dev/null ; then
libtoolize --automake --copy --force
elif which glibtoolize &> /dev/null ; then
glibtoolize --automake --copy --force
else
echo 'No libtoolize or glibtoolize found!'
exit 1
fi
aclocal -I config -I m4
autoheader
automake --add-missing --copy
autoconf
###EOF###