check doxygen availability only if we enable documentation build

SVN revision: 38866
This commit is contained in:
Vincent Torri 2009-01-31 20:18:51 +00:00
parent 29b0f87503
commit 6364a1b9da
1 changed files with 42 additions and 39 deletions

View File

@ -28,50 +28,53 @@ AC_ARG_ENABLE([doc],
[efl_enable_doc="yes"] [efl_enable_doc="yes"]
) )
if test "x${efl_enable_doc}" = "xyes" ; then
dnl dnl
dnl Specify the full file name, with path dnl Specify the full file name, with path
dnl dnl
efl_doxygen="doxygen" efl_doxygen="doxygen"
AC_ARG_WITH([doxygen], AC_ARG_WITH([doxygen],
[AC_HELP_STRING( [AC_HELP_STRING(
[--with-doxygen=FILE], [--with-doxygen=FILE],
[doxygen program to use @<:@default=doxygen@:>@])], [doxygen program to use @<:@default=doxygen@:>@])],
dnl dnl
dnl Check the given doxygen program. dnl Check the given doxygen program.
dnl dnl
[DOXYGEN=${withval} [DOXYGEN=${withval}
AC_CHECK_PROG([efl_have_doxygen], AC_CHECK_PROG([efl_have_doxygen],
[${efl_doxygen}], [${efl_doxygen}],
[yes], [yes],
[no]) [no])
if test "x${efl_have_doxygen}" = "xno" ; then if test "x${efl_have_doxygen}" = "xno" ; then
echo "WARNING:" echo "WARNING:"
echo "The doxygen program you specified:" echo "The doxygen program you specified:"
echo "$efl_doxygen" echo "$efl_doxygen"
echo "was not found. Please check the path and make sure " echo "was not found. Please check the path and make sure "
echo "the program exists and is executable." echo "the program exists and is executable."
AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built]) AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
fi fi
], ],
[AC_CHECK_PROG([efl_have_doxygen], [AC_CHECK_PROG([efl_have_doxygen],
[${efl_doxygen}], [${efl_doxygen}],
[yes], [yes],
[no]) [no])
if test "x${efl_have_doxygen}" = "xno" ; then if test "x${efl_have_doxygen}" = "xno" ; then
echo "WARNING:" echo "WARNING:"
echo "The doxygen program was not found in your execute" echo "The doxygen program was not found in your execute"
echo "You may have doxygen installed somewhere not covered by your path." echo "You may have doxygen installed somewhere not covered by your path."
echo "" echo ""
echo "If this is the case make sure you have the packages installed, AND" echo "If this is the case make sure you have the packages installed, AND"
echo "that the doxygen program is in your execute path (see your" echo "that the doxygen program is in your execute path (see your"
echo "shell manual page on setting the \$PATH environment variable), OR" echo "shell manual page on setting the \$PATH environment variable), OR"
echo "alternatively, specify the program to use with --with-doxygen." echo "alternatively, specify the program to use with --with-doxygen."
AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built]) AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
fi fi
] ]
) )
fi
dnl dnl
dnl Substitution dnl Substitution