summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-06-20 02:55:49 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-06-20 02:55:49 +0000
commita4a99ead8f4064682c6de4025c80bc6c740371d7 (patch)
tree8eb25277152d9a8457f5514dc3a10a66ae0c6a8b /configure
parenteba6027fcfdb6ebbc2c0df6c4f4d9660c72a3238 (diff)
downloadmandoc-a4a99ead8f4064682c6de4025c80bc6c740371d7.tar.gz
let the build system cope with the recent ohash changes
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 1e4788c9..5ddaec1a 100755
--- a/configure
+++ b/configure
@@ -20,8 +20,8 @@ exec > config.h 2> config.log
CFLAGS="${CFLAGS} -Wno-unused -Werror"
runtest() {
- echo ${CC} ${CFLAGS} -o test-${1} test-${1}.c 1>&2
- ${CC} ${CFLAGS} -o "test-${1}" "test-${1}.c" 1>&2 || return 0
+ echo ${CC} ${CFLAGS} ${3} -o test-${1} test-${1}.c 1>&2
+ ${CC} ${CFLAGS} ${3} -o "test-${1}" "test-${1}.c" 1>&2 || return 0
"./test-${1}" && echo "#define HAVE_${2}" \
|| echo FAILURE: test-${1} returned $? 1>&2
rm "test-${1}"
@@ -33,7 +33,7 @@ echo "#define VERSION \"${VERSION}\""
runtest fgetln FGETLN
runtest getsubopt GETSUBOPT
runtest mmap MMAP
-runtest ohash OHASH
+runtest ohash OHASH -lutil
runtest reallocarray REALLOCARRAY
runtest strcasestr STRCASESTR
runtest strlcat STRLCAT