forked from Distrotech/libaacplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aacplus-config.in
255 lines (247 loc) · 6.29 KB
/
aacplus-config.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
! /bin/sh
# aacplus-config library configuration script
# generated by ac_config_libconfig_in.m4
template_version="1.0.0"
package="@PACKAGE@"
# usage instructions if no options given
if test "$#" -eq 0; then
cat <<EOF
Usage: aacplus-config [OPTIONS]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--package]
[--version]
[--cppflags]
[--cflags-only]
[--cflags]
[--libs]
[--help]
EOF
fi
# parse options
o=""
h=""
for i
do
case $i in
--prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;
--exec-prefix=*) exec_prefix=`echo $i | sed -e "s/--exec-prefix=//"` ;;
--eprefix=*) exec_prefix=`echo $i | sed -e "s/--eprefix=//"` ;;
--prefix) echo_prefix="yes" ;;
--exec-prefix) echo_exec_prefix="yes" ;;
--eprefix) echo_eprefix="yes" ;;
--package) echo_package="yes" ;;
--version) echo_version="yes" ;;
--cppflags) echo_cppflags="yes" ;;
--cflags-only) echo_cflags_only="yes" ;;
--cflags) echo_cflags="yes" ;;
--libs) echo_libs="yes" ;;
--bindir) echo_bindir="yes" ;;
--sbindir) echo_sbindir="yes" ;;
--libexecdir) echo_libexecdir="yes" ;;
--datadir) echo_datadir="yes" ;;
--sysconfdir) echo_sysconfdir="yes" ;;
--sharedstatedir) echo_sharedstatedir="yes" ;;
--localstatedir) echo_localstatedir="yes" ;;
--libdir) echo_libdir="yes" ;;
--infodir) echo_infodir="yes" ;;
--mandir) echo_mandir="yes" ;;
--target) echo_target="yes" ;;
--host) echo_host="yes" ;;
--build) echo_build="yes" ;;
--pkgdatadir) echo_pkgdatadir="yes" ;;
--pkglibdir) echo_pkglibdir="yes" ;;
--pkgincludedir) echo_pkgincludedir="yes" ;;
--template-version) echo_template_version="yes" ;;
--help) echo_help="yes" ;;
//*|/*//*|./*//*) echo_extra="yes" ;;
*) eval "echo Unknown option: $i" ; exit 1 ;;
esac
done
# defaults from configure; set only if not set previously
if test -z "$prefix" ; then
prefix="@prefix@"
fi
if test -z "$exec_prefix" ; then
exec_prefix="@exec_prefix@"
fi
if test -z "$bindir" ; then
bindir="@bindir@"
fi
if test -z "$sbindir" ; then
sbindir="@sbindir@"
fi
if test -z "$libexecdir" ; then
libexecdir="@libexecdir@"
fi
if test -z "$datadir" ; then
datadir="@datadir@"
fi
if test -z "$sysconfdir" ; then
sysconfdir="@sysconfdir@"
fi
if test -z "$sharedstatedir" ; then
sharedstatedir="@sharedstatedir@"
fi
if test -z "$localstatedir" ; then
localstatedir="@localstatedir@"
fi
if test -z "$libdir" ; then
libdir="@libdir@"
fi
if test -z "$infodir" ; then
infodir="@infodir@"
fi
if test -z "$mandir" ; then
mandir="@mandir@"
fi
if test -z "$includedir" ; then
includedir="@includedir@"
fi
if test -z "$target" ; then
target="@target@"
fi
if test -z "$host" ; then
host="@host@"
fi
if test -z "$build" ; then
build="@build@"
fi
# generate output
if test x$echo_module != xyes ; then
echo_module_aacplus="yes"
fi
if test x$echo_module_aacplus = xyes ; then
cppflags="$cppflags @aacplus_cppflags@"
cflags="$cflags @aacplus_cflags@"
libs="$libs @aacplus_libs@"
version="$version @AACPLUS_VERSION@"
fi
if test x$echo_prefix = xyes ; then
o=" $prefix"
fi
if test x$echo_exec_prefix = xyes ; then
o="$o $exec_prefix"
fi
if test x$echo_eprefix = xyes ; then
o="$o $exec_prefix"
fi
if test x$echo_package = xyes ; then
o=" $package"
fi
if test x$echo_version = xyes ; then
o=" $version"
fi
if test x$echo_cppflags = xyes ; then
o="$o $cppflags"
fi
if test x$echo_cflags_only = xyes ; then
o="$o $cflags"
fi
if test x$echo_cflags = xyes ; then
o="$o $cppflags $cflags"
fi
if test x$echo_libs = xyes ; then
o="$o -L$libdir $libs"
fi
if test x$echo_bindir = xyes ; then
o=" $bindir"
fi
if test x$echo_sbindir = xyes ; then
o=" $sbindir"
fi
if test x$echo_libexecdir = xyes ; then
o=" $libexecdir"
fi
if test x$echo_datadir = xyes ; then
o=" $datadir"
fi
if test x$echo_sysconfdir = xyes ; then
o=" $sysconfdir"
fi
if test x$echo_sharedstatedir = xyes ; then
o=" $sharedstatedir"
fi
if test x$echo_localstatedir = xyes ; then
o=" $localstatedir"
fi
if test x$echo_libdir = xyes ; then
o=" $libdir"
fi
if test x$echo_infodir = xyes ; then
o=" $infodir"
fi
if test x$echo_mandir = xyes ; then
o=" $mandir"
fi
if test x$echo_target = xyes ; then
o=" $target"
fi
if test x$echo_host = xyes ; then
o=" $host"
fi
if test x$echo_build = xyes ; then
o=" $build"
fi
if test x$echo_pkgdatadir = xyes ; then
o=" ${datadir}/${package}"
fi
if test x$echo_pkglibdir = xyes ; then
o=" ${libdir}/${package}"
fi
if test x$echo_pkgincludedir = xyes ; then
o=" ${includedir}/${package}"
fi
if test x$echo_template_version = xyes ; then
o="$o $template_version"
fi
if test x$echo_help = xyes ; then
h="1"
fi
if test x$echo_extra = xyes ; then
v=`echo $i | sed -e s://:\$:g`
v=`eval "echo $v"`
o="$o $v"
fi
# output data
o=`eval "echo $o"`
o=`eval "echo $o"`
if test -n "$o" ; then
eval "echo $o"
fi
# help text
if test ! -z "$h" ; then
cat <<EOF
All available options:
--prefix=DIR and change \$prefix and \$exec-prefix
--exec-prefix=DIR (affects all other options)
--prefix \$prefix $prefix
--exec_prefix or...
--eprefix \$exec_prefix $exec_prefix
--version \$version $version
--cppflags C preprocessor flags
--cflags-only C compiler flags
--cflags C preprocessor and compiler flags
--libs -L\$libdir \$LIBS $libs
--package \$package $package
--bindir \$bindir $bindir
--sbindir \$sbindir $sbindir
--libexecdir \$libexecdir $libexecdir
--datadir \$datadir $datadir
--sysconfdir \$sysconfdir $sysconfdir
--sharedstatedir \$sharedstatedir$sharedstatedir
--localstatedir \$localstatedir $localstatedir
--libdir \$libdir $libdir
--infodir \$infodir $infodir
--mandir \$mandir $mandir
--target \$target $target
--host \$host $host
--build \$build $build
--pkgdatadir \$datadir/\$package ${datadir}/${package}
--pkglibdir \$libdir/\$package ${libdir}/${package}
--pkgincludedir \$includedir/\$package ${includedir}/${package}
--template-version \$template_version $template_version
--help
EOF
fi