autotools pthread lib check for lttd
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 2 Feb 2006 12:49:14 +0000 (12:49 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 2 Feb 2006 12:49:14 +0000 (12:49 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1507 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/lttd/Makefile.am

index fcd762536488075b853c103f13a2ea01c9424cbf..e87211e91e85b67e28b5cd11aebf2d50568b443a 100644 (file)
@@ -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)
index ed620e77ee6f3b2b0fabbe69611d366792494f03..bb860bca40be772c50c20a22f8403c85bb3d3745 100644 (file)
@@ -1,5 +1,6 @@
 # Empty TraceDaemon Makefile.am. Insert a real one here.
 
+LIBS += $(THREAD_LIBS)
 
 bin_PROGRAMS = lttd
 
This page took 0.024386 seconds and 4 git commands to generate.