From: Andre Noll Date: Sun, 13 Aug 2006 12:11:24 +0000 (+0200) Subject: configure.ac: Check also for gkrellm header X-Git-Tag: v0.2.14~54 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=0cfeeef6fef9f1f08620edf510f2ee30c9b3aad8;p=paraslash.git configure.ac: Check also for gkrellm header and do not try to build para_krell if it gkrellm.h could not be found. --- diff --git a/configure.ac b/configure.ac index 6b143929..eb58bc68 100644 --- a/configure.ac +++ b/configure.ac @@ -182,11 +182,16 @@ fi ########################################################################### gtk2 pkg_modules="gtk+-2.0 >= 2.0.0" -PKG_CHECK_MODULES(GTK, [$pkg_modules], [extras="$extras para_krell.so"], [ - AC_MSG_WARN([gtk+-2 not found, can not build para_krell]) -]) -AC_SUBST(GTK_CFLAGS) -AC_SUBST(GTK_LIBS) +build_para_krell="yes" +PKG_CHECK_MODULES(GTK, [$pkg_modules], [], [build_para_krell="no"]) +AC_CHECK_HEADER(gkrellm2/gkrellm.h, [], [build_para_krell="no"]) +if test build_para_krell = "yes"; then + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + extras="$extras para_krell.so" +else + AC_MSG_WARN([can not build para_krell]) +fi ########################################################################### sdl AC_CHECK_LIB([SDL_image], [SDL_Init], [extras="$extras para_sdl_gui"], [