build: Debian make check and install fixes.

* configure (main): Oops, typo: mandir uses --infodir.
* build-aux/check.sh.in: Run check-mescc.sh with bash.
* build-aux/config.sh (CFLAGS, CPPFLAGS, HEX2FLAGS, LDFLAGS, M1FLAGS):
unset.
* build-aux/install.sh.in: Use BASHOPTS to check for bash; on Debian
dash is used and has $SHELL=/bin/bash.  Use ${DESTDIR}@...
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2019-05-15 15:18:38 +02:00 committed by Jan Nieuwenhuizen
parent e66f16aeb6
commit 9f4a4e47b2
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
5 changed files with 29 additions and 19 deletions

View file

@ -228,6 +228,16 @@ scaffold/tests/stdio/70-printf-simple
scaffold/tests/stdio/70-printf
lib/tests/setjmp/80-setjmp
scaffold/tests/a1-global-no-align
"
# Debian: debugme itoa is broken
broken="$broken
scaffold/tests/47-function-expression
scaffold/tests/62-array
scaffold/tests/65-read
scaffold/tests/85-sizeof
lib/tests/mes/90-abtod
lib/tests/mes/90-dtoab
lib/tests/posix/90-execlp
"
fi

View file

@ -26,7 +26,7 @@ set -e
./pre-inst-env bash ${srcdest}build-aux/check-boot.sh
./pre-inst-env sh ${srcdest}build-aux/check-mes.sh
./pre-inst-env sh ${srcdest}build-aux/check-mescc.sh
./pre-inst-env bash ${srcdest}build-aux/check-mescc.sh
if [ -d $TINYCC_PREFIX/tests/tests2 ] ;then
./pre-inst-env sh ${srcdest}build-aux/check-tcc.sh
fi

View file

@ -37,6 +37,12 @@ if [ ! "$CC" ]; then
CC="./pre-inst-env mescc"
fi
unset CFLAGS
unset CPPFLAGS
unset HEX2FLAGS
unset LDFLAGS
unset M1FLAGS
export AR
export CC
export CFLAGS

View file

@ -25,23 +25,23 @@ set -e
mes_prefix=@prefix@/share/mes
# use bash or lose if pipes fail
if [ "$(basename $SHELL)" = bash ]; then
if [ -n "$BASHOPTS" ]; then
set -o pipefail
fi
mkdir -p $DESTDIR@bindir@
mkdir -p ${DESTDIR}@bindir@
if [ -f src/x86-mes-mes ]; then
cp src/x86-mes-mes $DESTDIR@bindir@/mes
cp src/x86-mes-mes ${DESTDIR}@bindir@/mes
fi
cp scripts/mescc.scm $DESTDIR@bindir@/mescc.scm
cp scripts/mescc $DESTDIR@bindir@/mescc
cp scripts/mescc.scm ${DESTDIR}@bindir@/mescc.scm
cp scripts/mescc ${DESTDIR}@bindir@/mescc
sed \
-e "s,^#! /bin/sh,#! @SHELL@," \
scripts/diff.scm > $DESTDIR@bindir@/diff.scm
chmod +x $DESTDIR@bindir@/diff.scm
scripts/diff.scm > ${DESTDIR}@bindir@/diff.scm
chmod +x ${DESTDIR}@bindir@/diff.scm
mkdir -p $DESTDIR@docdir@
mkdir -p ${DESTDIR}@docdir@
if [ -n "@PERL@" ]\
&& [ -n "@GIT@" ]\
@ -58,18 +58,12 @@ cp\
INSTALL\
NEWS\
README\
$DESTDIR@docdir@
${DESTDIR}@docdir@
if [ -f ChangeLog ]; then
cp ChangeLog $DESTDIR@docdir@
cp ChangeLog ${DESTDIR}@docdir@
else
cp ChangeLog $DESTDIR@docdir@
fi
if [ -f ChangeLog ]; then
cp ChangeLog @docdir@
else
cp ChangeLog @docdir@
cp ChangeLog ${DESTDIR}@docdir@
fi
mkdir -p $DESTDIR$mes_prefix

2
configure vendored
View file

@ -370,7 +370,7 @@ Some influential environment variables:
(program-prefix (option-ref options 'program-prefix ""))
(program-suffix (option-ref options 'program-suffix ""))
(infodir (option-ref options 'infodir "${prefix}/share/info"))
(mandir (option-ref options 'infodir "${prefix}/share/man"))
(mandir (option-ref options 'mandir "${prefix}/share/man"))
(sysconfdir (option-ref options 'sysconfdir "${prefix}/etc"))
(bindir (option-ref options 'bindir "${prefix}/bin"))