Lines 31-37
Link Here
|
31 |
break |
31 |
break |
32 |
fi |
32 |
fi |
33 |
done |
33 |
done |
34 |
test $VALUE && APR_CONFIG=$VALUE |
|
|
35 |
if test $APR_CONFIG ; then |
34 |
if test $APR_CONFIG ; then |
36 |
AC_MSG_RESULT([found]) |
35 |
AC_MSG_RESULT([found]) |
37 |
else |
36 |
else |
Lines 199-215
Link Here
|
199 |
dnl |
198 |
dnl |
200 |
dnl CppUnit |
199 |
dnl CppUnit |
201 |
dnl |
200 |
dnl |
202 |
|
201 |
CPPUNITCONFIG="cppunit-config" |
203 |
CPPUNITCONFIG= |
|
|
204 |
AC_ARG_WITH(cppunit-config, |
202 |
AC_ARG_WITH(cppunit-config, |
205 |
[[ --with-cppunit-config=FILE Use the given path to cppunit-config |
203 |
[[ --with-cppunit-config=FILE Use the given path to cppunit-config |
206 |
when determining the cpp Unit configuration; |
204 |
when determining the cpp Unit configuration; |
207 |
defaults to ""]], |
205 |
defaults to ""]], |
208 |
[ |
206 |
[ |
209 |
if test "$withval" != "yes" -a "$withval" != ""; then |
207 |
if test "$withval" == "no"; then |
210 |
CPPUNITCONFIG=$withval |
208 |
CPPUNITCONFIG= |
211 |
fi |
209 |
elif test "$withval" != "yes"; then |
|
|
210 |
CPPUNITCONFIG=$withval |
211 |
fi |
212 |
]) |
212 |
]) |
|
|
213 |
AC_MSG_CHECKING([cppunig-config]) |
214 |
if test -z "$CPPUNITCONFIG" ; then |
215 |
AC_MSG_RESULT([not used]) |
216 |
else |
217 |
if $CPPUNITCONFIG --version > /dev/null 2>&1; then |
218 |
AC_MSG_RESULT([found]) |
219 |
else |
220 |
AC_MSG_RESULT([not found]) |
221 |
CPPUNITCONFIG= |
222 |
fi |
223 |
fi |
213 |
|
224 |
|
214 |
dnl |
225 |
dnl |
215 |
dnl XsltProc |
226 |
dnl XsltProc |
Lines 219-349
Link Here
|
219 |
[[ --with-xsltproc=FILE Use the given path to xsltproc; |
230 |
[[ --with-xsltproc=FILE Use the given path to xsltproc; |
220 |
defaults to "xsltproc"]], |
231 |
defaults to "xsltproc"]], |
221 |
[ |
232 |
[ |
222 |
if test "$withval" != "yes"; then |
233 |
if test "$withval" == "no"; then |
223 |
XSLTPROC=$withval |
234 |
XSLTPROC= |
224 |
fi |
235 |
elif test "$withval" != "yes"; then |
|
|
236 |
XSLTPROC=$withval |
237 |
fi |
225 |
]) |
238 |
]) |
226 |
AC_MSG_CHECKING([xsltproc]) |
239 |
AC_MSG_CHECKING([xsltproc]) |
227 |
if test -z "$XSLTPROC" ; then |
240 |
if test -z "$XSLTPROC" ; then |
228 |
AC_MSG_RESULT([not used]) |
241 |
AC_MSG_RESULT([not used]) |
229 |
else |
242 |
else |
230 |
if $XSLTPROC --version >/dev/null 2>&1 ; then |
243 |
if $XSLTPROC --version >/dev/null 2>&1 ; then |
231 |
AC_MSG_RESULT([found]) |
244 |
AC_MSG_RESULT([found]) |
232 |
else |
245 |
else |
233 |
AC_MSG_RESULT([not found]) |
246 |
AC_MSG_RESULT([not found]) |
234 |
XSLTPROC="" |
247 |
XSLTPROC="" |
235 |
fi |
248 |
fi |
236 |
fi |
249 |
fi |
237 |
|
250 |
|
238 |
dnl |
251 |
dnl |
239 |
dnl Docbook XSL |
252 |
dnl Docbook XSL Manpage Stylesheet |
240 |
dnl |
253 |
dnl |
241 |
dnl DOCBOOK_XSL="/etc/sgml/docbook-xsl" |
254 |
DOCBOOK_MANPAGES=yes |
242 |
DOCBOOK_XSL="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh" |
255 |
AC_ARG_WITH(docbook-xsl-manpages, |
243 |
AC_ARG_WITH(docbook-xsl, |
256 |
[[ --with-docbook-xsl-manpages=FILE Determine the location of the |
244 |
[[ --with-docbook-xsl=DIR Determine the location of the |
257 |
DocBook XSL manpages stylesheet, |
245 |
DocBook XSL stylesheets, |
258 |
needed for manpage generation. |
246 |
needed for manpage generation. |
259 |
REMARK: do not supply something like |
247 |
Defaults to "/usr/share/sgml/docbook/stylesheet/xsl/nwalsh".]], |
260 |
/.../html/docbook.xsl. The path has |
|
|
261 |
to look like /.../manpages/docbook.xsl, |
262 |
otherwise you are using the wrong stylesheet |
263 |
resulting in an invalid manpage]], |
248 |
[ |
264 |
[ |
249 |
if test "$withval" != "yes"; then |
265 |
if test "$withval" == "no"; then |
250 |
DOCBOOK_XSL=$withval |
266 |
DOCBOOK_MANPAGES= |
251 |
fi |
267 |
else |
|
|
268 |
DOCBOOK_MANPAGES=$withval |
269 |
fi |
252 |
]) |
270 |
]) |
253 |
AC_MSG_CHECKING([docbook xsl stylesheets ($DOCBOOK_XSL)]) |
|
|
254 |
|
271 |
|
|
|
272 |
dnl search for Docbook XSL in standard places |
273 |
dnl remark: I didnt use a list if files for usage in |
274 |
dnl a for .. do .. done loop since the line |
275 |
dnl got too long (file not found error while |
276 |
dnl executing) |
277 |
if test "$DOCBOOK_MANPAGES" == "yes"; then |
278 |
X1=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl |
279 |
X2=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook/docbook.xsl |
280 |
X3=/usr/share/sgml/docbook/yelp/docbook/manpages/docbook.xsl |
281 |
X4=/usr/share/sgml/docbook/xsl-stylesheets*/manpages/docbook.xsl |
282 |
X5=/usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl |
283 |
X6=/usr/local/share/sgml/docbook/yelp/docbook/manpages/docbook.xsl |
284 |
X7=/usr/share/docbook-xsl/manpages/docbook.xsl |
285 |
X8=/usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl |
255 |
|
286 |
|
256 |
for _try_docbook_xsl in \ |
287 |
if test -f $X1; then |
257 |
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html \ |
288 |
DOCBOOK_MANPAGES=$X1 |
258 |
/usr/share/sgml/docbook/yelp/docbook/html \ |
289 |
elif test -f $X2; then |
259 |
/usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh/html \ |
290 |
DOCBOOK_MANPAGES=$X2 |
260 |
/usr/local/share/sgml/docbook/yelp/docbook/html \ |
291 |
elif test -f $X3; then |
261 |
/usr/share/docbook-xsl/html \ |
292 |
DOCBOOK_MANPAGES=$X3 |
262 |
/usr/share/sgml/docbook/xsl-stylesheets*/html |
293 |
elif test -f $X4; then |
263 |
do |
294 |
DOCBOOK_MANPAGES=$X4 |
264 |
if test -f "$_try_docbook_xsl/docbook.xsl" |
295 |
elif test -f $X5; then |
265 |
then |
296 |
DOCBOOK_MANPAGES=$X5 |
266 |
_docbook_xsl=$_try_docbook_xsl |
297 |
elif test -f $X6; then |
267 |
break |
298 |
DOCBOOK_MANPAGES=$X6 |
|
|
299 |
elif test -f $X7; then |
300 |
DOCBOOK_MANPAGES=$X7 |
301 |
elif test -f $X8; then |
302 |
DOCBOOK_MANPAGES=$X8 |
303 |
else |
304 |
DOCBOOK_MANPAGES=notfound |
268 |
fi |
305 |
fi |
269 |
done |
|
|
270 |
|
271 |
if test -z "$_docbook_xsl" |
272 |
then |
273 |
_docbook_xsl=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh |
274 |
fi |
306 |
fi |
275 |
|
307 |
AC_MSG_CHECKING([docbook xsl stylesheet for manpages]) |
276 |
DOCBOOK_XSL="$_docbook_xsl" |
308 |
if test -z "$DOCBOOK_MANPAGES"; then |
277 |
|
309 |
AC_MSG_RESULT([not used]) |
278 |
if test -z "$DOCBOOK_XSL" ; then |
310 |
elif test -f "$DOCBOOK_MANPAGES"; then |
279 |
AC_MSG_RESULT([no]) |
311 |
AC_MSG_RESULT([found]) |
280 |
else |
312 |
else |
281 |
if test -d "$DOCBOOK_XSL" ; then |
313 |
AC_MSG_RESULT([not found]) |
282 |
AC_MSG_RESULT([found]) |
314 |
DOCBOOK_MANPAGES="" |
283 |
else |
|
|
284 |
AC_MSG_RESULT([not found]) |
285 |
DOCBOOK_XSL="" |
286 |
fi |
287 |
fi |
315 |
fi |
288 |
|
316 |
|
289 |
|
317 |
|
290 |
dnl |
318 |
dnl |
291 |
dnl Docbook Manpages |
319 |
dnl Manpage |
292 |
dnl |
320 |
dnl |
293 |
for _try_manpages in \ |
321 |
MANPAGE=yes |
294 |
$DOCBOOK_XSL/manpages \ |
322 |
AC_ARG_WITH(manpage, |
295 |
$DOCBOOK_XSL/../manpages |
323 |
[[ --with-manpage=yes|no Enable/disable manpage creation]], |
296 |
do |
324 |
[ |
297 |
if test -d "$_try_manpages" |
325 |
if test "$withval" != "yes"; then |
298 |
then |
326 |
MANPAGE=no |
299 |
_manpages=$_try_manpages |
|
|
300 |
break |
301 |
fi |
327 |
fi |
302 |
done |
328 |
]) |
303 |
|
329 |
TARGET_MANPAGE=manpage-no |
304 |
if test -z "$_manpages" |
330 |
MAN_MANS= |
305 |
then |
|
|
306 |
_manpages=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages |
307 |
fi |
308 |
|
309 |
DOCBOOK_MANPAGES="$_manpages" |
310 |
|
311 |
AC_MSG_CHECKING([docbook manpages ($DOCBOOK_MANPAGES)]) |
312 |
if test -z "$DOCBOOK_MANPAGES" ; then |
313 |
AC_MSG_RESULT([no]) |
314 |
else |
315 |
if test -d "$DOCBOOK_MANPAGES" ; then |
316 |
AC_MSG_RESULT([found]) |
317 |
else |
318 |
AC_MSG_RESULT([not found]) |
319 |
DOCBOOK_XSL="" |
320 |
DOCBOOK_MANPAGES="" |
321 |
fi |
322 |
fi |
323 |
|
324 |
DOCBOOK_XSL_MANS="" |
325 |
if test "$DOCBOOK_XSL" ; then |
326 |
DOCBOOK_XSL_MANS="$DOCBOOK_MANPAGES" |
327 |
AC_MSG_CHECKING([docbook xsl support for manpages ($DOCBOOK_XSL_MANS)]) |
328 |
if test -d "$DOCBOOK_XSL_MANS" ; then |
329 |
AC_MSG_RESULT([found]) |
330 |
else |
331 |
AC_MSG_RESULT([not found]) |
332 |
DOCBOOK_XSL="" |
333 |
fi |
334 |
fi |
335 |
|
336 |
|
337 |
dnl |
338 |
dnl Manpage creation (with xsltproc) |
339 |
dnl |
340 |
AC_MSG_CHECKING([manpage creation]) |
331 |
AC_MSG_CHECKING([manpage creation]) |
341 |
if test "$XSLTPROC" -a "$DOCBOOK_XSL" ; then |
332 |
if test "$MANPAGE"=="no"; then |
342 |
AC_MSG_RESULT([yes]) |
333 |
AC_MSG_RESULT([no]) |
343 |
TARGET_MANPAGE=manpage-yes |
334 |
elif test "$XSLTPROC" -a "$DOCBOOK_MANPAGES" ; then |
|
|
335 |
AC_MSG_RESULT([yes]) |
336 |
TARGET_MANPAGE=manpage-yes |
337 |
MAN_MANS=rapidsvn.1 |
344 |
else |
338 |
else |
345 |
AC_MSG_RESULT([no (xsltproc and docbook-xsl with manpage support needed)]) |
339 |
AC_MSG_RESULT([no (xsltproc and docbook-xsl with manpage support needed)]) |
346 |
TARGET_MANPAGE=manpage-no |
|
|
347 |
fi |
340 |
fi |
348 |
|
341 |
|
349 |
dnl |
342 |
dnl |
Lines 355-374
Link Here
|
355 |
Used for creating API documentation; |
348 |
Used for creating API documentation; |
356 |
defaults to "doxygen"]], |
349 |
defaults to "doxygen"]], |
357 |
[ |
350 |
[ |
358 |
if test "$withval" != "yes"; then |
351 |
if test "$withval" == "no"; then |
359 |
DOXYGEN=$withval |
352 |
DOXYGEN= |
360 |
fi |
353 |
elif test "$withval" != "yes"; then |
|
|
354 |
DOXYGEN=$withval |
355 |
fi |
361 |
]) |
356 |
]) |
362 |
AC_MSG_CHECKING([doxygen]) |
357 |
AC_MSG_CHECKING([doxygen]) |
363 |
if test -z "$DOXYGEN" ; then |
358 |
if test -z "$DOXYGEN" ; then |
364 |
AC_MSG_RESULT([not used]) |
359 |
AC_MSG_RESULT([not used]) |
365 |
else |
360 |
else |
366 |
if doxygenversion=`$DOXYGEN --version 2>&1` ; then |
361 |
if doxygenversion=`$DOXYGEN --version 2>&1` ; then |
367 |
AC_MSG_RESULT([found]) |
362 |
AC_MSG_RESULT([found]) |
368 |
else |
363 |
else |
369 |
AC_MSG_RESULT([not found]) |
364 |
AC_MSG_RESULT([not found]) |
370 |
DOXYGEN="" |
365 |
DOXYGEN="" |
371 |
fi |
366 |
fi |
372 |
fi |
367 |
fi |
373 |
|
368 |
|
374 |
dnl |
369 |
dnl |
Lines 380-434
Link Here
|
380 |
This tool is needed by doxygen; |
375 |
This tool is needed by doxygen; |
381 |
defaults to "dot"]], |
376 |
defaults to "dot"]], |
382 |
[ |
377 |
[ |
383 |
if test "$withval" != "yes"; then |
378 |
if test "$withval" == "no"; then |
384 |
DOT=$withval |
379 |
DOT= |
385 |
fi |
380 |
elif test "$withval" != "yes"; then |
|
|
381 |
DOT=$withval |
382 |
fi |
386 |
]) |
383 |
]) |
387 |
AC_MSG_CHECKING([dot]) |
384 |
AC_MSG_CHECKING([dot]) |
388 |
if test -z "$DOT" ; then |
385 |
if test -z "$DOT" ; then |
389 |
AC_MSG_RESULT([not used]) |
386 |
AC_MSG_RESULT([not used]) |
390 |
else |
387 |
else |
391 |
if dotbla=`echo | $DOT 2>/dev/null` ; then |
388 |
if dotbla=`echo | $DOT 2>/dev/null` ; then |
392 |
AC_MSG_RESULT([found]) |
389 |
AC_MSG_RESULT([found]) |
393 |
else |
390 |
else |
394 |
AC_MSG_RESULT([not found]) |
391 |
AC_MSG_RESULT([not found]) |
395 |
DOT="" |
392 |
DOT="" |
396 |
fi |
393 |
fi |
397 |
fi |
394 |
fi |
398 |
|
395 |
|
399 |
dnl |
396 |
dnl |
400 |
dnl Final check for Doxygen |
397 |
dnl Final check for Doxygen |
401 |
dnl |
398 |
dnl |
402 |
if test "$DOXYGEN" ; then |
399 |
if test "$DOXYGEN" ; then |
403 |
AC_MSG_CHECKING([if doxygen is usable]) |
400 |
AC_MSG_CHECKING([if doxygen is usable]) |
404 |
if test -z "$DOT" ; then |
401 |
if test -z "$DOT" ; then |
405 |
AC_MSG_RESULT([no (dot needed)]) |
402 |
AC_MSG_RESULT([no (dot needed)]) |
406 |
DOXYGEN="" |
403 |
DOXYGEN="" |
407 |
else |
404 |
else |
408 |
AC_MSG_RESULT([yes]) |
405 |
AC_MSG_RESULT([yes]) |
409 |
fi |
406 |
fi |
410 |
fi |
407 |
fi |
411 |
|
408 |
|
412 |
if test "$DOXYGEN" ; then |
409 |
if test "$DOXYGEN" ; then |
413 |
TARGET_DOXYGEN="doxygen-yes" |
410 |
TARGET_DOXYGEN="doxygen-yes" |
|
|
411 |
DOXYGEN_DIST="svncpp.dox html/*" |
414 |
else |
412 |
else |
415 |
TARGET_DOXYGEN="doxygen-no" |
413 |
TARGET_DOXYGEN="doxygen-no" |
|
|
414 |
DOXYGEN_DIST= |
416 |
fi |
415 |
fi |
417 |
|
416 |
|
418 |
AC_SUBST(APR_LIBS) |
417 |
AC_SUBST(APR_LIBS) |
419 |
AC_SUBST(WX_LIBS) |
418 |
AC_SUBST(WX_LIBS) |
420 |
AC_SUBST(SVN_LIBS) |
419 |
AC_SUBST(SVN_LIBS) |
421 |
AC_SUBST(NEON_LIBS) |
420 |
AC_SUBST(NEON_LIBS) |
422 |
AC_SUBST(DOCBOOK_XSL) |
|
|
423 |
AC_SUBST(DOCBOOK_MANPAGES) |
421 |
AC_SUBST(DOCBOOK_MANPAGES) |
424 |
AC_SUBST(XSLTPROC) |
422 |
AC_SUBST(XSLTPROC) |
425 |
AC_SUBST(TARGET_MANPAGE) |
423 |
AC_SUBST(TARGET_MANPAGE) |
|
|
424 |
AC_SUBST(MAN_MANS) |
426 |
AC_SUBST(DOXYGEN) |
425 |
AC_SUBST(DOXYGEN) |
|
|
426 |
AC_SUBST(DOXYGEN_DIST) |
427 |
AC_SUBST(TARGET_DOXYGEN) |
427 |
AC_SUBST(TARGET_DOXYGEN) |
428 |
|
428 |
|
429 |
|
|
|
430 |
AC_OUTPUT(Makefile \ |
429 |
AC_OUTPUT(Makefile \ |
431 |
doc/Makefile \ |
430 |
doc/Makefile \ |
|
|
431 |
doc/manpage/Makefile \ |
432 |
doc/svncpp/Makefile \ |
432 |
include/Makefile \ |
433 |
include/Makefile \ |
433 |
include/svncpp/Makefile \ |
434 |
include/svncpp/Makefile \ |
434 |
src/Makefile \ |
435 |
src/Makefile \ |
Lines 436-445
Link Here
|
436 |
src/res/Makefile) |
437 |
src/res/Makefile) |
437 |
|
438 |
|
438 |
|
439 |
|
439 |
if test "$DOCBOOK_XSL" ; then |
|
|
440 |
AC_OUTPUT(doc/manpage/Makefile) |
441 |
fi |
442 |
|
443 |
if test "$CPPUNITCONFIG" ; then |
440 |
if test "$CPPUNITCONFIG" ; then |
444 |
CPPUNIT_CXXFLAGS="`$CPPUNITCONFIG --cflags`" |
441 |
CPPUNIT_CXXFLAGS="`$CPPUNITCONFIG --cflags`" |
445 |
CPPUNIT_LIBS="`$CPPUNITCONFIG --libs`" |
442 |
CPPUNIT_LIBS="`$CPPUNITCONFIG --libs`" |