-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (37 loc) · 1.14 KB
/
configure.ac
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
AC_PREREQ([2.63])
AC_INIT([jo], [1.2], [jpmens@gmail.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([jo.c])
# Checks for programs.
AC_PROG_CC
# Checks for header files.
AC_USE_SYSTEM_EXTENSIONS
AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h unistd.h stdbool.h])
# Checks for library functions.
# AC_FUNC_MALLOC
# AC_FUNC_REALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([strchr strrchr strlcpy strlcat snprintf pledge err errx])
AM_INIT_AUTOMAKE([foreign -Wall])
AM_SILENT_RULES([yes])
AC_REQUIRE_AUX_FILE([tap-driver.sh])
AC_ARG_VAR(PANDOC, [pandoc path])
AC_PATH_PROG(PANDOC, [pandoc], [])
if test -z "$PANDOC"
then
AC_MSG_WARN([pandoc not found, man pages rebuild will not be possible])
fi
AM_CONDITIONAL([USE_PANDOC], [test -n "$PANDOC"])
AC_CONFIG_FILES([Makefile tests/jo.07.sh])
AC_OUTPUT
echo "
Jo.............: version $PACKAGE_VERSION
Prefix.........: $prefix
C compiler.....: $CC $CFLAGS $CPPFLAGS
Pandoc.........: ${PANDOC:-NONE}
Now type 'make @<:@<target>@:>@'
where the optional <target> is:
all - build all binaries
check - run the tests
install - install everything
"