mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-26 01:42:10 +01:00
On AIX, the resolver functions are in libc, so trying libresolv will cause the checks to fail. The behaviour should be instead like AC_SEARCH_LIBS. This hardcodes a check not to use libresolv on AIX. Better than nothing, but it may not compensate for other systems without a libresolv.
60 lines
1020 B
Plaintext
60 lines
1020 B
Plaintext
AC_CANONICAL_HOST
|
|
|
|
os_win32=no
|
|
os_netbsd=no
|
|
os_freebsd=no
|
|
os_openbsd=no
|
|
os_hpux=no
|
|
os_linux=no
|
|
os_solaris=no
|
|
os_darwin=no
|
|
os_gnu=no
|
|
os_aix=no
|
|
|
|
case "$host" in
|
|
*-mingw*|*-*-cygwin*)
|
|
os_win32=yes
|
|
TARGET_OS=windows
|
|
;;
|
|
*-*-*netbsd*)
|
|
os_netbsd=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*-*-*freebsd*)
|
|
os_freebsd=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*-*-*openbsd*)
|
|
os_openbsd=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*-*-hpux*)
|
|
os_hpux=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*-*-linux*)
|
|
os_linux=yes
|
|
os_gnu=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*-*-solaris*)
|
|
os_solaris=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*-*-darwin*)
|
|
os_darwin=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*-*-aix*|*-*-os400*)
|
|
os_aix=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
gnu*|k*bsd*-gnu*)
|
|
os_gnu=yes
|
|
TARGET_OS=unix
|
|
;;
|
|
*)
|
|
AC_MSG_WARN([*** Please add $host to configure.ac checks!])
|
|
;;
|
|
esac
|