| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
| Hisham Muhammad | ec17b70 | 2011-09-24 00:30:47 +0000 | [diff] [blame] | 4 | AC_PREREQ(2.65) |
| Daniel Lange | 58ce887 | 2021-01-11 18:59:55 +0100 | [diff] [blame] | 5 | AC_INIT([htop],[3.0.6-dev],[htop@groups.io]) |
| Hisham Muhammad | 3383d8e | 2015-01-21 23:27:31 -0200 | [diff] [blame] | 6 | |
| Explorer09 | b71b07f | 2016-03-12 12:02:06 +0800 | [diff] [blame] | 7 | AC_CONFIG_SRCDIR([htop.c]) |
| 8 | AC_CONFIG_AUX_DIR([.]) |
| 9 | AC_CONFIG_HEADERS([config.h]) |
| Explorer09 | b71b07f | 2016-03-12 12:02:06 +0800 | [diff] [blame] | 10 | |
| 11 | # Required by hwloc scripts |
| Hisham Muhammad | ec17b70 | 2011-09-24 00:30:47 +0000 | [diff] [blame] | 12 | AC_CANONICAL_TARGET |
| 13 | |
| 14 | AM_INIT_AUTOMAKE([1.11]) |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 15 | |
| 16 | # Checks for programs. |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 17 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 18 | AC_PROG_CC |
| Hisham Muhammad | 4df76d1 | 2008-03-05 09:46:47 +0000 | [diff] [blame] | 19 | AM_PROG_CC_C_O |
| 20 | |
| Explorer09 | b71b07f | 2016-03-12 12:02:06 +0800 | [diff] [blame] | 21 | # Required by hwloc scripts |
| 22 | AC_USE_SYSTEM_EXTENSIONS |
| 23 | |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 24 | # Checks for platform. |
| 25 | # ---------------------------------------------------------------------- |
| James Clarke | a950827 | 2016-04-18 23:55:55 +0100 | [diff] [blame] | 26 | case "$target_os" in |
| James Clarke | 2de5286 | 2016-04-18 23:57:30 +0100 | [diff] [blame] | 27 | linux*|gnu*) |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 28 | my_htop_platform=linux |
| Christian Göttsche | ddbb0c2 | 2020-10-29 21:50:38 +0100 | [diff] [blame] | 29 | AC_DEFINE([HTOP_LINUX], [], [Building for Linux]) |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 30 | ;; |
| James Clarke | a950827 | 2016-04-18 23:55:55 +0100 | [diff] [blame] | 31 | freebsd*|kfreebsd*) |
| Hisham Muhammad | 8915b29 | 2014-11-27 16:27:34 -0200 | [diff] [blame] | 32 | my_htop_platform=freebsd |
| Christian Göttsche | ddbb0c2 | 2020-10-29 21:50:38 +0100 | [diff] [blame] | 33 | AC_DEFINE([HTOP_FREEBSD], [], [Building for FreeBSD]) |
| Hisham Muhammad | 8915b29 | 2014-11-27 16:27:34 -0200 | [diff] [blame] | 34 | ;; |
| James Clarke | a950827 | 2016-04-18 23:55:55 +0100 | [diff] [blame] | 35 | openbsd*) |
| Michael McConville | a9a5a53 | 2015-09-18 00:46:48 -0400 | [diff] [blame] | 36 | my_htop_platform=openbsd |
| Christian Göttsche | ddbb0c2 | 2020-10-29 21:50:38 +0100 | [diff] [blame] | 37 | AC_DEFINE([HTOP_OPENBSD], [], [Building for OpenBSD]) |
| Michael McConville | a9a5a53 | 2015-09-18 00:46:48 -0400 | [diff] [blame] | 38 | ;; |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 39 | dragonfly*) |
| 40 | my_htop_platform=dragonflybsd |
| Christian Göttsche | ddbb0c2 | 2020-10-29 21:50:38 +0100 | [diff] [blame] | 41 | AC_DEFINE([HTOP_DRAGONFLYBSD], [], [Building for DragonFlyBSD]) |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 42 | ;; |
| James Clarke | a950827 | 2016-04-18 23:55:55 +0100 | [diff] [blame] | 43 | darwin*) |
| David Hunt | 70e7c8d | 2015-07-12 13:47:43 -0500 | [diff] [blame] | 44 | my_htop_platform=darwin |
| Christian Göttsche | ddbb0c2 | 2020-10-29 21:50:38 +0100 | [diff] [blame] | 45 | AC_DEFINE([HTOP_DARWIN], [], [Building for Darwin]) |
| David Hunt | 70e7c8d | 2015-07-12 13:47:43 -0500 | [diff] [blame] | 46 | ;; |
| gmbroome | 697f5bb | 2018-03-02 16:20:46 -0500 | [diff] [blame] | 47 | solaris*) |
| 48 | my_htop_platform=solaris |
| Christian Göttsche | ddbb0c2 | 2020-10-29 21:50:38 +0100 | [diff] [blame] | 49 | AC_DEFINE([HTOP_SOLARIS], [], [Building for Solaris]) |
| gmbroome | 697f5bb | 2018-03-02 16:20:46 -0500 | [diff] [blame] | 50 | ;; |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 51 | *) |
| 52 | my_htop_platform=unsupported |
| Christian Göttsche | ddbb0c2 | 2020-10-29 21:50:38 +0100 | [diff] [blame] | 53 | AC_DEFINE([HTOP_UNSUPPORTED], [], [Building for an unsupported platform]) |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 54 | ;; |
| 55 | esac |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 56 | |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 57 | # Checks for libraries. |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 58 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | e46f142 | 2006-07-12 01:15:14 +0000 | [diff] [blame] | 59 | AC_CHECK_LIB([m], [ceil], [], [missing_libraries="$missing_libraries libm"]) |
| 60 | |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 61 | # Checks for header files. |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 62 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 63 | AC_HEADER_DIRENT |
| 64 | AC_HEADER_STDC |
| Hisham Muhammad | a081056 | 2013-02-26 17:10:11 +0000 | [diff] [blame] | 65 | AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h],[:],[ |
| Hisham Muhammad | e46f142 | 2006-07-12 01:15:14 +0000 | [diff] [blame] | 66 | missing_headers="$missing_headers $ac_header" |
| 67 | ]) |
| Hisham Muhammad | 36ef1a9 | 2010-12-05 15:43:56 +0000 | [diff] [blame] | 68 | AC_CHECK_HEADERS([execinfo.h],[:],[:]) |
| Hisham Muhammad | e46f142 | 2006-07-12 01:15:14 +0000 | [diff] [blame] | 69 | |
| Kang-Che Sung (宋岡哲) | c01f40e | 2018-02-26 21:15:05 +0800 | [diff] [blame] | 70 | AC_HEADER_MAJOR |
| 71 | dnl glibc 2.25 deprecates 'major' and 'minor' in <sys/types.h> and requires to |
| 72 | dnl include <sys/sysmacros.h>. However the logic in AC_HEADER_MAJOR has not yet |
| 73 | dnl been updated in Autoconf 2.69, so use a workaround: |
| 74 | m4_version_prereq([2.70], [], |
| Explorer09 | 3512971 | 2018-12-30 12:18:27 +0800 | [diff] [blame] | 75 | [if test "x$ac_cv_header_sys_mkdev_h" != xyes; then |
| Kang-Che Sung (宋岡哲) | c01f40e | 2018-02-26 21:15:05 +0800 | [diff] [blame] | 76 | AC_CHECK_HEADER(sys/sysmacros.h, [AC_DEFINE(MAJOR_IN_SYSMACROS, 1, |
| 77 | [Define to 1 if `major', `minor', and `makedev' are declared in <sys/sysmacros.h>.])]) |
| 78 | fi]) |
| 79 | |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 80 | # Checks for typedefs, structures, and compiler characteristics. |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 81 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 82 | AC_HEADER_STDBOOL |
| 83 | AC_C_CONST |
| 84 | AC_TYPE_PID_T |
| 85 | AC_TYPE_UID_T |
| Christian Göttsche | 15fe871 | 2020-11-26 20:28:38 +0100 | [diff] [blame] | 86 | AC_TYPE_UINT8_T |
| 87 | AC_TYPE_UINT16_T |
| 88 | AC_TYPE_UINT32_T |
| 89 | AC_TYPE_UINT64_T |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 90 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 91 | # Checks for library functions and compiler features. |
| 92 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 93 | AC_FUNC_CLOSEDIR_VOID |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 94 | AC_FUNC_STAT |
| James Abbatiello | b20bb54 | 2021-01-19 13:51:59 -0500 | [diff] [blame] | 95 | |
| 96 | AC_SEARCH_LIBS([dlopen], [dl dld]) |
| 97 | AC_SEARCH_LIBS([clock_gettime], [rt]) |
| 98 | |
| Christian Göttsche | a41e5c0 | 2020-11-22 16:29:18 +0100 | [diff] [blame] | 99 | AC_CHECK_FUNCS([\ |
| Christian Göttsche | 26993d2 | 2020-12-13 13:16:44 +0100 | [diff] [blame] | 100 | clock_gettime\ |
| Christian Göttsche | a41e5c0 | 2020-11-22 16:29:18 +0100 | [diff] [blame] | 101 | faccessat\ |
| 102 | fstatat\ |
| Christian Göttsche | 26993d2 | 2020-12-13 13:16:44 +0100 | [diff] [blame] | 103 | host_get_clock_service\ |
| Christian Göttsche | a41e5c0 | 2020-11-22 16:29:18 +0100 | [diff] [blame] | 104 | openat\ |
| 105 | readlinkat\ |
| 106 | ]) |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 107 | |
| Hisham Muhammad | 4df76d1 | 2008-03-05 09:46:47 +0000 | [diff] [blame] | 108 | save_cflags="${CFLAGS}" |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 109 | CFLAGS="${CFLAGS} -std=c99" |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 110 | AC_MSG_CHECKING([whether cc -std=c99 option works]) |
| Explorer09 | f0df28a | 2016-03-12 11:58:30 +0800 | [diff] [blame] | 111 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
| 112 | [AC_INCLUDES_DEFAULT], [[char *a; a = strdup("foo"); int i = 0; i++; // C99]])], |
| 113 | [AC_MSG_RESULT([yes])], |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 114 | [AC_MSG_ERROR([htop is written in C99. A newer compiler is required.])]) |
| Hisham Muhammad | 4df76d1 | 2008-03-05 09:46:47 +0000 | [diff] [blame] | 115 | CFLAGS="$save_cflags" |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 116 | |
| Christian Göttsche | 1d00893 | 2020-10-15 21:12:57 +0200 | [diff] [blame] | 117 | # Add -lexecinfo if needed |
| 118 | AC_SEARCH_LIBS([backtrace], [execinfo]) |
| 119 | |
| Christian Goettsche | c2fdfd9 | 2020-10-21 17:06:32 +0200 | [diff] [blame] | 120 | # Add -ldevstat if needed |
| 121 | AC_SEARCH_LIBS([devstat_checkversion], [devstat]) |
| 122 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 123 | # Checks for features and flags. |
| 124 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 125 | PROCDIR=/proc |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 126 | |
| Explorer09 | f0df28a | 2016-03-12 11:58:30 +0800 | [diff] [blame] | 127 | AC_ARG_WITH(proc, [AS_HELP_STRING([--with-proc=DIR], [Location of a Linux-compatible proc filesystem (default=/proc).])], |
| Christian Göttsche | 979d004 | 2020-08-28 11:56:07 +0200 | [diff] [blame] | 128 | if test -n "$withval"; then |
| 129 | AC_DEFINE_UNQUOTED(PROCDIR, "$withval", [Path of proc filesystem]) |
| 130 | PROCDIR="$withval" |
| 131 | fi, |
| 132 | AC_DEFINE(PROCDIR, "/proc", [Path of proc filesystem])) |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 133 | |
| Explorer09 | f0df28a | 2016-03-12 11:58:30 +0800 | [diff] [blame] | 134 | AC_ARG_ENABLE(openvz, [AS_HELP_STRING([--enable-openvz], [enable OpenVZ support])], ,enable_openvz="no") |
| Hisham Muhammad | 4c51ad0 | 2007-08-10 05:07:14 +0000 | [diff] [blame] | 135 | if test "x$enable_openvz" = xyes; then |
| Hisham Muhammad | 8fa33dc | 2008-03-09 02:33:23 +0000 | [diff] [blame] | 136 | AC_DEFINE(HAVE_OPENVZ, 1, [Define if openvz support enabled.]) |
| 137 | fi |
| 138 | |
| Explorer09 | f0df28a | 2016-03-12 11:58:30 +0800 | [diff] [blame] | 139 | AC_ARG_ENABLE(vserver, [AS_HELP_STRING([--enable-vserver], [enable VServer support])], ,enable_vserver="no") |
| Hisham Muhammad | a5dfaa2 | 2008-09-23 04:31:13 +0000 | [diff] [blame] | 140 | if test "x$enable_vserver" = xyes; then |
| 141 | AC_DEFINE(HAVE_VSERVER, 1, [Define if vserver support enabled.]) |
| 142 | fi |
| 143 | |
| Explorer09 | f0df28a | 2016-03-12 11:58:30 +0800 | [diff] [blame] | 144 | AC_ARG_ENABLE(ancient_vserver, [AS_HELP_STRING([--enable-ancient-vserver], [enable ancient VServer support (implies --enable-vserver)])], ,enable_ancient_vserver="no") |
| Hisham Muhammad | a5dfaa2 | 2008-09-23 04:31:13 +0000 | [diff] [blame] | 145 | if test "x$enable_ancient_vserver" = xyes; then |
| 146 | AC_DEFINE(HAVE_VSERVER, 1, [Define if vserver support enabled.]) |
| 147 | AC_DEFINE(HAVE_ANCIENT_VSERVER, 1, [Define if ancient vserver support enabled.]) |
| 148 | fi |
| 149 | |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 150 | # HTOP_CHECK_SCRIPT(LIBNAME, FUNCTION, DEFINE, CONFIG_SCRIPT, ELSE_PART) |
| 151 | m4_define([HTOP_CHECK_SCRIPT], |
| Hisham Muhammad | 96c929f | 2015-11-30 16:36:22 -0200 | [diff] [blame] | 152 | [ |
| Ricardo Martincoski | 78b82d0 | 2016-07-11 20:12:07 -0300 | [diff] [blame] | 153 | if test ! -z "m4_toupper($HTOP_[$1]_CONFIG_SCRIPT)"; then |
| 154 | # to be used to set the path to ncurses*-config when cross-compiling |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 155 | htop_config_script_libs=$(m4_toupper($HTOP_[$1]_CONFIG_SCRIPT) --libs 2> /dev/null) |
| 156 | htop_config_script_cflags=$(m4_toupper($HTOP_[$1]_CONFIG_SCRIPT) --cflags 2> /dev/null) |
| Ricardo Martincoski | 78b82d0 | 2016-07-11 20:12:07 -0300 | [diff] [blame] | 157 | else |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 158 | htop_config_script_libs=$([$4] --libs 2> /dev/null) |
| 159 | htop_config_script_cflags=$([$4] --cflags 2> /dev/null) |
| Ricardo Martincoski | 78b82d0 | 2016-07-11 20:12:07 -0300 | [diff] [blame] | 160 | fi |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 161 | htop_script_success=no |
| 162 | htop_save_LDFLAGS="$LDFLAGS" |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 163 | htop_save_CFLAGS="$CFLAGS" |
| 164 | if test ! "x$htop_config_script_libs" = x; then |
| 165 | LDFLAGS="$htop_config_script_libs $LDFLAGS" |
| 166 | CFLAGS="$htop_config_script_cflags $CFLAGS" |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 167 | AC_CHECK_LIB([$1], [$2], [ |
| 168 | AC_DEFINE([$3], 1, [The library is present.]) |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 169 | LIBS="$htop_config_script_libs $LIBS " |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 170 | htop_script_success=yes |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 171 | ], [ |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 172 | CFLAGS="$htop_save_CFLAGS" |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 173 | ]) |
| Hisham Muhammad | df9922a | 2018-02-17 14:50:55 -0200 | [diff] [blame] | 174 | LDFLAGS="$htop_save_LDFLAGS" |
| Hisham Muhammad | c237702 | 2015-12-06 19:06:23 -0200 | [diff] [blame] | 175 | fi |
| Hisham Muhammad | cccc18d | 2015-12-09 17:34:57 -0200 | [diff] [blame] | 176 | if test "x$htop_script_success" = xno; then |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 177 | [$5] |
| 178 | fi |
| 179 | ]) |
| 180 | |
| 181 | # HTOP_CHECK_LIB(LIBNAME, FUNCTION, DEFINE, ELSE_PART) |
| 182 | m4_define([HTOP_CHECK_LIB], |
| 183 | [ |
| Hisham Muhammad | 96c929f | 2015-11-30 16:36:22 -0200 | [diff] [blame] | 184 | AC_CHECK_LIB([$1], [$2], [ |
| 185 | AC_DEFINE([$3], 1, [The library is present.]) |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 186 | LIBS="-l[$1] $LIBS " |
| 187 | ], [$4]) |
| Hisham Muhammad | 96c929f | 2015-11-30 16:36:22 -0200 | [diff] [blame] | 188 | ]) |
| 189 | |
| Benny Baumann | 2cde4a7 | 2020-09-18 19:32:41 +0200 | [diff] [blame] | 190 | dnl https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html |
| 191 | AC_DEFUN([AX_CHECK_COMPILE_FLAG], |
| 192 | [AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF |
| 193 | AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl |
| 194 | AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 195 | ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS |
| 196 | _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" |
| 197 | AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], |
| 198 | [AS_VAR_SET(CACHEVAR,[yes])], |
| 199 | [AS_VAR_SET(CACHEVAR,[no])]) |
| 200 | _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) |
| Benny Baumann | 2cde4a7 | 2020-09-18 19:32:41 +0200 | [diff] [blame] | 201 | AS_VAR_IF(CACHEVAR,yes, |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 202 | [m4_default([$2], :)], |
| 203 | [m4_default([$3], :)]) |
| Benny Baumann | 2cde4a7 | 2020-09-18 19:32:41 +0200 | [diff] [blame] | 204 | AS_VAR_POPDEF([CACHEVAR])dnl |
| 205 | ])dnl AX_CHECK_COMPILE_FLAGS |
| 206 | |
| Explorer09 | f0df28a | 2016-03-12 11:58:30 +0800 | [diff] [blame] | 207 | AC_ARG_ENABLE(unicode, [AS_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") |
| Hisham Muhammad | 8fa33dc | 2008-03-09 02:33:23 +0000 | [diff] [blame] | 208 | if test "x$enable_unicode" = xyes; then |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 209 | HTOP_CHECK_SCRIPT([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 210 | HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", |
| 211 | HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw5-config", |
| 212 | HTOP_CHECK_SCRIPT([ncurses], [addnwstr], [HAVE_LIBNCURSESW], "ncurses5-config", |
| 213 | HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], |
| 214 | HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], |
| 215 | HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW], |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 216 | missing_libraries="$missing_libraries libncursesw" |
| 217 | AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 218 | ))))))) |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 219 | |
| Hisham Muhammad | a7bcf1d | 2011-09-08 01:45:16 +0000 | [diff] [blame] | 220 | AC_CHECK_HEADERS([ncursesw/curses.h],[:], |
| Hisham Muhammad | a081056 | 2013-02-26 17:10:11 +0000 | [diff] [blame] | 221 | [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], |
| 222 | [AC_CHECK_HEADERS([ncurses/curses.h],[:], |
| 223 | [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) |
| Christian Göttsche | ead978b | 2020-12-07 15:30:56 +0100 | [diff] [blame] | 224 | |
| 225 | # check if additional linker flags are needed for keypad(3) |
| 226 | # (at this point we already link against a working ncurses library with wide character support) |
| 227 | AC_SEARCH_LIBS([keypad], [tinfow tinfo]) |
| Hisham Muhammad | 8fa33dc | 2008-03-09 02:33:23 +0000 | [diff] [blame] | 228 | else |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 229 | HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", |
| 230 | HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", |
| 231 | HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES], |
| 232 | HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES], |
| 233 | missing_libraries="$missing_libraries libncurses" |
| 234 | )))) |
| Christian Göttsche | b92f62f | 2020-08-21 10:37:33 +0200 | [diff] [blame] | 235 | |
| Hisham Muhammad | a081056 | 2013-02-26 17:10:11 +0000 | [diff] [blame] | 236 | AC_CHECK_HEADERS([curses.h],[:], |
| 237 | [AC_CHECK_HEADERS([ncurses/curses.h],[:], |
| 238 | [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], |
| 239 | [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) |
| Christian Göttsche | ead978b | 2020-12-07 15:30:56 +0100 | [diff] [blame] | 240 | |
| 241 | # check if additional linker flags are needed for keypad(3) |
| 242 | # (at this point we already link against a working ncurses library) |
| 243 | AC_SEARCH_LIBS([keypad], [tinfo]) |
| Hisham Muhammad | 4c51ad0 | 2007-08-10 05:07:14 +0000 | [diff] [blame] | 244 | fi |
| 245 | |
| Benny Baumann | f32f018 | 2020-12-12 20:43:08 +0100 | [diff] [blame] | 246 | if test "$my_htop_platform" = "darwin"; then |
| 247 | AC_CHECK_HEADERS([mach/mach_time.h]) |
| 248 | AC_CHECK_FUNCS([mach_timebase_info]) |
| 249 | fi |
| 250 | |
| Christian Göttsche | 8db8b9e | 2020-12-20 18:21:25 +0100 | [diff] [blame] | 251 | if test "$my_htop_platform" = "dragonflybsd"; then |
| 252 | AC_CHECK_LIB([kvm], [kvm_open], [], [missing_libraries="$missing_libraries libkvm"]) |
| 253 | fi |
| 254 | |
| Hisham Muhammad | 0aa485c | 2014-11-27 18:31:39 -0200 | [diff] [blame] | 255 | if test "$my_htop_platform" = "freebsd"; then |
| 256 | AC_CHECK_LIB([kvm], [kvm_open], [], [missing_libraries="$missing_libraries libkvm"]) |
| 257 | fi |
| 258 | |
| Michael McConville | a9a5a53 | 2015-09-18 00:46:48 -0400 | [diff] [blame] | 259 | if test "$my_htop_platform" = "openbsd"; then |
| 260 | AC_CHECK_LIB([kvm], [kvm_open], [], [missing_libraries="$missing_libraries libkvm"]) |
| 261 | fi |
| 262 | |
| gmbroome | 697f5bb | 2018-03-02 16:20:46 -0500 | [diff] [blame] | 263 | if test "$my_htop_platform" = "solaris"; then |
| 264 | AC_CHECK_LIB([kstat], [kstat_open], [], [missing_libraries="$missing_libraries libkstat"]) |
| Guy M. Broome | 45fad05 | 2018-03-28 12:48:37 -0400 | [diff] [blame] | 265 | AC_CHECK_LIB([proc], [Pgrab_error], [], [missing_libraries="$missing_libraries libproc"]) |
| Guy M. Broome | 76ef368 | 2018-03-05 12:02:07 -0500 | [diff] [blame] | 266 | AC_CHECK_LIB([malloc], [free], [], [missing_libraries="$missing_libraries libmalloc"]) |
| gmbroome | 697f5bb | 2018-03-02 16:20:46 -0500 | [diff] [blame] | 267 | fi |
| 268 | |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 269 | AC_ARG_ENABLE(hwloc, [AS_HELP_STRING([--enable-hwloc], [enable hwloc support for CPU affinity, disables Linux affinity])],, enable_hwloc="no") |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 270 | if test "x$enable_hwloc" = xyes; then |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 271 | AC_CHECK_LIB([hwloc], [hwloc_get_proc_cpubind], [], [missing_libraries="$missing_libraries libhwloc"]) |
| 272 | AC_CHECK_HEADERS([hwloc.h],[:], [missing_headers="$missing_headers $ac_header"]) |
| 273 | fi |
| 274 | |
| 275 | AC_ARG_ENABLE(linux_affinity, [AS_HELP_STRING([--enable-linux-affinity], [enable Linux sched_setaffinity and sched_getaffinity for affinity support, conflicts with hwloc])], ,enable_linux_affinity="check") |
| 276 | if test "x$enable_linux_affinity" = xcheck; then |
| 277 | if test "x$enable_hwloc" = xyes; then |
| 278 | enable_linux_affinity=no |
| 279 | else |
| 280 | AC_MSG_CHECKING([for usable sched_setaffinity]) |
| 281 | AC_RUN_IFELSE([ |
| 282 | AC_LANG_PROGRAM([[ |
| 283 | #include <sched.h> |
| 284 | #include <errno.h> |
| 285 | static cpu_set_t cpuset; |
| 286 | ]], [[ |
| 287 | CPU_ZERO(&cpuset); |
| 288 | sched_setaffinity(0, sizeof(cpu_set_t), &cpuset); |
| 289 | if (errno == ENOSYS) return 1; |
| 290 | ]])], |
| 291 | [enable_linux_affinity=yes |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 292 | AC_MSG_RESULT([yes])], |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 293 | [enable_linux_affinity=no |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 294 | AC_MSG_RESULT([no])], |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 295 | [AC_MSG_RESULT([yes (assumed while cross compiling)])]) |
| 296 | fi |
| Hisham Muhammad | dfad0af | 2011-11-23 18:43:35 +0000 | [diff] [blame] | 297 | fi |
| Hisham | 474d26c | 2016-02-14 19:57:29 -0200 | [diff] [blame] | 298 | if test "x$enable_linux_affinity" = xyes; then |
| 299 | AC_DEFINE(HAVE_LINUX_AFFINITY, 1, [Define if Linux sched_setaffinity and sched_getaffinity are to be used.]) |
| Hisham Muhammad | 7ca1081 | 2011-11-18 06:08:56 +0000 | [diff] [blame] | 300 | fi |
| 301 | |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 302 | if test "x$enable_linux_affinity" = xyes -a "x$enable_hwloc" = xyes; then |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 303 | AC_MSG_ERROR([--enable-hwloc and --enable-linux-affinity are mutual exclusive. Specify at most one of them.]) |
| Hisham Muhammad | 4df76d1 | 2008-03-05 09:46:47 +0000 | [diff] [blame] | 304 | fi |
| 305 | |
| Hisham Muhammad | 543d65c | 2017-07-26 15:40:55 -0300 | [diff] [blame] | 306 | AC_ARG_ENABLE(setuid, [AS_HELP_STRING([--enable-setuid], [enable setuid support for platforms that need it])],, enable_setuid="no") |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 307 | if test "x$enable_setuid" = xyes; then |
| Hisham Muhammad | 543d65c | 2017-07-26 15:40:55 -0300 | [diff] [blame] | 308 | AC_DEFINE(HAVE_SETUID_ENABLED, 1, [Define if setuid support should be enabled.]) |
| 309 | fi |
| 310 | |
| Christian Göttsche | f4404ef | 2020-09-02 14:39:25 +0200 | [diff] [blame] | 311 | AC_ARG_WITH(capabilities, [AS_HELP_STRING([--with-capabilities], [Enable option to drop Linux capabilities via libcap])],, with_capabilities="no") |
| 312 | if test "x$with_capabilities" = xyes |
| 313 | then |
| 314 | AC_CHECK_LIB([cap], [cap_init], [], [missing_libraries="$missing_libraries libcap"]) |
| 315 | AC_CHECK_HEADERS([sys/capability.h], [:], [missing_headers="$missing_headers $ac_header"]) |
| 316 | fi |
| 317 | |
| Hisham Muhammad | e85b072 | 2018-04-06 11:03:00 -0300 | [diff] [blame] | 318 | AC_ARG_ENABLE(delayacct, [AS_HELP_STRING([--enable-delayacct], [enable Linux delay accounting])],, enable_delayacct="no") |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 319 | if test "x$enable_delayacct" = xyes; then |
| Hisham Muhammad | e85b072 | 2018-04-06 11:03:00 -0300 | [diff] [blame] | 320 | m4_ifdef([PKG_PROG_PKG_CONFIG], [ |
| 321 | PKG_PROG_PKG_CONFIG() |
| 322 | PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [], [missing_libraries="$missing_libraries libnl-3"]) |
| 323 | PKG_CHECK_MODULES(LIBNL3GENL, libnl-genl-3.0, [], [missing_libraries="$missing_libraries libnl-genl-3"]) |
| 324 | CFLAGS="$CFLAGS $LIBNL3_CFLAGS $LIBNL3GENL_CFLAGS" |
| 325 | LIBS="$LIBS $LIBNL3_LIBS $LIBNL3GENL_LIBS" |
| 326 | AC_DEFINE(HAVE_DELAYACCT, 1, [Define if delay accounting support should be enabled.]) |
| 327 | ], [ |
| Explorer09 | 103f1a4 | 2018-04-06 23:47:55 +0800 | [diff] [blame] | 328 | pkg_m4_absent=1 |
| 329 | m4_warning([configure is generated without pkg.m4. 'make dist' target will be disabled.]) |
| 330 | AC_MSG_ERROR([htop on Linux requires pkg-config for checking delayacct requirements. Please install pkg-config and run ./autogen.sh to rebuild the configure script.]) |
| Hisham Muhammad | e85b072 | 2018-04-06 11:03:00 -0300 | [diff] [blame] | 331 | ]) |
| André Carvalho | b7b66b7 | 2017-12-04 00:15:29 -0200 | [diff] [blame] | 332 | fi |
| 333 | |
| Christian Göttsche | 4f08d2d | 2020-12-03 16:42:38 +0100 | [diff] [blame] | 334 | AC_ARG_WITH(sensors, [AS_HELP_STRING([--with-sensors], [Compile with libsensors support for reading temperature data. Only requires libsensors headers at compile time, at runtime libsensors is loaded via dlopen.])],, with_sensors="check") |
| 335 | if test "x$with_sensors" = xyes; then |
| Christian Göttsche | 1b225cd | 2020-09-10 19:56:33 +0200 | [diff] [blame] | 336 | AC_CHECK_HEADERS([sensors/sensors.h], [], [missing_headers="$missing_headers $ac_header"]) |
| Christian Göttsche | 4f08d2d | 2020-12-03 16:42:38 +0100 | [diff] [blame] | 337 | elif test "x$with_sensors" = xcheck; then |
| 338 | with_sensors=yes |
| 339 | AC_CHECK_HEADERS([sensors/sensors.h], [], [with_sensors=no]) |
| Christian Göttsche | 1b225cd | 2020-09-10 19:56:33 +0200 | [diff] [blame] | 340 | fi |
| 341 | |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 342 | AM_CFLAGS="\ |
| 343 | -Wall\ |
| 344 | -Wcast-align\ |
| Christian Göttsche | db47207 | 2020-10-04 14:30:35 +0200 | [diff] [blame] | 345 | -Wcast-qual\ |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 346 | -Wextra\ |
| Benny Baumann | ba0fca1 | 2020-09-18 16:58:03 +0200 | [diff] [blame] | 347 | -Wfloat-equal\ |
| Christian Göttsche | c150e4b | 2020-12-18 15:49:37 +0100 | [diff] [blame] | 348 | -Wformat=2\ |
| Christian Göttsche | 4dadbe3 | 2021-01-21 19:49:07 +0100 | [diff] [blame^] | 349 | -Winit-self\ |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 350 | -Wmissing-format-attribute\ |
| 351 | -Wmissing-noreturn\ |
| Christian Göttsche | 4e282eb | 2020-09-25 14:03:55 +0200 | [diff] [blame] | 352 | -Wmissing-prototypes\ |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 353 | -Wpointer-arith\ |
| 354 | -Wshadow\ |
| 355 | -Wstrict-prototypes\ |
| 356 | -Wundef\ |
| 357 | -Wunused\ |
| 358 | -Wwrite-strings" |
| 359 | |
| Benny Baumann | 2cde4a7 | 2020-09-18 19:32:41 +0200 | [diff] [blame] | 360 | AX_CHECK_COMPILE_FLAG([-Wnull-dereference], [AM_CFLAGS="$AM_CFLAGS -Wnull-dereference"], , [-Werror]) |
| 361 | |
| Christian Göttsche | 57254cd | 2020-08-21 10:37:20 +0200 | [diff] [blame] | 362 | AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror], [Treat warnings as errors (default: warnings are not errors)])], [enable_werror="$enableval"], [enable_werror=no]) |
| 363 | AS_IF([test "x$enable_werror" = "xyes"], [AM_CFLAGS="$AM_CFLAGS -Werror"]) |
| Christian Göttsche | b7f6329 | 2020-09-17 22:23:05 +0200 | [diff] [blame] | 364 | |
| Christian Göttsche | 57254cd | 2020-08-21 10:37:20 +0200 | [diff] [blame] | 365 | AC_SUBST([AM_CFLAGS]) |
| André Carvalho | b7b66b7 | 2017-12-04 00:15:29 -0200 | [diff] [blame] | 366 | |
| Christian Göttsche | b7f6329 | 2020-09-17 22:23:05 +0200 | [diff] [blame] | 367 | AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], [Enable asserts (default: asserts are disabled)])], [enable_debug="$enableval"], [enable_debug=no]) |
| 368 | AS_IF([test "x$enable_debug" = "xyes"], , [AM_CPPFLAGS="$AM_CPPFLAGS -DNDEBUG"]) |
| 369 | |
| 370 | AC_SUBST([AM_CPPFLAGS]) |
| 371 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 372 | # Bail out on errors. |
| 373 | # ---------------------------------------------------------------------- |
| 374 | if test ! -z "$missing_libraries"; then |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 375 | AC_MSG_ERROR([missing libraries: $missing_libraries]) |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 376 | fi |
| 377 | if test ! -z "$missing_headers"; then |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 378 | AC_MSG_ERROR([missing headers: $missing_headers]) |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 379 | fi |
| 380 | |
| Daniel Lange | 079c2ab | 2020-10-05 09:51:32 +0200 | [diff] [blame] | 381 | AC_DEFINE_UNQUOTED(COPYRIGHT, "(C) 2004-2019 Hisham Muhammad. (C) 2020 htop dev team.", [Copyright message.]) |
| Hisham Muhammad | 3383d8e | 2015-01-21 23:27:31 -0200 | [diff] [blame] | 382 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 383 | # We're done, let's go! |
| 384 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | a75161f | 2014-11-24 20:11:33 -0200 | [diff] [blame] | 385 | AM_CONDITIONAL([HTOP_LINUX], [test "$my_htop_platform" = linux]) |
| Hisham Muhammad | 8915b29 | 2014-11-27 16:27:34 -0200 | [diff] [blame] | 386 | AM_CONDITIONAL([HTOP_FREEBSD], [test "$my_htop_platform" = freebsd]) |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 387 | AM_CONDITIONAL([HTOP_DRAGONFLYBSD], [test "$my_htop_platform" = dragonflybsd]) |
| Michael McConville | a9a5a53 | 2015-09-18 00:46:48 -0400 | [diff] [blame] | 388 | AM_CONDITIONAL([HTOP_OPENBSD], [test "$my_htop_platform" = openbsd]) |
| David Hunt | 70e7c8d | 2015-07-12 13:47:43 -0500 | [diff] [blame] | 389 | AM_CONDITIONAL([HTOP_DARWIN], [test "$my_htop_platform" = darwin]) |
| gmbroome | 697f5bb | 2018-03-02 16:20:46 -0500 | [diff] [blame] | 390 | AM_CONDITIONAL([HTOP_SOLARIS], [test "$my_htop_platform" = solaris]) |
| Hisham Muhammad | a75161f | 2014-11-24 20:11:33 -0200 | [diff] [blame] | 391 | AM_CONDITIONAL([HTOP_UNSUPPORTED], [test "$my_htop_platform" = unsupported]) |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 392 | AC_SUBST(my_htop_platform) |
| Daniel Lange | e172282 | 2020-08-24 21:37:28 +0200 | [diff] [blame] | 393 | AC_CONFIG_FILES([Makefile htop.1]) |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 394 | AC_OUTPUT |
| Hisham Muhammad | c39f18a | 2017-07-10 20:14:25 -0300 | [diff] [blame] | 395 | |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 396 | if test "$my_htop_platform" = "unsupported"; then |
| Hisham Muhammad | c39f18a | 2017-07-10 20:14:25 -0300 | [diff] [blame] | 397 | echo "" |
| 398 | echo "****************************************************************" |
| 399 | echo "WARNING! This platform is not currently supported by htop." |
| 400 | echo "" |
| 401 | echo "The code will build, but it will produce a dummy version of htop" |
| 402 | echo "which shows no processes, using the files from the unsupported/" |
| 403 | echo "directory. This is meant to be a skeleton, to be used as a" |
| 404 | echo "starting point if you are porting htop to a new platform." |
| 405 | echo "****************************************************************" |
| 406 | echo "" |
| 407 | fi |
| Christian Göttsche | 3b084db | 2020-08-28 12:10:31 +0200 | [diff] [blame] | 408 | |
| 409 | AC_MSG_RESULT([ |
| 410 | ${PACKAGE_NAME} ${VERSION} |
| 411 | |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 412 | platform: $my_htop_platform |
| 413 | (Linux) proc directory: $PROCDIR |
| 414 | (Linux) openvz: $enable_openvz |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 415 | (Linux) vserver: $enable_vserver |
| 416 | (Linux) ancient vserver: $enable_ancient_vserver |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 417 | (Linux) affinity: $enable_linux_affinity |
| 418 | (Linux) delay accounting: $enable_delayacct |
| Christian Göttsche | 4f08d2d | 2020-12-03 16:42:38 +0100 | [diff] [blame] | 419 | (Linux) sensors: $with_sensors |
| Christian Göttsche | f4404ef | 2020-09-02 14:39:25 +0200 | [diff] [blame] | 420 | (Linux) capabilities: $with_capabilities |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 421 | unicode: $enable_unicode |
| Daniel Lange | 309f1d7 | 2020-11-16 13:29:37 +0100 | [diff] [blame] | 422 | hwloc: $enable_hwloc |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 423 | setuid: $enable_setuid |
| Daniel Lange | a8a723f | 2020-11-16 17:01:51 +0100 | [diff] [blame] | 424 | debug: $enable_debug |
| Christian Göttsche | 3b084db | 2020-08-28 12:10:31 +0200 | [diff] [blame] | 425 | ]) |