configure: fix --with-gifincludedir

GIF_INCLUDES were not being used by examples/Makefile.am

Change-Id: I981ad473f6efe24f095e2b9cc8b133d6ae3658b6
This commit is contained in:
James Zern
2013-01-08 12:39:43 -08:00
parent 476e293fe8
commit 03c749ebb8
2 changed files with 5 additions and 1 deletions

View File

@@ -153,10 +153,13 @@ LIBS=$SAVED_LIBS
dnl === check for GIF support ===
GIF_INCLUDES=""
GIF_LIBS=""
WITHLIB_OPTION([gif], [GIF])
SAVED_CPPFLAGS=$CPPFLAGS
SAVED_LIBS=$LIBS
CPPFLAGS="$GIF_INCLUDES $CPPFLAGS"
LIBS="$GIF_LIBS $LIBS"
AC_CHECK_HEADER(gif_lib.h,
@@ -169,6 +172,7 @@ AC_CHECK_HEADER(gif_lib.h,
AC_MSG_WARN(gif library not available - no gif_lib.h)
)
AC_SUBST(GIF_LIBS)
AC_SUBST(GIF_INCLUDES)
CPPFLAGS=$SAVED_CPPFLAGS
LIBS=$SAVED_LIBS