check-libstdc++.sh revision 4538efacca84329a60ff69851de70027d9b4f567
1#!/bin/sh 2 3LC_ALL=C 4export LC_ALL 5 6test -z "$srcdir" && srcdir=. 7stat=0 8 9 10if which ldd 2>/dev/null >/dev/null; then 11 : 12else 13 echo "check-libstdc++.sh: 'ldd' not found; skipping test" 14 exit 77 15fi 16 17so=.libs/libharfbuzz.so 18if test -f "$so"; then 19 echo "Checking that we are not linking to libstdc++" 20 if ldd $so | grep 'libstdc[+][+]'; then 21 echo "Ouch, linked to libstdc++" 22 stat=1 23 fi 24else 25 echo "check-libstdc++.sh: libharfbuzz.so not found; skipping test" 26 exit 77 27fi 28 29exit $stat 30