diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-17 14:40:28 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-17 14:40:28 +0000 |
commit | 30a0b8a6f066c4b559b83b32c417ab32e86a700d (patch) | |
tree | 521c1c7049d3119d58157d645711d3ddd1893571 /configure | |
parent | 0d80df65359b9d2c8098f97712722f3889143c77 (diff) | |
download | mandoc-30a0b8a6f066c4b559b83b32c417ab32e86a700d.tar.gz mandoc-30a0b8a6f066c4b559b83b32c417ab32e86a700d.tar.zst mandoc-30a0b8a6f066c4b559b83b32c417ab32e86a700d.zip |
Make the directory explicit where source files are located.
This is simple and seems to help the NetBSD build infrastructure.
From Christos Zoulas <christos at NetBSD>.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: configure,v 1.59 2017/02/16 16:09:33 schwarze Exp $ +# $Id: configure,v 1.60 2017/02/17 14:40:28 schwarze Exp $ # # Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> # @@ -33,6 +33,8 @@ echo "config.log: writing..." # Initialize all variables here, # such that nothing can leak in from the environment. +SOURCEDIR=`dirname "$0"` + MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man" OSNAME= UTF8_LOCALE= @@ -155,7 +157,8 @@ ${1}${3}: testing... ${COMP} -o test-${1} test-${1}.c ${3} __HEREDOC__ - if ${COMP} -o "test-${1}" "test-${1}.c" ${3} 1>&3 2>&3; then + if ${COMP} -o "test-${1}" "${SOURCEDIR}/test-${1}.c" ${3} 1>&3 2>&3 + then echo "${1}${3}: ${CC} succeeded" 1>&3 else echo "${1}${3}: ${CC} failed with $?" 1>&3 |