summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2019-05-03 07:59:09 +0200
committerFabrice Fontaine <fontaine.fabrice@gmail.com>2019-05-03 07:59:09 +0200
commit7af7c5e275b69daedee3696bee1e880586f30373 (patch)
treef3cf21a06d98da89b11bf92fdfc6eb564c232bd2 /configure.ac
parent0be2c6712728cea1fa1bcc640e564c45c2c82e37 (diff)
downloadxorg-lib-libXpm-7af7c5e275b69daedee3696bee1e880586f30373.tar.gz
Allow usage when fork() is not available
When fork() is not available, we need to define NO_ZPIPE so that libXpm doesn't try to fork/exec to use a pipe to uncompress compressed .xpm files. There is obviously a loss of functionality, but loading uncompressed .xpm files should continue to work. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/x11r7/xlib_libXpm/0001-fork-check.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e54163c..c2796c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,7 @@ XORG_DEFAULT_OPTIONS
# Checks for library functions
AC_CHECK_FUNCS([strlcat])
+AC_CHECK_FUNC([fork],[], AC_DEFINE(NO_ZPIPE))
# Obtain compiler/linker options for dependencies
PKG_CHECK_MODULES(XPM, xproto x11)