configure.ac updated

This commit is contained in:
Frederic Culot 2008-01-26 10:02:01 +00:00
parent 407a262938
commit 4dcb362cc3
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
26 Jan 2008:
configure.ac updated: linking against pthread instead of lpthread
(thanks ajacoutot@)
check for errno.h presence added
20 Jan 2008:
day_edit_item() rewritten so that there is no need to first delete
the item and then recreate it

View File

@ -1,10 +1,10 @@
# $calcurse: configure.ac,v 1.13 2007/10/23 17:50:55 culot Exp $
# $calcurse: configure.ac,v 1.14 2008/01/26 10:02:01 culot Exp $
#-------------------------------------------------------------------------------
# Init
#-------------------------------------------------------------------------------
AC_PREREQ(2.59)
AC_INIT(calcurse, 1.9, frederic@culot.org)
AC_INIT(calcurse, 2.0_beta, frederic@culot.org)
AM_INIT_AUTOMAKE
AM_GNU_GETTEXT([external])
AC_CONFIG_SRCDIR([src/calcurse.c])
@ -23,7 +23,7 @@ AC_PROG_CC
AC_HEADER_STDC
AC_CHECK_HEADERS([ctype.h getopt.h locale.h math.h signal.h stdbool.h stdio.h \
stdlib.h string.h sys/stat.h sys/types.h sys/wait.h time.h \
unistd.h])
unistd.h errno.h])
#-------------------------------------------------------------------------------
# Checks for system libs
#-------------------------------------------------------------------------------
@ -38,9 +38,9 @@ AC_CHECK_HEADERS([ncurses.h], [
AC_CHECK_HEADERS([pthread.h], [
AC_CHECK_LIB(pthread, pthread_create, [
LIBS="$LIBS -lpthread"
LIBS="$LIBS -pthread"
AC_DEFINE(HAVE_LIBPTHREAD, 1,
[Define to 1 if you have the 'pthread' library (-lpthread).])
[Define to 1 if you have the 'pthread' library (-pthread).])
],
AC_MSG_ERROR(The pthread library is required in order to build calcurse!))
], AC_MSG_ERROR(The pthread header is required in order to build calcurse!))