Commit dbf9d6b4 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

arts: remove aRts-related plugins

aRts development stopped in 2004, it's unlikely ever is
still using it. Besides, these elements were never even
ported to 0.10.
parent 8e532ca1
......@@ -49,7 +49,6 @@ vbidec None (Algorithm by Billy Biggs, Doug Bell,
Plugins which use a LGPL library are as follows:
alsa alsa (http://alsa-project.org/)
artsdsink aRts (http://arts-project.org/)
cacasink libcaca (http://sam.zoy.org/projects/libcaca/)
colorspacelcs libcolorspace
dvdec libdv (http://libdv.sourceforge.net/)
......@@ -59,7 +58,6 @@ fameenc libfame (http://fame.sourceforge.net/)
ffmpeg ffmpeg (http://ffmpeg.sourceforge.net/)
gdkpixbuf GTK+ (http://www.gtk.org/)
gnomevfs gnome-vfs (ftp.gnome.org//pub/GNOME/stable/sources/gnome-vfs/)
gst_arts aRts (http://arts-project.org/)
gst1394 libraw1394 (http://www.linux1394.org/)
gstaf libaudiofile (http://www.68k.org/~michael/audiofile/)
gstsf libsndfile (http://www.mega-nerd.com/libsndfile/)
......
......@@ -32,8 +32,6 @@ ext/(library)
dirac (Dirac video codec)
http://www.bbc.co.uk/rd/projects/dirac/index.shtml
aRts (for the arts plugin wrapper, and the artsd sink)
http://www.arts-project.org
libdvdread (for the dvdsrc)
http://www.dtek.chalmers.se/groups/dvd/
(optional: libcss for encrypted DVDs)
......
......@@ -16,18 +16,6 @@ else
APEXSINK_DIR =
endif
# if USE_ARTS
# ARTS_DIR=arts
# else
ARTS_DIR=
# endif
# if USE_ARTSC
# ARTSC_DIR=artsd
# else
ARTSC_DIR=
# endif
# if USE_AUDIOFILE
# AUDIOFILE_DIR=audiofile
# else
......@@ -384,8 +372,6 @@ SUBDIRS=\
$(ASSRENDER_DIR) \
$(VOAMRWBENC_DIR) \
$(APEXSINK_DIR) \
$(ARTS_DIR) \
$(ARTSC_DIR) \
$(AUDIOFILE_DIR) \
$(BZ2_DIR) \
$(CDAUDIO_DIR) \
......
gst_artsio.cc
gst_artsio.h
gst_artsio.mcopclass
gst_artsio.mcoptype
plugin_LTLIBRARIES = libgstarts.la
SUFFIXES = .idl
# on FC2, artsc-config --cflags has -pthread, which mcopidl doesn't like
# If someone has time and energy, please check if -pthread should be allowed
# in compile flags at all.
.idl.cc:
mcopidl -t `echo $(ARTS_CXXFLAGS) | sed 's/-pthread//g'` $<
# mcopidl Extension Expansion Technology clean up
CLEANFILES = gst_artsio.h gst_artsio.cc gst_artsio.mcopclass gst_artsio.mcoptype
EXTRA_DIST = gst_artsio.idl
BUILT_SOURCES = gst_artsio.cc
libgstarts_la_SOURCES = gst_arts.c gst_artsio_impl.cc
nodist_libgstarts_la_SOURCES = gst_artsio.cc
libgstarts_la_CFLAGS = $(GST_CFLAGS)
libgstarts_la_CXXFLAGS = $(ARTS_CXXFLAGS) $(GST_CFLAGS)
libgstarts_la_LIBADD = $(ARTS_LIBS) -lartsflow -lartsflow_idl
libgstarts_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstarts_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = gst_arts.h gst_artsio_impl.h
dist-hook:
rm -f $(distdir)/gst_artsio.cc
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
#include <math.h>
#ifdef HAVE_OSS_INCLUDE_IN_SYS
#include <sys/soundcard.h>
#else
#ifdef HAVE_OSS_INCLUDE_IN_ROOT
#include <soundcard.h>
#else
#include <machine/soundcard.h>
#endif /* HAVE_OSS_INCLUDE_IN_ROOT */
#endif /* HAVE_OSS_INCLUDE_IN_SYS */
/*#define DEBUG_ENABLED */
#include "gst_arts.h"
#include "gst_artsio_impl.h"
static GstStaticPadTemplate sink_temp = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw-int, "
"depth = (int) 16, "
"width = (int) 16, "
"signed = (boolean) true, "
"channels = (int) 2, "
"rate = (int) 44100, " "endianness = (int) byte_order")
);
static GstStaticPadTemplate src_temp = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw-int, "
"depth = (int) 16, "
"width = (int) 16, "
"signed = (boolean) true, "
"channels = (int) 2, "
"rate = (int) 44100, " "endianness = (int) byte_order")
);
enum
{
ARG_0,
ARG_LAST
};
static void gst_arts_base_init (gpointer g_class);
static void gst_arts_class_init (GstARTSClass * klass);
static void gst_arts_init (GstARTS * arts);
static void gst_arts_loop (GstElement * element);
static GstElementClass *parent_class = NULL;
/*static guint gst_arts_signals[LAST_SIGNAL] = { 0 }; */
GType
gst_arts_get_type (void)
{
static GType gst_arts_type = 0;
if (!gst_arts_type) {
static const GTypeInfo gst_arts_info = {
sizeof (GstARTSClass),
gst_arts_base_init,
NULL,
(GClassInitFunc) gst_arts_class_init,
NULL,
NULL,
sizeof (GstARTS),
0,
(GInstanceInitFunc) gst_arts_init,
};
gst_arts_type =
g_type_register_static (GST_TYPE_ELEMENT, "GstArts", &gst_arts_info, 0);
}
return gst_arts_type;
}
static void
gst_arts_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_temp));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_temp));
gst_element_class_set_details_simple (element_class, "aRts plugin",
"Filter/Audio", "aRts wrapper filter",
"Erik Walthinsen <omega@temple-baptist.com, "
"Stefan Westerfeld <stefan@space.twc.de>");
}
static void
gst_arts_class_init (GstARTSClass * klass)
{
GObjectClass *gobject_class;
GstElementClass *gstelement_class;
parent_class = g_type_class_peek_parent (klass);
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
}
static void
gst_arts_init (GstARTS * arts)
{
arts->sinkpad =
gst_pad_new_from_template (gst_element_get_pad_template (GST_ELEMENT
(arts), "sink"), "sink");
gst_element_add_pad (GST_ELEMENT (arts), arts->sinkpad);
arts->srcpad =
gst_pad_new_from_template (gst_element_get_pad_template (GST_ELEMENT
(arts), "src"), "src");
gst_element_add_pad (GST_ELEMENT (arts), arts->srcpad);
gst_element_set_loop_function (GST_ELEMENT (arts), gst_arts_loop);
arts->wrapper = gst_arts_wrapper_new (arts->sinkpad, arts->srcpad);
}
static void
gst_arts_loop (GstElement * element)
{
GstARTS *arts = (GstARTS *) element;
g_return_if_fail (arts != NULL);
gst_arts_wrapper_do (arts->wrapper);
}
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_element_register (plugin, "artsfilter", GST_RANK_NONE,
GST_TYPE_ARTS))
return FALSE;
return TRUE;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
arts,
"arTs filter wrapper",
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
*
* gstarts.h: Header for ARTS plugin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_ARTS_H__
#define __GST_ARTS_H__
#include <gst/gst.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GST_TYPE_ARTS \
(gst_arts_get_type())
#define GST_ARTS(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ARTS,GstARTS))
#define GST_ARTS_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ARTS,GstARTSClass))
#define GST_IS_ARTS(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ARTS))
#define GST_IS_ARTS_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARTS))
typedef struct _GstARTS GstARTS;
typedef struct _GstARTSClass GstARTSClass;
struct _GstARTS {
GstElement element;
GstPad *sinkpad, *srcpad;
void *wrapper;
};
struct _GstARTSClass {
GstElementClass parent_class;
};
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GST_ARTS_H__ */
#include "artsflow.idl"
module Gst {
interface ArtsMonoSink : Arts::SynthModule {
default out audio stream output;
};
interface ArtsStereoSink : Arts::SynthModule {
default out audio stream outleft,outright;
};
interface ArtsMonoSrc : Arts::SynthModule {
default in audio stream input;
};
interface ArtsStereoSrc : Arts::SynthModule {
default in audio stream inleft,inright;
};
};
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <math.h>
#include "artsflow.h"
#include "stdsynthmodule.h"
#include "gst_artsio.h"
#include "convert.h"
#include "connect.h"
#include "flowsystem.h"
#include <gst/gst.h>
using namespace Arts;
namespace Gst
{
class ArtsStereoSink_impl:virtual public ArtsStereoSink_skel,
virtual public StdSynthModule
{
GstPad *sinkpad;
GstPad *srcpad;
unsigned long remainingsamples;
GstData *inbuf;
unsigned char *dataptr;
public:
ArtsStereoSink_impl ()
{
remainingsamples = 0;
inbuf = NULL;
dataptr = NULL;
}
void calculateBlock (unsigned long samples)
{
unsigned long fulfilled = 0;
//gint16 *s;
//fprintf(stderr,"StereoSink: getting %d samples\n",samples);
while (fulfilled < samples)
{
if (remainingsamples == 0) {
//fprintf(stderr,"need to get a buffer\n");
if (inbuf) {
gst_data_unref (inbuf);
inbuf = NULL;
}
// start by pulling a buffer from GStreamer
inbuf = gst_pad_pull (sinkpad);
while (GST_IS_EVENT (inbuf)) {
switch (GST_EVENT_TYPE (inbuf)) {
case GST_EVENT_EOS:
gst_element_set_eos (GST_PAD_PARENT (sinkpad));
default:
break;
}
gst_pad_event_default (srcpad, GST_EVENT (inbuf));
inbuf = gst_pad_pull (sinkpad);
}
dataptr = GST_BUFFER_DATA (GST_BUFFER (inbuf));
remainingsamples = GST_BUFFER_SIZE (GST_BUFFER (inbuf)) / 4;
//fprintf(stderr,"got a buffer with %d samples\n",remainingsamples);
}
unsigned long count = MIN (remainingsamples, samples - fulfilled);
//fprintf(stderr,"have %d samples left, can fill %d\n",remainingsamples,count);
convert_stereo_i16le_2float (count, dataptr, outleft, outright);
//s = (gint16 *)dataptr;
//fprintf(stderr,"samples in are %d and %d, out are %f and %f\n",s[0],s[1],outleft[0],outright[0]);
remainingsamples -= count;
dataptr += 4 * count;
fulfilled += count;
}
}
void setPad (GstPad * pad)
{
sinkpad = pad;
}
void setSrcPad (GstPad * pad)
{
srcpad = pad;
}
};
class ArtsStereoSrc_impl:virtual public ArtsStereoSrc_skel,
virtual public StdSynthModule
{
GstPad *srcpad;
GstBuffer *outbuf;
unsigned char *dataptr;
public:
void calculateBlock (unsigned long samples)
{
//gint16 *s;
//fprintf(stderr,"StereoSrc: handed %d samples\n",samples);
outbuf = gst_buffer_new ();
GST_BUFFER_DATA (outbuf) = (guchar *) g_malloc (samples * 4);
GST_BUFFER_SIZE (outbuf) = samples * 4;
memset (GST_BUFFER_DATA (outbuf), 0, samples * 4);
convert_stereo_2float_i16le (samples, inleft, inright,
GST_BUFFER_DATA (outbuf));
//s = (gint16 *)GST_BUFFER_DATA(outbuf);
//fprintf(stderr,"samples in are %f and %f, out are %d and %d\n",inleft[0],inright[0],s[0],s[1]);
gst_pad_push (srcpad, GST_DATA (outbuf));
outbuf = NULL;
}
void setPad (GstPad * pad)
{
srcpad = pad;
}
};
class GstArtsWrapper
{
Dispatcher *dispatcher;
ArtsStereoSink sink;
ArtsStereoSrc source;
StereoVolumeControl effect;
public:
GstArtsWrapper (GstPad * sinkpad, GstPad * sourcepad)
{
dispatcher = new Arts::Dispatcher ();
ArtsStereoSink_impl *sink_impl = new ArtsStereoSink_impl ();
ArtsStereoSrc_impl *source_impl = new ArtsStereoSrc_impl ();
sink_impl->setPad (sinkpad);
sink_impl->setSrcPad (sourcepad);
source_impl->setPad (sourcepad);
sink = ArtsStereoSink::_from_base (sink_impl);
source = ArtsStereoSrc::_from_base (source_impl);
sink.start ();
effect.start ();
source.start ();
effect.scaleFactor (0.5);
connect (sink, effect);
connect (effect, source);
// connect(sink,source);
}
void iterate ()
{
source._node ()->requireFlow ();
}
};
};
extern "C"
{
void *gst_arts_wrapper_new (GstPad * sinkpad, GstPad * sourcepad)
{
return new Gst::GstArtsWrapper (sinkpad, sourcepad);
}
void gst_arts_wrapper_free (void *wrapper)
{
Gst::GstArtsWrapper * w = (Gst::GstArtsWrapper *) wrapper;
delete w;
}
void gst_arts_wrapper_do (void *wrapper)
{
Gst::GstArtsWrapper * w = (Gst::GstArtsWrapper *) wrapper;
w->iterate ();
}
}
// vim:sts=2:sw=2
#include <gst/gst.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
void *gst_arts_wrapper_new(GstPad *sinkpad, GstPad *sourcepad);
void gst_arts_wrapper_free(void *wrapper);
void gst_arts_wrapper_do(void *wrapper);
#ifdef __cplusplus
}
#endif /* __cplusplus */
plugin_LTLIBRARIES = libgstartsdsink.la
libgstartsdsink_la_SOURCES = gstartsdsink.c
libgstartsdsink_la_CFLAGS = $(GST_CFLAGS) $(ARTSC_CFLAGS)
libgstartsdsink_la_LIBADD = $(ARTSC_LIBS)
libgstartsdsink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstartsdsink_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = gstartsdsink.h
To compile: artsc.h (On debian: libarts-dev)
To use: libartsc (On debian: libarts)
This diff is collapsed.
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_ARTSDSINK_H__
#define __GST_ARTSDSINK_H__
#include <gst/gst.h>
#include <artsc.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GST_TYPE_ARTSDSINK \
(gst_artsdsink_get_type())
#define GST_ARTSDSINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ARTSDSINK,GstArtsdsink))
#define GST_ARTSDSINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ARTSDSINK,GstArtsdsinkClass))
#define GST_IS_ARTSDSINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ARTSDSINK))
#define GST_IS_ARTSDSINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARTSDSINK))
typedef enum {
GST_ARTSDSINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0)
GST_ARTSDSINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2),
} GstArtsdSinkFlags;
typedef struct _GstArtsdsink GstArtsdsink;
typedef struct _GstArtsdsinkClass GstArtsdsinkClass;
struct _GstArtsdsink {
GstElement element;
GstPad *sinkpad;
gboolean connected;
arts_stream_t stream;
gboolean mute;
gboolean signd;
gint depth;
gint channels;
gint frequency;
gchar* connect_name;
};
struct _GstArtsdsinkClass {
GstElementClass parent_class;
};
GType gst_artsdsink_get_type(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GST_ARTSDSINK_H__ */
EXTRA_DIST = \
a52.m4 \
aalib.m4 \
as-arts.m4 \
as-ffmpeg.m4 \
as-liblame.m4 \
as-slurp-ffmpeg.m4 \
......@@ -11,7 +10,6 @@ EXTRA_DIST = \
gconf-2.m4 \
gettext.m4 \
glibc21.m4 \
gst-artsc.m4 \
gst-fionread.m4 \
gst-sdl.m4 \
gst-sid.m4 \
......
dnl as-arts.m4 0.1.0
dnl $Id: as-arts.m4,v 1.5 2004/05/21 11:20:49 thomasvs Exp $
dnl if you copy this file to your cvs,
dnl add this file using cvs -ko add to retain this header
dnl This is an example arts .m4 adapted and scrubbed by thomasvs
# Configure paths for ARTS
# Philip Stadermann 2001-06-21
# stolen from esd.m4
dnl AM_PATH_ARTS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for ARTS, and define ARTS_CXXFLAGS and ARTS_LIBS
dnl
AC_DEFUN([AM_PATH_ARTS],
[dnl
dnl Get the cflags and libraries from the artsc-config script
dnl
AC_ARG_WITH(arts-prefix,
AC_HELP_STRING([--with-arts-prefix=PFX],
[prefix where ARTS is installed (optional)]),
arts_prefix="$withval", arts_prefix="")
AC_ARG_WITH(arts-exec-prefix,
AC_HELP_STRING([--with-arts-exec-prefix=PFX],
[exec prefix where ARTS is installed (optional)]),
arts_exec_prefix="$withval", arts_exec_prefix="")
AC_ARG_ENABLE(artstest,
AC_HELP_STRING([--disable-artstest],
[do not try to compile and run a test ARTS program]),
, enable_artstest=yes)
if test x$arts_exec_prefix != x ; then
arts_args="$arts_args --exec-prefix=$arts_exec_prefix"
if test x${ARTS_CONFIG+set} != xset ; then
ARTS_CONFIG=$arts_exec_prefix/bin/artsc-config
fi
fi
if test x$arts_prefix != x ; then
arts_args="$arts_args --prefix=$arts_prefix"
if test x${ARTS_CONFIG+set} != xset ; then
ARTS_CONFIG=$arts_prefix/bin/artsc-config
fi
fi
AC_PATH_PROG(ARTS_CONFIG, artsc-config, no)
min_arts_version=ifelse([$1], ,0.9.5,$1)
AC_MSG_CHECKING(for ARTS artsc - version >= $min_arts_version)
no_arts=""
if test "$ARTS_CONFIG" = "no" ; then
no_arts=yes
else
# FIXME: thomas added this sed to get arts path instead of artsc
# replace -I.../artsc with -I.../arts
ARTS_CXXFLAGS=`$ARTS_CONFIG $artsconf_args --cflags | artsc-config --cflags | sed 's/\(-I.*\)artsc/\1arts/'`
ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs | sed 's/artsc$/arts/'`
arts_major_version=`$ARTS_CONFIG $arts_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_artstest" = "xyes" ; then
dnl ac_save_CXXFLAGS="$CXXFLAGS"
dnl ac_save_LIBS="$LIBS"
dnl CFLAGS="$CFLAGS $ARTS_CXXFLAGS"
dnl LIBS="$LIBS $ARTS_LIBS"
dnl
dnl Now check if the installed ARTS is sufficiently new. (Also sanity
dnl checks the results of artsc-config to some extent)
dnl
dnl a*s: to successfully compile the C++ test app, we need to
dnl first make sure we're going to compile it as C++ (with AC_LANG_PUSH),
dnl then add the CFLAGS and CLIBS of arts which we just discovered to the
dnl C++ compilation and linking flags.
dnl We also need to clean up after the test; this means using AC_LANG_POP
dnl and restoring the CPPFLAGS and LDFLAGS from the saved values we take
dnl here.
dnl ask nicely for C++ compilation
AC_LANG_PUSH(C++)
dnl save compilation and link flags and make our own
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_LDFLAGS="$LDFLAGS"
AC_SUBST(CPPFLAGS,"$CPPFLAGS $ARTS_CXXFLAGS")
AC_SUBST(LDFLAGS,"$LDFLAGS $ARTS_CLIBS")