From c106ef79e1469b9fa9e0cf96a6217152a755e290 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 21 Apr 2008 21:36:24 +0300 Subject: [PATCH] Accept libtool archives and libtool objects as well as plugin names --- vlc-config.in.in | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/vlc-config.in.in b/vlc-config.in.in index 108310599d..fab1af7c36 100644 --- a/vlc-config.in.in +++ b/vlc-config.in.in @@ -158,7 +158,23 @@ while test $# -gt 0; do *) optarg= ;; esac - case "$1" in + # Mangle plugin name, if applicable + # This is just a convenience hack for modules/common.am + tgt="$1" + case "$tgt" in + lib*_plugin_la-*.lo) + tgt="${tgt#lib}" + tgt="${tgt%_plugin_la-*.lo}" + ;; + lib*_plugin.la) + tgt="${tgt#lib}" + tgt="${tgt%_plugin.la}" + ;; + *) + ;; + esac + + case "$tgt" in --prefix=*) prefix="${optarg}" if test "${exec_prefix_set}" = no ; then @@ -229,15 +245,15 @@ while test $# -gt 0; do libs="${libs} -lvlc -lvlc-control" ;; *) - module="$1" + module="$tgt" ;; esac # Register per-module *FLAGS - register_flags "$1" + register_flags "$tgt" # Register module targets - register_targets "$1" + register_targets "$tgt" shift done -- 2.39.2