Author: biurrun Date: Sat Nov 7 21:44:47 2009 New Revision: 1577 Log: Replace all remaining occurrences of $ac_cv_use_foo with $enable_foo. enable_foo variables are automatically set when invoking AC_ARG_ENABLE(foo). Variables with an ac_ prefix are reserved for autoconf and variables nameed *_cv_* are reserved for cached results, thus the previous naming polluted namespaces without reason. Modified: trunk/configure.ac Modified: trunk/configure.ac ============================================================================== --- trunk/configure.ac Sat Nov 7 21:30:31 2009 (r1576) +++ trunk/configure.ac Sat Nov 7 21:44:47 2009 (r1577) @@ -44,10 +44,10 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable debug mode (default=yes)]), - [ac_cv_use_debug=$enableval], - [ac_cv_use_debug=yes]) + [enable_debug=$enableval], + [enable_debug=yes]) AC_MSG_CHECKING([whether to have verbose debug]) -AC_MSG_RESULT([$ac_cv_use_debug]) +AC_MSG_RESULT([$enable_debug]) if test x"$enable_debug" = x"yes"; then AC_DEFINE(CONFIG_PISA_DEBUG) AH_TEMPLATE(CONFIG_PISA_DEBUG) @@ -56,10 +56,10 @@ AC_ARG_ENABLE(performance, AC_HELP_STRING([--enable-performance], [Performance measurement support (default=no)]), - [ac_cv_use_performance=$enableval], - [ac_cv_use_performance=no]) + [enable_performance=$enableval], + [enable_performance=no]) AC_MSG_CHECKING([whether to use performance measurement]) -AC_MSG_RESULT([$ac_cv_use_performance]) +AC_MSG_RESULT([$enable_performance]) if test x"$enable_performance" = x"yes"; then AC_DEFINE(CONFIG_PISA_PERFORMANCE) AH_TEMPLATE(CONFIG_PISA_PERFORMANCE) @@ -69,10 +69,10 @@ AC_ARG_ENABLE(logging, AC_HELP_STRING([--enable-logging], [Logging (default=no)]), - [ac_cv_use_logging=$enableval], - [ac_cv_use_logging=no]) + [enable_logging=$enableval], + [enable_logging=no]) AC_MSG_CHECKING([whether to use logging]) -AC_MSG_RESULT([$ac_cv_use_logging]) +AC_MSG_RESULT([$enable_logging]) if test x"$enable_logging" = x"yes"; then AC_DEFINE(CONFIG_PISA_LOGGING) AH_TEMPLATE(CONFIG_PISA_LOGGING) @@ -82,10 +82,10 @@ AC_ARG_ENABLE(openwrt, AC_HELP_STRING([--enable-openwrt], [enable building of OpenWRT supporting parts (default=no)]), - [ac_cv_use_openwrt=$enableval], - [ac_cv_use_openwrt=no]) + [enable_openwrt=$enableval], + [enable_openwrt=no]) AC_MSG_CHECKING([whether to use OpenWRT]) -AC_MSG_RESULT([$ac_cv_use_openwrt]) +AC_MSG_RESULT([$enable_openwrt]) if test x"$enable_openwrt" = x"yes"; then AC_DEFINE(CONFIG_PISA_OPENWRT) AH_TEMPLATE(CONFIG_PISA_OPENWRT)