Fixed problems on systems using newer GLIB and GCC (2.96) which no

longer allow the -Wp,-lang-c-c++-comments directive.  Also cleaned
up getloadavg support that had problems on Solaris and RedHat 7.1.
Removed unused variables in a number of functions as a result of
warnings when compiled with --enable-debug config option.
This commit is contained in:
ppokorny
2001-05-15 01:55:59 +00:00
parent 3e4ce08d43
commit 3fff6381b0
17 changed files with 110 additions and 60 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ if test $debug = "yes"; then
else
CFLAGS="-Wno-unused -O6"
fi
CFLAGS="-Wall -Wp,-lang-c-c++-comments $CFLAGS"
CFLAGS="-Wall $CFLAGS"
export CFLAGS
dnl Checks for programs.
@@ -48,7 +48,7 @@ AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton)])
AC_CHECK_LIB(kstat, kstat_open)
AC_CHECK_FUNCS(getloadavg swapctl)
AC_CHECK_HEADERS(procfs.h sys/procfs.h, break)
AC_CHECK_HEADERS(procfs.h sys/procfs.h sys/loadavg.h)
dnl Some versions of Solaris require -lelf for -lkvm
AC_CHECK_LIB(kvm, kvm_open,[