blob: 83f8ce5c287ac4661f348b38797c47e947bda058 (
plain) (
tree)
|
|
dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT(configure.in)
AC_ISC_POSIX
AM_INIT_AUTOMAKE(espik, 0.0.1)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C___ATTRIBUTE__
AC_ARG_WITH(ecore-config,
[ --with-ecore-config=ECORE_CONFIG use ecore-config specified ],
[
ECORE_CONFIG=$withval;
echo "using "$ECORE_CONFIG" for ecore-config";
],[
PROG="ecore-config";
AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
])
ecore_cflags=`$ECORE_CONFIG --cflags`
ecore_libs=`$ECORE_CONFIG --libs`
AC_SUBST(ecore_cflags)
AC_SUBST(ecore_libs)
# Setting have_valgrind to "no" seems pointless, but we just need to
# put something in as the 4th parameter, so configure doesn't abort
# when valgrind.pc isn't found.
have_valgrind="no"
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
AC_ARG_ENABLE(valgrind,
[ --enable-valgrind enable valgrind support], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_valgrind="yes"
else
AC_MSG_RESULT(no)
have_valgrind="no"
VALGRIND_CFLAGS=""
VALGRIND_LIBS=""
fi
], [
have_valgrind=$have_valgrind
]
)
if test x$have_valgrind = "xyes"; then
AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
fi
AC_OUTPUT([
Makefile
src/Makefile])
|