- AC_CACHE_CHECK(for libffi, PSI_cv_LIBFFI, [
- if $PKG_CONFIG --exists libffi
- then
- PSI_cv_LIBFFI=true
- else
- PSI_cv_LIBFFI=false
- fi])
- if $PSI_cv_LIBFFI
- then
- PHP_EVAL_INCLINE(`$PKG_CONFIG --cflags libffi`)
- PHP_EVAL_LIBLINE(`$PKG_CONFIG --libs libffi`, PSI_SHARED_LIBADD)
- else
- AC_MSG_ERROR([Could not find libjit, please provide the base install path])
- fi
-
- AC_CACHE_CHECK(for libjit, PSI_cv_LIBJIT_DIR, [
- for PSI_cv_LIBJIT_DIR in $PHP_PSI {/usr{,/local},/opt}{,libjit}
- do
- if test -e $PSI_cv_LIBJIT_DIR/include/jit/jit.h
- then
- break
- fi
- PSI_cv_LIBJIT_DIR=
- done])
- if test -n "$PSI_cv_LIBJIT_DIR"
- then
- PHP_ADD_INCLUDE($PSI_cv_LIBJIT_DIR/include)
- PHP_ADD_LIBRARY_WITH_PATH(jit, $PSI_cv_LIBJIT_DIR/$PHP_LIBDIR, PSI_SHARED_LIBADD)
- else
- AC_MSG_ERROR([Could not find libjit, please provide the base install path])
- fi
+ PSI_CONFIG_POSIX(errno, errno.h)
+ PSI_CONFIG_POSIX(fcntl, fcntl.h)
+ PSI_CONFIG_POSIX(glob, glob.h)
+ PSI_CONFIG_POSIX(locale, locale.h xlocale.h)
+ PSI_CONFIG_POSIX(stdio, stdio.h)
+ PSI_CONFIG_POSIX(stdlib, stdlib.h)
+ PSI_CONFIG_POSIX(unistd, unistd.h)
+ PSI_CONFIG_POSIX(time, time.h)
+ PSI_CONFIG_POSIX(sys/select, sys/select.h)
+ PSI_CONFIG_POSIX(sys/socket, sys/socket.h)
+ PSI_CONFIG_POSIX(sys/time, sys/time.h)
+ PSI_CONFIG_POSIX(sys/times, sys/times.h)
+ PSI_CONFIG_POSIX(sys/stat, sys/stat.h)
+ PSI_CONFIG_POSIX(sys/uio, sys/uio.h)
+ PSI_CONFIG_POSIX(sys/utsname, sys/utsname.h)
+ PSI_CONFIG_POSIX(ndbm, dnl
+ ndbm.h dnl posix
+ relic.h dnl qdbm
+ gdbm-ndbm.h dnl gdbm
+ )
+ PSI_CONFIG_POSIX(netdb, netdb.h)
+ PSI_CONFIG_POSIX(netinet/in, netinet/in.h)
+ PSI_CONFIG_POSIX(netinet/tcp, netinet/tcp.h)
+ PSI_CONFIG_POSIX(poll, poll.h)
+ PSI_CONFIG_POSIX(signal, signal.h)
+ PSI_CONFIG_POSIX(syslog, syslog.h)
+ PSI_CONFIG_POSIX(wchar, wchar.h)
+ PSI_CONFIG_POSIX(wctype, wctype.h)