From 43f8d08dbb0fabf29c3be3c8f1ad21329706b21f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 May 2004 02:03:28 +0000 Subject: [PATCH] add libpng check --- stepmania/configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 6d98cb6767..440926c7e2 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -79,6 +79,16 @@ if test "$have_SDL_image" = "no"; then exit 1 fi +have_libpng=yes +AC_SEARCH_LIBS(png_create_read_struct, [png], , have_libpng=no) +AC_CHECK_HEADER(png.h, , have_libpng=no) +if test "$have_libpng" = "no"; then + echo + echo "*** libpng is required to build StepMania; please make sure that" + echo "*** it is installed to continue the build process." + exit 1 +fi + have_libjpeg=yes AC_SEARCH_LIBS(jpeg_read_scanlines, [jpeg], , have_libjpeg=no) AC_CHECK_HEADER(jpeglib.h, , have_libjpeg=no)