source: libcaca/trunk/caca-php/config.m4 @ 3133

Last change on this file since 3133 was 3119, checked in by nico, 15 years ago
  • Add a function "fetch_external_resource" that allows to fetch external php resources such as gd resouces
  • Add test for presence of gd development files in config.m4
  • Rename php function caca_dither_bitmap in caca_dither_bitmap_gd
File size: 509 bytes
Line 
1PHP_ARG_ENABLE(caca, whether to enable Libcaca support,
2[ --enable-caca   Enable Libcaca support])
3
4if test "$PHP_CACA" = "yes"; then
5        AC_CHECK_LIB(caca, caca_get_version, [
6                PHP_ADD_LIBRARY(caca,, CACA_SHARED_LIBADD)
7        ], [
8                AC_MSG_ERROR(libcaca development files required !)
9        ])
10
11        AC_CHECK_LIB(gd, gdImageSetPixel, [
12                PHP_ADD_LIBRARY(gd,, CACA_SHARED_LIBADD)
13        ], [
14                AC_MSG_ERROR(gd development files required !)
15        ])
16
17        PHP_NEW_EXTENSION(caca, php_caca.c, $ext_shared,,)
18        PHP_SUBST(CACA_SHARED_LIBADD)
19fi
Note: See TracBrowser for help on using the repository browser.