diff options
author | <rob.taylor@collabora.co.uk> | 2006-01-15 17:09:53 +0000 |
---|---|---|
committer | <rob.taylor@collabora.co.uk> | 2006-01-15 17:09:53 +0000 |
commit | 42f8cc62631c3d3f7795049a29e135b2a1b028cf (patch) | |
tree | a72c640502ea0d1aad86203a921a6bbcb7788f8c /m4 | |
parent | 36e7ba52d4397763aca609c368bc6f2472b644a1 (diff) |
creation of voip-engine tree, with some docs
Diffstat (limited to 'm4')
-rw-r--r-- | m4/.git-darcs-dir | 0 | ||||
-rw-r--r-- | m4/seq-dias.m4 | 33 |
2 files changed, 33 insertions, 0 deletions
diff --git a/m4/.git-darcs-dir b/m4/.git-darcs-dir new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/m4/.git-darcs-dir diff --git a/m4/seq-dias.m4 b/m4/seq-dias.m4 new file mode 100644 index 0000000..faf0f40 --- /dev/null +++ b/m4/seq-dias.m4 @@ -0,0 +1,33 @@ +AC_DEFUN([SEQ_DIAS], +[ +dnl check for tools for drawing sequence diagrams +AC_ARG_ENABLE(seq-dias, + AC_HELP_STRING([--enable-sequence-diagrams], + [use plotutils to draw sequence diagrams [default=yes]]),, + enable_seq_dias=yes) + +MAKE_SEQ_DIAS=no +if test x$enable_seq_dias = xyes; then + MAKE_SEQ_DIAS=yes + AC_PATH_PROG(PIC2PLOT, pic2plot, no) + AC_PATH_PROG(GS, gs, no) + AC_PATH_PROG(CONVERT, convert, no) + if test "$CONVERT" == "no"; then + AC_MSG_WARN([Imagemagick not found, drawing sequence diagrams will be disabled.]) + MAKE_SEQ_DIAS=no + fi + if test "$GS" == "no"; then + AC_MSG_WARN([Ghostscript not found, drawing sequence diagrams will be disabled.]) + MAKE_SEQ_DIAS=no + fi + if test "$PIC2PLOT" == "no"; then + AC_MSG_WARN([GNU plotutils not found, drawing sequence diagrams will be disabled.]) + MAKE_SEQ_DIAS=no + fi + AC_SUBST(PIC2PLOT) + AC_SUBST(CONVERT) + +fi +AC_SUBST(MAKE_SEQ_DIAS) +AM_CONDITIONAL(MAKE_SEQ_DIAS, test x$MAKE_SEQ_DIAS == xyes) +]) |