From 7b00539c4c7fcded1c26e675a2aaa7c7bd659161 Mon Sep 17 00:00:00 2001 Message-Id: <7b00539c4c7fcded1c26e675a2aaa7c7bd659161.1715125863.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 10 Jul 2017 09:53:51 +0100 Subject: [PATCH 1/1] configure.ac: Check probed Wireshark plugin directory exists. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Organization: Straylight/Edgeware From: Mark Wooding If we've found a plugin directory by probing, then check that the thing actually exists. It turns out that the `pkg-config' dropping is not as accurate as one might naïvely hope. --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ce74aebb..4e83e754 100644 --- a/configure.ac +++ b/configure.ac @@ -227,7 +227,15 @@ case "$haveshark,$wireshark_plugindir" in mdw_cv_wireshark_plugin_dir=$( $PKG_CONFIG --variable=plugindir "wireshark >= 1.12.1")]) case "$mdw_cv_wireshark_plugin_dir" in - /*) wireshark_plugindir=$mdw_cv_wireshark_plugin_dir ;; + /*) + if test ! -d "$mdw_cv_wireshark_plugin_dir"; then + AC_MSG_WARN([alleged Wireshark plugin directory $mdw_cv_wireshark_plugin_dir doesn't exist]) + haveshark=no + else + wireshark_plugindir=$mdw_cv_wireshark_plugin_dir + haveshark=yes + fi + ;; *) AC_MSG_WARN([failed to read Wireshark plugin directory]) haveshark=no -- [mdw]