-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathconfigure.ac
More file actions
64 lines (47 loc) · 1.69 KB
/
configure.ac
File metadata and controls
64 lines (47 loc) · 1.69 KB
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
dnl Get the version number from async-process.asd
m4_define([ASD_VERSION],
m4_esyscmd_s([grep :version src/async-process.asd | cut -d\" -f2]))
AC_INIT([async-process],
[ASD_VERSION])
AC_CONFIG_HEADERS([config.h])
# Library versioning (current:revision:age)
AC_SUBST([LT_VERSION_INFO], [0:0:0])
# Set default prefix based on platform if not specified
AC_PREFIX_DEFAULT([/usr/local])
AM_INIT_AUTOMAKE([foreign subdir-objects])
# Must detect C compiler before initializing libtool
AC_PROG_CC
# Initialize libtool (disable static by default, enable with --enable-static)
LT_INIT([disable-static])
AC_CANONICAL_HOST
test "$prefix" = NONE && prefix=/usr/local
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
AC_CHECK_HEADER_STDBOOL
AC_TYPE_PID_T
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([dup2 strerror])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
# Print configuration summary
AC_MSG_NOTICE([
async-process configuration summary:
Installation prefix: $prefix
Library directory: $libdir
Include directory: $includedir
C Compiler: $CC
Host system: $host_os
Build shared: $enable_shared
Build static: $enable_static
Note: This C library is for Unix-like systems only (Linux, FreeBSD, macOS).
Windows support is provided via pure Lisp CFFI implementation and does not
require C compilation.
You can now run 'make' to build the library.
After building, run 'make install' to install to the prefix.
To install to a different location, reconfigure with:
./configure --prefix=/your/custom/path
To build static library:
./configure --enable-static
To build only static (no shared):
./configure --enable-static --disable-shared
])