diff --git a/caca-php/config.m4 b/caca-php/config.m4 index 76826c5..eb3fd35 100644 --- a/caca-php/config.m4 +++ b/caca-php/config.m4 @@ -8,7 +8,7 @@ if test "$PHP_CACA" = "yes"; then AC_MSG_ERROR(libcaca development files required !) ]) - PHP_CHECK_LIBRARY(gd, gdImageSetPixel, [ + AC_CHECK_LIB(gd, gdImageSetPixel, [ PHP_ADD_LIBRARY(gd,, CACA_SHARED_LIBADD) AC_DEFINE(HAVE_GD, 1, [Wheter you have development files of gd]) ]) diff --git a/caca-php/examples/dithering.php b/caca-php/examples/dithering.php index 0e74ef9..a8fa76f 100755 --- a/caca-php/examples/dithering.php +++ b/caca-php/examples/dithering.php @@ -7,7 +7,7 @@ if (!$img) $dither = caca_create_dither($img); if (!$dither) - die("Can not create dither. Maybe this image is not truecolor.\n"); + die("Can not create dither. Maybe you compiled caca-php without gd support.\n"); $canvas = caca_create_canvas(0, 0); $display = caca_create_display($canvas);