Hi,

I am using your the excellent libunistring in an open source library that I am 
developing.

However, libunistring does not provide a .pc file meaning that it cannot be 
detected/verified via the pkg-config command. This in turn can make it very 
problematic and error-prone trying to link to it.

I appreciate that this is a very small detail but it would make things a lot 
easier for developers using the library.

I hope that you can find the time to give this your attention and, for your 
convenience and consideration, I have attached a tested patch to address the 
problem.

Keep up the good work,

kind regards,


Chris Morrison
Common subdirectories: libunistring-0.9.3/build-aux and libunistring-0.9.3.patch/build-aux
diff -uN libunistring-0.9.3/configure.ac libunistring-0.9.3.patch/configure.ac
--- libunistring-0.9.3/configure.ac	2010-03-29 03:35:26.000000000 +0100
+++ libunistring-0.9.3.patch/configure.ac	2014-05-06 12:40:53.962025867 +0100
@@ -150,4 +150,5 @@
 AC_CONFIG_FILES([lib/unistring/version.h:lib/unistring/version.in.h])
 AC_CONFIG_FILES([lib/unistring/woe32dll.h:lib/unistring/woe32dll.in.h])
 AC_CONFIG_FILES([tests/Makefile])
+AC_CONFIG_FILES([libunistring.pc])
 AC_OUTPUT
Common subdirectories: libunistring-0.9.3/doc and libunistring-0.9.3.patch/doc
Common subdirectories: libunistring-0.9.3/gnulib-local and libunistring-0.9.3.patch/gnulib-local
Common subdirectories: libunistring-0.9.3/gnulib-m4 and libunistring-0.9.3.patch/gnulib-m4
Common subdirectories: libunistring-0.9.3/lib and libunistring-0.9.3.patch/lib
diff -uN libunistring-0.9.3/libunistring.pc.in libunistring-0.9.3.patch/libunistring.pc.in
--- libunistring-0.9.3/libunistring.pc.in	1970-01-01 01:00:00.000000000 +0100
+++ libunistring-0.9.3.patch/libunistring.pc.in	2014-05-06 12:53:43.357841103 +0100
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libunistring
+Description: Library for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.
+Version: @VERSION@
+Requires: 
+Libs: -L${libdir} -lunistring
+Cflags: -I${includedir}/libunistring
Common subdirectories: libunistring-0.9.3/m4 and libunistring-0.9.3.patch/m4
diff -uN libunistring-0.9.3/Makefile.am libunistring-0.9.3.patch/Makefile.am
--- libunistring-0.9.3/Makefile.am	2009-04-26 21:01:24.000000000 +0100
+++ libunistring-0.9.3.patch/Makefile.am	2014-05-06 14:26:01.633303925 +0100
@@ -22,6 +22,9 @@
 
 SUBDIRS = doc gnulib-local lib tests
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libunistring.pc
+
 EXTRA_DIST = \
   version.sh BUGS DEPENDENCIES HACKING autogen.sh \
   build-aux/fixaclocal build-aux/texi2html build-aux/run-test
Common subdirectories: libunistring-0.9.3/tests and libunistring-0.9.3.patch/tests
Common subdirectories: libunistring-0.9.3/woe32dll and libunistring-0.9.3.patch/woe32dll

Reply via email to