Revision ea4779e1

View differences:

Makefile.am
1 1
SUBDIRS = . tests
2
AUTOMAKE_OPTIONS = foreign no-dist no-installinfo
3

  
2 4

  
3 5
INCLUDES = -I$(top_srcdir)/include/  #-I$(top_srcdir)/dclog
4 6
noinst_LIBRARIES = libml.a
autoclean.sh
1
#!/bin/sh
2
[ -r Makefile ] && make distclean
3
rm -rf config config.log config.status aclocal.m4 configure m4 Makefile.in autom4te.cache
4
rm -f */Makefile.in tests/Makefile.in
5
rm -rf doxygen
6

  
autogen.sh
1
#!/bin/sh
2
mkdir -p m4 config
3
autoreconf --force -I config -I m4 --install
4

  
configure.ac
1
dnl Process this file with autoconf to produce a configure script.
2
AC_INIT([ML], [0.1], [kiraly@disi.unitn.it])
3

  
4
AM_INIT_AUTOMAKE
5

  
6
AC_PROG_CC
7
AC_PROG_RANLIB
8
AC_LANG_C
9

  
10
AC_ARG_WITH(libevent2, [  --with-libevent2=libevent2_dir use libevent2 in dir])
11
if test "$with_libevent2" == "yes"
12
then
13
	AC_MSG_ERROR([missing directory specification after --libevent2])
14
	exit -1
15
fi
16
if test -d "$with_libevent2"
17
then
18
	CFLAGS="$CFLAGS -I$with_libevent2/include"
19
	CPPFLAGS="$CPPFLAGS -I$with_libevent2/include"
20
	LDFLAGS="$LDFLAGS -L$with_libevent2/lib"
21
fi
22

  
23
AC_CHECK_HEADER(event2/util.h)
24
if test "$ac_cv_header_libevent_h" == no
25
then
26
	AC_MSG_ERROR([libevent2 seems to be missing, unable to continue])
27
	exit -1
28
fi
29

  
30
AC_CHECK_LIB(event, event_init)
31
if test $ac_cv_lib_event_event_init == no
32
then
33
	AC_MSG_ERROR([libevent2 seems to be missing, unable to continue])
34
	exit -1
35
fi
36

  
37
AC_OUTPUT( [ Makefile \
38
	tests/Makefile ] )
39

  

Also available in: Unified diff