Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/e
Dir : e17/apps/e Modified Files: configure.in Log Message: added valgrind support =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/configure.in,v retrieving revision 1.90 retrieving revision 1.91 diff -u -3 -r1.90 -r1.91 --- configure.in 6 Oct 2005 08:47:11 -0000 1.90 +++ configure.in 6 Oct 2005 18:49:53 -0000 1.91 @@ -35,7 +35,32 @@ fi AC_SUBST(fnmatch_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 "$enableval" = "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 + MODULE_ARCH="$host_os-$host_cpu" AC_SUBST(MODULE_ARCH) AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture") ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs