fa09cd
diff -up aspell-0.60.6.1/configure.mlib aspell-0.60.6.1/configure
fa09cd
--- aspell-0.60.6.1/configure.mlib	2011-08-16 11:40:48.000000000 +0200
fa09cd
+++ aspell-0.60.6.1/configure	2011-08-16 11:41:44.013663519 +0200
fa09cd
@@ -18989,7 +18989,7 @@ rm -f core conftest.err conftest.$ac_obj
fa09cd
 #                                                                 #
fa09cd
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
fa09cd
 
fa09cd
-ac_config_files="$ac_config_files Makefile gen/Makefile common/Makefile lib/Makefile data/Makefile auto/Makefile modules/Makefile modules/tokenizer/Makefile modules/speller/Makefile modules/speller/default/Makefile interfaces/Makefile interfaces/cc/Makefile scripts/Makefile examples/Makefile prog/Makefile manual/Makefile po/Makefile.in m4/Makefile modules/filter/Makefile myspell/Makefile lib5/Makefile"
fa09cd
+ac_config_files="$ac_config_files Makefile gen/Makefile common/Makefile lib/Makefile data/Makefile auto/Makefile modules/Makefile modules/tokenizer/Makefile modules/speller/Makefile modules/speller/default/Makefile interfaces/Makefile interfaces/cc/Makefile aspell.pc scripts/Makefile examples/Makefile prog/Makefile manual/Makefile po/Makefile.in m4/Makefile modules/filter/Makefile myspell/Makefile lib5/Makefile"
fa09cd
 
fa09cd
 cat >confcache <<\_ACEOF
fa09cd
 # This file is a shell script that caches the results of configure
fa09cd
@@ -19985,7 +19985,7 @@ do
fa09cd
     "modules/filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/filter/Makefile" ;;
fa09cd
     "myspell/Makefile") CONFIG_FILES="$CONFIG_FILES myspell/Makefile" ;;
fa09cd
     "lib5/Makefile") CONFIG_FILES="$CONFIG_FILES lib5/Makefile" ;;
fa09cd
-
fa09cd
+    "aspell.pc" ) CONFIG_FILES="$CONFIG_FILES aspell.pc" ;;
fa09cd
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
fa09cd
 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
fa09cd
    { (exit 1); exit 1; }; };;
fa09cd
diff -up aspell-0.60.6.1/Makefile.in.mlib aspell-0.60.6.1/Makefile.in
fa09cd
--- aspell-0.60.6.1/Makefile.in.mlib	2011-08-16 11:20:09.000000000 +0200
fa09cd
+++ aspell-0.60.6.1/Makefile.in	2011-08-16 11:46:30.643236786 +0200
fa09cd
@@ -816,6 +816,8 @@ clean-filterLTLIBRARIES:
fa09cd
 	done
fa09cd
 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
fa09cd
 	@$(NORMAL_INSTALL)
fa09cd
+	mkdir -p $(libdir)/pkgconfig; \
fa09cd
+	cp aspell.pc $(libdir)/pkgconfig/aspell.pc; \
fa09cd
 	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
fa09cd
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
fa09cd
 	  if test -f $$p; then \
fa09cd
diff -up aspell-0.60.6.1/scripts/mkconfig.mlib aspell-0.60.6.1/scripts/mkconfig
fa09cd
--- aspell-0.60.6.1/scripts/mkconfig.mlib	2004-01-03 13:06:24.000000000 +0100
fa09cd
+++ aspell-0.60.6.1/scripts/mkconfig	2011-08-16 11:42:46.810519200 +0200
fa09cd
@@ -15,7 +15,7 @@ case \$1 in
fa09cd
   echo "$2"
fa09cd
   ;;
fa09cd
 --pkgdatadir | pkgdatadir)
fa09cd
-  echo "$3"
fa09cd
+  pkg-config aspell --variable=pkgdatadir
fa09cd
   ;;
fa09cd
 *)
fa09cd
   echo "usage: pspell-config version|datadir|pkgdatadir"
fa09cd
--- /dev/null	2007-01-02 09:09:01.616000852 +0100
fa09cd
+++ aspell-0.60.6.1/aspell.pc.in	2007-01-02 14:59:04.000000000 +0100
fa09cd
@@ -0,0 +1,12 @@
fa09cd
+prefix=@prefix@
fa09cd
+exec_prefix=@exec_prefix@
fa09cd
+libdir=@libdir@
fa09cd
+includedir=@includedir@
fa09cd
+pkgdatadir=@pkgdatadir@
fa09cd
+
fa09cd
+Name: Aspell
fa09cd
+Description: A spelling checker.
fa09cd
+Version: @VERSION@
fa09cd
+Requires: 
fa09cd
+Libs: -L${libdir} -laspell
fa09cd
+Cflags: -I${includedir}