|
|
65814f |
diff --git a/Makefile.in b/Makefile.in
|
|
|
65814f |
index e5d2b1a..bc53e34 100644
|
|
|
65814f |
--- a/Makefile.in
|
|
|
65814f |
+++ b/Makefile.in
|
|
|
65814f |
@@ -1019,6 +1019,8 @@ clean-filterLTLIBRARIES:
|
|
|
65814f |
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
|
|
65814f |
@$(NORMAL_INSTALL)
|
|
|
65814f |
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
|
|
65814f |
+ mkdir -p $(DESTDIR)$(libdir)/pkgconfig; \
|
|
|
65814f |
+ cp aspell.pc $(DESTDIR)$(libdir)/pkgconfig/aspell.pc; \
|
|
|
65814f |
list2=; for p in $$list; do \
|
|
|
65814f |
if test -f $$p; then \
|
|
|
65814f |
list2="$$list2 $$p"; \
|
|
|
65814f |
diff --git a/aspell.pc.in b/aspell.pc.in
|
|
|
65814f |
new file mode 100644
|
|
|
65814f |
index 0000000..13da044
|
|
|
65814f |
--- /dev/null
|
|
|
65814f |
+++ b/aspell.pc.in
|
|
|
65814f |
@@ -0,0 +1,12 @@
|
|
|
65814f |
+prefix=@prefix@
|
|
|
65814f |
+exec_prefix=@exec_prefix@
|
|
|
65814f |
+libdir=@libdir@
|
|
|
65814f |
+includedir=@includedir@
|
|
|
65814f |
+pkgdatadir=@pkgdatadir@
|
|
|
65814f |
+
|
|
|
65814f |
+Name: Aspell
|
|
|
65814f |
+Description: A spelling checker.
|
|
|
65814f |
+Version: @VERSION@
|
|
|
65814f |
+Requires:
|
|
|
65814f |
+Libs: -L${libdir} -laspell
|
|
|
65814f |
+Cflags: -I${includedir}
|
|
|
65814f |
diff --git a/configure b/configure
|
|
|
65814f |
index 8a6e697..995a3df 100755
|
|
|
65814f |
--- a/configure
|
|
|
65814f |
+++ b/configure
|
|
|
65814f |
@@ -18732,7 +18732,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
65814f |
# #
|
|
|
65814f |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
65814f |
|
|
|
65814f |
-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"
|
|
|
65814f |
+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"
|
|
|
65814f |
|
|
|
65814f |
cat >confcache <<\_ACEOF
|
|
|
65814f |
# This file is a shell script that caches the results of configure
|
|
|
65814f |
@@ -19887,6 +19887,7 @@ do
|
|
|
65814f |
"modules/filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/filter/Makefile" ;;
|
|
|
65814f |
"myspell/Makefile") CONFIG_FILES="$CONFIG_FILES myspell/Makefile" ;;
|
|
|
65814f |
"lib5/Makefile") CONFIG_FILES="$CONFIG_FILES lib5/Makefile" ;;
|
|
|
65814f |
+ "aspell.pc") CONFIG_FILES="$CONFIG_FILES aspell.pc" ;;
|
|
|
65814f |
|
|
|
65814f |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
|
|
65814f |
esac
|
|
|
65814f |
diff --git a/scripts/mkconfig b/scripts/mkconfig
|
|
|
65814f |
index 608e3f7..f15f31c 100755
|
|
|
65814f |
--- a/scripts/mkconfig
|
|
|
65814f |
+++ b/scripts/mkconfig
|
|
|
65814f |
@@ -15,7 +15,7 @@ case \$1 in
|
|
|
65814f |
echo "$2"
|
|
|
65814f |
;;
|
|
|
65814f |
--pkgdatadir | pkgdatadir)
|
|
|
65814f |
- echo "$3"
|
|
|
65814f |
+ pkg-config aspell --variable=pkgdatadir
|
|
|
65814f |
;;
|
|
|
65814f |
*)
|
|
|
65814f |
echo "usage: pspell-config version|datadir|pkgdatadir"
|