summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2005-11-15 23:55:14 +0000
committerThomas Schwinge <tschwinge@gnu.org>2005-11-15 23:55:14 +0000
commitadfeb0b0491d3b625998200931d21b0f3f79bc06 (patch)
treec010db85c7bc532921b38650c34579a3771097c9
parent4be190f7bdb1268b9facf29e31c36be65a4be432 (diff)
Copy FUSE's `fuse.pc.in' and handle it correctly.
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac4
-rw-r--r--fuse.pc.in10
3 files changed, 17 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index e3b7be29d..e2dfa0eba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,3 +16,8 @@ libfuse_la_SOURCES = \
node.c
libfuse_la_LDFLAGS = -version-number 0:0:1
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = fuse.pc
+
+$(pkgconfig_DATA): config.status
diff --git a/configure.ac b/configure.ac
index 7dca028a6..912007e85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@
AC_PREREQ(2.59)
AC_INIT(libfuse, 0.1, hurdextras-hackers@nongnu.org)
-AC_REVISION($Revision: 1.3 $)
+AC_REVISION($Revision: 1.4 $)
AC_CONFIG_SRCDIR(main.c)
AM_CONFIG_HEADER(config.h)
@@ -39,5 +39,5 @@ CFLAGS="$CFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -ggdb"
# Checks for library functions.
-AC_CONFIG_FILES([Makefile example/Makefile example-22/Makefile])
+AC_CONFIG_FILES([fuse.pc Makefile example/Makefile example-22/Makefile])
AC_OUTPUT
diff --git a/fuse.pc.in b/fuse.pc.in
new file mode 100644
index 000000000..669d33f7e
--- /dev/null
+++ b/fuse.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: fuse
+Description: Filesystem in Userspace
+Version: @VERSION@
+Libs: -L${libdir} -lfuse -lpthread
+Cflags: -I${includedir}/fuse -D_FILE_OFFSET_BITS=64