mirror of
https://github.com/php/php-src.git
synced 2024-12-11 10:54:47 +08:00
e6e54605b7
directory. Move sapi-specific makefile fragments to their respective directory. Create an embed sapi module which resides in its own dir now.
33 lines
963 B
Plaintext
33 lines
963 B
Plaintext
dnl
|
|
dnl $Id$
|
|
dnl
|
|
|
|
AC_MSG_CHECKING(for FastCGI support)
|
|
AC_ARG_WITH(fastcgi,
|
|
[ --with-fastcgi=SRCDIR Build PHP as FastCGI application],[
|
|
if test "$withval" = "yes"; then
|
|
FASTCGIPATH=/usr/local
|
|
else
|
|
FASTCGIPATH=$withval
|
|
fi
|
|
|
|
SAPI_FASTCGI_PATH=sapi/fastcgi/php
|
|
PHP_SUBST(SAPI_FASTCGI_PATH)
|
|
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/fastcgi/Makefile.frag)
|
|
test -f "$FASTCGIPATH/lib/libfcgi.a" || AC_MSG_ERROR(Unable to find libfcgi.a in $FASTCGIPATH/lib)
|
|
test -f "$FASTCGIPATH/include/fastcgi.h" || AC_MSG_ERROR(Unable to find fastcgi.h in $FASTCGIPATH/include)
|
|
|
|
PHP_SELECT_SAPI(fastcgi, program, fastcgi.c,,'$(SAPI_FASTCGI_PATH)')
|
|
|
|
PHP_ADD_INCLUDE($FASTCGIPATH/include)
|
|
PHP_ADD_LIBRARY_WITH_PATH(fcgi, "$FASTCGIPATH/lib",)
|
|
|
|
INSTALL_IT="\$(INSTALL) -m 0755 \$(SAPI_FASTCGI_PATH) \$(bindir)/$SAPI_FASTCGI"
|
|
RESULT=yes
|
|
PHP_SUBST(FASTCGI_LIBADD)
|
|
PHP_SUBST(EXT_PROGRAM_LDADD)
|
|
],[
|
|
RESULT=no
|
|
])
|
|
AC_MSG_RESULT($RESULT)
|