3 dnl Copyright (C) 2006, 2007 Elfyn McBratney.
4 dnl All rights reserved.
6 dnl This file is part of eruntime.
10 dnl eruntime is free software; you can redistribute it and/or modify
11 dnl it under the terms of the GNU General Public License, version 2,
12 dnl as published by the Free Software Foundation.
14 dnl eruntime is distributed in the hope that it will be useful, but
15 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
16 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 dnl GNU General Public License for more details.
19 dnl You should have received a copy of the GNU General Public License
20 dnl along with eruntime; if not, write to:
22 dnl Free Software Foundation, Inc.
25 dnl Boston, MA 02111-1307
30 dnl Elfyn McBratney <elfyn.mcbratney@gmail.com>
35 AC_INIT([eruntime], [0.9.1-pre], [eircd-bugs@lists.berlios.de])
37 AC_CONFIG_SRCDIR([HISTORY])
38 AC_CONFIG_HEADER([include/eruntime/config.h])
40 dnl {{{ ---- [ Checks for programs ] -------------------------------------------
43 echo -e "Checking for programs"
51 dnl }}} ---- [ Checks for programs ] -------------------------------------------
53 dnl {{{ ---- [ Checks for headers ] --------------------------------------------
56 echo "Checking for headers..."
61 dnl }}} ---- [ Checks for headers ] --------------------------------------------
63 dnl {{{ ---- [ Checks for typedefs, structures, and compiler characteristics ] -
66 echo "Checking for typedefs, structures, and compiler characteristics..."
74 dnl }}} ---- [ Checks for typedefs, structures, and compiler characteristics ] -
76 dnl {{{ ---- [ Checks for library functions ] ----------------------------------
79 echo "Checking for library functions..."
86 AC_CHECK_LIB([dl], [dlopen], [LIBS="$LIBS -ldl"], [
87 AC_CHECK_FUNC([dlopen],, [
88 AC_MSG_ERROR([function dlopen() not found in -ldl/-lc])
92 #AC_CHECK_LIB([pthread], [pthread_create], [
93 # CFLAGS="-pthread $CFLAGS"
94 # DEFS="$DEFS -D_REENTRANT"
95 # LIBS="$LIBS -lpthread"
97 # AC_MSG_ERROR([function pthread_create() not found in -lpthread])
100 #AC_CHECK_LIB([rt], [timer_create], [LIBS="$LIBS -lrt"], [
101 # AC_MSG_ERROR([function timer_create() not found in -lrt])
104 dnl }}} ---- [ Checks for library functions ] ----------------------------------
106 INC='-I${topdir} -I${topdir}/include -include eruntime/features.h'
109 dnl {{{ ---- [ Output files ] ----------------------------------------------------
112 echo "Generating output files..."
120 dnl }}} ---- [ Output files ] ----------------------------------------------------
123 echo "Configuration complete"
127 dnl vim: ts=8 sw=8 noet fdm=marker tw=80