Reorder Linux AIO autoconf detection Keep the checking message near the result so that it is not interleaved with unrelated junk.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/634cb662 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/634cb662 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/634cb662 Branch: refs/heads/sphinx-docs Commit: 634cb6622bc786813f8d05ef7550e58ce8bd804b Parents: 0bcdca5 Author: James Peach <[email protected]> Authored: Thu May 2 15:33:29 2013 -0700 Committer: James Peach <[email protected]> Committed: Thu May 2 15:33:29 2013 -0700 ---------------------------------------------------------------------- configure.ac | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/634cb662/configure.ac ---------------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index b4c629a..911e053 100644 --- a/configure.ac +++ b/configure.ac @@ -411,18 +411,6 @@ fi TS_ARG_ENABLE_VAR([use], [reclaimable_freelist]) AC_SUBST(use_reclaimable_freelist) -# -# If the OS is linux, we can use the '--enable-linux-native-aio' option to -# replace the aio thread mode. Effective only on the linux system. -# - -AC_MSG_CHECKING([whether to enable Linux native AIO]) -AC_ARG_ENABLE([linux-native-aio], - [AS_HELP_STRING([--enable-linux-native-aio], [enable native Linux AIO support @<:@default=no@:>@])], - [enable_linux_native_aio="${enableval}"], - [enable_linux_native_aio=no] -) - # Configure how many stats to allocate for plugins. Default is 512. # AC_ARG_WITH([max-api-stats], @@ -1208,6 +1196,18 @@ AS_IF([test "x$enable_posix_cap" != "xno"], ) AC_SUBST(use_posix_cap) +# +# If the OS is linux, we can use the '--enable-linux-native-aio' option to +# replace the aio thread mode. Effective only on the linux system. +# + +AC_MSG_CHECKING([whether to enable Linux native AIO]) +AC_ARG_ENABLE([linux-native-aio], + [AS_HELP_STRING([--enable-linux-native-aio], [enable native Linux AIO support @<:@default=no@:>@])], + [enable_linux_native_aio="${enableval}"], + [enable_linux_native_aio=no] +) + AS_IF([test "x$enable_linux_native_aio" = "xyes"], [ if test $host_os_def != "linux"; then AC_MSG_ERROR([Linux native AIO can only be enabled on Linux systems])
