summaryrefslogtreecommitdiff
path: root/legacy/evil/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-02-01 06:55:53 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-02-01 06:55:53 +0000
commitf15f2c1c646b0eb00c98b64673d5766249d5f3fe (patch)
treec295104b7bdb726ae5c46afcbfa1a82d357ba8c3 /legacy/evil/m4
parentf747799981da58b5664f01576a9a128e7920fd21 (diff)
* m4/efl_doxygen.m4:
fix logic in efl_doxygen.m4 SVN revision: 38880
Diffstat (limited to 'legacy/evil/m4')
-rwxr-xr-xlegacy/evil/m4/efl_doxygen.m4112
1 files changed, 61 insertions, 51 deletions
diff --git a/legacy/evil/m4/efl_doxygen.m4 b/legacy/evil/m4/efl_doxygen.m4
index 49a3dfa0c4..eaac9933e0 100755
--- a/legacy/evil/m4/efl_doxygen.m4
+++ b/legacy/evil/m4/efl_doxygen.m4
@@ -11,73 +11,83 @@ dnl
11AC_DEFUN([EFL_CHECK_DOXYGEN], 11AC_DEFUN([EFL_CHECK_DOXYGEN],
12[ 12[
13 13
14DOXYGEN="doxygen"
15
16dnl 14dnl
17dnl Disable the build of the documentation 15dnl Disable the build of the documentation
18dnl 16dnl
19AC_ARG_ENABLE([doc], 17AC_ARG_ENABLE([doc],
20 AC_HELP_STRING( 18 [AC_HELP_STRING(
21 [--disable-doc], 19 [--disable-doc],
22 [Disable the build of the documentation]), 20 [Disable documentation build @<:@default=enabled@:>@])],
23 [if test "${disable_doc}" = "yes" ; then 21 [
24 enable_doc="no" 22 if test "x${enableval}" = "xyes" ; then
23 efl_enable_doc="yes"
25 else 24 else
26 enable_doc="yes" 25 efl_enable_doc="no"
27 fi], 26 fi
28 [enable_doc="yes"] 27 ],
28 [efl_enable_doc="yes"]
29) 29)
30 30
31if test "x${efl_enable_doc}" = "xyes" ; then
32
31dnl 33dnl
32dnl Specify the full file name, with path 34dnl Specify the full file name, with path
33dnl 35dnl
34AC_ARG_WITH([doxygen], 36
35 AC_HELP_STRING( 37 efl_doxygen="doxygen"
36 [--with-doxygen=FILE], 38
37 [doxygen program to use @<:@default=doxygen@:>@]), 39 AC_ARG_WITH([doxygen],
38 dnl 40 [AC_HELP_STRING(
39 dnl Check the given doxygen program. 41 [--with-doxygen=FILE],
40 dnl 42 [doxygen program to use @<:@default=doxygen@:>@])],
41 [DOXYGEN=${withval} 43dnl
42 AC_CHECK_PROG([BUILD_DOCS], 44dnl Check the given doxygen program.
43 [${DOXYGEN}], 45dnl
44 [yes], 46 [DOXYGEN=${withval}
45 [no]) 47 AC_CHECK_PROG([efl_have_doxygen],
46 if test "x${BUILD_DOCS}" = "xno" ; then 48 [${efl_doxygen}],
47 echo "WARNING:" 49 [yes],
48 echo "The doxygen program you specified:" 50 [no])
49 echo "$DOXYGEN" 51 if test "x${efl_have_doxygen}" = "xno" ; then
50 echo "was not found. Please check the path and make sure " 52 echo "WARNING:"
51 echo "the program exists and is executable." 53 echo "The doxygen program you specified:"
52 AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built]) 54 echo "$efl_doxygen"
53 fi 55 echo "was not found. Please check the path and make sure "
54 ], 56 echo "the program exists and is executable."
55 [AC_CHECK_PROG([BUILD_DOCS], 57 AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
56 [${DOXYGEN}], 58 fi
57 [yes], 59 ],
58 [no]) 60 [AC_CHECK_PROG([efl_have_doxygen],
59 if test "x${BUILD_DOCS}" = "xno" ; then 61 [${efl_doxygen}],
60 echo "WARNING:" 62 [yes],
61 echo "The doxygen program was not found in your execute" 63 [no])
62 echo "You may have doxygen installed somewhere not covered by your path." 64 if test "x${efl_have_doxygen}" = "xno" ; then
63 echo "" 65 echo "WARNING:"
64 echo "If this is the case make sure you have the packages installed, AND" 66 echo "The doxygen program was not found in your execute"
65 echo "that the doxygen program is in your execute path (see your" 67 echo "You may have doxygen installed somewhere not covered by your path."
66 echo "shell manual page on setting the \$PATH environment variable), OR" 68 echo ""
67 echo "alternatively, specify the program to use with --with-doxygen." 69 echo "If this is the case make sure you have the packages installed, AND"
68 AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built]) 70 echo "that the doxygen program is in your execute path (see your"
69 fi 71 echo "shell manual page on setting the \$PATH environment variable), OR"
70 ] 72 echo "alternatively, specify the program to use with --with-doxygen."
71) 73 AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
74 fi
75 ]
76 )
77fi
72 78
73dnl 79dnl
74dnl Substitution 80dnl Substitution
75dnl 81dnl
76AC_SUBST([DOXYGEN]) 82AC_SUBST([efl_doxygen])
83
84if ! test "x${efl_have_doxygen}" = "xyes" ; then
85 efl_enable_doc="no"
86fi
77 87
78AM_CONDITIONAL(EFL_BUILD_DOC, test "x${BUILD_DOCS}" = "xyes") 88AM_CONDITIONAL(EFL_BUILD_DOC, test "x${efl_enable_doc}" = "xyes")
79 89
80if test "x${BUILD_DOCS}" = "xyes" ; then 90if test "x${efl_enable_doc}" = "xyes" ; then
81 ifelse([$1], , :, [$1]) 91 ifelse([$1], , :, [$1])
82else 92else
83 ifelse([$2], , :, [$2]) 93 ifelse([$2], , :, [$2])