diff options
author | Eugene V. Lyubimkin <jackyf@debian.org> | 2012-02-19 10:24:46 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:30 +0200 |
commit | 283008ba7667dcbd771707c7245e6d42acd72478 (patch) | |
tree | e3e2447339bd70fbeb1c211886f95e6292a6d491 /configure.ac | |
parent | c65eb8be811f59b55d64d9e7654c33708de79ad9 (diff) | |
parent | e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3 (diff) | |
download | debian_htop-283008ba7667dcbd771707c7245e6d42acd72478.tar.gz debian_htop-283008ba7667dcbd771707c7245e6d42acd72478.tar.bz2 debian_htop-283008ba7667dcbd771707c7245e6d42acd72478.zip |
Imported Debian patch 1.0.1-1debian/1.0.1-1
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 83a096e..639d048 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.65) -AC_INIT([htop],[1.0],[loderunner@users.sourceforge.net]) +AC_INIT([htop],[1.0.1],[loderunner@users.sourceforge.net]) # The following two lines are required by hwloc scripts AC_USE_SYSTEM_EXTENSIONS @@ -108,13 +108,13 @@ if test ! -z "$missing_headers"; then AC_MSG_ERROR([missing headers: $missing_headers]) fi -if test "$cross_compiling" = "no"; then +if test "x$cross_compiling" = xno; then AC_CHECK_FILE($PROCDIR/stat,,AC_MSG_ERROR(Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.)) AC_CHECK_FILE($PROCDIR/meminfo,,AC_MSG_ERROR(Cannot find /proc/meminfo. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.)) fi AC_ARG_ENABLE(native_affinity, [AC_HELP_STRING([--enable-native-affinity], [enable native sched_setaffinity and sched_getaffinity for affinity support, disables hwloc])], ,enable_native_affinity="yes") -if test "x$enable_native_affinity" = xyes; then +if test "x$enable_native_affinity" = xyes -a "x$cross_compiling" = xno; then AC_MSG_CHECKING([for usable sched_setaffinity]) AC_RUN_IFELSE([ AC_LANG_PROGRAM([[ @@ -126,9 +126,12 @@ if test "x$enable_native_affinity" = xyes; then sched_setaffinity(0, sizeof(cpu_set_t), &cpuset); if (errno == ENOSYS) return 1; ]])], - [AC_DEFINE(HAVE_NATIVE_AFFINITY, 1, [Define if native sched_setaffinity and sched_getaffinity are to be used.]) - AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no])]) + [AC_MSG_RESULT([yes])], + [enable_native_affinity=no + AC_MSG_RESULT([no])]) +fi +if test "x$enable_native_affinity" = xyes; then + AC_DEFINE(HAVE_NATIVE_AFFINITY, 1, [Define if native sched_setaffinity and sched_getaffinity are to be used.]) fi AC_ARG_ENABLE(hwloc, [AC_HELP_STRING([--enable-hwloc], [enable hwloc support for CPU affinity])],, enable_hwloc="no") |