public
Description: A libevent based webserver that is somewhat compliant with mochiweb.
Homepage:
Clone URL: git://github.com/ngerakines/mochevent.git
ngerakines (author)
Tue Jun 16 12:03:12 -0700 2009
commit  f526222357308b580835ad1bc61362a50ed1251b
tree    173741e9e17dcec0a684097aaa4ad5a3a4347bf4
parent  9a96fe5cf9f0f5b5f2d0a73eae5c223d670795ea
mochevent / configure.in
100644 41 lines (29 sloc) 1.277 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
 
AC_PREREQ(2.60)
AC_INIT(basic_driver, 0.0.1)
 
# Checks for programs.
AC_PROG_CC
AC_PATH_PROG(ERL, erl)
AC_PATH_PROG(ERLC, erlc)
#
 
ERLDIR=`awk -F= '/ROOTDIR=/ { print [$]2; exit; }' $ERL`
AC_SUBST(ERL)
AC_SUBST(ERLC)
AC_SUBST(ERLBINDIR)
AC_SUBST(ERLDIR)
 
ERL_INTERFACE=`ls ${ERLDIR}/lib | grep erl_interface | tail -n 1`
 
ERTSBASE="`$ERL -noshell -noinput -eval 'io:format (\"~s\", [[ \"/\" ++ filename:join (lists:reverse ([ \"erts-\" ++ erlang:system_info (version) | tl (lists:reverse (string:tokens (code:lib_dir (), \"/\"))) ])) ]]).' -s erlang halt `"
AC_SUBST(ERTSBASE)
 
CPPFLAGS="$CPPFLAGS -I ${ERTSBASE}/include -I ${ERLDIR}/lib/${ERL_INTERFACE}/include -L${ERLDIR}/lib/${ERL_INTERFACE}/lib/ -Wall -fPIC -I./"
 
LIBEI="${ERLDIR}/lib/${ERL_INTERFACE}/lib/libei.a"
AC_SUBST(LIBEI)
# Checks for header files.
AC_CHECK_HEADERS([])
 
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
 
# Checks for library functions.
AC_HEADER_STDC
 
AC_ARG_ENABLE(enable_64bit, [ --enable-64bit enable 64bit build (needed on some OS X systems) [[default=no]]])
AC_SUBST(enable_64bit)
 
AC_OUTPUT([c/Makefile Makefile])