mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
29 lines
881 B
Plaintext
29 lines
881 B
Plaintext
dnl config.m4 for extension CyberCash
|
|
dnl don't forget to call PHP_EXTENSION(cybercash)
|
|
|
|
AC_MSG_CHECKING(for CyberCash support)
|
|
AC_ARG_WITH(cybercash,
|
|
[ --with-cybercash[=DIR] Include CyberCash support. DIR is the CyberCash MCK
|
|
install directory.],
|
|
[
|
|
if test "$withval" != "no"; then
|
|
test -f $withval/mckcrypt.h && MCK_DIR=$withval
|
|
test -f $withval/c-api/mckcrypt.h && MCK_DIR=$withval/c-api
|
|
if test -n "$MCK_DIR"; then
|
|
AC_MSG_RESULT(yes)
|
|
PHP_EXTENSION(cybercash)
|
|
old_LIBS=$LIBS
|
|
LIBS="$LIBS -L$MCK_DIR/lib"
|
|
AC_CHECK_LIB(mckcrypto,base64_encode,[AC_DEFINE(HAVE_MCK,1,[ ])],
|
|
[AC_MSG_ERROR(Please reinstall the CyberCash MCK - cannot find mckcrypto lib)])
|
|
LIBS=$old_LIBS
|
|
PHP_ADD_LIBRARY_WITH_PATH(mckcrypto, $MCK_DIR/lib)
|
|
PHP_ADD_INCLUDE($MCK_DIR)
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
fi
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|