use autoscan to generate configure.ac
-I. -I$(srcdir)
autogen.sh
AC_SEARCH_LIBS([pthread_create], [pthread])