2 # Copyright © 2008 Rémi Denis-Courmont
4 cd "$(dirname "$0")" ||
exit $?
6 # Look for configure #defines in public headers.
7 # There are incorrect, as external users don't have our <config.h>.
11 d
=$
(echo "$l" |
sed -n -e 's/^#undef \([[:upper:][:digit:]_]*\)$/\1/p')
12 test -z "$d" && continue
13 test "$d" = "WORDS_BIGENDIAN" && continue
14 test "$d" = "UNICODE" && continue
15 test "$d" = "__LIBVLC__" && continue
17 if test -z "$regexp"; then
18 regexp
="[^A-Za-z0-9_]\("
22 regexp
="${regexp}${d}"
24 regexp
="${regexp}\)\([^A-Za-z0-9_]\|\$\)"
26 echo Looking
for private defines
in public headers...
27 ! grep -- "$regexp" "$@" ||
exit $?