Ignore:
Timestamp:
Oct 24, 2008, 9:39:13 PM (12 years ago)
Author:
nico
Message:
  • configuration file config.m4 rewritten
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi-php/config.m4

    r3069 r3090  
    33
    44if test "$PHP_PIPI" = "yes"; then
    5   PHP_NEW_EXTENSION(pipi, php_pipi.c, $ext_shared)
    6   PHP_SUBST(PIPI_SHARED_LIBADD)
    7   AC_DEFINE(HAVE_PIPI, 1, [Whether you have Libpipi Ext])
    8   PIPI_INCDIR=$PHP_PIPI/include
    9   PIPI_LIBDIR=$PHP_PIPI/lib
    10   PHP_ADD_LIBRARY_WITH_PATH(pipi, $PIPI_LIBDIR, PIPI_SHARED_LIBADD)
    11   PHP_ADD_INCLUDE($PIPI_INCDIR) 
    12 fi
    13 
     5        AC_CHECK_LIB(pipi, pipi_get_version, [
     6                PHP_ADD_LIBRARY(pipi,, PIPI_SHARED_LIBADD)
     7        ], [
     8                AC_MSG_ERROR(libpipi required !)
     9        ])
     10        PHP_NEW_EXTENSION(pipi, php_pipi.c, $ext_shared,,)
     11        PHP_SUBST(PIPI_SHARED_LIBADD)
     12fi
Note: See TracChangeset for help on using the changeset viewer.