45 lines (33 with data), 938 Bytes
dnl Process this file with autoconf to produce a configure script.
dnl Boilerplate
AC_INIT(metalink, 0.3.2)
AC_CONFIG_SRCDIR(src/metalink.cc)
AM_INIT_AUTOMAKE
AC_PROG_CXX
dnl Library tests
AM_PATH_LIBGCRYPT
AX_BOOST_BASE()
AX_BOOST_REGEX()
AX_BOOST_PROGRAM_OPTIONS()
AX_BOOST_FILESYSTEM()
dnl Fix the boost m4 macro output: on some platforms it prepends -l, other it doesn't
dnl Case switch trick is thanks to greycat on freenode.net/bash
if test "x${BOOST_FILESYSTEM_LIB}" != "x"; then
case "${BOOST_FILESYSTEM_LIB}" in
-l*) : ;;
*) BOOST_FILESYSTEM_LIB="-l"${BOOST_FILESYSTEM_LIB};;
esac
fi
if test "x${BOOST_PROGRAM_OPTIONS_LIB}" != "x"; then
case "${BOOST_PROGRAM_OPTIONS_LIB}" in
-l*) : ;;
*) BOOST_PROGRAM_OPTIONS_LIB="-l"${BOOST_PROGRAM_OPTIONS_LIB};;
esac
fi
if test "x${BOOST_REGEX_LIB}" != "x"; then
case "${BOOST_REGEX_LIB}" in
-l*) : ;;
*) BOOST_REGEX_LIB="-l"${BOOST_REGEX_LIB};;
esac
fi
AC_OUTPUT(Makefile)