-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathacdsdc.m4
60 lines (56 loc) · 1.31 KB
/
acdsdc.m4
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
dnl allow files to be dumped into normal bin directories
dnl
AC_DEFUN([DSDC_SYSTEMBIN],
[AC_ARG_WITH(systembin,
--with-systembin Install execs to systemwide bin despite tag)
if test "$with_systembin" -a "$with_systembin" != "no"; then
dsdc_systembin=yes
fi
])
dnl OKJAILDIR
dnl
AC_DEFUN([OKJAILDIR],
[AC_ARG_WITH(jaildir,
--with-jaildir[[=PATH]] specify location of jail directory)
if test "$with_jaildir" = yes -o "$with_jaildir" = ""; then
with_jaildir="/disk/cupjail"
fi
okjaildir="$with_jaildir"
AC_SUBST(okjaildir)
])
dnl
dnl DSDC_MODULE
dnl
AC_DEFUN([DSDC_MODULE],
[
AC_ARG_WITH(module_prefix,
--with-module-prefix=NAME module install location ('/usr/local' by default))
if test "${with_module_prefix+set}" = "set" ; then
module_prefix="$with_module_prefix"
else
module_prefix=/usr/local
fi
module_name=dsdc
AC_SUBST(module_prefix)
AC_SUBST(module_name)
])
dnl
dnl DSDC_PTHREADS
dnl
AC_DEFUN([DSDC_PTHREAD],
[
AC_ARG_ENABLE(pthread,
--enable-pthreads Enable pthread support)
if test "${enable_pthread+set}" = "set" ; then
AC_DEFINE(HAVE_DSDC_PTHREAD, 1, DSDC-pthread backend)
CXXDEBUG="$CXXDEBUG -pthread"
DEBUG="$DEBUG -pthread"
fi
])
dnl
dnl Version Hack
dnl
AC_DEFUN([DSDC_SET_VERSION],
[
AC_DEFINE_UNQUOTED(DSDC_VERSION_STR, "$VERSION", DSDC Library Version)
])