~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/hwapi/config.m4

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl $Id: config.m4,v 1.3 2002/09/19 20:14:33 derick Exp $
 
2
 
 
3
PHP_ARG_WITH(hwapi, for hwapi support,
 
4
[  --with-hwapi[=DIR]      Include official Hyperwave API support])
 
5
 
 
6
if test "$PHP_HWAPI" != "no"; then
 
7
  if test -r $PHP_HWAPI/include/sdk/api/object.h; then
 
8
    HWAPI_DIR=$PHP_HWAPI
 
9
  else
 
10
    AC_MSG_CHECKING(for HWAPI in default path)
 
11
    for i in /usr/local /usr; do
 
12
      if test -r $i/include/hwapi/sdk/api/object.h; then
 
13
        HWAPI_DIR=$i
 
14
        AC_MSG_RESULT(found in $i)
 
15
      fi
 
16
    done
 
17
  fi
 
18
 
 
19
  if test -z "$HWAPI_DIR"; then
 
20
    AC_MSG_RESULT(not found)
 
21
    AC_MSG_ERROR(Please install the hwapi >= 1.0.0 distribution)
 
22
  fi
 
23
 
 
24
  PHP_ADD_INCLUDE($HWAPI_DIR/include/hwapi)
 
25
  PHP_SUBST(HWAPI_SHARED_LIBADD)
 
26
  PHP_ADD_LIBRARY_WITH_PATH(hwapi, $HWAPI_DIR/lib, HWAPI_SHARED_LIBADD)
 
27
  AC_DEFINE(HAVE_HWAPI,1,[ ])
 
28
 
 
29
  PHP_REQUIRE_CXX
 
30
  PHP_NEW_EXTENSION(hwapi, hwapi.cpp, $ext_shared)
 
31
  PHP_ADD_LIBRARY(hwapi)
 
32
  PHP_ADD_LIBRARY(pthread)
 
33
  PHP_ADD_LIBRARY(stdc++)
 
34
  PHP_ADD_INCLUDE($HWAPI_DIR/include)
 
35
fi