-INCLUDES = -I.. -I$(top_srcdir) @CPPFLAGS@
-CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' \
+# add include dir .. for config.h when building in different directory
+INCLUDES = -I$(top_srcdir) -I.. @CPPFLAGS@
+CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' \