diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-05-21 20:25:21 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-05-21 20:25:21 +0000 |
commit | 15d96eb9a131792f22267d1a15d397d1d41ac038 (patch) | |
tree | 6e9f091debad7168fb6c837670efa8aed6e28277 | |
parent | 066c74d11dcb29a131221295684f12ff3c822e67 (diff) | |
download | libgtop-15d96eb9a131792f22267d1a15d397d1d41ac038.tar.gz |
define 'GLIBTOP_NAMES' when building libgtop and a new conditional
* acinclude.m4 (AC_LC_SYSDEPS): define 'GLIBTOP_NAMES' when
building libgtop and a new conditional 'GLIBTOP_NAMES'; added
new parameter '--without-examples'; define 'GLIBTOP_EXAMPLES'
and conditional 'GLIBTOP_EXAMPLES'.
-rw-r--r-- | acinclude.m4 | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 601f9dd1..25cfa00a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -99,6 +99,12 @@ AC_DEFUN([AC_LC_SYSDEPS],[ AC_MSG_RESULT($ac_cv_want_names) + if test x$ac_cv_want_names = xyes ; then + AC_DEFINE(GLIBTOP_NAMES) + fi + + AM_CONDITIONAL(GLIBTOP_NAMES, test x$ac_cv_want_names = xyes) + AC_MSG_CHECKING(whether building of the guile interface is requested) AC_ARG_ENABLE(libgtop-guile, @@ -111,11 +117,23 @@ AC_DEFUN([AC_LC_SYSDEPS],[ AC_MSG_RESULT($ac_cv_want_guile) - if test x$ac_cv_want_names = xyes ; then - AC_DEFINE(GLIBTOP_NAMES) + AC_MSG_CHECKING(whether building of the examples is requested) + + AC_ARG_WITH(libgtop-examples, + [ --without-examples disable building of the examples], + [if test "x$withval" = "xyes" ; then + ac_cv_want_examples=yes + else + ac_cv_want_examples=$withval + fi],[ac_cv_want_examples=yes]) + + AC_MSG_RESULT($ac_cv_want_examples) + + if test x$ac_cv_want_examples = xyes ; then + AC_DEFINE(GLIBTOP_EXAMPLES) fi - AM_CONDITIONAL(GLIBTOP_NAMES, test x$ac_cv_want_names = xyes) + AM_CONDITIONAL(GLIBTOP_EXAMPLES, test x$ac_cv_want_examples = xyes) if test x$use_glibtop_machine_h = xyes ; then machine_incs="-I\$(top_srcdir)/sysdeps/$sysdeps_dir" |