summaryrefslogtreecommitdiff
path: root/gl/modules
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-09-10 16:38:03 +0200
committerJim Meyering <meyering@redhat.com>2012-09-11 11:23:00 +0200
commit640fb7a108eec6242c85481fbc0093f67147918b (patch)
tree047709e86b198b5cbc9cb7ad968ab52c90da3b18 /gl/modules
parent40e8affc16740e79713de7d929fcd594ce4fb87f (diff)
downloadcoreutils-640fb7a108eec6242c85481fbc0093f67147918b.tar.xz
build: new module to convert lib/ to non-recursive make
* gl/modules/non-recursive-gnulib-prefix-hack: New module. * gl/m4/non-recursive-gnulib-prefix-hack.m4: (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): This is the snippet that this module inserts near the end of configure. * gl/build-aux/prefix-gnulib-mk: New script, from bison. Changes from the code in bison: (prefix_assignment): Split a long line. (prefix): Add trailing slashes to avoid a single false match. Prefix imaxtostr.c and the other *tostr.c file names manually. Also, use $prefix in place of hard-coded "lib/".
Diffstat (limited to 'gl/modules')
-rw-r--r--gl/modules/non-recursive-gnulib-prefix-hack25
1 files changed, 25 insertions, 0 deletions
diff --git a/gl/modules/non-recursive-gnulib-prefix-hack b/gl/modules/non-recursive-gnulib-prefix-hack
new file mode 100644
index 000000000..26cd9149c
--- /dev/null
+++ b/gl/modules/non-recursive-gnulib-prefix-hack
@@ -0,0 +1,25 @@
+Description:
+Compute a good buffer size for dealing with two files.
+
+Files:
+build-aux/prefix-gnulib-mk
+m4/non-recursive-gnulib-prefix-hack.m4
+
+Depends-on:
+
+configure.ac:
+dnl Run our hack near the end, just before config.status creation.
+dnl It must happen late, i.e., after gl_LIBOBJS has been finalized.
+AC_CONFIG_COMMANDS_PRE([
+ gl_NON_RECURSIVE_GNULIB_PREFIX_HACK([lib])
+ ])
+
+Makefile.am:
+
+Include:
+
+License:
+unlimited
+
+Maintainer:
+Jim Meyering