fi
done
+
+
if test "$mingw32" != yes -a "$pthread" = no; then
echo
echo "Error: pthread check failed"
eventfd=yes
fi
+# check if mq_open is supported
+mq_open=no
+cat > $TMPC << EOF
+#include <mqueue.h>
+
+int main(void)
+{
+ mqd_t mq = mq_open("", 0);
+ return 0;
+}
+EOF
+if compile_prog "" "" ; then
+ mq_open=yes
+fi
+
# Check if tools are available to build documentation.
if test "$docs" != "no" ; then
if test -x "`which texi2html 2>/dev/null`" -a \
if test "$static" = "yes" ; then
echo "CONFIG_STATIC=y" >> $config_host_mak
LDFLAGS="-static $LDFLAGS"
+#scratchbox HACK - we need -lsb after -lpthread
+ LIBS="-L/scratchbox/tools/lib -lsb $LIBS"
fi
if test $profiler = "yes" ; then
echo "CONFIG_PROFILER=y" >> $config_host_mak
if test "$eventfd" = "yes" ; then
echo "CONFIG_EVENTFD=y" >> $config_host_mak
fi
+if test "$mq_open" = "yes" ; then
+ echo "CONFIG_MQ=y" >> $config_host_mak
+fi
if test "$inotify" = "yes" ; then
echo "CONFIG_INOTIFY=y" >> $config_host_mak
fi
if [ "$linux" = "yes" ] ; then
tools="qemu-nbd\$(EXESUF) qemu-io\$(EXESUF) $tools"
if [ "$check_utests" = "yes" ]; then
- tools="check-qint $tools"
+ tools="check-qint check-qstring check-qdict $tools"
fi
fi
fi