From b71faa2d075a1a4a8b32c573c75edcb6da3d0018 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Wed, 6 Mar 2024 16:52:18 +0100 Subject: [PATCH] [meson] Check for header event.h of libev. Refs #287 --- config2.h.in | 3 +++ meson.build | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/config2.h.in b/config2.h.in index e880ad54..e862359a 100644 --- a/config2.h.in +++ b/config2.h.in @@ -373,6 +373,9 @@ /* Define to 1 if you have the `event_get_version' function. */ #mesondefine HAVE_EVENT_GET_VERSION +/* Define to 1 if you have the header file. */ +#mesondefine HAVE_EVENT_H + /* Define to 1 if you have the header file. */ #mesondefine HAVE_EVENT2_EVENT_H diff --git a/meson.build b/meson.build index 20d1d93d..69455ef2 100644 --- a/meson.build +++ b/meson.build @@ -331,6 +331,10 @@ if compiler.has_header('event2/event.h') conf_data.set('HAVE_EVENT2_EVENT_H', 1) endif +if compiler.has_header('event.h') + conf_data.set('HAVE_EVENT_H', 1) +endif + if compiler.has_header('alloca.h') conf_data.set('HAVE_ALLOCA_H', 1) endif