diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2003-05-21 14:35:04 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2003-05-21 14:35:04 +0000 |
commit | 6530cbd7d903865d36e31f4109ff4446a284b024 (patch) | |
tree | c3879318c2dc54d6acfdbe62d3eee3eb2047210b | |
parent | 23fde083759eb06ba3368202d0ab75ed5fc3ff26 (diff) | |
download | xine-lib-6530cbd7d903865d36e31f4109ff4446a284b024.tar.gz xine-lib-6530cbd7d903865d36e31f4109ff4446a284b024.tar.bz2 |
- fix the libpng check for distros without a libpng-config, RHL 7.3 is in that case
CVS patchset: 4894
CVS date: 2003/05/21 14:35:04
-rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 1a4a6d4c0..3420ed991 100644 --- a/configure.ac +++ b/configure.ac @@ -661,10 +661,13 @@ dnl AC_MSG_RESULT([*** image decoder will be disabled ***]))], dnl AC_MSG_RESULT([*** image decoder will be disabled ***])) dnl AM_CONDITIONAL(HAVE_LIBPNG, test x"$have_libpng" = "xyes") dnl AC_SUBST(PNG_LIBS) - + AC_PATH_PROG(LIBPNG_CONFIG, libpng-config, no) if test "$LIBPNG_CONFIG" = "no" ; then - AC_MSG_RESULT([*** libpng-config not found, png support disabled ***]) + AC_CHECK_LIB(png, png_create_read_struct, + have_libpng=yes + PNG_LIBS="-lpng", + AC_MSG_RESULT([*** All libpng dependent parts will be disabled ***])) else PNG_CFLAGS=`$LIBPNG_CONFIG --cflags` PNG_LIBS=`$LIBPNG_CONFIG --libs` |