summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-07-31 21:00:02 +0000
committerFrederic Culot <calcurse@culot.org>2006-07-31 21:00:02 +0000
commitac36e94341ca73d581f0df39f1c7bbf2138b2845 (patch)
tree47de561cd962ff8f47f6d811109907f15b9ff989 /configure.ac
downloadcalcurse-ac36e94341ca73d581f0df39f1c7bbf2138b2845.zip
Initial revision
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac44
1 files changed, 44 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100755
index 0000000..bfaf4bb
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,44 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+#
+# $calcurse: configure.ac,v 1.1 2006/07/31 21:00:02 culot Exp $
+
+AC_PREREQ(2.59)
+AC_INIT(calcurse, 1.4, frederic@culot.org)
+AM_INIT_AUTOMAKE
+AM_GNU_GETTEXT([external])
+AC_CONFIG_SRCDIR([src/calcurse.c])
+AC_CONFIG_HEADER([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for ncurses.
+AC_CHECK_HEADERS([ncurses.h], [
+ AC_CHECK_LIB(ncurses, initscr, [
+ LIBS="$LIBS -lncurses"
+ AC_DEFINE(HAVE_LIBNCURSES, 1, [Define to 1 if you have the 'ncurses' library (-lncurses).])
+ ], AC_MSG_ERROR(The ncurses library is required in order to build the program!))
+], AC_MSG_ERROR(The ncurses header is required in order to build the program!))
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([stdlib.h string.h sys/time.h time.h stdio.h unistd.h \
+sys/types.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_STRUCT_TM
+AC_HEADER_STDBOOL
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_MKTIME
+AC_FUNC_STRFTIME
+AC_CHECK_FUNCS([floor mkdir strchr])
+
+# Define LOCALEDIR
+AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/share/locale",
+ [The directory in which locale data will be stored])
+
+AC_OUTPUT(Makefile src/Makefile po/Makefile.in po/Makefile)