2 dnl Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 dnl This program is free software; you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation; either version 3 of the License, or
7 dnl (at your option) any later version.
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
13 dnl You should have received a copy of the GNU General Public License
14 dnl along with this program; if not, write to the Free Software
15 dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 dnl These aren't needed unless this is buult standalone. Currently Cygnal is
19 dnl built as part of Gnash, so this is included in the top level configure,.ac.
23 dnl AC_INIT(gnash, trunk)
24 dnl AC_CONFIG_SRCDIR(libcore/gnash.h)
25 dnl AM_CONFIG_HEADER(gnashconfig.h)
27 dnl AC_CANONICAL_BUILD
30 dnl dnl --------------------------------------------------------
31 dnl dnl Figure out development tool stuff
32 dnl dnl --------------------------------------------------------
40 dnl Build the cgibins server if specified.
41 AC_DEFUN([CYGNAL_PATHS],
44 AC_CHECK_HEADERS(poll.h sys/epoll.h)
46 dnl AC_CHECK_HEADERS(sys/sendfile)
47 AC_TRY_COMPILE([#include <sys/sendfile.h>], [
48 sendfile(0, 0, 0, 0); ],
52 if test x${has_sendfile} = xyes; then
53 AC_DEFINE(HAVE_SENDFILE, [1], [Has the Linux sendfile() system call])
56 dnl Look for the various ways of blocking while waiting for I/O
57 AC_CHECK_FUNCS(pselect ppoll)
59 AC_TRY_COMPILE([#include <fcntl.h>], [
60 splice(0, 0, 0, 0); ],
64 if test x${has_splice} = xyes; then
65 AC_DEFINE(HAVE_FCNTL_SPLICE, [1], [Has the Linux splice() system call])
68 AC_TRY_COMPILE([#include <fcntl.h>], [
73 if test x${has_tee} = xyes; then
74 AC_DEFINE(HAVE_FCNTL_TEE, [1], [Has the Linux tee() system call])