mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
8a26918ed1
# Heads up people! I tested this before committing but you never know..
29 lines
898 B
Plaintext
29 lines
898 B
Plaintext
dnl $Id$
|
|
dnl config.m4 for extension ovrimos
|
|
dnl don't forget to call PHP_EXTENSION(ovrimos)
|
|
|
|
PHP_ARG_WITH(ovrimos, for Ovrimos SQL Server support,
|
|
[ --with-ovrimos[=DIR] Include Ovrimos SQL Server support. DIR is the
|
|
Ovrimos' libsqlcli install directory.])
|
|
|
|
if test "$PHP_OVRIMOS" != "no"; then
|
|
for i in /usr/local /usr $PHP_OVRIMOS; do
|
|
if test -f $i/include/sqlcli.h; then
|
|
OVRIMOS_DIR=$i
|
|
fi
|
|
done
|
|
|
|
if test -z "$OVRIMOS_DIR"; then
|
|
AC_MSG_ERROR(Please reinstall Ovrimos' libsqlcli - I cannot find sqlcli.h)
|
|
fi
|
|
|
|
PHP_ADD_INCLUDE($OVRIMOS_DIR/include)
|
|
PHP_SUBST(OVRIMOS_SHARED_LIBADD)
|
|
LDFLAGS="$LDFLAGS $ld_runpath_switch$OVRIMOS_DIR/lib -L$OVRIMOS_DIR/lib"
|
|
AC_CHECK_LIB(sqlcli, main)
|
|
PHP_ADD_LIBRARY_WITH_PATH(sqlcli, $OVRIMOS_DIR/lib, OVRIMOS_SHARED_LIBADD)
|
|
AC_DEFINE(HAVE_LIBSQLCLI,1,[ ])
|
|
|
|
PHP_EXTENSION(ovrimos, $ext_shared)
|
|
fi
|