[libsoup] meson: Avoid a conditional expression when checking Apache
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] meson: Avoid a conditional expression when checking Apache
- Date: Mon, 16 Apr 2018 05:41:26 +0000 (UTC)
commit 3ea5ea754de2b7f3eb92785c0238dec162682114
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Apr 13 15:51:22 2018 +0200
meson: Avoid a conditional expression when checking Apache
The conditional expression to set the value of `have_apache`
is checked separately. However, it can be reduced to assign
the value of the evaluation directly.
https://bugzilla.gnome.org/show_bug.cgi?id=795233
meson.build | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 71d30e3..1de92d7 100644
--- a/meson.build
+++ b/meson.build
@@ -124,10 +124,8 @@ if have_apache
cdata.set('APACHE_MODULE_DIR', apache_module_dir)
apache_ssl_module_dir = apache_modules.stdout().split(':')[1]
cdata.set('APACHE_SSL_MODULE_DIR', apache_ssl_module_dir)
- if apache_module_dir != '' and apache_ssl_module_dir != ''
- have_apache = true
- cdata.set('HAVE_APACHE', '1')
- endif
+ have_apache = apache_module_dir != '' and apache_ssl_module_dir != ''
+ cdata.set('HAVE_APACHE', have_apache)
cdata.set('APACHE_PHP_MODULE_DIR', apache_modules.stdout().split(':')[2])
endif
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]