Relocated the NPTL checking code to the top-level makefile, so the flag is
passed down if needed.
diff --git a/Makefile b/Makefile
index d7789cc..465cdf1 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,13 @@
 # in the commandline and in the Makefiles use a dummy variable like in
 # CFLAGS
 
-export CFLAGS = -Wall $(CROSS_CFLAGS)
+NPTL:=$(shell getconf GNU_LIBPTHREAD_VERSION 2>/dev/null| grep NPTL; echo $?)
+ifeq ($(NPTL),1)
+export CFLAGS+= -Wall $(CROSS_CFLAGS)
+else
+export CFLAGS+= -Wall $(CROSS_CFLAGS) -DUSE_NPTL
+endif
+
 
 all: libltp.a 
 	@$(MAKE) -C pan $@