From 851de1fb430f7b6f032bb204d66868d88c8608f0 Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <pedro.gonnet@durham.ac.uk>
Date: Mon, 28 Oct 2013 13:56:51 +0000
Subject: [PATCH] add ac_define for pthreads.

---
 configure.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 189c79e..d89ebb8 100644
--- a/configure.in
+++ b/configure.in
@@ -16,7 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # init the project
-AC_INIT(src/sched.c)
+AC_INIT(src/qsched.c)
 VERSION="0.1.0"
 AC_SUBST(VERSION)
 AM_INIT_AUTOMAKE(QUICKSCHED,VERSION)
@@ -48,7 +48,8 @@ AC_HEADER_STDC
 
 # Check for pthreads
 ACX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-    CC="$PTHREAD_CC" LDFLAGS="$PTHREAD_LIBS $LIBS"],
+    CC="$PTHREAD_CC" LDFLAGS="$PTHREAD_LIBS $LIBS"
+    AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])],
     AC_MSG_ERROR([Could not find a working version of
     the pthread library. Make sure you have the library and header files installed
     or use CPPFLAGS and LDFLAGS if the library is installed in a
-- 
GitLab