mirror of https://github.com/xzeldon/htop.git
Indentation and line continuation fixes in configure.ac
This commit is contained in:
parent
738d31b903
commit
880eecabf5
15
configure.ac
15
configure.ac
|
@ -254,8 +254,7 @@ if test "$my_htop_platform" = "solaris"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(hwloc, [AS_HELP_STRING([--enable-hwloc], [enable hwloc support for CPU affinity, disables Linux affinity])],, enable_hwloc="no")
|
AC_ARG_ENABLE(hwloc, [AS_HELP_STRING([--enable-hwloc], [enable hwloc support for CPU affinity, disables Linux affinity])],, enable_hwloc="no")
|
||||||
if test "x$enable_hwloc" = xyes
|
if test "x$enable_hwloc" = xyes; then
|
||||||
then
|
|
||||||
AC_CHECK_LIB([hwloc], [hwloc_get_proc_cpubind], [], [missing_libraries="$missing_libraries libhwloc"])
|
AC_CHECK_LIB([hwloc], [hwloc_get_proc_cpubind], [], [missing_libraries="$missing_libraries libhwloc"])
|
||||||
AC_CHECK_HEADERS([hwloc.h],[:], [missing_headers="$missing_headers $ac_header"])
|
AC_CHECK_HEADERS([hwloc.h],[:], [missing_headers="$missing_headers $ac_header"])
|
||||||
fi
|
fi
|
||||||
|
@ -287,20 +286,17 @@ if test "x$enable_linux_affinity" = xyes; then
|
||||||
AC_DEFINE(HAVE_LINUX_AFFINITY, 1, [Define if Linux sched_setaffinity and sched_getaffinity are to be used.])
|
AC_DEFINE(HAVE_LINUX_AFFINITY, 1, [Define if Linux sched_setaffinity and sched_getaffinity are to be used.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$enable_linux_affinity" = xyes -a "x$enable_hwloc" = xyes
|
if test "x$enable_linux_affinity" = xyes -a "x$enable_hwloc" = xyes; then
|
||||||
then
|
|
||||||
AC_MSG_ERROR([--enable-hwloc and --enable-linux-affinity are mutual exclusive. Specify at most one of them.])
|
AC_MSG_ERROR([--enable-hwloc and --enable-linux-affinity are mutual exclusive. Specify at most one of them.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(setuid, [AS_HELP_STRING([--enable-setuid], [enable setuid support for platforms that need it])],, enable_setuid="no")
|
AC_ARG_ENABLE(setuid, [AS_HELP_STRING([--enable-setuid], [enable setuid support for platforms that need it])],, enable_setuid="no")
|
||||||
if test "x$enable_setuid" = xyes
|
if test "x$enable_setuid" = xyes; then
|
||||||
then
|
|
||||||
AC_DEFINE(HAVE_SETUID_ENABLED, 1, [Define if setuid support should be enabled.])
|
AC_DEFINE(HAVE_SETUID_ENABLED, 1, [Define if setuid support should be enabled.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(delayacct, [AS_HELP_STRING([--enable-delayacct], [enable Linux delay accounting])],, enable_delayacct="no")
|
AC_ARG_ENABLE(delayacct, [AS_HELP_STRING([--enable-delayacct], [enable Linux delay accounting])],, enable_delayacct="no")
|
||||||
if test "x$enable_delayacct" = xyes
|
if test "x$enable_delayacct" = xyes; then
|
||||||
then
|
|
||||||
m4_ifdef([PKG_PROG_PKG_CONFIG], [
|
m4_ifdef([PKG_PROG_PKG_CONFIG], [
|
||||||
PKG_PROG_PKG_CONFIG()
|
PKG_PROG_PKG_CONFIG()
|
||||||
PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [], [missing_libraries="$missing_libraries libnl-3"])
|
PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [], [missing_libraries="$missing_libraries libnl-3"])
|
||||||
|
@ -375,8 +371,7 @@ AC_SUBST(my_htop_platform)
|
||||||
AC_CONFIG_FILES([Makefile htop.1])
|
AC_CONFIG_FILES([Makefile htop.1])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
if test "$my_htop_platform" = "unsupported"
|
if test "$my_htop_platform" = "unsupported"; then
|
||||||
then
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "****************************************************************"
|
echo "****************************************************************"
|
||||||
echo "WARNING! This platform is not currently supported by htop."
|
echo "WARNING! This platform is not currently supported by htop."
|
||||||
|
|
Loading…
Reference in New Issue