File: config.m4

package info (click to toggle)
php4-rrdtool 1.04-11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,168 kB
  • ctags: 85
  • sloc: sh: 9,365; ansic: 356; php: 102; makefile: 72; awk: 43
file content (24 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl $Id: config.m4,v 1.1 2000/07/19 17:23:35 joeym Exp joeym $

PHP_ARG_WITH(rrdtool, for RRDTool support,
[  --with-rrdtool[=DIR]      Include RRDTool support.  DIR is the rrdtool
                          install directory.])

if test "$PHP_RRDTOOL" != "no"; then
  for i in /usr/local /usr /opt/rrdtool /usr/local/rrdtool $PHP_RRDTOOL; do
    if test -f $i/include/rrd.h; then
      RRDTOOL_DIR=$i
    fi
  done

  if test -z "$RRDTOOL_DIR"; then
    AC_MSG_ERROR(Please reinstall rrdtool, or specify a directory - I cannot find rrd.h)
  fi
  PHP_ADD_INCLUDE($RRDTOOL_DIR/include)
  PHP_ADD_LIBRARY_WITH_PATH(rrd, $RRDTOOL_DIR/lib, RRDTOOL_SHARED_LIBADD)
  PHP_SUBST(RRDTOOL_SHARED_LIBADD)

  AC_DEFINE(HAVE_RRDTOOL,1,[ ])

  PHP_EXTENSION(rrdtool, $ext_shared)
fi