Home | History | Annotate | Download | only in src
      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 77
     15 fi
     16 
     17 tested=false
     18 for suffix in so dylib; do
     19 	so=.libs/libharfbuzz.$suffix
     20 	if ! test -f "$so"; then continue; fi
     21 
     22 	echo "Checking that we are not linking to libstdc++ or libc++"
     23 	if ldd $so | grep 'libstdc[+][+]\|libc[+][+]'; then
     24 		echo "Ouch, linked to libstdc++ or libc++"
     25 		stat=1
     26 	fi
     27 	tested=true
     28 done
     29 if ! $tested; then
     30 	echo "check-libstdc++.sh: libharfbuzz shared library not found; skipping test"
     31 	exit 77
     32 fi
     33 
     34 exit $stat
     35