[Pkg-kde-talk] juk/Makefile.am: arts_includes vs ARTS_CFLAGS

Adeodato Simó asp16@alu.ua.es
Thu, 3 Mar 2005 08:43:05 +0100


Hello,

  on Nov 21, a change was made to Makefile.am and configure.in.in under
  kdemultimedia/juk to make --without-arts allow for compiling JuK
  without aRts support.

  However, this seems to break compiles on systems with arts headers in
  /usr/include/kde/arts, instead of /usr/include/arts. In
  juk/configure.in.in, ARTS_CFLAGS is set to
  
      ARTS_CFLAGS="-I$ARTSCCONFIG --arts-prefix`/include/arts"

  However, the previous check from arts/configure.in.in (that sets
  arts_includes, which was previously used by juk) properly checks "if
  building standalone aRts snapshot without KDE", and sets the correct
  paths in both cases.

  Perhaps the following patch would by useful? (Of course, it works
  because the configure.in.in in arts gets processed before that juk's.)

---------------------------------8<-----------------------------
--- juk/configure.in.in
+++ juk/configure.in.in
@@ -7,8 +7,7 @@
 
 if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
 	LIB_ARTS="-lartskde"
-	ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
-	ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
+	ARTS_CFLAGS="-I$arts_includes"
 	AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk])
 else
 	build_arts="no"
---------------------------------8<-----------------------------

  Thanks.

-- 
Adeodato Simó
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
    Listening to: Soundtrack - Feed the Birds (Tuppence a Bag)
 
The reader this message encounters not failing to understand is cursed.