Add header checks in autoconf script
This commit is contained in:
@@ -53,6 +53,7 @@ dnl **********************************
|
||||
dnl *** Check for standard headers ***
|
||||
dnl **********************************
|
||||
AC_HEADER_STDC()
|
||||
AC_CHECK_HEADERS([stdlib.h string.h])
|
||||
|
||||
dnl ******************************
|
||||
dnl *** Check for i18n support ***
|
||||
@@ -71,13 +72,19 @@ case "$target_os" in
|
||||
freebsd*)
|
||||
ac_os_implementation="freebsd"
|
||||
AC_CHECK_LIB([kvm], [kvm_openfiles])
|
||||
AC_CHECK_HEADERS([fcntl.h kvm.h paths.h pwd.h sys/param.h sys/proc.h \
|
||||
sys/sysctl.h sys/types.h sys/user.h unistd.h])
|
||||
;;
|
||||
dragonfly*|netbsd*|openbsd*|darwin*)
|
||||
ac_os_implementation="bsd"
|
||||
AC_CHECK_HEADERS([err.h pwd.h stdlib.h string.h sys/param.h sys/sched.h \
|
||||
sys/swap.h sys/sysctl.h sys/types.h unistd.h])
|
||||
;;
|
||||
solaris*)
|
||||
ac_os_implementation="solaris"
|
||||
AC_CHECK_LIB([kstat], [kstat_open])
|
||||
AC_CHECK_HEADERS([fcntl.h kstat.h procfs.h pwd.h stdlib.h string.h \
|
||||
sys/procfs.h sys/stat.h sys/swap.h sys/types.h])
|
||||
;;
|
||||
linux*)
|
||||
ac_os_implementation="linux"
|
||||
|
||||
Reference in New Issue
Block a user