| test -z "$srcdir" && srcdir=. |
| test -z "$MAKE" && MAKE=make |
| if which nm 2>/dev/null >/dev/null; then |
| echo "check-exported-symbols.sh: 'nm' not found; skipping test" |
| lib=`echo "$def" | sed 's/[.]def$//;s@.*/@@'` |
| echo "Checking that $so has the same symbol list as $def" |
| nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' T _fini\>\| T _init\>' | cut -d' ' -f3 |
| # cheat: copy the last line from the def file! |
| } | diff "$def" - >&2 || stat=1 |
| echo "check-exported-symbols.sh: libharfbuzz shared library not found; skipping test" |