* libtoolize
authorChoe Hwanjin <choe.hwanjin@gmail.com>
Sun, 25 Sep 2005 13:55:24 +0000 (22:55 +0900)
committerChoe Hwanjin <choe.hwanjin@gmail.com>
Sun, 25 Sep 2005 13:55:24 +0000 (22:55 +0900)
* added pkgconfig file

git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@18 8f00fcd2-89fc-0310-932e-b01be5b65e01

configure.ac
hangul/Makefile.am
libhangul.pc.in [new file with mode: 0644]

index 8cf0191..83e7baa 100644 (file)
@@ -7,9 +7,28 @@ AM_INIT_AUTOMAKE
 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.
 
@@ -26,5 +45,7 @@ AC_CONFIG_FILES([
 Makefile
 hangul/Makefile
 test/Makefile
+libhangul.pc
 ])
+
 AC_OUTPUT
index da7bae0..6e4bb6c 100644 (file)
@@ -1,12 +1,14 @@
 
-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 =
diff --git a/libhangul.pc.in b/libhangul.pc.in
new file mode 100644 (file)
index 0000000..45350d7
--- /dev/null
@@ -0,0 +1,10 @@
+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