-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.in
55 lines (41 loc) · 1.26 KB
/
configure.in
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/sys.c)
dnl Added to activate automake
AM_INIT_AUTOMAKE(openzz, 1.0.4)
dnl Checks for programs.
AC_PROG_CC
dnl JSB - need to include libtool for building shared libs.
dnl AC_LIBTOOL_DLOPEN
dnl Using 'AM_DISABLE_SHARED' is recomended to speed compile times
dnl during development but that disables our dynamic lib loading
dnl feature so I'm commenting it out.
dnl AM_DISABLE_SHARED
AM_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
AM_CONFIG_HEADER(config.h)
AC_PROG_RANLIB
AC_PROG_INSTALL
dnl Checks for libraries.
dnl Replaced second param:`main' with a function in -lreadline:
AC_CHECK_LIB(termcap, tputs)
AC_CHECK_LIB(readline, readline)
dnl JSB - include 'dl' lib for loading dynamic libraries.
dnl This is used in sys.c - look for use of "dlopen":
AC_CHECK_LIB(dl, dlopen)
dnl Checks for header files.
AC_HEADER_STDC
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_CHECK_FUNCS(strdup strtol)
dnl JSB - need these to use libtool
AC_CHECK_LIBM
AC_SUBST(LIBM)
AC_OUTPUT(Makefile \
src/Makefile \
doc/Makefile \
doc/src/Makefile \
testsuite/Makefile \
)