forked from mighty-gerbils/gerbil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
133 lines (108 loc) · 3.57 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Configure template for Gerbil system.
# Tangled using Org Mode (C-c C-v t) from configure.org
# $ tangle() {
# emacs --batch -l org --eval "(org-babel-tangle-file \"$1\")"
# }
# $ tangle configure.org
# Copyright (c) 2019 by drewc <[email protected]>, All Rights Reserved.
# Process this file with autoconf to produce a configure script.
AC_INIT(Gerbil,v0.16,vyzo at hackzen.org,gerbil-v0_16)
PACKAGE_SHORTNAME="gerbil"
if test -d ./.git && test "$PACKAGE_VERSION" = "v0.16" ; then
PACKAGE_VERSION=$(git describe --tags)
fi
PACKAGE_STRING="Gerbil $PACKAGE_VERSION"
PACKAGE_TARNAME=$(echo $PACKAGE_SHORTNAME"-"$PACKAGE_VERSION | sed 's/\./_/g')
AC_SUBST(PACKAGE_SHORTNAME)
AC_SUBST(PACKAGE_NAME)
AC_SUBST(PACKAGE_VERSION)
AC_SUBST(PACKAGE_STRING)
AC_SUBST(PACKAGE_BUGREPORT)
AC_SUBST(PACKAGE_TARNAME)
AC_COPYRIGHT([[Copyright (c) 2020 by drewc <[email protected]>, All Rights Reserved.]])
AC_SUBST(gerbil_make_conf, "")
AC_ARG_WITH([gambit],
[AS_HELP_STRING([--with-gambit=DIR],
[Set default location of Gambit])],
[],
[with_gambit=no])
if test "x$with_gambit" != xno ; then
gerbil_make_conf="$gerbil_make_conf --with-gambit=\"${with_gambit}\""
fi
# Libxml
AC_ARG_ENABLE(libxml,
AS_HELP_STRING([--enable-libxml], [build std/xml libraries - requires libxml2 (default is NO)]),
ENABLE_LIBXML=$enableval,
ENABLE_LIBXML=no)
if test "$ENABLE_LIBXML" = yes; then
gerbil_make_conf="$gerbil_make_conf --enable-libxml"
LIBS="$LIBS -lxml2"
else
gerbil_make_conf="$gerbil_make_conf --disable-libxml"
fi
# Libyaml
AC_ARG_ENABLE(libyaml,
AS_HELP_STRING([--enable-libyaml], [build std/text/yaml libraries - requires libyaml (default is NO)]),
ENABLE_LIBYAML=$enableval,
ENABLE_LIBYAML=no)
if test "$ENABLE_LIBYAML" = yes; then
LIBS="$LIBS -lyaml"
gerbil_make_conf="$gerbil_make_conf --enable-libyaml"
else
gerbil_make_conf="$gerbil_make_conf --disable-libyaml"
fi
# Zlib
AC_ARG_ENABLE(zlib,
AS_HELP_STRING([--disable-zlib], [build std/text/zlib libraries - requires zlib (default is --enable-zlib]),
ENABLE_ZLIB=$enableval,
ENABLE_ZLIB=no)
if test "$ENABLE_ZLIB" = yes; then
gerbil_make_conf="$gerbil_make_conf --enable-zlib"
LIBS="$LIBS -lz"
else
gerbil_make_conf="$gerbil_make_conf --disable-zlib"
fi
# Sqlite
AC_ARG_ENABLE(sqlite,
AS_HELP_STRING([--disable-sqlite], [build std/db/sqlite libraries - requires sqlite3 (default is --enable-sqlite)]),
ENABLE_SQLITE=$enableval,
ENABLE_SQLITE=yes)
if test "$ENABLE_SQLITE" = yes; then
gerbil_make_conf="$gerbil_make_conf --enable-sqlite"
else
gerbil_make_conf="$gerbil_make_conf --disable-sqlite"
fi
# Mysql
AC_ARG_ENABLE(mysql,
AS_HELP_STRING([--enable-mysql], [build std/db/mysql libraries - requires mysql (default is NO)]),
ENABLE_MYSQL=$enableval,
ENABLE_MYSQL=no)
if test "$ENABLE_MYSQL" = yes; then
gerbil_make_conf="$gerbil_make_conf --enable-mysql"
else
gerbil_make_conf="$gerbil_make_conf --disable-mysql"
fi
# Lmdb
AC_ARG_ENABLE(lmdb,
AS_HELP_STRING([--enable-lmdb], [build std/db/lmdb libraries - requires lmdb2 (default is NO)]),
ENABLE_LMDB=$enableval,
ENABLE_LMDB=no)
if test "$ENABLE_LMDB" = yes; then
gerbil_make_conf="$gerbil_make_conf --enable-lmdb"
LIBS="$LIBS -llmdb"
else
gerbil_make_conf="$gerbil_make_conf --disable-lmdb"
fi
# Leveldb
AC_ARG_ENABLE(leveldb,
AS_HELP_STRING([--enable-leveldb], [build std/db/leveldb libraries - requires leveldb2 (default is NO)]),
ENABLE_LEVELDB=$enableval,
ENABLE_LEVELDB=no)
if test "$ENABLE_LEVELDB" = yes; then
gerbil_make_conf="$gerbil_make_conf --enable-leveldb"
LIBS="$LIBS -lleveldb"
else
gerbil_make_conf="$gerbil_make_conf --disable-leveldb"
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT