TT#108003 Add support for mariadb configuration via pkg-config

Try first the pkg-config module.

Change-Id: I757138c5a61d4fb6d755c99b63e4d1d7c3c1974b
mr9.3.1
Guillem Jover 4 years ago committed by Richard Fuchs
parent 14a663907b
commit 8ab76bd052

@ -9,7 +9,10 @@ CPPFLAGS += -DMEDIATOR_VERSION="\"$(VERSION)\""
GLIB_CFLAGS := $(shell pkg-config glib-2.0 --cflags)
# mariadb/mysql support
ifneq ($(shell which mariadb_config),)
ifeq ($(shell pkg-config --exists mariadb && echo yes),yes)
MYSQL_CFLAGS := $(shell pkg-config --cflags mariadb)
MYSQL_LDFLAGS := $(shell pkg-config --libs mariadb)
else ifneq ($(shell which mariadb_config),)
MYSQL_CFLAGS := $(shell mariadb_config --cflags)
MYSQL_LDFLAGS := $(shell mariadb_config --libs)
else ifneq ($(shell which mysql_config),)

Loading…
Cancel
Save