4 exec_prefix="@exec_prefix@"
6 datarootdir="@datarootdir@"
19 cflags_tuning="@CFLAGS_TUNING@"
22 # Do not touch below this place unless you really know what you are doing
27 Usage: vlc-config OPTIONS MODULES
29 [--prefix[=DIR]] set prefix
30 [--exec-prefix[=DIR]] set exec prefix
31 [--version] print version and exit
32 [--list] print modules names and exit
33 [--libs] output linking flags
34 [--cflags] output C compilation flags
35 [--cxxflags] output C++ compilation flags
36 [--objcflags] output Objective C compilation flags
38 vlc the main VLC object
39 plugin flags for plugin modules
40 MODULE any available module (dummy, gtk, avi, etc.)
41 libs flags for external libs
55 if test $# -eq 0; then
59 if test "${top_builddir}" != ""; then
60 top_builddir="${top_builddir}/"
61 elif test "${TOP_BUILDDIR}" != ""; then
62 top_builddir="${TOP_BUILDDIR}/"
64 includes="${includes}"
65 cppflags="${includes}"
69 # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
71 cppflags="${cppflags} -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE"
74 # Various additional defines
76 if [ "${optim}" = speed ]; then
77 cflags="${cflags} ${cflags_tuning}"
78 cxxflags="${cxxflags} ${cflags_tuning}"
79 objcflags="${objcflags} ${cflags_tuning}"
83 # The main argument loop
85 while test $# -gt 0; do
87 -*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;;
91 # Mangle plugin name, if applicable
92 # This is just a convenience hack for modules/common.am
98 tgt="${tgt%_plugin_la-*.lo}"
102 tgt="${tgt%_plugin.la}"
111 if test "${exec_prefix_set}" = no ; then
112 exec_prefix="${optarg}"
119 exec_prefix="${optarg}"
154 cppflags="${cppflags} -D__LIBVLC__ -I${top_builddir}src/misc"
158 cppflags="${cppflags} -D__LIBVLC__ -D__PLUGIN__"
165 # Register per-module *FLAGS
166 register_flags "$tgt"
172 # If a module was requested, use its name
174 if test -n "${module}"; then
175 cppflags="${cppflags} -DMODULE_NAME=${module} -DMODULE_NAME_IS_${module} -DMODULE_STRING=\"${module}\""
179 # Output what we were asked
181 if test "${echo_list}" = yes; then
182 if test "${echo_plugin}" = yes; then
189 if test "${echo_prefix}" = yes; then
192 if test "${echo_exec_prefix}" = yes; then
193 echo "${exec_prefix}"
195 if test "${echo_cppflags}" = yes; then
198 if test "${echo_cflags}" = yes; then
199 echo "${cppflags} ${cflags}"
201 if test "${echo_cxxflags}" = yes; then
202 echo "${cppflags} ${cxxflags}"
204 if test "${echo_objcflags}" = yes; then
205 echo "${cppflags} ${objcflags}"
207 if test "${echo_ldflags}" = yes; then
212 # There are 4 possibilities
213 # - We are a plugin or a builtin
214 # - We are building something from the inside (builtin)
215 # - Link with builtins in place
216 # If you want something shared from the inside (binding),
217 # you need "builtin vlc"
218 if test "${echo_libs}" = yes; then