diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-05-20 20:56:12 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-05-20 20:56:12 +0000 |
commit | 6d3b740a2c9eb906f8f6ba23479968074579892a (patch) | |
tree | 05ca20e6382df55ed385617169dacf2dd8a568c3 /acinclude.m4 | |
parent | e1cdfc78c13d2baea7ad24271891ec32441ca360 (diff) | |
download | libgtop-6d3b740a2c9eb906f8f6ba23479968074579892a.tar.gz |
added '--enable-libgtop-server' (default=auto), '--enable-libgtop-names'
* acinclude.m4 (AC_LC_SYSDEPS): added
'--enable-libgtop-server' (default=auto),
'--enable-libgtop-names' (default=yes) and
'--enable-libgtop-guile' (default=yes); we
now define 'GLIBTOP_NAMES' here.
* acconfig.h: added 'GLIBTOP_NAMES' and
'GLIBTOP_GUILE_NAMES'
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index d9148c37..8abbb232 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -29,7 +29,9 @@ AC_DEFUN([AC_LC_CANONICAL_HOST],[ AC_DEFUN([AC_LC_SYSDEPS],[ AC_REQUIRE([AC_LC_CANONICAL_HOST]) + AC_MSG_CHECKING(for sysdeps directory) + AC_ARG_WITH(sysdeps, [ --with-sysdeps=dir which sysdeps directory should be used [default=auto]], [if test "x$withval" = "xyes" ; then @@ -39,6 +41,7 @@ AC_DEFUN([AC_LC_SYSDEPS],[ else ac_cv_sysdeps_dir=$withval fi],[ac_cv_sysdeps_dir=yes]) + if test "x$ac_cv_sysdeps_dir" = "xyes" ; then case "$host_os" in linux*) @@ -68,13 +71,56 @@ AC_DEFUN([AC_LC_SYSDEPS],[ else sysdeps_dir=stub fi + test -d $srcdir/sysdeps/$sysdeps_dir || sysdeps_dir=stub AC_MSG_RESULT($sysdeps_dir) + + AC_MSG_CHECKING(whether we need the server) + + AC_ARG_ENABLE(libgtop-server, + [ --enable-libgtop-server use gtop_server [default=auto]], + [if test "x$enableval" = "xyes" ; then + need_server=yes + elif test "x$enableval" = "xno" ; then + need_server=no + fi]) + + AC_MSG_RESULT($need_server) + + AC_MSG_CHECKING(whether building of 'names' subdirs is requested) + + AC_ARG_ENABLE(libgtop-names, + [ --enable-libgtop-names enable building of 'names' subdirs [default=yes]], + [if test "x$enableval" = "xyes" ; then + ac_cv_want_names=yes + else + ac_cv_want_names=$enableval + fi],[ac_cv_names_subdir=yes]) + + AC_MSG_RESULT($ac_cv_want_names) + + AC_MSG_CHECKING(whether building of the guile interface is requested) + + AC_ARG_ENABLE(libgtop-guile, + [ --enable-libgtop-guile enable building of guile interface [default=yes]], + [if test "x$enableval" = "xyes" ; then + ac_cv_want_guile=yes + else + ac_cv_want_guile=$enableval + fi],[ac_cv_want_guile=yes]) + + AC_MSG_RESULT($ac_cv_want_guile) + + 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_SUBST(sysdeps_dir) AC_SUBST(need_server) ]) - # Like AC_CONFIG_HEADER, but automatically create stamp file. AC_DEFUN(AM_CONFIG_HEADER, |