update copyright date
[gnash.git] / cygnal / acinclude.m4
blob277dd4d5915fc2df16d8eef1da4e9b3ae975864e
1 dnl  
2 dnl  Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
3 dnl  
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.
8 dnl  
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
16 dnl  
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.
20 dnl
22 dnl AC_PREREQ(2.50)
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
28 dnl AC_CANONICAL_HOST
30 dnl dnl --------------------------------------------------------
31 dnl dnl Figure out development tool stuff
32 dnl dnl --------------------------------------------------------
34 dnl AC_PROG_CC
35 dnl AC_PROG_CXX
36 dnl AC_EXEEXT
37 dnl AC_PROG_INSTALL
38 dnl AM_COMPILER_LIB
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); ],
49     has_sendfile=yes,
50     has_sendfile=no
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); ],
61     has_splice=yes,
62     has_splice=no
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>], [
69     tee(0, 0, 0, 0); ],
70     has_tee=yes,
71     has_tee=no
73 if test x${has_tee} = xyes; then
74    AC_DEFINE(HAVE_FCNTL_TEE, [1], [Has the Linux tee() system call])