mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-09 10:32:53 +03:00
Now, PKG_CONFIG_PATH is not set to local version, hoping that the installed version works without version check. Added more debug output instead.
33 lines
853 B
Bash
Executable File
33 lines
853 B
Bash
Executable File
#! /bin/sh
|
|
|
|
if test "x$TESTS" = "xyes" -o "x$TESTS" = "xtrue" ; then
|
|
scripts/fix-cunit.sh
|
|
WITH_TESTS=--enable-tests
|
|
fi
|
|
|
|
config() {
|
|
echo "./configure $*"
|
|
./configure $* || cat config.log
|
|
}
|
|
|
|
case "${PLATFORM}" in
|
|
contiki) config "--disable-tests --disable-documentation --disable-examples" && \
|
|
make -C examples/contiki
|
|
;;
|
|
lwip) config "--disable-tests --disable-documentation --disable-examples" && \
|
|
make -C examples/lwip lwip lwip-contrib
|
|
make -C examples/lwip LDLIBS=`grep ac_cv_search_clock_gettime=- config.log|cut -d= -f2`
|
|
;;
|
|
posix|*) config "$WITH_TESTS --enable-documentation --enable-examples" && \
|
|
make
|
|
;;
|
|
esac
|
|
|
|
err=$?
|
|
if test $err = 0 -a -n "$WITH_TESTS" ; then
|
|
tests/testdriver
|
|
err=$?
|
|
fi
|
|
|
|
exit $err
|