/[hydra]/hydra/configure.in
ViewVC logotype

Diff of /hydra/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by nmav, Sun Oct 13 14:26:26 2002 UTC revision 1.25 by nmav, Mon Oct 21 18:46:25 2002 UTC
# Line 4  AC_PREREQ(2.50) Line 4  AC_PREREQ(2.50)
4    
5  AC_INIT  AC_INIT
6    
7    AC_CANONICAL_HOST
8    
9  SERVER_VERSION="0.0.8"  SERVER_VERSION="0.0.8"
10  AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra])  AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra])
11  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])
# Line 304  AC_ARG_WITH(efence, Line 306  AC_ARG_WITH(efence,
306    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
307  ])  ])
308    
309    case $host_os in
310     *linux*)
311       AC_MSG_CHECKING(whether to enable the use of the sendfile(2) system call)
312       AC_ARG_ENABLE(sendfile,
313        [  --disable-sendfile      disable the use of the sendfile(2) system call],
314        [
315          if test "$enableval" = "no" ; then
316            AC_MSG_RESULT(no)
317          else
318            AC_MSG_RESULT(yes)
319            AC_CHECK_HEADERS(sys/sendfile.h)
320            AC_CHECK_FUNCS(sendfile)
321          fi
322        ],
323        [
324          AC_MSG_RESULT(yes)
325          AC_CHECK_HEADERS(sys/sendfile.h)
326          AC_CHECK_FUNCS(sendfile)
327        ])
328      ;;
329     *) ;;
330    esac
331    
332    POLL_OR_SELECT
333    
334    if test "$BOA_ASYNC_IO" = "poll"; then
335      AC_DEFINE( USE_POLL, 1, [whether to use poll])
336    fi
337    AC_SUBST(ASYNCIO_SOURCE)
338    
339    # there are three scenarios
340    # GNU make is installed as "make"
341    # GNU make is installed as something else we detected
342    # GNU make is not installed
343    # Unfortunately, we can't deal with it one way or the other
344    # Trying multiple AC_OUTPUT confuses autoconf, and using variables
345    # *in* AC_OUTPUT is even worse.
346    # *so*, make a default makefile that just forces make to call gmake
347    # or whatever.
348    
349  AC_CONFIG_FILES([Makefile src/Makefile contrib/Makefile examples/Makefile docs/Makefile])  AC_CONFIG_FILES([Makefile src/Makefile contrib/Makefile examples/Makefile docs/Makefile])
350    
351  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26