projects
/
m17n
/
m17n-lib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(win_filter): Try to convert arg to key only when
[m17n/m17n-lib.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
0f63f37
..
8437fc4
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-79,6
+79,15
@@
else
fi
AC_SUBST(M17NDIR)
fi
AC_SUBST(M17NDIR)
+dnl Checks which levels of APIs should be compiled.
+
+AC_ARG_ENABLE(gui,
+ AC_HELP_STRING([--with-gui],
+ [with GUI level APIs (default is YES)]))
+
+AM_CONDITIONAL(WITH_GUI, test x$with_gui != xno)
+
+if test x$with_gui != xno; then
dnl Checks if dlopen exists, and if it's in libc or libdl.
dnl Checks if dlopen exists, and if it's in libc or libdl.
@@
-150,7
+159,9
@@
if test "x$with_libotf" != "xno"; then
else
OTF_LD_FLAGS=-lotf
fi
else
OTF_LD_FLAGS=-lotf
fi
- AC_CHECK_LIB(otf, OTF_open, HAVE_OTF=yes, HAVE_OTF=no)
+ ## We check the availability of OTF_check_features
+ ## because we need libotf-0.9.4 or the later.
+ AC_CHECK_LIB(otf, OTF_check_features, HAVE_OTF=yes, HAVE_OTF=no)
AC_CHECK_HEADER(otf.h,, HAVE_OTF=no)
CPPFLAGS="$save_CPPFLAGS"
if test "x$HAVE_OTF" = "xyes"; then
AC_CHECK_HEADER(otf.h,, HAVE_OTF=no)
CPPFLAGS="$save_CPPFLAGS"
if test "x$HAVE_OTF" = "xyes"; then
@@
-277,6
+288,8
@@
if test "x$with_gd" != "xno"; then
fi
AC_SUBST(GD_LD_FLAGS)
fi
AC_SUBST(GD_LD_FLAGS)
+fi
+
dnl Check for libxml2 usability.
save_CPPFLAGS="$CPPFLAGS"
save_LIBS="$LIBS"
dnl Check for libxml2 usability.
save_CPPFLAGS="$CPPFLAGS"
save_LIBS="$LIBS"