mirror of
https://github.com/bspeice/libcvautomation
synced 2025-04-21 00:41:29 -04:00
Fix build if Doxygen is missing
This commit is contained in:
parent
68f6dbbff2
commit
9596cca6a0
@ -1,4 +1,8 @@
|
|||||||
|
if BUILD_DOXYGEN
|
||||||
SUBDIRS = libcvautomation examples docs
|
SUBDIRS = libcvautomation examples docs
|
||||||
|
else
|
||||||
|
SUBDIRS = libcvautomation examples
|
||||||
|
endif
|
||||||
|
|
||||||
#And the BASH macros
|
#And the BASH macros
|
||||||
dist_sysconf_DATA = libcvautomation_funcs
|
dist_sysconf_DATA = libcvautomation_funcs
|
||||||
|
15
configure.ac
15
configure.ac
@ -56,25 +56,34 @@ AC_ARG_WITH(docs, [ --with-documentation build documentation for libcvautoma
|
|||||||
AC_ARG_ENABLE(man, [ --enable-man enable building the 'man' pages for libcvautomation @<:@default=enable@:>@])
|
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@:>@])
|
AC_ARG_ENABLE(tex, [ --enable-tex enable building the 'latex' pages for libcvautomation @<:@default=enable@:>@])
|
||||||
if test "$with_docs" != "no"; then
|
if test "$with_docs" != "no"; then
|
||||||
AC_CHECK_PROGS([Doxygen], [doxygen], [true])
|
AC_CHECK_PROGS([Doxygen], [doxygen], [missing], [found])
|
||||||
if test -z "$Doxygen"; then
|
echo "$Doxygen"
|
||||||
|
if test "$Doxygen" == "missing"; then
|
||||||
AC_MSG_WARN([Doxygen not found - continuing without building documentation.])
|
AC_MSG_WARN([Doxygen not found - continuing without building documentation.])
|
||||||
|
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$Doxygen" != "missing"])
|
||||||
|
enable_man="no"
|
||||||
|
enable_tex="no"
|
||||||
else
|
else
|
||||||
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
||||||
AC_CONFIG_FILES([docs/Doxyfile])
|
AC_CONFIG_FILES([docs/Doxyfile])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#Check if we should generate man pages
|
#Check if we should generate man pages
|
||||||
if test "$enable_man" != "no"; then
|
if test "$enable_man" != "no"; then
|
||||||
AC_SUBST(ENABLE_MAN, YES)
|
AC_SUBST(ENABLE_MAN, YES)
|
||||||
AM_CONDITIONAL(BUILD_MAN, [test "$enable_man" != "no"])
|
AM_CONDITIONAL(BUILD_MAN, [test "$enable_man" != "no"])
|
||||||
|
else
|
||||||
|
AC_SUBST(ENABLE_MAN, NO)
|
||||||
|
AM_CONDITIONAL(BUILD_MAN, [test "$enable_man" != "no"])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Check if we should build Tex pages
|
#Check if we should build Tex pages
|
||||||
if test "$enable_tex" != "no"; then
|
if test "$enable_tex" != "no"; then
|
||||||
AC_SUBST(ENABLE_TEX, YES)
|
AC_SUBST(ENABLE_TEX, YES)
|
||||||
AM_CONDITIONAL(BUILD_TEX, [test "$enable_tex" != "no"])
|
AM_CONDITIONAL(BUILD_TEX, [test "$enable_tex" != "no"])
|
||||||
|
else
|
||||||
|
AC_SUBST(ENABLE_TEX, NO)
|
||||||
|
AM_CONDITIONAL(BUILD_TEX, [test "$enable_tex" != "no"])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user