blob: e7e0e295e1ab9ec117d9b3a390167259344cb278 [file] [log] [blame]
Behdad Esfahbod21d0fce2009-11-03 14:28:32 -05001#!/bin/sh
2
3LC_ALL=C
4export LC_ALL
5
Behdad Esfahbod5bc18192011-05-27 15:58:54 -04006test -z "$srcdir" && srcdir=.
7stat=0
8
9
Behdad Esfahbod21d0fce2009-11-03 14:28:32 -050010if which ldd 2>/dev/null >/dev/null; then
11 :
12else
13 echo "check-libstdc++.sh: 'ldd' not found; skipping test"
Behdad Esfahbod4538efa2011-08-05 20:11:06 -040014 exit 77
Behdad Esfahbod21d0fce2009-11-03 14:28:32 -050015fi
16
Behdad Esfahbod134aa7b2012-01-27 02:09:40 -050017tested=false
18for suffix in so dylib; do
19 so=.libs/libharfbuzz.$suffix
20 if test -f "$so"; then
21 echo "Checking that we are not linking to libstdc++"
22 if ldd $so | grep 'libstdc[+][+]'; then
23 echo "Ouch, linked to libstdc++"
24 stat=1
25 fi
26 tested=true
Behdad Esfahbod21d0fce2009-11-03 14:28:32 -050027 fi
Behdad Esfahbod134aa7b2012-01-27 02:09:40 -050028done
29if ! $tested; then
Behdad Esfahbodd59e28e2012-08-28 19:08:36 -040030 echo "check-libstdc++.sh: libharfbuzz shared library not found; skipping test"
Behdad Esfahbod4538efa2011-08-05 20:11:06 -040031 exit 77
Behdad Esfahbod21d0fce2009-11-03 14:28:32 -050032fi
33
34exit $stat