Mercurial > ~mikael > mcabber > hg
comparison mcabber/configure.ac @ 1607:14690e624e9d
Add modules
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sun, 11 Oct 2009 16:01:52 +0200 |
parents | d7f26538c24c |
children | af5bdd167b04 |
comparison
equal
deleted
inserted
replaced
1606:d7f26538c24c | 1607:14690e624e9d |
---|---|
128 if test "$mc_cv_ncurses_escdelay" = yes; then | 128 if test "$mc_cv_ncurses_escdelay" = yes; then |
129 AC_DEFINE([HAVE_ESCDELAY], 1, | 129 AC_DEFINE([HAVE_ESCDELAY], 1, |
130 [Define if ncurses has ESCDELAY variable]) | 130 [Define if ncurses has ESCDELAY variable]) |
131 fi | 131 fi |
132 | 132 |
133 AC_ARG_ENABLE(modules, [ --enable-modules enable dynamic modules loading], | |
134 enable_modules=$enableval) | |
135 if test "x$enable_modules" = "xyes"; then | |
136 AC_DEFINE(MODULES_ENABLE, 1, [Define if you want dynamic modules loading]) | |
137 gmodule_module=gmodule | |
138 else | |
139 gmodule_module='' | |
140 fi | |
141 | |
133 # Check for glib | 142 # Check for glib |
134 AM_PATH_GLIB_2_0(2.14.0, | 143 AM_PATH_GLIB_2_0(2.14.0, |
135 [AC_DEFINE([HAVE_GLIB_REGEX], 1, | 144 [AC_DEFINE([HAVE_GLIB_REGEX], 1, |
136 [Define if GLib has regex support])], | 145 [Define if GLib has regex support])], |
137 [AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]), | 146 [AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]), |
138 [g_list_append])], | 147 [g_list_append], ["$gmodule_module"])], |
139 [g_regex_new]) | 148 [g_regex_new "$gmodule_module"]) |
140 | 149 |
141 # Check for loudmouth | 150 # Check for loudmouth |
142 PKG_CHECK_MODULES(LOUDMOUTH, loudmouth-1.0 >= 1.4.3) | 151 PKG_CHECK_MODULES(LOUDMOUTH, loudmouth-1.0 >= 1.4.3) |
143 AC_SUBST(LOUDMOUTH_CFLAGS) | 152 AC_SUBST(LOUDMOUTH_CFLAGS) |
144 AC_SUBST(LOUDMOUTH_LIBS) | 153 AC_SUBST(LOUDMOUTH_LIBS) |