From a4ede8f85b0c9a254fcb01e5888cee1983095669 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 25 Dec 2018 08:19:50 +0100 Subject: package: make bison a relocatable package Suggested by David Barto https://lists.gnu.org/archive/html/help-bison/2015-02/msg00004.html and Victor Zverovich. https://lists.gnu.org/archive/html/bison-patches/2018-10/msg00121.html This is very easy to do, thanks to work by Bruno Haible in gnulib. See "Supporting Relocation" in gnulib's documentation. * bootstrap.conf: We need relocatable-prog and relocatable-script (for yacc). * src/yacc.in: New. * configure.ac, src/local.mk: Instantiate it. * src/main.c, src/output.c (main, pkgdatadir): Use relocatable2. * doc/bison.texi (FAQ): Document it. --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 61b07ca1..a1247eae 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,7 @@ AC_ARG_ENABLE([yacc], [do not build a yacc command or an -ly library])], , [enable_yacc=yes]) AM_CONDITIONAL([ENABLE_YACC], [test "$enable_yacc" = yes]) +AC_CONFIG_FILES([src/yacc], [chmod +x src/yacc]) # Checks for programs. AM_MISSING_PROG([DOT], [dot]) -- cgit v1.2.1