* Does not need to check if the system is BSD anymore
* Check for curses and ncurses headers * Added macro to check for statfs function type
This commit is contained in:
+5
-4
@@ -1,6 +1,6 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(clients/lcdproc/batt.c)
|
||||
AM_INIT_AUTOMAKE(lcdproc, 0.4-pre9-auto)
|
||||
AM_INIT_AUTOMAKE(lcdproc, 0.4-pre9)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
@@ -8,9 +8,6 @@ case "$host" in
|
||||
*-*-*linux*)
|
||||
AC_DEFINE(LINUX)
|
||||
;;
|
||||
*-*-*bsd*)
|
||||
AC_DEFINE(xBSD)
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_MSG_CHECKING(whether to enable debugging)
|
||||
@@ -46,6 +43,7 @@ dnl Checks for header files.
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
|
||||
AC_CHECK_HEADERS(curses.h ncurses.h)
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
@@ -61,6 +59,9 @@ AC_TYPE_SIGNAL
|
||||
AC_CHECK_FUNCS(select socket strdup strerror strtol uname)
|
||||
|
||||
dnl Check for various defines and features
|
||||
|
||||
AC_GET_FS_INFO
|
||||
|
||||
AC_ARG_ENABLE(stat-nfs,
|
||||
[ --enable-stat-nfs display filesystem stats for NFS],
|
||||
AC_DEFINE(STAT_NFS)
|
||||
|
||||
Reference in New Issue
Block a user