-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
76 lines (61 loc) · 1.64 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
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
75
76
AC_INIT([msim], [2.3.1], [github.com/d-iii-s/msim], [https://d3s.mff.cuni.cz/software/msim/])
AC_PROG_CC
if test "$GCC" = "yes" ; then
CFLAGS="-g -O3 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes $CFLAGS"
fi
AC_CHECK_PROG(CP, cp, cp, no)
if test "$CP" = "no" ; then
AC_MSG_ERROR(Utility cp not found (usually part of coreutils).)
fi
AC_CHECK_PROG(MV, mv, mv, no)
if test "$MV" = "no" ; then
AC_MSG_ERROR(Utility mv not found (usually part of coreutils).)
fi
AC_CHECK_PROG(RM, rm, rm, no)
if test "$RM" = "no" ; then
AC_MSG_ERROR(Utility rm not found (usually part of coreutils).)
fi
AC_CHECK_PROG(DIFF, diff, diff, no)
if test "$DIFF" = "no" ; then
AC_MSG_ERROR(Utility diff not found (usually part of diffutils).)
fi
AC_CHECK_PROG(MAKEDEPEND, makedepend, makedepend, no)
if test "$MAKEDEPEND" = "no" ; then
AC_MSG_ERROR(Utility makedepend not found (usually part of imake).)
fi
AC_PROG_INSTALL
AC_CHECK_LIB(readline, readline,, [AC_MSG_FAILURE(Library readline not found.)])
AC_CHECK_LIB(wsock32, main)
AC_CHECK_INCLUDES_DEFAULT
AC_CHECK_HEADERS([ \
ctype.h \
errno.h \
fcntl.h \
getopt.h \
inttypes.h \
readline/history.h \
readline/readline.h \
signal.h \
stdarg.h \
stdbool.h \
stdint.h \
stdio.h \
stdlib.h \
string.h \
sys/stat.h \
sys/time.h \
sys/types.h \
time.h \
unistd.h \
],, [AC_MSG_FAILURE(Standard header not found.)])
AC_C_BIGENDIAN
AC_C_CONST
AC_TYPE_SIZE_T
AC_CHECK_FUNCS([getopt_long],, [AC_MSG_FAILURE(Function getopt_long not defined.)])
AC_SYS_LARGEFILE
AC_SUBST(BUILDLIBS)
AC_SUBST(AFTERBUILD)
AC_SUBST(INSTALL_PREFIX)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT