diff options
-rw-r--r-- | configure.in | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/configure.in b/configure.in index bdd4013..4f2a4ac 100644 --- a/configure.in +++ b/configure.in | |||
@@ -358,14 +358,14 @@ AC_TRY_COMPILE([#include <getopt.h> | |||
358 | static struct option *long_options; | 358 | static struct option *long_options; |
359 | getopt_long(0,NULL,"+h",long_options,&option_index);], | 359 | getopt_long(0,NULL,"+h",long_options,&option_index);], |
360 | [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found]) | 360 | [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found]) |
361 | AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long_only() is found]) | 361 | AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found]) |
362 | AC_MSG_RESULT(yes)], | 362 | AC_MSG_RESULT(yes)], |
363 | [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found]) | 363 | [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found]) |
364 | AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long_only() is found]) | 364 | AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found]) |
365 | AC_MSG_RESULT(no) | 365 | AC_MSG_RESULT(no) |
366 | import_sources=getopt]) | 366 | import_sources=getopt |
367 | 367 | LIBS="$LIBS -lgetopt" | |
368 | AC_CHECK_FUNCS(getopt_long_only,,LIBS="$LIBS -lgetopt" DEPLIBS="$DEPLIBS libgetopt.a") | 368 | DEPLIBS="$DEPLIBS libgetopt.a"]) |
369 | 369 | ||
370 | AC_TRY_COMPILE([#include <sys/time.h>], | 370 | AC_TRY_COMPILE([#include <sys/time.h>], |
371 | [struct timeval *foo;], | 371 | [struct timeval *foo;], |
@@ -859,6 +859,13 @@ then | |||
859 | echo " using FreeBSD format" | 859 | echo " using FreeBSD format" |
860 | fi | 860 | fi |
861 | EXTRAS="$EXTRAS check_swap" | 861 | EXTRAS="$EXTRAS check_swap" |
862 | elif [swapinfo -d 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null] | ||
863 | then | ||
864 | AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) | ||
865 | AC_PATH_PROG(PATH_TO_SWAP,swapinfo) | ||
866 | AC_DEFINE_UNQUOTED(SWAP_COMMAND,"/bin/sh '$PATH_TO_SWAP -d | /bin/tail -l +2'",[Path to swap/swapinfo binary, with any args]) | ||
867 | AC_DEFINE_UNQUOTED(SWAP_FORMAT,["%*s %d %*d %d"],[Format string for parsing swap output ]) | ||
868 | echo " using HP-UX format HP-UX" | ||
862 | fi | 869 | fi |
863 | 870 | ||
864 | AC_PATH_PROG(PATH_TO_DIG,dig) | 871 | AC_PATH_PROG(PATH_TO_DIG,dig) |