40e73b04e816d6f8f26c6548b4ee5b4e97681ed3
[framework/uifw/harfbuzz.git] / src / check-libstdc++.sh
1 #!/bin/sh
2
3 LC_ALL=C
4 export LC_ALL
5
6 test -z "$srcdir" && srcdir=.
7 stat=0
8
9
10 if which ldd 2>/dev/null >/dev/null; then
11         :
12 else
13         echo "check-libstdc++.sh: 'ldd' not found; skipping test"
14         exit 0
15 fi
16
17 so=.libs/libharfbuzz.so
18 if 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
24 else
25         echo "check-libstdc++.sh: libharfbuzz.so not found; skipping test"
26 fi
27
28 exit $stat