Adjust a couple source checks
diff --git a/src/check-static-inits.sh b/src/check-static-inits.sh
index eb04a55..1eceb1b 100755
--- a/src/check-static-inits.sh
+++ b/src/check-static-inits.sh
@@ -14,8 +14,14 @@
 	exit 77
 fi
 
+OBJS=.libs/*.o
+if test "x`echo $OBJS`" = "x$OBJS" 2>/dev/null >/dev/null; then
+	echo "check-static-inits.sh: object files not found; skipping test"
+	exit 77
+fi
+
 echo "Checking that no object file has static initializers"
-for obj in .libs/*.o; do
+for obj in $OBJS; do
 	if objdump -t "$obj" | grep '[.]ctors'; then
 		echo "Ouch, $obj has static initializers"
 		stat=1
@@ -23,7 +29,7 @@
 done
 
 echo "Checking that no object file has lazy static C++ constructors/destructors"
-for obj in .libs/*.o; do
+for obj in $OBJS; do
 	if objdump -t "$obj" | grep '__c'; then
 		echo "Ouch, $obj has lazy static C++ constructors/destructors"
 		stat=1