mirror of
https://github.com/bspeice/libcvautomation
synced 2026-05-30 19:50:58 -04:00
Integrate documentation into the build process
This commit is contained in:
34
configure.ac
34
configure.ac
@ -31,15 +31,19 @@ AC_PATH_X
|
||||
#Configure OpenCV - version 2+ breaks a lot of things
|
||||
PKG_CHECK_MODULES([OpenCV], [opencv >= 2.0.0], [use_opencv2=true], [use_opencv1=true])
|
||||
AM_CONDITIONAL(USEOPENCV2, [test "$use_opencv2" != ""])
|
||||
#Let doxygen know where our headers are at
|
||||
AC_SUBST(INPUT_PATH, "../include/opencv2")
|
||||
if test "$use_opencv1" != ""; then
|
||||
echo "could not find OpenCV version 2.0.0 or higher, checking for 1.0.0 or higher..."
|
||||
PKG_CHECK_MODULES([OpenCV], [opencv >= 1.0.0])
|
||||
#Update doxygen on where our headers are at
|
||||
AC_SUBST(INPUT_PATH, "../include/opencv1")
|
||||
fi
|
||||
|
||||
PKG_CHECK_MODULES([X11], [x11 >= 1.0.3])
|
||||
PKG_CHECK_MODULES([XTest], [xtst >= 0.21])
|
||||
|
||||
AC_ARG_WITH(examples, [ --with-examples build example programs '['default=yes']'])
|
||||
AC_ARG_WITH(examples, [ --with-examples build example programs @<:@default=yes@:>@])
|
||||
|
||||
AM_CONDITIONAL(BUILD_EXAMPLES, [test "$with_examples" != "no"])
|
||||
if test "$with_examples" != "no"; then
|
||||
@ -47,9 +51,33 @@ if test "$with_examples" != "no"; then
|
||||
AC_CHECK_HEADERS([limits.h stdlib.h unistd.h])
|
||||
fi
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
# Check for doxygen
|
||||
AC_ARG_WITH(docs, [ --with-documentation build documentation for libcvautomation @<:@default=yes@:>@])
|
||||
AC_ARG_ENABLE(man, [ --enable-man enable building the 'man' pages for libcvautomation @<:@default=enable@:>@])
|
||||
AC_ARG_ENABLE(tex, [ --enable-tex enable building the 'latex' pages for libcvautomation @<:@default=enable@:>@])
|
||||
if test "$with_docs" != "no"; then
|
||||
AC_CHECK_PROGS([Doxygen], [doxygen])
|
||||
if test -z "$Doxygen"; then
|
||||
AC_MSG_WARN([Doxygen not found - continuing without building documentation.])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
||||
AM_COND_IF(BUILD_DOXYGEN, [AC_CONFIG_FILES([docs/Doxyfile])])
|
||||
|
||||
#Check if we should generate man pages
|
||||
if test "$enable_man" != "no"; then
|
||||
AC_SUBST(ENABLE_MAN, YES)
|
||||
AM_CONDITIONAL(BUILD_MAN, [test "$enable_man" != "no"])
|
||||
fi
|
||||
|
||||
#Check if we should build Tex pages
|
||||
if test "$enable_tex" != "no"; then
|
||||
AC_SUBST(ENABLE_TEX, YES)
|
||||
AM_CONDITIONAL(BUILD_TEX, [test "$enable_tex" != "no"])
|
||||
fi
|
||||
fi
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_MALLOC
|
||||
|
||||
AC_OUTPUT([Makefile] [libcvautomation/Makefile] [examples/Makefile])
|
||||
AC_OUTPUT([Makefile] [libcvautomation/Makefile] [examples/Makefile] [docs/Makefile])
|
||||
|
||||
Reference in New Issue
Block a user