From 36ea7706e9340c84a655f78886d3fa89deffac8d Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 2 Feb 2006 12:49:14 +0000 Subject: [PATCH] autotools pthread lib check for lttd git-svn-id: http://ltt.polymtl.ca/svn@1507 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/configure.in | 7 ++++++- ltt/branches/poly/lttd/Makefile.am | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/configure.in b/ltt/branches/poly/configure.in index fcd76253..e87211e9 100644 --- a/ltt/branches/poly/configure.in +++ b/ltt/branches/poly/configure.in @@ -45,9 +45,13 @@ AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is required in order to compile LinuxTraceToolkit])) + +# pthread for lttd +AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd])) + # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h]) +AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h]) AC_ISC_POSIX AC_PROG_CC @@ -95,6 +99,7 @@ lttctlincludedir="${includedir}/liblttctl" AC_SUBST(POPT_LIBS) AC_SUBST(UTIL_LIBS) +AC_SUBST(THREAD_LIBS) AC_SUBST(lttvlibdir) AC_SUBST(lttvplugindir) #AC_SUBST(lttlibdir) diff --git a/ltt/branches/poly/lttd/Makefile.am b/ltt/branches/poly/lttd/Makefile.am index ed620e77..bb860bca 100644 --- a/ltt/branches/poly/lttd/Makefile.am +++ b/ltt/branches/poly/lttd/Makefile.am @@ -1,5 +1,6 @@ # Empty TraceDaemon Makefile.am. Insert a real one here. +LIBS += $(THREAD_LIBS) bin_PROGRAMS = lttd -- 2.34.1