diff -ur TPM2.0-TSS-1.0/configure.ac TPM2.0-TSS-1.0-new/configure.ac --- TPM2.0-TSS-1.0/configure.ac 2016-11-01 06:53:15.000000000 -0700 +++ TPM2.0-TSS-1.0-new/configure.ac 2017-03-05 23:59:35.063459673 -0700 @@ -7,7 +7,9 @@ AC_PROG_CC AC_PROG_CXX LT_INIT() -AX_PTHREAD([], [AC_MSG_ERROR([requires pthread])]) +AC_CHECK_LIB([pthread], [pthread_create], [PTHREAD_CFLAGS+=-pthread], + [AC_MSG_ERROR([requires pthread])]) +AC_SUBST([PTHREAD_CFLAGS]) AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_CONFIG_FILES([Makefile]) Only in TPM2.0-TSS-1.0-new/: configure.ac~