summaryrefslogtreecommitdiffabout
path: root/acinclude.m4
Unidiff
Diffstat (limited to 'acinclude.m4') (more/less context) (ignore whitespace changes)
-rw-r--r--acinclude.m445
1 files changed, 0 insertions, 45 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 14b6de7..e732535 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,93 +1,48 @@
1dnl AC_WITH_PKGCONFIG([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
2dnl Outputs:
3dnl AC_SUBST: PKGCONFIG_PKGCONFIG PKGCONFIG_DIR
4dnl AM_CONDTIONAL: HAVE_PKGCONFIG
5AC_DEFUN([AC_WITH_PKGCONFIG],[
6 PKGCONFIG_PKGCONFIG=""
7 PKGCONFIG_DIR=""
8 HAVE_PKGCONFIG="no"
9 EXPLICIT_PKGCONFIGDIR="no"
10 test -z "${WANT_PKGCONFIG}" && WANT_PKGCONFIG=""
11 AC_PATH_PROG([PKGCONFIG_PKGCONFIG],[pkg-config],[false])
12 if test "${PKGCONFIG_PKGCONFIG}" != "false" ; then
13 AC_ARG_WITH([pkgconfigdir],
14 AC_HELP_STRING([--with-pkgconfigdir=dir],[Specify pkgconfig directory]),
15 [
16 if test "${withval}" = "no" ; then
17 WANT_PKGCONFIG="no"
18 else
19 PKGCONFIG_DIR="${withval}"
20 EXPLICIT_PKGCONFIGDIR="yes"
21 fi
22 ],[
23 AC_MSG_CHECKING([for pkgconfig directory])
24 PKGCONFIG_DIR="`${PKGCONFIG_PKGCONFIG} --debug 2>&1 | grep '^Scanning'| head -n 1 | cut -d\' -f2-|cut -d\' -f1`"
25 AC_MSG_RESULT([${PKGCONFIG_DIR}])
26 ]
27 )
28 if test -d "${PKGCONFIG_DIR}" ; then
29 HAVE_PKGCONFIG=yes
30 AC_SUBST([PKGCONFIG_PKGCONFIG])
31 AC_SUBST([PKGCONFIG_DIR])
32 else
33 AC_MSG_NOTICE([unexistent pkgconfig directory: ${PKGCONFIG_DIR}])
34 if test "${EXPLICIT_PKGCONFIGDIR}" = "yes" ; then
35 HAVE_PKGCONFIG=yes
36 AC_SUBST([PKGCONFIG_PKGCONFIG])
37 AC_SUBST([PKGCONFIG_DIR])
38 else
39 ifelse([$2], , :, [$2])
40 fi
41 fi
42 fi
43 AM_CONDITIONAL([HAVE_PKGCONFIG],[test "${HAVE_PKGCONFIG}" = "yes"])
44])
45
46dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) 1dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
47dnl Outputs: 2dnl Outputs:
48dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN 3dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN
49dnl AM_CONDTIONAL: HAVE_DOXYGEN 4dnl AM_CONDTIONAL: HAVE_DOXYGEN
50AC_DEFUN([AC_WITH_DOXYGEN],[ 5AC_DEFUN([AC_WITH_DOXYGEN],[
51 HAVE_DOXYGEN="no" 6 HAVE_DOXYGEN="no"
52 AC_PATH_PROG([DOXYGEN],[doxygen],[false]) 7 AC_PATH_PROG([DOXYGEN],[doxygen],[false])
53 if test "${DOXYGEN}" = "false" ; then 8 if test "${DOXYGEN}" = "false" ; then
54 ifelse([$2], , :, [$2]) 9 ifelse([$2], , :, [$2])
55 else 10 else
56 HAVE_DOXYGEN="yes" 11 HAVE_DOXYGEN="yes"
57 AC_SUBST([DOXYGEN]) 12 AC_SUBST([DOXYGEN])
58 $1 13 $1
59 fi 14 fi
60 AC_SUBST([HAVE_DOXYGEN]) 15 AC_SUBST([HAVE_DOXYGEN])
61 AM_CONDITIONAL([HAVE_DOXYGEN],[test "${HAVE_DOXYGEN}" = "yes"]) 16 AM_CONDITIONAL([HAVE_DOXYGEN],[test "${HAVE_DOXYGEN}" = "yes"])
62]) 17])
63 18
64dnl AC_WITH_DOT([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) 19dnl AC_WITH_DOT([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
65dnl Outputs: 20dnl Outputs:
66dnl AC_SUBST: DOT HAVE_DOT 21dnl AC_SUBST: DOT HAVE_DOT
67dnl AM_CONDITIONAL: HAVE_DOT 22dnl AM_CONDITIONAL: HAVE_DOT
68AC_DEFUN([AC_WITH_DOT],[ 23AC_DEFUN([AC_WITH_DOT],[
69 HAVE_DOT="no" 24 HAVE_DOT="no"
70 AC_PATH_PROG([DOT],[dot],[false]) 25 AC_PATH_PROG([DOT],[dot],[false])
71 if test "${DOT}" = "false" ; then 26 if test "${DOT}" = "false" ; then
72 ifelse([$2], , :, [$2]) 27 ifelse([$2], , :, [$2])
73 else 28 else
74 HAVE_DOT="yes" 29 HAVE_DOT="yes"
75 AC_SUBST([DOT]) 30 AC_SUBST([DOT])
76 $1 31 $1
77 fi 32 fi
78AC_SUBST([HAVE_DOT]) 33AC_SUBST([HAVE_DOT])
79 AM_CONDITIONAL([HAVE_DOT],[test "${HAVE_DOT}" = "yes"]) 34 AM_CONDITIONAL([HAVE_DOT],[test "${HAVE_DOT}" = "yes"])
80]) 35])
81 36
82dnl AC_WITH_PCRE([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) 37dnl AC_WITH_PCRE([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
83dnl Outputs: 38dnl Outputs:
84dnl AC_SUBST: PCRE_CONFIG PCRE_PREFIX PCRE_EXEC_PREFIX 39dnl AC_SUBST: PCRE_CONFIG PCRE_PREFIX PCRE_EXEC_PREFIX
85dnl PCRE_VERSION PCRE_CFLAGS PCRE_LIBS 40dnl PCRE_VERSION PCRE_CFLAGS PCRE_LIBS
86dnl PCRE_LIBS_POSIX PCRE_CFLAGS_POSIX 41dnl PCRE_LIBS_POSIX PCRE_CFLAGS_POSIX
87dnl AM_CONDITIONAL: HAVE_PCRE 42dnl AM_CONDITIONAL: HAVE_PCRE
88dnl AC_DEFINE: HAVE_PCRE PCRE_VERSION 43dnl AC_DEFINE: HAVE_PCRE PCRE_VERSION
89AC_DEFUN([AC_WITH_PCRE],[ 44AC_DEFUN([AC_WITH_PCRE],[
90 HAVE_PCRE="no" 45 HAVE_PCRE="no"
91 PCRE_CONFIG="" 46 PCRE_CONFIG=""
92 PCRE_PREFIX="" 47 PCRE_PREFIX=""
93 PCRE_EXEC_PREFIX="" 48 PCRE_EXEC_PREFIX=""