File: config.m4

package info (click to toggle)
php4 6%3A4.4.4-8%2Betch1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 34,976 kB
  • ctags: 39,148
  • sloc: ansic: 340,486; php: 34,786; cpp: 10,150; sh: 9,010; lex: 2,180; yacc: 1,712; xml: 1,335; makefile: 559; awk: 466; java: 455; perl: 154
file content (35 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
dnl $Id: config.m4,v 1.3 2002/09/19 20:14:33 derick Exp $

PHP_ARG_WITH(hwapi, for hwapi support,
[  --with-hwapi[=DIR]      Include official Hyperwave API support])

if test "$PHP_HWAPI" != "no"; then
  if test -r $PHP_HWAPI/include/sdk/api/object.h; then
    HWAPI_DIR=$PHP_HWAPI
  else
    AC_MSG_CHECKING(for HWAPI in default path)
    for i in /usr/local /usr; do
      if test -r $i/include/hwapi/sdk/api/object.h; then
        HWAPI_DIR=$i
        AC_MSG_RESULT(found in $i)
      fi
    done
  fi

  if test -z "$HWAPI_DIR"; then
    AC_MSG_RESULT(not found)
    AC_MSG_ERROR(Please install the hwapi >= 1.0.0 distribution)
  fi

  PHP_ADD_INCLUDE($HWAPI_DIR/include/hwapi)
  PHP_SUBST(HWAPI_SHARED_LIBADD)
  PHP_ADD_LIBRARY_WITH_PATH(hwapi, $HWAPI_DIR/lib, HWAPI_SHARED_LIBADD)
  AC_DEFINE(HAVE_HWAPI,1,[ ])

  PHP_REQUIRE_CXX
  PHP_NEW_EXTENSION(hwapi, hwapi.cpp, $ext_shared)
  PHP_ADD_LIBRARY(hwapi)
  PHP_ADD_LIBRARY(pthread)
  PHP_ADD_LIBRARY(stdc++)
  PHP_ADD_INCLUDE($HWAPI_DIR/include)
fi