build: Honor configure's --includedir. Thanks, Vagrant!
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 13 Nov 2019 08:23:27 +0000 (09:23 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 13 Nov 2019 08:23:27 +0000 (09:23 +0100)
Suggested by Vagrant Cascadian

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=902174#84

* build-aux/install.sh.in: Install headers in $includedir.
* configure (includedir): Typo.
* configure.sh (includedir): Likewise.

build-aux/install.sh.in
configure
configure.sh

index 508434e2a5e9258ef38155a83c21b826ec041607..03d779e45a331c02e059b6f27a691b934c7a727e 100644 (file)
@@ -77,11 +77,13 @@ else
     cp $_v ChangeLog ${DESTDIR}${docdir}
 fi
 
+mkdir -p $DESTDIR$includedir
 mkdir -p $DESTDIR$libdir
 mkdir -p $DESTDIR$pkgdatadir
 # rm -f $(find lib -type f -a -executable)
 # rm -f $(find scaffold -type f -a -executable)
-tar -cf- -C ${srcdir} include lib/$mes_cpu-mes | tar -${v}xf- -C $DESTDIR$prefix
+tar -cf- -C ${srcdir}/include . | tar -${v}xf- -C $DESTDIR$includedir
+tar -cf- -C ${srcdir}/lib $mes_cpu-mes | tar -${v}xf- -C $DESTDIR$libdir
 if test -z "$srcdest"; then
     tar -cf- --exclude='*.go' module | tar -${v}xf- -C $DESTDIR$pkgdatadir
 else
index 1154adea400c5fc8c4f6b011334e0bfa5626b0af..283e9602f143189e3b4ddec289816c451dc9a58d 100755 (executable)
--- a/configure
+++ b/configure
@@ -383,7 +383,7 @@ Some influential environment variables:
          (bindir (option-ref options 'bindir "${prefix}/bin"))
          (datadir (option-ref options 'datadir "${prefix}/share"))
          (docdir (option-ref options 'docdir "${datadir}/doc/mes-${VERSION}"))
-         (includedir (option-ref options 'libdir "${prefix}/include"))
+         (includedir (option-ref options 'includedir "${prefix}/include"))
          (libdir (option-ref options 'libdir "${prefix}/lib"))
          (pkgdatadir (string-append datadir "/mes"))
          (guile-effective-version (effective-version))
index 4f8b6077f1ded5eee79f2a2cc712646a0a900127..2415edd6b59b5a3ce6627c1660c474774ad99931 100755 (executable)
@@ -126,7 +126,7 @@ bindir=$(eval echo ${bindir-$prefix/bin})
 datadir=$(eval echo ${datadir-$prefix/share})
 docdir=$(eval echo ${docdir-$datadir/doc/mes-$VERSION})
 infodir=$(eval echo ${infodir-$datadir/info})
-includedir=$(eval echo ${libdir-$prefix/include})
+includedir=$(eval echo ${includedir-$prefix/include})
 libdir=$(eval echo ${libdir-$prefix/lib})
 pkgdatadir=$(eval echo ${pkgdatadir-$datadir/mes})
 mandir=$(eval echo ${mandir-$datadir/man})