equal
deleted
inserted
replaced
|
1 dnl Useful autoconf macros |
|
2 |
|
3 # --enable-maintainer-mode is disabled by default |
|
4 AC_DEFUN([CSL_AC_MAINTAINER_MODE],[ |
|
5 AC_ARG_ENABLE(maintainer-mode, |
|
6 AS_HELP_STRING([--enable-maintainer-mode], |
|
7 [Enable maintainer mode]), |
|
8 MAINTAINER_MODE=$enableval, |
|
9 MAINTAINER_MODE=no) |
|
10 AC_SUBST(MAINTAINER_MODE) |
|
11 ]) |
|
12 |
|
13 # --with-pkgversion=VERSION |
|
14 AC_DEFUN([CSL_AC_PKGVERSION],[ |
|
15 AC_ARG_WITH(pkgversion, |
|
16 AS_HELP_STRING([--with-pkgversion=PKG], |
|
17 [Add PKG to the version string]), |
|
18 [case "$withval" in |
|
19 (yes) AC_MSG_ERROR([package version not specified]) ;; |
|
20 (no) PKGVERSION= ;; |
|
21 (*) PKGVERSION=" ($withval)" ;; |
|
22 esac], |
|
23 PKGVERSION= |
|
24 ) |
|
25 AC_SUBST(PKGVERSION) |
|
26 ]) |
|
27 |
|
28 # --with-bugurl=URL |
|
29 AC_DEFUN([CSL_AC_BUGURL],[ |
|
30 AC_ARG_WITH(bugurl, |
|
31 AS_HELP_STRING([--with-bugurl=URL], |
|
32 [Direct users to URL to report a bug]), |
|
33 [case "$withval" in |
|
34 (yes) AC_MSG_ERROR([bug URL not specified]) ;; |
|
35 (no) BUGURL="" ;; |
|
36 (*) BUGURL="<URL:$withval>" ;; |
|
37 esac], |
|
38 BUGURL="" |
|
39 ) |
|
40 AC_SUBST(BUGURL) |
|
41 ]) |