diff options
| author | Ian MacArthur <imacarthur@gmail.com> | 2008-11-09 13:15:05 +0000 |
|---|---|---|
| committer | Ian MacArthur <imacarthur@gmail.com> | 2008-11-09 13:15:05 +0000 |
| commit | f61a8993d55095b16dfb0d0fb1c7711ed2ff5243 (patch) | |
| tree | d110a3e99513adb99ad1529dfad1b5c5cc271152 /configure.in | |
| parent | 4ec0d5c0050f04ab54f31804b5a3d3dc57120c5d (diff) | |
STR 1949 - revise configure.in to cerrectly detect png_set_tRNS_to_alpha
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 6758a17a2..be93bd800 100644 --- a/configure.in +++ b/configure.in @@ -578,21 +578,24 @@ AC_CHECK_LIB(z,gzgets, AC_ARG_ENABLE(localpng, [ --enable-localpng use local PNG library, default=auto], [if test x$enable_localpng = xyes; then - ac_cv_lib_png_png_set_tRNS_to_alpha=no + ac_cv_lib_png_png_set_tRNS_to_alpha=yes fi]) - + AC_CHECK_LIB(png,png_set_tRNS_to_alpha, [ PNGINC="" PNG="" IMAGELIBS="-lpng $IMAGELIBS" AC_DEFINE(HAVE_LIBPNG) - AC_CHECK_HEADER(png.h, AC_DEFINE(HAVE_PNG_H))],[ + AC_DEFINE(HAVE_PNG_GET_VALID) + AC_DEFINE(HAVE_PNG_SET_TRNS_TO_ALPHA) AC_CHECK_HEADER(png.h, AC_DEFINE(HAVE_PNG_H))],[ if test x$enable_localpng = xno; then PNGINC="" PNG="" else AC_DEFINE(HAVE_LIBPNG) AC_DEFINE(HAVE_PNG_H) + AC_DEFINE(HAVE_PNG_GET_VALID) + AC_DEFINE(HAVE_PNG_SET_TRNS_TO_ALPHA) PNGINC="-I../png" PNG="png" IMAGELIBS="-lfltk_png $IMAGELIBS" @@ -831,7 +834,7 @@ case $uname in if test x$enable_xdbe != xno; then AC_CHECK_HEADER(X11/extensions/Xdbe.h, AC_DEFINE(HAVE_XDBE),, [#include <X11/Xlib.h>]) - AC_CHECK_LIB(Xext, XdbeQueryExtension, + AC_CHECK_LIB(Xext, XdbeQueryExtension, LIBS="-lXext $LIBS") fi |
