|
#!/bin/sh
|
|
|
|
for pkg in $@
|
|
do
|
|
varname="$(echo "${pkg}" | tr 'a-z-+' 'A-Z__')"
|
|
echo '[ -z "${'${varname}'_CFLAGS}" ] && '${varname}'_CFLAGS="$('${pkg}'-config --cflags)"'
|
|
echo '[ -z "${'${varname}'_LIBS}" ] && '${varname}'_LIBS="$('${pkg}'-config --libs)"'
|
|
done
|