Re: [PATCH] libgtop 0.26.2: --disable-static doesn't work



Looks reasonable to me, just applied it to CVS. Thanks !

Martin

On Mon, 28 Sep 1998, Alexander Jolk wrote:

> To: gnome-list@gnome.org
> Subject: [PATCH] libgtop 0.26.2: --disable-static doesn't work
> From: Alexander Jolk <jolk@ap-pc513b.physik.uni-karlsruhe.de>
> 
> Hi,
> 
> The libgtop 0.26.2 from CVS won't compile if ones gives the
> `--disable-static' option to configure because it tries to build
> several statically linked examples programs.  I patched the
> configure.in script and the relevant Makefile.am so that the
> statically linked examples are only built if static libraries are
> enabled.
> 
> Alex
> 
> Index: configure.in
> ===================================================================
> RCS file: /cvs/gnome/libgtop/configure.in,v
> retrieving revision 1.49
> diff -u -r1.49 configure.in
> --- configure.in	1998/09/27 14:15:47	1.49
> +++ configure.in	1998/09/28 15:47:54
> @@ -107,20 +107,31 @@
>    AC_DEFINE(GLIBTOP_GUILE)
>    AC_DEFINE(GLIBTOP_GUILE_NAMES)
>    libgtop_guile_found=yes
> -  guile_examples='third third_static'
> +  guile_examples='third'
> +  guile_static_examples='third_static'
>    guile_subdirs='guile'
>  else
>    libgtop_guile_found=no
>    guile_examples=
> +  guile_static_examples=
>    guile_subdirs=
>  fi
>  
>  if test x$libgtop_smp = xyes ; then
> -  smp_examples='smp smp_static'
> +  smp_examples='smp'
> +  smp_static_examples='smp_static'
>  else
>    smp_examples=
> +  smp_static_examples=
>  fi
>  
> +if test "x$enable_static" != xno; then
> +  static_targets="first_static second_static mountlist_static procmap_static $guile_static_example $smp_static_examples"
> +else
> +  static_targets=""
> +fi
> +
> +AC_SUBST(static_targets)
>  AC_SUBST(smp_examples)
>  AC_SUBST(guile_examples)
>  AC_SUBST(guile_subdirs)
> Index: examples/Makefile.am
> ===================================================================
> RCS file: /cvs/gnome/libgtop/examples/Makefile.am,v
> retrieving revision 1.15
> diff -u -r1.15 Makefile.am
> --- Makefile.am	1998/09/09 16:22:12	1.15
> +++ Makefile.am	1998/09/28 15:48:10
> @@ -9,12 +9,14 @@
>  # We install it in `libexec' since this will make it more easy
>  # to put the examples into an extra RPM package.
>  
> -libexec_PROGRAMS	= first first_static second second_static \
> -			  mountlist mountlist_static \
> -			  procmap procmap_static \
> +libexec_PROGRAMS	= first second\
> +			  mountlist procmap \
> +			  @static_targets@ \
>  			  @guile_examples@ @smp_examples@
>  
> -EXTRA_PROGRAMS		= third third_static smp smp_static
> +EXTRA_PROGRAMS		= first_static second_static \
> +			  mountlist_static procmap_static \
> +			  third third_static smp smp_static
>  
>  first_SOURCES		= first.c
>  first_LDADD		= $(top_builddir)/lib/libgtop.la \
> 
> 
> -- 
> Alexander Jolk * jolk@ap-pc513b.physik.uni-karlsruhe.de * +49-721-608-3572
> 
> 
> -- 
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 

-----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier
   martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]