Revision 3ce34dfb configure

b/configure
1322 1322
  pipe2=yes
1323 1323
fi
1324 1324

  
1325
# check if tee/splice is there. vmsplice was added same time.
1326
splice=no
1327
cat > $TMPC << EOF
1328
#define _GNU_SOURCE
1329
#include <unistd.h>
1330
#include <fcntl.h>
1331
#include <limits.h>
1332

  
1333
int main(void)
1334
{
1335
    int len, fd;
1336
    len = tee(STDIN_FILENO, STDOUT_FILENO, INT_MAX, SPLICE_F_NONBLOCK);
1337
    splice(STDIN_FILENO, NULL, fd, NULL, len, SPLICE_F_MOVE);
1338
    return 0;
1339
}
1340
EOF
1341
if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
1342
  splice=yes
1343
fi
1344

  
1325 1345
# Check if tools are available to build documentation.
1326 1346
if test "$build_docs" = "yes" -a \( ! -x "`which texi2html 2>/dev/null`" -o ! -x "`which pod2man 2>/dev/null`" \) ; then
1327 1347
  build_docs="no"
......
1725 1745
if test "$pipe2" = "yes" ; then
1726 1746
  echo "#define CONFIG_PIPE2 1" >> $config_h
1727 1747
fi
1748
if test "$splice" = "yes" ; then
1749
  echo "#define CONFIG_SPLICE 1" >> $config_h
1750
fi
1728 1751
if test "$inotify" = "yes" ; then
1729 1752
  echo "#define CONFIG_INOTIFY 1" >> $config_h
1730 1753
fi

Also available in: Unified diff