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

« back to all changes in this revision

Viewing changes to ext/interbase/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
 
2
dnl $Id: config.m4,v 1.20 2004/05/12 14:29:42 abies Exp $
 
3
dnl
 
4
 
 
5
PHP_ARG_WITH(interbase,for InterBase support,
 
6
[  --with-interbase[=DIR]  Include InterBase support.  DIR is the InterBase base
 
7
                          install directory, defaults to /usr/interbase])
 
8
 
 
9
if test "$PHP_INTERBASE" != "no"; then
 
10
  if test "$PHP_INTERBASE" = "yes"; then
 
11
    IBASE_INCDIR=/usr/interbase/include
 
12
    IBASE_LIBDIR=/usr/interbase/lib
 
13
  else
 
14
    IBASE_INCDIR=$PHP_INTERBASE/include
 
15
    IBASE_LIBDIR=$PHP_INTERBASE/lib
 
16
  fi
 
17
 
 
18
  PHP_CHECK_LIBRARY(fbclient, isc_detach_database,
 
19
  [
 
20
    IBASE_LIBNAME=fbclient
 
21
  ], [
 
22
    PHP_CHECK_LIBRARY(gds, isc_detach_database,
 
23
    [
 
24
      IBASE_LIBNAME=gds
 
25
    ], [
 
26
      PHP_CHECK_LIBRARY(ib_util, isc_detach_database,
 
27
      [
 
28
        IBASE_LIBNAME=ib_util
 
29
      ], [
 
30
        AC_MSG_ERROR([libgds, libib_util or libfbclient not found! Check config.log for more information.])
 
31
      ], [
 
32
        -L$IBASE_LIBDIR
 
33
      ])
 
34
    ], [
 
35
      -L$IBASE_LIBDIR
 
36
    ])
 
37
  ], [
 
38
    -L$IBASE_LIBDIR
 
39
  ])
 
40
  
 
41
  PHP_ADD_LIBRARY_WITH_PATH($IBASE_LIBNAME, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
 
42
  PHP_ADD_INCLUDE($IBASE_INCDIR)
 
43
  AC_DEFINE(HAVE_IBASE,1,[ ])
 
44
  PHP_NEW_EXTENSION(interbase, interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c, $ext_shared)
 
45
  PHP_SUBST(INTERBASE_SHARED_LIBADD)
 
46
fi