X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vlc-config.in.in;h=5589d1c536b91611f797dff41fa357f980dac57b;hb=4ecc5ff7e39aa6601c2d0e643ad737b5189b89c2;hp=34945deb0d948f8f423f7bbda7b2342a3eacf837;hpb=3b16a551afc5b31cf8fe829154635dda46cf7aaf;p=vlc diff --git a/vlc-config.in.in b/vlc-config.in.in index 34945deb0d..5589d1c536 100644 --- a/vlc-config.in.in +++ b/vlc-config.in.in @@ -3,6 +3,7 @@ prefix="@prefix@" exec_prefix="@exec_prefix@" exec_prefix_set=no +datarootdir="@datarootdir@" release="@release@" debug="@debug@" @@ -10,8 +11,8 @@ gprof="@gprof@" cprof="@cprof@" optim="@optim@" -plugins="@PLUGINS@" -builtins="@BUILTINS@" +plugins="@PLUGINS@ " +builtins="@BUILTINS@ " cppflags="" cflags="" @@ -88,7 +89,6 @@ elif test "${TOP_BUILDDIR}" != ""; then fi includes="${includes}" cppflags="${includes}" -libs="-L@libdir@" module="" linkage="c" @@ -101,8 +101,8 @@ cppflags="${cppflags} -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURC # Gettext, data and plugin location # cppflags="${cppflags} -DLOCALEDIR=\"@datadir@/locale\"" -cppflags="${cppflags} -DDATA_PATH=\"${prefix}/share/vlc\"" -cppflags="${cppflags} -DPLUGIN_PATH=\"${prefix}/lib/vlc\"" +cppflags="${cppflags} -DDATA_PATH=\"@datadir@/vlc\"" +cppflags="${cppflags} -DPLUGIN_PATH=\"@libdir@/vlc\"" # # Various additional defines @@ -144,7 +144,7 @@ fi # while test $# -gt 0; do case "$1" in - -*=*) optarg=`echo "$1" | sed 's/-_a-zA-Z0-9*=//'` ;; + -*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;; *) optarg= ;; esac @@ -200,9 +200,6 @@ while test $# -gt 0; do echo_plugin=yes cppflags="${cppflags} -D__VLC__ -D__PLUGIN__" ;; - pic) - echo_pic=yes - ;; builtin) echo_builtin=yes cppflags="${cppflags} -D__VLC__ -D__BUILTIN__" @@ -227,6 +224,8 @@ while test $# -gt 0; do shift done +libs="-L@libdir@" + # # If a module was requested, use its name # @@ -264,11 +263,7 @@ if test "${echo_target}" = yes; then for module in `echo "${builtins}"`; do register_targets "${module}" done - if test "${echo_pic}" = yes; then - for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}_pic.a "; done - else - for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done - fi + for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done printf '\n' fi exit 0 @@ -304,28 +299,29 @@ fi if test "${echo_objcflags}" = yes; then echo "${cppflags} ${objcflags}" fi + +# Libs +# There are 4 possibilities +# - We are a plugin or a builtin +# - We are building from the outside (external): +# - Give full libvlc linkflags + -lvlc (in libdir) +# - Link with builtins in libdir +# - We are building something from the inside (builtin) +# - Link with builtins in place +# If you want something shared from the inside (binding), +# you need "builtin vlc" if test "${echo_libs}" = yes; then if test "${echo_builtin}" = yes; then for module in `echo "${builtins}"`; do register_targets "${module}" register_flags "${module}" done - if test "${echo_pic}" = yes; then - for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}_pic.a "; done - else - for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done - fi + for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done fi if test "${echo_external}" = yes; then - if test "${echo_pic}" = yes; then - for module in `echo "${builtins}"`; do - ldflags="${ldflags} @libdir@/vlc/lib${module}_pic.a" - done - else - for module in `echo "${builtins}"`; do - ldflags="${ldflags} @libdir@/vlc/lib${module}.a" - done - fi + for module in `echo "${builtins}"`; do + ldflags="${ldflags} @libdir@/vlc/lib${module}.a" + done for module in `echo "${builtins}"`; do register_flags "${module}" done