-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
51 lines (43 loc) · 1.04 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
# linux-app-component(lac) - configure.ac
# Copyright (c) 2022 teddyxiong53
AC_PREREQ([2.59])
AC_INIT([lac], [1.0.0], [1073167306@qq.com])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_AR
AM_PROG_CC_C_O
LT_INIT
AC_PREFIX_DEFAULT([/usr])
AC_SUBST([runstatedir], [/var/run])
# support for debugging
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug], [enable debugging support]))
AM_CONDITIONAL([ENABLE_DEBUG], [test "x$enable_debug" = "xyes"])
AM_COND_IF([ENABLE_DEBUG], [
AC_DEFINE([DEBUG], [1], [Define to 1 if the debugging is enabled.])
])
AC_CHECK_LIB([pthread], [pthread_create],
[], [AC_MSG_ERROR([pthread library not found])])
AC_CONFIG_FILES([
Makefile
cjson/Makefile
tinyipc/Makefile
libev/Makefile
libevent/Makefile
tinyparam/Makefile
jsonrpc/Makefile
lua/Makefile
tinyutils/Makefile
tinythpool/Makefile
event_handler/Makefile
pikapython/Makefile
elk/Makefile
mongoose/Makefile
app/Makefile
demo/Makefile
test/Makefile
])
AC_OUTPUT