version 1.1.2.4, 2014/08/04 23:45:37 |
version 1.5, 2014/08/04 23:44:29 |
Line 20 exec > config.h 2> config.log |
|
Line 20 exec > config.h 2> config.log |
|
CFLAGS="${CFLAGS} -Wno-unused -Werror" |
CFLAGS="${CFLAGS} -Wno-unused -Werror" |
|
|
runtest() { |
runtest() { |
echo ${CC} ${CFLAGS} -o test-${1} test-${1}.c 1>&2 |
echo ${CC} ${CFLAGS} ${3} -o test-${1} test-${1}.c 1>&2 |
${CC} ${CFLAGS} -o "test-${1}" "test-${1}.c" 1>&2 || return 0 |
${CC} ${CFLAGS} ${3} -o "test-${1}" "test-${1}.c" 1>&2 || return 0 |
"./test-${1}" && echo "#define HAVE_${2}" \ |
"./test-${1}" && echo "#define HAVE_${2}" \ |
|| echo FAILURE: test-${1} returned $? 1>&2 |
|| echo FAILURE: test-${1} returned $? 1>&2 |
rm "test-${1}" |
rm "test-${1}" |
|
|
cat config.h.pre |
cat config.h.pre |
echo |
echo |
echo "#define VERSION \"${VERSION}\"" |
echo "#define VERSION \"${VERSION}\"" |
runtest betoh64 BETOH64 |
|
runtest fgetln FGETLN |
runtest fgetln FGETLN |
runtest getsubopt GETSUBOPT |
runtest getsubopt GETSUBOPT |
runtest mmap MMAP |
runtest mmap MMAP |
|
runtest ohash OHASH -lutil |
runtest reallocarray REALLOCARRAY |
runtest reallocarray REALLOCARRAY |
runtest strcasestr STRCASESTR |
runtest strcasestr STRCASESTR |
runtest strlcat STRLCAT |
runtest strlcat STRLCAT |