~ubuntu-branches/ubuntu/breezy/kdemultimedia/breezy

« back to all changes in this revision

Viewing changes to juk/configure.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-03-24 04:48:58 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050324044858-8ff88o9jxej6ii3d
Tags: 4:3.4.0-0ubuntu3
Add kubuntu_02_hide_arts_menu_entries.diff to hide artsbuilder and artscontrol k-menu entries

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#MIN_CONFIG(3)
 
2
 
 
3
AM_INIT_AUTOMAKE(juk,1.0)
 
4
 
 
5
artsc_config_test_path=$prefix/bin:$exec_prefix/bin:$KDEDIR/bin:$PATH
 
6
AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path)
 
7
 
 
8
if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
 
9
        LIB_ARTS="-lartskde"
 
10
        ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
 
11
        ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
 
12
        AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk])
 
13
else
 
14
        build_arts="no"
 
15
        LIB_ARTS=""
 
16
        ARTS_CFLAGS=""
 
17
        AC_DEFINE(HAVE_ARTS, 0, [no arts support in juk])
 
18
fi
 
19
 
 
20
AC_SUBST(LIB_ARTS)
 
21
AC_SUBST(ARTS_CFLAGS)
 
22
 
 
23
KDE_CHECK_HEADER(tunepimp/tp_c.h,
 
24
[
 
25
        AC_DEFINE(HAVE_MUSICBRAINZ, 1, [have MusicBrainz])
 
26
        have_musicbrainz=true
 
27
], [
 
28
        AC_DEFINE(HAVE_MUSICBRAINZ, 0, [have MusicBrainz])
 
29
        have_musicbrainz=false
 
30
])
 
31
 
 
32
AM_CONDITIONAL(link_lib_MB, test x$have_musicbrainz = xtrue)
 
33
 
 
34
# pkg-config seems to have a bug where it masks needed -L entries when it
 
35
# shouldn't, so disable that.
 
36
 
 
37
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
 
38
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
 
39
 
 
40
dnl start with 0.8
 
41
GST_MAJORMINOR=0.8
 
42
GST_REQ=0.8.0
 
43
 
 
44
PKG_CHECK_MODULES(GST, \
 
45
        gstreamer-$GST_MAJORMINOR >= $GST_REQ \
 
46
        gstreamer-control-$GST_MAJORMINOR >= $GST_REQ \
 
47
        gstreamer-libs-$GST_MAJORMINOR >= $GST_REQ,
 
48
        have_gst=yes, have_gst=no)
 
49
 
 
50
dnl Give error if we don't have gstreamer
 
51
if test "x$have_gst" = "xno"; then
 
52
        GST_CFLAGS=""
 
53
        LDADD_GST=""
 
54
        LDFLAGS_GST=""
 
55
        AC_MSG_WARN([GStreamer version >= $GST_REQ required.])
 
56
        AC_DEFINE(HAVE_GSTREAMER, 0, [have GStreamer])
 
57
else
 
58
        LDADD_GST=`$PKG_CONFIG --libs-only-l gstreamer-$GST_MAJORMINOR`
 
59
        LDFLAGS_GST=`$PKG_CONFIG --libs-only-other gstreamer-$GST_MAJORMINOR`
 
60
 
 
61
        # Append -L entries, since they are masked by --libs-only-l and
 
62
        # --libs-only-other
 
63
        LIBDIRS_GST=`$PKG_CONFIG --libs-only-L gstreamer-$GST_MAJORMINOR`
 
64
        LDADD_GST="$LDADD_GST $LIBDIRS_GST"
 
65
 
 
66
        AC_SUBST(GST_CFLAGS)
 
67
        AC_SUBST(LDADD_GST)
 
68
        AC_SUBST(LDFLAGS_GST)
 
69
        AC_MSG_NOTICE([GStreamer version >= $GST_REQ found.])
 
70
        AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer])
 
71
fi
 
72
 
 
73
if test "x$have_taglib" = "xfalse" || ( test "x$build_arts" = "xno" && test "x$have_gst" = "xno" ) ; then
 
74
        DO_NOT_COMPILE="$DO_NOT_COMPILE juk"
 
75
fi