Check that glib has gmodule support when --enable-ctl is selected.

Bug #180611 r=roland.mainz@informatik.med.uni-giessen.de
This commit is contained in:
seawood%netscape.com 2002-11-19 03:53:58 +00:00
Родитель 551603afdf
Коммит 7dc1156846
1 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@ -3362,9 +3362,20 @@ dnl ========================================================
SUNCTL=
MOZ_ARG_ENABLE_BOOL(ctl,
[ --enable-ctl Enable Thai Complex Script support],
SUNCTL=1 )
SUNCTL=1,
SUNCTL= )
if test "$SUNCTL"; then
AC_DEFINE(SUNCTL)
dnl older versions of glib do not seem to have gmodule which ctl needs
_SAVE_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $GLIB_CFLAGS"
AC_LANG_SAVE
AC_LANG_C
AC_TRY_COMPILE([#include <gmodule.h>],
[ int x = 1; x++; ],,
[AC_MSG_ERROR([Cannot build ctl without gmodule support in glib.])])
AC_LANG_RESTORE
CFLAGS=$_SAVE_CFLAGS
AC_DEFINE(SUNCTL)
fi
dnl ========================================================