Somehow the Debian package (at least) of Wireshark ships with a
`pkg-config' dropping which contains a broken `libdir' -- and, hence,
`plugindir'. This has happened before, and it's therefore not unlikely
to happen again. Defend ourselves against this mess by spotting the
bungled value (which is distinctively and obviously wrong) and fixing
it.
AC_CACHE_CHECK([where to put Wireshark plugins],
[mdw_cv_wireshark_plugin_dir], [
mdw_cv_wireshark_plugin_dir=$(
- $PKG_CONFIG --variable=plugindir "wireshark >= 1.12.1")])
+ $PKG_CONFIG --variable=plugindir "wireshark >= 1.12.1")
+ dnl It seems that the Debian package has a habit of bungling the
+ dnl plugin path (#779788, #857729, ...).
+ case "$mdw_cv_wireshark_plugin_dir" in
+ /usr//usr/*)
+ mdw_cv_wireshark_plugin_dir=${mdw_cv_wireshark_plugin_dir#/usr/}
+ ;;
+ esac])
case "$mdw_cv_wireshark_plugin_dir" in
/*)
if test ! -d "$mdw_cv_wireshark_plugin_dir"; then