From: Bastien N. <ha...@us...> - 2003-05-21 14:35:07
|
Update of /cvsroot/xine/xine-lib In directory sc8-pr-cvs1:/tmp/cvs-serv25854 Modified Files: configure.ac Log Message: - fix the libpng check for distros without a libpng-config, RHL 7.3 is in that case Index: configure.ac =================================================================== RCS file: /cvsroot/xine/xine-lib/configure.ac,v retrieving revision 1.139 retrieving revision 1.140 diff -u -r1.139 -r1.140 --- configure.ac 19 May 2003 16:33:04 -0000 1.139 +++ configure.ac 21 May 2003 14:35:04 -0000 1.140 @@ -661,10 +661,13 @@ 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` |