-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
73 lines (64 loc) · 1.77 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Public domain
# ex:syn=bsdbuild
#
# cadtools configure script source.
#
# This is a BSDBuild configure source. The configure script is generated by the
# mkconfigure(1) utility of BSDBuild (http://bsdbuild.hypertriton.com/).
#
package("cadtools")
version("1.0-beta")
release("Face of the Goat")
register_section("Options specific to cadtools:")
register("--enable-static", "Produce a static binary [default: no]")
register("--enable-warnings", "Enable compiler warnings [default: no]")
register("--enable-debug", "Enable debugging code [default: no]")
c_define(_CADTOOLS_INTERNAL)
c_define(_USE_AGAR_STD)
c_define(_USE_AGAR_QUEUE)
c_define(_USE_AGAR_MATH)
c_no_secure_warnings()
hdefine(CADTOOLS_VERSION, "$VERSION")
require(cc)
require(agar, 1.6.0)
require(agar-math, 1.6.0)
require(agar-dev, 1.6.0)
require(agar-sg, 1.6.0)
require(agar-sk, 1.6.0)
require(pthreads)
check(getopt)
if [ "${enable_warnings}" = "yes" ]; then
c_option(-Wall)
c_option(-Werror)
c_option(-Wmissing-prototypes)
c_option(-Wno-switch)
c_option(-Wno-nullability-completeness)
c_option(-Wno-deprecated-declarations)
fi
if [ "${enable_debug}" = "yes" ]; then
c_define(CAD_DEBUG)
hdefine(CAD_DEBUG, "yes")
else
hundef(CAD_DEBUG)
fi
if [ "${enable_static}" = "yes" ]; then
mdefine(LDFLAGS, "-static")
fi
# Enable NLS if requested explicitely.
if [ "${enable_nls}" = "yes" ]; then
check(gettext)
if [ "${HAVE_GETTEXT}" != "yes" ]; then
echo "*"
echo "* --enable-nls was given but gettext was not found. Try"
echo "* running configure again without this option."
echo "*"
exit 1
fi
fi
c_incprep($BLD/include/cadtools)
c_incdir($BLD/include)
c_incdir_config($BLD/include/cadtools/config)
echo "*"
echo "* Configuration successful."
echo "* Use \"make depend all install\" to build and install cadtools."
echo "*"