12 cflags_tuning="@CFLAGS_TUNING@"
15 # Do not touch below this place unless you really know what you are doing
20 Usage: vlc-config OPTIONS MODULES
22 [--version] print version and exit
23 [--libs] output linking flags
24 [--cflags] output C compilation flags
25 [--cxxflags] output C++ compilation flags
26 [--objcflags] output Objective C compilation flags
28 vlc the main VLC object
29 MODULE any available module (dummy, gtk, avi, etc.)
30 libs flags for external libs
44 if test $# -eq 0; then
48 if test "${top_builddir}" != ""; then
49 top_builddir="${top_builddir}/"
50 elif test "${TOP_BUILDDIR}" != ""; then
51 top_builddir="${TOP_BUILDDIR}/"
53 includes="${includes}"
54 cppflags="${includes}"
58 # Various additional defines
60 if [ "${optim}" = speed ]; then
61 cflags="${cflags} ${cflags_tuning}"
62 cxxflags="${cxxflags} ${cflags_tuning}"
63 objcflags="${objcflags} ${cflags_tuning}"
67 # The main argument loop
69 while test $# -gt 0; do
71 -*=*) optarg=`echo "$1" | sed 's/-[_a-zA-Z0-9\-]*=//'` ;;
75 # Mangle plugin name, if applicable
76 # This is just a convenience hack for modules/common.am
82 tgt="${tgt%_plugin_la-*.lo}"
86 tgt="${tgt%_plugin.la}"
125 # Register per-module *FLAGS
126 register_flags "$tgt"
132 # If a module was requested, use its name
134 if test -n "${module}"; then
135 cppflags="${cppflags} -DMODULE_NAME=${module} -DMODULE_NAME_IS_${module} -DMODULE_STRING=\"${module}\""
139 # Output what we were asked
141 if test "${echo_cppflags}" = yes; then
144 if test "${echo_cflags}" = yes; then
145 echo "${cppflags} ${cflags}"
147 if test "${echo_cxxflags}" = yes; then
148 echo "${cppflags} ${cxxflags}"
150 if test "${echo_objcflags}" = yes; then
151 echo "${cppflags} ${objcflags}"
153 if test "${echo_ldflags}" = yes; then
158 # There are 4 possibilities
159 # - We are a plugin or a builtin
160 # - We are building something from the inside (builtin)
161 # - Link with builtins in place
162 # If you want something shared from the inside (binding),
163 # you need "builtin vlc"
164 if test "${echo_libs}" = yes; then