summaryrefslogtreecommitdiff
path: root/m4
AgeCommit message (Collapse)AuthorFilesLines
2016-04-18build-sys: Define opengl GL_LIBS and GL_CFLAGS in generated Makefile.inLin Ma1-0/+2
SPICE_COMMON_{CFLAGS,LIBS} references '$(GL_{CFLAGS,LIBS)', so these variables are going to be expanded at 'make' time rather than at 'configure' time. The linker flag and the compiler flag won't be substituted in the generated Makefile without AC_SUBST. It causes spice-gtk building failure with --enable-opengl option. The patch fixes this issue. Signed-off-by: Lin Ma <lma@suse.com>
2016-04-05log: Make sure glib threading is initializedChristophe Fergeau1-1/+1
While testing spice-server on EL6, I was getting random crashes in the glib logging code because g_logv was called recursively even though this was not visible in a backtrace. It turns out on older glib versions (EL6 has 2.28), g_logv is not thread-safe unless g_thread_init() is called first. If g_thread_init() is not called, the GMutex/GPrivate calls g_logv makes are turned into no-ops, which is going to cause the recursion issue I was seeing. This commit adds a call to g_thread_init() for these older glib versions. (gdb) bt 0x7fff9f9fb110 "item.type: 114", unused_data=0x0) at gmessages.c:863 format=0x7ffff50e72ac "item.type: %d", args1=0x7fff9f9fb640) at gmessages.c:517 SPICE_LOG_LEVEL_DEBUG, strloc=0x7ffff50e72ba "dcc.c:1652", function= 0x7ffff50e7320 "release_item_before_push", format=0x7ffff50e72ac "item.type: %d", args= 0x7fff9f9fb640) at log.c:163 SPICE_LOG_LEVEL_DEBUG, strloc=0x7ffff50e72ba "dcc.c:1652", function= 0x7ffff50e7320 "release_item_before_push", format=0x7ffff50e72ac "item.type: %d") at log.c:195 at dcc.c:1652 at dcc.c:1719 at dcc-send.c:2450 at red-channel.c:578 at red-channel.c:1587 at event-loop.c:122 0x7ffff4fb2ef2 <watch_func>, user_data=0x7fff980244e0) at giounix.c:166 0x7ffff86ec770) at gmain.c:3092
2016-03-312/2] Add check for opensslEduardo Lima (Etrunko)1-0/+9
It is required to compile ssl-verify.[ch]. Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2016-01-28Use lz4 if possiblePavel Grunt1-5/+11
Change the default option to "auto" Acked-by: Victor Toso <victortoso@redhat.com>
2015-12-18m4: Add macro for --with-saslPavel Grunt1-0/+27
It is not used by spice-common, but both server and client can use it. Compared to current checks in spice-gtk and spice server this macro only supports libsasl2. Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2015-12-14m4: Fix SPICE_WARNING on el6Christophe Fergeau1-1/+1
autogen.sh fails on el6 unless the second argument to AC_DEFUN([SPICE_WARNING]) is enclosed in []
2015-11-25Use new libcacard.h if possibleMarc-André Lureau1-1/+7
libcacard.h requires 2.5.1. Keep compatibility for older versions until the transition in distros to the standalone version is done. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> [ Christophe: add < 2.5.1 fallback ] Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2015-11-16build-sys: Add SPICE_CHECK_GSTREAMER_ELEMENTS()Francois Gouget1-0/+36
This makes it possible to warn the developer that the GStreamer elements needed at runtime are missing and give him a hint on how to fix the issue. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-11-04build-sys: Add SPICE_CHECK_GSTREAMER()Francois Gouget1-0/+20
This simplifies checking for GStreamer modules by setting all the variables we normally need. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-11-04build-sys: Add the SPICE_WARNING() and SPICE_PRINT_MESSAGES m4 macrosFrancois Gouget1-0/+21
A call to SPICE_WARNING() anywhere in the configure file results in the warning being printed at the end of the configure run where it will be be visible. This makes it possible to keep the SPICE_WARNING() calls together with the related feature checks instead of having to put a separate AC_MSG_WARN() call near the end. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-11-02build-sys: Add missing # to commentChristophe Fergeau1-1/+1
SPICE_CHECK_SMARTCARD documentation ends with a '-------' comment, but the # to start the comment is missing, causing a warning message when running configure.
2015-10-23build-sys: Rename SUPPORT_GL to HAVE_GLChristophe Fergeau1-2/+2
The other conditionals are using the HAVE_ prefix, using HAVE_GL rather than SUPPORT_GL improves consistency.
2015-10-23build-sys: Set automake conditional in SPICE_CHECK_SMARTCARDChristophe Fergeau1-2/+4
spice-server will use this.
2015-10-23build-sys: Fix error in SPICE_CHECK_LZ4 descriptionChristophe Fergeau1-1/+1
This macro does not define a SUPPORT_LZ4 automake conditional.
2015-10-23build-sys: Add gio-2.0 to SPICE_CHECK_GLIB2Christophe Fergeau1-1/+1
GInetAddress is defined in gio, not glib. Not checking for gio-2.0 in SPICE_CHECK_GLIB2 means gio won't be in GLIB2_LIBS, which causes link errors when trying to build spice-server.
2015-10-23m4: Require glib version >= 2.22Lukas Venhoda1-1/+1
This is required by the GInetAddress functions.
2015-10-13build-sys: Rework SPICE_CHECK_* m4 macrosChristophe Fergeau1-50/+31
These macros were automatically appending the needed CFLAGS/LIBS to variables passed as arguments. This is how spice-common uses them, but now how spice-gtk/spice want to use them, and is making the macros more complicated than they could (in particular this makes them use AS_VAR_APPEND). This is also not flexible enough as spice-gtk uses libcacard libraries, while spice-common does not need them. If SPICE_CHECK_SMARTCARD unconditionnally libcacard libraries to the variable spice-common passes it as an argument, we'll end up linking with an unneeded library. This commit removes this automatic appending from the SPICE_CHECK_* macros and moves it to spice-common as it's the only one which needs it.
2015-08-11Use installed spice-protocol for code generationChristophe Fergeau1-0/+1
Now that spice-protocol ships the needed .proto files as well as the corresponding python scripts, spice-common can use these in order to generate the C code for the SPICE (de)marshallers.
2015-07-02m4: Add compat AS_VAR_APPEND for older autoconfChristophe Fergeau1-0/+5
This causes failures on EL6 otherwise as autoconf is too old there.
2015-06-17m4: Add macro for --enable-lz4Christophe Fergeau1-0/+24
It's not directly used by spice-common, but this way spice-gtk and spice-server can share the same implementation.
2015-04-13configure.ac: Check for needed python modules for git buildsChristophe Fergeau2-0/+68
After the patch adding support for python 3 to the code generator, python-six is required when building from git. Since I got 2 different reports of SPICE build failures right after introducing it, it's probably better to check for the needed python modules from configure, and exit with an error if they are missing. This commit adds a --enable-python-checks configure flag for that though, since we only want to do that when building from git. It assumes that people running from git will be running autogen.sh, while people building from tarballs will run configure.
2015-04-10ppc: build-sys: Add big-endian supportErlon Cruz1-0/+1
A few files (the generated marshalling code and pixman-related utils) make use of WORDS_BIGENDIAN in order to do the right thing depending on endianness. configure.ac must call AC_C_BIGENDIAN for it to be defined. Signed-off-by: Erlon R. Cruz <erlon.cruz@br.flextronics.com> Signed-off-by: Rafael F. Santos <fonsecasantos.rafael@gmail.com> Signed-off-by: Fabiano Fidêncio <Fabiano.Fidêncio@fit-tecnologia.org.br>
2015-04-10ppc: Fix lz magic endiannessErlon Cruz1-0/+12
Signed-off-by: Erlon R. Cruz <erlon.cruz@br.flextronics.com> Signed-off-by: Rafael F. Santos <fonsecasantos.rafael@gmail.com> Signed-off-by: Fabiano Fidêncio <Fabiano.Fidêncio@fit-tecnologia.org.br>
2014-12-09build-sys: Move pixman check to m4 macroChristophe Fergeau1-0/+12
2014-12-09build-sys: Move opengl check to m4 macroChristophe Fergeau1-0/+31
2014-12-09build-sys: Move opus check to m4 macroChristophe Fergeau1-0/+18
2014-12-09build-sys: Move celt check to m4 macroChristophe Fergeau1-0/+26
2014-12-09build-sys: Move smartcard check to m4 macroChristophe Fergeau1-0/+29
2014-12-09build-sys: Move posix checks to a separate m4 macroChristophe Fergeau1-0/+27
2012-03-22build-sys: make it a seperately buildable spice-common libraryMarc-André Lureau1-0/+0
- autotoolize - fix headers inclusion - generate gitignores - workaround serverSMARTCARD support with dirty hack...