Create libfl.pc target for pkgconfig
authorTyler Slabinski <tslabinski@slabity.net>
Thu, 24 Aug 2017 01:33:51 +0000 (21:33 -0400)
committerWill Estes <westes575@gmail.com>
Thu, 24 Aug 2017 11:52:13 +0000 (07:52 -0400)
Makefile.am
configure.ac
libfl.pc.in [new file with mode: 0644]

index 638c54964f01cf781db6d756993925a7b45ef3c1..e790e9d36c7e67fede12f2cba20ff67b7df1a7aa 100644 (file)
@@ -49,6 +49,9 @@ SUBDIRS = \
        tests \
        tools
 
+pkgconfigdir = @pkgconfigdir@
+pkgconfig_DATA = libfl.pc
+
 # Create the ChangeLog, but only if we're inside a git working directory
 
 ChangeLog: $(srcdir)/tools/git2cl
index d9aab34487503cbe646035a01924ed8173846170..88820165303eba9e3f1213880fcc9d4963ca6d4f 100644 (file)
@@ -54,6 +54,9 @@ AC_PROG_LN_S
 AC_PROG_AWK
 AC_PROG_INSTALL
 
+pkgconfigdir=${libdir}/pkgconfig
+AC_SUBST(pkgconfigdir)
+
 # allow passing a variable `WARNINGFLAGS',
 #   either when invoking `configure', or when invoking `make'
 # default to something useful if GCC was detected
@@ -180,6 +183,7 @@ po/Makefile.in
 src/Makefile
 tools/Makefile
 tests/Makefile
+libfl.pc
 )
 
 AC_OUTPUT
diff --git a/libfl.pc.in b/libfl.pc.in
new file mode 100644 (file)
index 0000000..058c089
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libfl
+Description: The fast lexical analyser
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lfl
+Cflags: -I${includedir}
\ No newline at end of file