Commit c6b8323d authored by Laurent Montel's avatar Laurent Montel 😁

Not necessary

svn path=/trunk/KDE/kdemultimedia/juk/; revision=596702
parent 9881575c
#MIN_CONFIG(3)
AM_INIT_AUTOMAKE(juk,1.0)
artsc_config_test_path=$prefix/bin:$exec_prefix/bin:$KDEDIR/bin:$PATH
AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path)
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"
AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk])
else
build_arts="no"
LIB_ARTS=""
ARTS_CFLAGS=""
AC_DEFINE(HAVE_ARTS, 0, [no arts support in juk])
fi
AC_SUBST(LIB_ARTS)
AC_SUBST(ARTS_CFLAGS)
AC_ARG_WITH(tunepimp,
[AC_HELP_STRING(--with-tunepimp,
[enable support for TunePimp @<:@default=check@:>@])],
[], with_tunepimp=check)
have_tunepimp=no
if test "x$with_tunepimp" != xno; then
KDE_CHECK_HEADER(tunepimp/tp_c.h, have_tunepimp=yes)
if test "x$with_tunepimp" != xcheck && test "x$have_tunepimp" != xyes; then
AC_MSG_ERROR([--with-tunepimp was given, but test for TunePimp failed])
fi
fi
if test "x$have_tunepimp" = xyes; then
AC_CHECK_LIB(tunepimp, tp_SetFileNameEncoding,
AC_DEFINE(HAVE_TUNEPIMP, 4, [have TunePimp 0.4.x]),
AC_DEFINE(HAVE_TUNEPIMP, 1, [have TunePimp]))
else
AC_DEFINE(HAVE_TUNEPIMP, 0, [have TunePimp])
fi
AM_CONDITIONAL(link_lib_TP, test "x$have_tunepimp" = xyes)
AC_ARG_WITH(gstreamer,
[AC_HELP_STRING(--with-gstreamer,
[enable support for GStreamer @<:@default=check@:>@])],
[], with_gstreamer=check)
have_gst=no
if test "x$with_gstreamer" != xno; then
# pkg-config seems to have a bug where it masks needed -L entries when it
# shouldn't, so disable that.
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
GST_MAJORMINOR=0.10
GST_REQ=0.10.0
GST_VERSION=10
PKG_CHECK_MODULES(GST, \
gstreamer-$GST_MAJORMINOR >= $GST_REQ, \
have_gst=yes, have_gst=no)
if test "x$with_gstreamer" != xcheck && test "x$have_gst" != xyes; then
AC_MSG_ERROR([--with-gstreamer was given, but test for GStreamer failed])
fi
fi
if test "x$have_gst" = "xno"; then
GST_CFLAGS=""
LDADD_GST=""
LDFLAGS_GST=""
AC_DEFINE(HAVE_GSTREAMER, 0, [have GStreamer])
else
LDADD_GST=`$PKG_CONFIG --libs-only-l gstreamer-$GST_MAJORMINOR`
LDFLAGS_GST=`$PKG_CONFIG --libs-only-other gstreamer-$GST_MAJORMINOR`
# Append -L entries, since they are masked by --libs-only-l and
# --libs-only-other
LIBDIRS_GST=`$PKG_CONFIG --libs-only-L gstreamer-$GST_MAJORMINOR`
LDADD_GST="$LDADD_GST $LIBDIRS_GST"
AC_MSG_NOTICE([GStreamer version >= $GST_REQ found.])
AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer])
AC_DEFINE_UNQUOTED(GSTREAMER_VERSION, $GST_VERSION, [GStreamer Version])
fi
AC_SUBST(GST_CFLAGS)
AC_SUBST(LDADD_GST)
AC_SUBST(LDFLAGS_GST)
if test "x$have_taglib" != xyes || ( test "x$build_arts" = "xno" && test "x$have_gst" = "xno" && test "x$have_akode" = "xno") ; then
DO_NOT_COMPILE="$DO_NOT_COMPILE juk"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment