Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/mdocml/dist - Don't look for tests in the local...



details:   https://anonhg.NetBSD.org/src/rev/85129be4ce2c
branches:  trunk
changeset: 812706:85129be4ce2c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 27 22:26:19 2015 +0000

description:
- Don't look for tests in the local directory, we might be running this from
  somewhere else.
- Clear MAKEFLAGS so that make(1) behaves as it is supposed to.

diffstat:

 external/bsd/mdocml/dist/configure |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r aff0c39dc50e -r 85129be4ce2c external/bsd/mdocml/dist/configure
--- a/external/bsd/mdocml/dist/configure        Sun Dec 27 21:42:09 2015 +0000
+++ b/external/bsd/mdocml/dist/configure        Sun Dec 27 22:26:19 2015 +0000
@@ -15,6 +15,7 @@
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 set -e
+DIR="`dirname "$0"`"
 
 [ -e config.log ] && mv config.log config.log.old
 [ -e config.h   ] && mv config.h config.h.old
@@ -32,6 +33,7 @@
 # such that nothing can leak in from the environment.
 
 OSNAME=
+MAKEFLAGS=
 
 CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | make -f -`
 CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
@@ -127,7 +129,7 @@
 ${COMP} ${3} -o test-${1} test-${1}.c
 __HEREDOC__
 
-       if ${COMP} ${3} -o "test-${1}" "test-${1}.c" 1>&3 2>&3; then
+       if ${COMP} ${3} -o "test-${1}" "${DIR}/test-${1}.c" 1>&3 2>&3; then
                echo "${1}: ${CC} succeeded" 1>&3
        else
                echo "${1}: ${CC} failed with $?" 1>&3



Home | Main Index | Thread Index | Old Index