public
Description: A command line GTD application for managing text todo lists.
Homepage: http://taskwarrior.org
Clone URL: git://github.com/pbeckingham/task.git
Click here to lend your support to: task and make a donation at www.pledgie.com !
ultrafredde (author)
Thu Oct 22 13:27:21 -0700 2009
commit  e2e0851a69a3cc3d83d42f8d06fabcd377783be1
tree    7ab617ac70c86ceb50638e2d524fed3774d96dac
parent  de50b2902ce6f74a4825a185cd5d787034db17ed parent  1299fe468b599cea1a53250d0463d1828ea0c7a8
task / configure.ac
100644 74 lines (61 sloc) 2.106 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
 
AC_PREREQ(2.61)
AC_INIT(task, 1.8.3, support@taskwarrior.org)
 
CFLAGS="${CFLAGS=}"
CXXFLAGS="${CXXFLAGS=}"
# this macro is used to get the arguments supplied
# to the configure script (./configure --enable-debug)
# Check if we have enable debug support.
AC_MSG_CHECKING(whether to enable debugging)
debug_default="no"
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
                       [default=$debug_default]],, enable_debug=$debug_default)
# Yes, shell scripts can be used
if test "$enable_debug" = "yes"; then
  CXXFLAGS="$CFLAGS -Wall -pedantic -ggdb3 -DDEBUG"
  AC_MSG_RESULT(yes)
else
  CXXFLAGS="$CFLAGS -Wall -pedantic -O3"
  AC_MSG_RESULT(no)
fi
 
# Check for OS.
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
if test "$OS" = "sunos"; then
  AC_MSG_NOTICE([OS Solaris detected])
  AC_DEFINE([SOLARIS], [], [Compiling on Solaris])
else
  AC_MSG_NOTICE([OS Non-Solaris detected])
  AC_DEFINE([LINUX], [], [Compiling on Non-Solaris])
fi
 
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADER([auto.h])
 
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_LANG(C++)
 
AC_SUBST(CFLAGS)
 
# Checks for libraries.
AC_CHECK_LIB(ncurses,initscr)
 
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h sys/file.h sys/stat.h sys/time.h unistd.h])
AC_CHECK_HEADERS([sstream string vector map])
 
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
 
# Checks for library functions.
AC_FUNC_MKTIME
AC_FUNC_SELECT_ARGTYPES
AC_CHECK_FUNCS([select])
#AC_CHECK_FUNC(flock, [AC_DEFINE([HAVE_FLOCK], [1], [Found flock])])
AC_CHECK_FUNC(uuid_unparse_lower, [AC_DEFINE([HAVE_UUID], [1], [Found uuid_unparse_lower])])
AC_CHECK_FUNC(random, [AC_DEFINE([HAVE_RANDOM], [1], [Found random])])
AC_CHECK_FUNC(srandom, [AC_DEFINE([HAVE_SRANDOM], [1], [Found srandom])])
 
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT