#!/bin/sh LC_ALL=C export LC_ALL if [ $# -lt 2 ]; then echo "Check that cairo library has same exported symbols as cairo.def" echo "Usage: $0 " exit 1 fi def="$1" so="$2" if which nm 2>/dev/null >/dev/null; then : else echo "'nm' not found; skipping test" exit 0 fi stat=0 if [ "`uname -s`" = "Linux" ]; then get_cairo_syms='( objdump -t "$so" | grep "^[^ ]* [^l.*]*[.]"; objdump -t "$so" | grep "[.]hidden.*\\&2 || stat=1 exit $stat