diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:49 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:49 -0400 |
commit | 8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (patch) | |
tree | da38e2c1979148dbd3b0c7b87f930746f5ba7f44 /bindings/swig/package/php4.m4 | |
parent | 8d3fc864d094eeadc721f8e93436b37a5fab173e (diff) |
Imported Upstream version 1.5.7
Diffstat (limited to 'bindings/swig/package/php4.m4')
-rw-r--r-- | bindings/swig/package/php4.m4 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bindings/swig/package/php4.m4 b/bindings/swig/package/php4.m4 new file mode 100644 index 0000000..d184ec2 --- /dev/null +++ b/bindings/swig/package/php4.m4 @@ -0,0 +1,33 @@ +#------------------------------------------------------------------------- +# Look for Php4 +#------------------------------------------------------------------------- + +AC_DEFUN(SW_FIND_PHP4, +[ + +PHP4BIN= + +AC_ARG_WITH(php4,[ --with-php4=path Set location of PHP4 executable],[ PHP4BIN="$withval"], [PHP4BIN=]) + +if test -z "$PHP4BIN"; then +AC_PATH_PROGS(PHP4, php php4) +else +PHP4="$PHP4BIN" +fi +AC_MSG_CHECKING(for PHP4 header files) +dirs="/usr/include/php /usr/local/include/php /usr/local/apache/php /usr/include/php4 /usr/local/include/php4 /usr/local/apache/php4" +for i in $dirs; do + if test -r $i/php_config.h -o -r $i/php_version.h; then + AC_MSG_RESULT($i) + PHP4EXT="$i" + PHP4INC="-I$PHP4EXT -I$PHP4EXT/Zend -I$PHP4EXT/main -I$PHP4EXT/TSRM" + break; + fi +done +if test -z "$PHP4INC"; then + AC_MSG_RESULT(not found) +fi + +AC_SUBST(PHP4INC) + +]) |