-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
21 lines (20 loc) · 945 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
m4_define([p_version],
m4_esyscmd_s([(git rev-parse --verify -q v1.0 > /dev/null &&
(git describe --tags --dirty --match 'v*'|sed 's/^v//')) ||
(echo `git rev-parse --abbrev-ref HEAD`-`git describe --always --dirty`)])))
AC_INIT([pipeline], [p_version], [https://github.com/codekitchen/pipeline/issues], [pipeline], [https://github.com/codekitchen/pipeline])
AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
AC_PROG_CC
AC_SEARCH_LIBS(readline, readline, [], [AC_MSG_ERROR([libreadline not found])])
AC_SEARCH_LIBS(setupterm, ncurses, [], [AC_MSG_ERROR([libncurses not found])])
AC_CONFIG_HEADERS([config.h])
AC_CHECK_HEADERS([stdlib.h unistd.h], [], [AC_MSG_ERROR([required headers not found])])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_FORK
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT