summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-04-20 13:35:53 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-04-20 13:35:53 +0200
commit7ec6f96d9c53f23e9137a2deea2cbf71f959534e (patch)
tree9026b2aed8decf9542500f0d44cfbce8fdbbe17c /configure.ac
parentd2bd3c62408945227bb13133ad6ce270851b4872 (diff)
Add "fl_" prefix to libdecor symbols when using the built-in copy of libdecor
This allows client apps to use other versions of libdecor if they wish, just like what FLTK already does with libpng and libjpeg.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ad2dd5996..049be70c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1096,10 +1096,14 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [
[
plugin_dir="$($PKGCONFIG --variable=libdir libdecor-0)/libdecor/plugins-1"
CFLAGS="$CFLAGS -DUSE_SYSTEM_LIBDECOR"
+ CXXFLAGS="$CXXFLAGS -DUSE_SYSTEM_LIBDECOR"
CFLAGS="$CFLAGS -DLIBDECOR_PLUGIN_DIR=\\\"$plugin_dir\\\" "
LIBS="$LIBS $($PKGCONFIG --libs libdecor-0)"
],
- [CFLAGS="$CFLAGS -DUSE_SYSTEM_LIBDECOR=0 -DLIBDECOR_PLUGIN_DIR=\\\"\\\" "]
+ [
+ CFLAGS="$CFLAGS -DUSE_SYSTEM_LIBDECOR=0 -DLIBDECOR_PLUGIN_DIR=\\\"\\\" "
+ CXXFLAGS="$CXXFLAGS -DUSE_SYSTEM_LIBDECOR=0"
+ ]
)
LIBS="$LIBS $($PKGCONFIG --libs wayland-cursor) $($PKGCONFIG --libs wayland-client) $($PKGCONFIG --libs xkbcommon) $($PKGCONFIG --libs pangocairo) "
AS_IF([test x$enable_x11 != xno], [LIBS="$LIBS $($PKGCONFIG --libs x11)"] )