[ltt-dev] [PATCH 02/11] use autoconf symbolic linking

Mathieu Desnoyers compudj at krystal.dyndns.org
Sun Feb 14 09:25:59 EST 2010


* Paolo Bonzini (pbonzini at redhat.com) wrote:
> Instead of copying.  This is less error-prone while developing and
> lets Automake handle more stuff.  The definition of the two variables
> in configure.ac is changed later.
> 
> Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>

Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

> ---
>  Makefile.am  |    8 --------
>  configure.ac |    6 ++++++
>  2 files changed, 6 insertions(+), 8 deletions(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 4f915e1..3e0e164 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -38,16 +38,3 @@ liburcu_signal_la_CFLAGS = -DRCU_SIGNAL
>  liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT)
>  
>  liburcu_defer_la_SOURCES = urcu-defer.c $(COMPAT)
> -
> -$(top_srcdir)/*.h $(top_srcdir)/*.c: urcu/arch.h urcu/uatomic_arch.h
> -
> -urcu/arch.h: $(top_srcdir)/urcu/arch_ at ARCHTYPE@.h
> -	$(mkdir_p) $(top_builddir)/urcu
> -	cp -f $(top_srcdir)/urcu/arch_ at ARCHTYPE@.h $(top_builddir)/urcu/arch.h
> -
> -urcu/uatomic_arch.h: $(top_srcdir)/urcu/uatomic_arch_ at ARCHTYPE@.h
> -	$(mkdir_p) $(top_builddir)/urcu
> -	cp -f $(top_srcdir)/urcu/uatomic_arch_ at ARCHTYPE@.h $(top_builddir)/urcu/uatomic_arch.h
> -
> -clean-local:
> -	rm -f urcu/arch.h urcu/uatomic_arch.h
> diff --git a/configure.ac b/configure.ac
> index c797831..4580f38 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -56,6 +56,8 @@ esac
>  if test "$ARCHTYPE" = "unknown"; then
>  	AC_MSG_ERROR([Unable to detect the architecture.])
>  fi
> +UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h
> +ARCHSRC=urcu/arch_$ARCHTYPE.h
>  AC_SUBST(ARCHTYPE)
>  AC_SUBST(SUBARCHTYPE)
>  
> @@ -204,6 +206,10 @@ AC_CHECK_FUNCS(
>  
>  CFLAGS=$saved_CFLAGS
>  
> +AC_CONFIG_LINKS([
> +	urcu/arch.h:$ARCHSRC
> +	urcu/uatomic_arch.h:$UATOMICSRC
> +])
>  AC_CONFIG_FILES([
>  	Makefile
>  	tests/Makefile
> -- 
> 1.6.6
> 
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list