[Spice-devel] [PATCH 08/17] Always quote first arg to AC_DEFINE

Alon Levy alevy at redhat.com
Thu Jan 12 03:35:44 PST 2012


On Tue, Jan 10, 2012 at 03:58:29PM +0000, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The first arg to AC_DEFINE should always be quoted

I wasn't aware of this, but since we have some of those already it
obviously works, so ACK.

> ---
>  configure.ac |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 861e939..b98f831 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -99,7 +99,7 @@ AC_ARG_ENABLE(tunnel,
>  AS_IF([test x"$enable_tunnel" != "xno"], [enable_tunnel="yes"])
>  AM_CONDITIONAL(SUPPORT_TUNNEL, test "x$enable_tunnel" != "xno")
>  if test "x$enable_tunnel" != "xno"; then
> -   AC_DEFINE(USE_TUNNEL, [1], [Define if supporting tunnel proxying])
> +   AC_DEFINE([USE_TUNNEL], [1], [Define if supporting tunnel proxying])
>  fi
>  
>  AC_ARG_ENABLE(gui,
> @@ -120,7 +120,7 @@ AC_ARG_ENABLE(smartcard,
>  AS_IF([test x"$enable_smartcard" != "xno"], [enable_smartcard="yes"])
>  AM_CONDITIONAL(SUPPORT_SMARTCARD, test "x$enable_smartcard" != "xno")
>  if test "x$enable_smartcard" = "xyes"; then
> -   AC_DEFINE(USE_SMARTCARD, [1], [Define if supporting smartcard proxying])
> +   AC_DEFINE([USE_SMARTCARD], [1], [Define if supporting smartcard proxying])
>  fi
>  
>  AC_ARG_ENABLE(client,
> @@ -139,7 +139,7 @@ AC_CHECK_LIBM
>  AC_SUBST(LIBM)
>  
>  AC_CHECK_LIB(rt, clock_gettime,
> -   AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Defined if we have clock_gettime()])
> +   AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Defined if we have clock_gettime()])
>     LIBRT=-lrt
>     )
>  AC_SUBST(LIBRT)
> @@ -168,7 +168,7 @@ else
>      AC_MSG_RESULT($posix_yield_func)
>      posix_yield_func="$posix_yield_func()"
>  fi
> -AC_DEFINE_UNQUOTED(POSIX_YIELD_FUNC,$posix_yield_func,[The POSIX RT yield function])
> +AC_DEFINE_UNQUOTED([POSIX_YIELD_FUNC],$posix_yield_func,[The POSIX RT yield function])
>  
>  SPICE_REQUIRES=""
>  
> -- 
> 1.7.7.5
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list