File: kdevelop.m4

package info (click to toggle)
kdevelop 4%3A4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 18,064 kB
  • ctags: 8,825
  • sloc: cpp: 76,399; python: 920; lex: 422; ruby: 120; sh: 85; makefile: 49; xml: 42
file content (169 lines) | stat: -rw-r--r-- 3,956 bytes parent folder | download
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
dnl
dnl If kimgio check succeeded, I assume khtmlw is also present 
dnl

AC_DEFUN(KDEV_SUBST_KHTMLW,
[
   AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
   if test "$LIBKIMGIO_EXISTS" = "yes"; then
     LIB_KHTMLW='-lkhtmlw -ljscript'
   else
     LIB_KHTMLW=''
   fi
   AC_SUBST(LIB_KHTMLW)
])

dnl
dnl Check location of Qt documentation
dnl
AC_DEFUN(KDEV_PATH_QTDOC,
[
AC_MSG_CHECKING([for Qt documentation])

ac_qt_docdirs=""
AC_ARG_WITH(qtdoc_dir, 
[  --with-qtdoc-dir=DIR    where the Qt documentation is installed ],
ac_qt_docdirs=""
qt_docdirs=""
[
  ac_qt_docdirs=$withval
],
)

qt_docdirs="/usr/doc/qt-doc/html /usr/local/qt/html /usr/local/lib/qt/html /usr/lib/qt/doc/html /usr/X11/lib/qt/html /usr/X11/lib/qt/doc/html /usr/X11R6/share/doc/qt/html"
test -n "$QTDIR" && qt_docdirs="$QTDIR/html $QTDIR/doc/html $QTDIR/doc $qt_docdirs"
qt_docdirs="$ac_qt_docdirs $qt_docdirs"
AC_FIND_FILE(classes.html, $qt_docdirs, qt_docdir)
AC_MSG_RESULT($qt_docdir)
if test "$qt_docdir" = NO; then
  qt_docdir=""
fi
AC_DEFINE_UNQUOTED(QT_DOCDIR, "$qt_docdir")
]) 


dnl
dnl Check location of kdelibs documentation
dnl
AC_DEFUN(KDEV_PATH_KDELIBSDOC,
[
AC_MSG_CHECKING([for kdelibs documentation])

ac_kdelibs_docdirs=""
AC_ARG_WITH(kdelibsdoc_dir, 
[  --with-kdelibsdoc-dir=DIR   where the kdelibs documentation is installed ],
ac_kdelibs_docdirs=""
kdelibs_docdirs=""
[
  ac_kdelibs_docdirs=$withval
],
)

if test "${prefix}" = NONE; then
  ac_kde_htmldir="$ac_default_prefix"/share/doc/HTML
else
  ac_kde_htmldir="$prefix"/share/doc/HTML
fi

kdelibs_docdirs="/usr/doc/kdelibs-doc/html"
if test "$ac_kde_htmldir" != ""; then
 kdelibs_docdirs="$kdelibs_docdirs $ac_kde_htmldir/default/kdelibs $ac_kde_htmldir/en/kdelibs"
fi
kdelibs_docdirs="$ac_kdelibs_docdirs $kdelibs_docdirs"
AC_FIND_FILE(kdecore/index.html, $kdelibs_docdirs, kdelibs_docdir)
AC_MSG_RESULT($kdelibs_docdir)
if test "$kdelibs_docdir" = NO; then
  kdelibs_docdir=""
fi
AC_DEFINE_UNQUOTED(KDELIBS_DOCDIR, "$kdelibs_docdir")
]) 


dnl
dnl Check location of kdoc index files
dnl
AC_DEFUN(KDEV_PATH_KDOCINDEX,
[
AC_MSG_CHECKING([for kdoc index])

ac_kdoc_indexdirs=""
AC_ARG_WITH(kdocindex_dir, 
[  --with-kdocindex-dir=DIR    where the kdoc index files are. Obsolete - don't use!
                              Index files are searched under kdelibsdoc-dir/kdoc-reference ],
ac_kdoc_indexdirs=""
kdoc_indexdirs=""
[
  ac_kdoc_indexdirs=$withval
],
)

kdoc_indexdirs="/usr/share/kdoc/index"
if test "$kdelibs_docdir" != ""; then 
  kdoc_indexdirs="$kdoc_indexdirs $kdelibs_docdir/kdoc-reference"
fi
kdoc_indexdirs="$ac_qtdocdirs $kdoc_indexdirs"
AC_FIND_FILE(kdecore.kdoc kdecore.kdoc.gz, $kdoc_indexdirs, kdoc_indexdir)
AC_MSG_RESULT($kdoc_indexdir)
if test "$kdoc_indexdir" = NO; then
  kdoc_indexdir=""
fi
AC_DEFINE_UNQUOTED(KDOC_INDEXDIR, "$kdoc_indexdir")
]) 


dnl
dnl Check whether we support Debian docbase
dnl
AC_DEFUN(KDEV_CHECK_DOCBASE,
[
AC_MSG_CHECKING(for docbase)
AC_ARG_ENABLE(docbase,
[  --enable-docbase        enable Debian docbase support],
[if test "$enableval" = yes; then
  enable_docbase=yes
fi],
enable_docbase=no)
AC_MSG_RESULT($enable_docbase)

if test "$enable_docbase" = "yes"; then
  AC_DEFINE_UNQUOTED(WITH_DOCBASE)
fi
])

dnl
dnl Check whether we use kdoc2
dnl
AC_DEFUN(KDEV_CHECK_KDOC2,
[
AC_MSG_CHECKING(for kdoc2)
AC_ARG_ENABLE(kdoc2,
[  --disable-kdoc2          disable kdoc2 support],
[
  enable_kdoc2=$enableval
],
enable_kdoc2=yes)
AC_MSG_RESULT($enable_kdoc2)

if test "$enable_kdoc2" = "yes"; then
  AC_DEFINE_UNQUOTED(WITH_KDOC2)
fi
])

dnl
dnl Check whether we use parsing on cpp save
dnl
AC_DEFUN(KDEV_CHECK_CPP_REPARSE,
[
AC_MSG_CHECKING(for cpp-save reparsing)
AC_ARG_ENABLE(cpp-reparse,
[  --enable-cpp-reparse          enable reparsing on cpp saving],
[if test "$enableval" = yes; then
  enable_cpp_reparse=yes
fi],
enable_cpp_reparse=no)
AC_MSG_RESULT($enable_cpp_reparse)

if test "$enable_cpp_reparse" = "yes"; then
  AC_DEFINE_UNQUOTED(WITH_CPP_REPARSE)
fi
])