=================================================================== RCS file: /cvs/mandoc/configure,v retrieving revision 1.1.2.5 retrieving revision 1.9 diff -u -p -r1.1.2.5 -r1.9 --- mandoc/configure 2014/08/14 20:33:55 1.1.2.5 +++ mandoc/configure 2014/08/11 01:39:00 1.9 @@ -22,8 +22,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}" @@ -32,11 +32,13 @@ runtest() { cat config.h.pre echo echo "#define VERSION \"${VERSION}\"" -runtest betoh64 BETOH64 runtest fgetln FGETLN +runtest fts FTS runtest getsubopt GETSUBOPT runtest mmap MMAP +runtest ohash OHASH "${DBLIB}" runtest reallocarray REALLOCARRAY +runtest sqlite3_errstr SQLITE3_ERRSTR "${DBLIB}" runtest strcasestr STRCASESTR runtest strlcat STRLCAT runtest strlcpy STRLCPY