AC_CONFIG_SRCDIR([hangul/hangul.h])
AC_CONFIG_HEADER([config.h])
+LIBHANGUL_MAJOR_VERSION=0
+LIBHANGUL_MINOR_VERSION=0
+LIBHANGUL_MICRO_VERSION=1
+
+LIBHANGUL_VERSION=$LIBHANGUL_MAJOR_VERSION.$LIBHANGUL_MINOR_VERSION.$LIBHANGUL_MICRO_VERSION
+AC_SUBST(LIBHANGUL_MAJOR_VERSION)
+AC_SUBST(LIBHANGUL_MINOR_VERSION)
+AC_SUBST(LIBHANGUL_MICRO_VERSION)
+AC_SUBST(LIBHANGUL_VERSION)
+
+# library version
+LIBHANGUL_CURRENT=0
+LIBHANGUL_REVISION=0
+LIBHANGUL_AGE=0
+
+AC_SUBST(LIBHANGUL_CURRENT)
+AC_SUBST(LIBHANGUL_REVISION)
+AC_SUBST(LIBHANGUL_AGE)
+
# Checks for programs.
AC_PROG_CC
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
# Checks for libraries.
Makefile
hangul/Makefile
test/Makefile
+libhangul.pc
])
+
AC_OUTPUT
-noinst_LIBRARIES = libhangul.a
+libhangulincludedir = $(includedir)/hangul-1.0
+libhangulinclude_HEADERS = hangul.h
-libhangul_a_CFLAGS =
+lib_LTLIBRARIES = libhangul.la
-libhangul_a_SOURCES = \
- hangulctype.c \
- hangulinputcontext.c \
- hangulkeyboard.h \
- hangul.h
+libhangul_la_CFLAGS =
-libhangul_a_LIBADD =
+libhangul_la_SOURCES = hangulctype.c \
+ hangulinputcontext.c \
+ hangulkeyboard.h
+
+libhangul_la_LDFLAGS = -version-info $(LIBHANGUL_CURRENT):$(LIBHANGUL_REVISION):$(LIBHANGUL_AGE)
+libhangul_la_LIBADD =
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libhangul
+Description: Hangul hanja input support
+Version: @LIBHANGUL_VERSION@
+Libs: -L${libdir} -lhangul
+Cflags: -I${includedir}/hangul-1.0