michael@0: #!/bin/sh michael@0: michael@0: LC_ALL=C michael@0: export LC_ALL michael@0: michael@0: test -z "$srcdir" && srcdir=. michael@0: stat=0 michael@0: michael@0: michael@0: if which ldd 2>/dev/null >/dev/null; then michael@0: : michael@0: else michael@0: echo "check-libstdc++.sh: 'ldd' not found; skipping test" michael@0: exit 77 michael@0: fi michael@0: michael@0: tested=false michael@0: for suffix in so dylib; do michael@0: so=.libs/libharfbuzz.$suffix michael@0: if test -f "$so"; then michael@0: echo "Checking that we are not linking to libstdc++" michael@0: if ldd $so | grep 'libstdc[+][+]'; then michael@0: echo "Ouch, linked to libstdc++" michael@0: stat=1 michael@0: fi michael@0: tested=true michael@0: fi michael@0: done michael@0: if ! $tested; then michael@0: echo "check-libstdc++.sh: libharfbuzz shared library not found; skipping test" michael@0: exit 77 michael@0: fi michael@0: michael@0: exit $stat