File: config.w32

package info (click to toggle)
php-rrd 2.0.3%2B1.1.3-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 496 kB
  • sloc: ansic: 2,447; xml: 665; makefile: 58; php: 3
file content (22 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// vim: ft=javascript:

ARG_WITH("rrd", "whether to enable RRD support", "no");

if ("no" != PHP_RRD) {
	if (CHECK_LIB("rrdlib.lib;librrd*.lib", "rrd", PHP_RRD) &&
			CHECK_HEADER_ADD_INCLUDE("rrd.h", "CFLAGS_RRD")) {

		/* This leads to mode_t redefinition, but actually it's strange as it
		seems to be dedicated to perl. */
		ADD_FLAG("CFLAGS_RRD", "/D PERLPATCHLEVEL=0");

		ADD_FLAG("CFLAGS_RRD", "/D HAVE_RRD_LASTUPDATE_R=1");

		EXTENSION("rrd", "rrd.c rrd_graph.c rrd_create.c rrd_update.c rrd_info.c");

		AC_DEFINE('HAVE_RRD', 1, 'Have RRD library');
	} else {
		WARNING("rrd not enabled, libs or headers not found");
	}
}