diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-08-28 11:54:50 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-08-28 13:10:16 +0200 |
commit | 5bee9026651e4f2f07e524dce7c9d8da75eafa19 (patch) | |
tree | 9cbd3756a8a31e07c2aa79470cdafd498c7c6176 | |
parent | 2d14269bcd9c2db190aff60ac5a120c5b7ebad92 (diff) |
Drop configure option --enable-proc
Move to HTOP_LINUX, as --enable-proc implies my_htop_platform=linux, and
the Linux features do not work without a proc fs.
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | htop.c | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 18291b95..e46b6eba 100644 --- a/configure.ac +++ b/configure.ac @@ -111,13 +111,6 @@ AC_SUBST(wextra_flag) # ---------------------------------------------------------------------- PROCDIR=/proc -AC_ARG_ENABLE(proc, [AS_HELP_STRING([--enable-proc], [use Linux-compatible proc filesystem])], enable_proc="yes", enable_proc="no") -if test "x$enable_proc" = xyes; then - # An enabled proc assumes we're emulating Linux. - my_htop_platform=linux - AC_DEFINE(HAVE_PROC, 1, [Define if using a Linux-compatible proc filesystem.]) -fi - AC_ARG_WITH(proc, [AS_HELP_STRING([--with-proc=DIR], [Location of a Linux-compatible proc filesystem (default=/proc).])], if test -n "$withval"; then @@ -200,7 +200,7 @@ int main(int argc, char** argv) { CommandLineSettings flags = parseArguments(argc, argv); // may exit() -#ifdef HAVE_PROC +#ifdef HTOP_LINUX if (access(PROCDIR, R_OK) != 0) { fprintf(stderr, "Error: could not read procfs (compiled to look in %s).\n", PROCDIR); exit(1); |