[Xfce4-commits] <xfce4-taskmanager:master> Add header checks in autoconf script

Mike Massonnet noreply at xfce.org
Fri May 21 16:10:01 CEST 2010


Updating branch refs/heads/master
         to a0ed1ca7219b1de960b912d0bb6eb83d0a893b21 (commit)
       from 6b8162b4e9bf932bf7658f96de0a728b492e0b54 (commit)

commit a0ed1ca7219b1de960b912d0bb6eb83d0a893b21
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Fri May 21 16:00:41 2010 +0200

    Add header checks in autoconf script

 configure.ac.in |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index 1196538..337c724 100644
--- a/configure.ac.in
+++ b/configure.ac.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"



More information about the Xfce4-commits mailing list