forked from ring-lang/ring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
61 lines (42 loc) · 1.27 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
dnl Ring 1.6
dnl initializing the autoconf tool
AC_INIT([ring], [1.6])
RING_VERSION="1.6"
RING_SRC_DIR="src/"
RING_INCLUDE_DIR="include/"
RING_EXT_DIR="extension/"
RING_SUB_DIRS="$RING_SRC_DIR"
AC_SUBST(RING_VERSION)
AC_SUBST(RING_SRC_DIR)
AC_SUBST(RING_INCLUDE_DIR)
AC_SUBST(RING_EXT_DIR)
m4_include(build/RING.m4)
dnl Set the main m4 macros directory
AC_CONFIG_MACRO_DIRS([build/m4])
dnl Set the auxility directory
AC_CONFIG_AUX_DIR([build/aux])
dnl make sure that this main file is exists before compiling
AC_CONFIG_SRCDIR([src/ring.c])
AM_PROG_AR
dnl init LT to be able to compile specific files as shared libraries
LT_INIT
dnl temporary way to set libdir to specific directory
dnl WARNING, setting this "standard" variable will make
dnl the user can not change the library directory, this
dnl should be fixed.
libdir=/usr/local/lib/ring
AC_ARG_ENABLE([mysql],
AS_HELP_STRING([--enable-mysql], [Enable Mysql extension])
)
AS_IF([test "ring_$enable_mysql" == "ring_yes"], [
dnl compile mysql extension!
RING_INCLUDE_EXTENSION([mysql])
])
dnl path the main options to Makefile.am
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
dnl specify and create the Makefile
AC_CONFIG_FILES([Makefile])
dnl find the probe compiler
AC_PROG_CC
dnl output the final files
AC_OUTPUT