SUBDIRS = intl src po
EXTRA_DIST = m4/ChangeLog config.rpath mkinstalldirs \
- m17n-im-config.pc.in
+ m17n-im-config.pc.in bootstrap.sh
+
+pkgconfigdir = ${libdir}/pkgconfig
+
+pkgconfig_DATA = m17n-im-config.pc
ACLOCAL_AMFLAGS = -I m4
dnl Check for Gtk+ library.
PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.4.0])
+AC_ARG_ENABLE(program,
+ AC_HELP_STRING([--enable-program],
+ [enable a standalone program (default is YES)]))
+AM_CONDITIONAL(ENABLE_PROG, test x$enable_program != xno)
+
AC_CONFIG_FILES([Makefile intl/Makefile po/Makefile.in po/Makefile
+ m17n-im-config.pc
src/Makefile
])
libm17n_im_config_la_SOURCES = m17n-im-config.h mim-config.c
libm17n_im_config_la_LIBADD = @GTK2_LIBS@ @M17NLIB_LIBS@
+if ENABLE_PROG
bin_PROGRAMS = m17n-im-config
m17n_im_config_SOURCES = m17n-im-config.h main.c
m17n_im_config_LDADD = @GTK2_LIBS@ ${top_builddir}/src/libm17n-im-config.la
+endif