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