configure: better libagg detection

user heftig says that he can't find Agg_init() at link time when he uses
--enable-hud. Fix AM_CONDITIONAL to check for the proper variable and to
set in true only if --enable-hud was set.

Relayed by zeromus in a comment in #3250391
This commit is contained in:
riccardom 2011-06-08 10:03:30 +00:00
parent 93304143f9
commit 8032d4dee4
1 changed files with 1 additions and 2 deletions

View File

@ -202,8 +202,7 @@ if test "x$HAVE_ALSA" = "xno"; then
fi
fi
AM_CONDITIONAL([HAVE_LIBAGG], [test "${HAVE_LIBAGG}" = "yes"])
AM_CONDITIONAL([HAVE_LIBAGG], [test "x$libagg" = "xyes" -a "${FOUND_LIBAGG}" = "yes"])
if test "x$libagg" = "xyes" ; then
if test "x$FOUND_LIBAGG" = "xyes" ; then
AC_SUBST(LIBAGG_CFLAGS)