Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
4cee8324
Commit
4cee8324
authored
Feb 19, 2012
by
jehan
Browse files
enable relative prefix for plugin loading
parent
49ff8673
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
4cee8324
...
...
@@ -593,6 +593,13 @@ fi
dnl check various things
AC_FUNC_ALLOCA
AC_ARG_ENABLE(relativeprefix,
[ --enable-relativeprefix Build a linphone that finds its resources relatively to the directory where it is installed],
[case "${enableval}" in
yes) relativeprefix=yes ;;
no) relativeprefix=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-relativeprefix) ;;
esac],[relativeprefix=guess])
if test "x${prefix}" = "xNONE"; then
package_prefix=${ac_default_prefix}
...
...
@@ -601,11 +608,12 @@ else
fi
PACKAGE_PLUGINS_DIR="\$(libdir)/mediastreamer/plugins"
if test x$mingw_found = xyes ; then
if test x$mingw_found = xyes
|| test x$relativeprefix = xyes
; then
package_prefix="."
PACKAGE_PLUGINS_DIR="./lib/mediastreamer/plugins"
else
PACKAGE_PLUGINS_DIR="\$(libdir)/mediastreamer/plugins"
fi
dnl define path of plugins:
...
...
src/mscommon.c
View file @
4cee8324
...
...
@@ -650,7 +650,7 @@ void ms_init(){
#endif
#endif
#ifdef PACKAGE_PLUGINS_DIR
ms_message
(
"Loading plugins
"
);
ms_message
(
"Loading
ms
plugins
fron [%s]"
,
PACKAGE_PLUGINS_DIR
);
ms_load_plugins
(
PACKAGE_PLUGINS_DIR
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment