/[pdpsoft]/trunk/grid-mw-security/ees/configure.ac
ViewVC logotype

Contents of /trunk/grid-mw-security/ees/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1070 - (show annotations) (download)
Tue Nov 10 09:34:50 2009 UTC (12 years, 2 months ago) by aramv
File size: 4329 byte(s)
Added logic to clean up old versions of flex, added some comments to the evaluation manager callbacks
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([1.92])
5 AC_INIT([ees], [0.1], aramv@nikhef.nl)
6 AM_INIT_AUTOMAKE
7 #AC_CONFIG_SRCDIR([config.h.in])
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CONFIG_HEADERS([include/config.h])
10
11 # Checks for programs.
12 # needs to be called before AC_PROG_LIBTOOL
13 AC_LIBTOOL_DLOPEN
14 #AC_PROG_CXX
15 #AC_PROG_AWK
16 AC_PROG_CC
17 AM_PROG_CC_C_O
18 AC_PROG_CC_STDC
19 #AC_PROG_CC_C89
20 AC_PROG_CPP
21 AC_PROG_INSTALL
22 AC_PROG_LN_S
23 AC_PROG_MAKE_SET
24 AC_PROG_LEX
25 if test "$LEX" == ":" ; then
26 AC_MSG_ERROR([No lex program found])
27 else
28 if test "$LEX" == "flex" ; then
29 AC_DEFINE(HAVE_FLEX, 1,[Flex installed])
30 fi
31 fi
32 #AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
33
34 AC_PROG_YACC
35 if test "$YACC" != "bison -y"; then
36 AC_MSG_ERROR([No yacc program found])
37 fi
38
39 AC_PROG_LIBTOOL
40 #LT_INIT
41
42 # Checks for libraries.
43
44 # Checks for header files.
45 AC_HEADER_DIRENT
46 AC_HEADER_STDC
47 AC_CHECK_HEADERS([dlfcn.h malloc.h stddef.h stdarg.h stdio.h sys/dir.h stdlib.h string.h syslog.h wchar.h stdio.h linux/limits.h errno.h time.h sys/param.h])
48
49 # Checks for typedefs, structures, and compiler characteristics.
50 AC_C_CONST
51 AC_TYPE_SIZE_T
52
53 # Checks for library functions.
54 AC_FUNC_MALLOC
55 AC_FUNC_REALLOC
56 AC_CHECK_FUNCS([memset])
57 AC_CHECK_LIB([dl], [dlopen])
58
59 # SVN revision
60 SVN_REVISION=`svn info . | sed -ne "s/^Revision: \(.*\:\)\{0,1\}\(.*\)$/\2/p"`
61 AC_SUBST(SVN_REVISION)
62
63 # Checks Lex version
64 lex_version=`$LEX --version | sed -e "s/\(f\)lex\s\?//g"`
65 preferred_lex_version="2.5.9"
66
67 AC_MSG_CHECKING([for lex/flex version])
68 AC_MSG_RESULT($lex_version)
69
70 AX_COMPARE_VERSION([$preferred_lex_version], [le], [$lex_version], [enable_yylex_destroy="yes"], [enable_yylex_destroy="no"], [We can use yylex_destroy() to clean up the lexer.])
71 AM_CONDITIONAL([ENABLE_YYLEX_DESTROY], [test "x$enable_yylex_destroy" = "xyes"])
72
73 # Release version
74 AC_SUBST(MAJOR_VERSION,["0"])
75
76 # Doxygen options
77 DX_PDF_FEATURE(ON)
78 DX_HTML_FEATURE(ON)
79 DX_INIT_DOXYGEN(FULL-PACKAGE-NAME, doxygen.cfg, doc)
80
81 # Debug mode
82 debug_default=no
83 AC_MSG_CHECKING([whether to enable debugging])
84 AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug],[turn on debugging])],
85 [
86 AC_MSG_RESULT(yes)
87 enable_debug="yes"
88 ],[
89 AC_MSG_RESULT($debug_default)
90 enable_debug=$debug_default
91 ]
92 )
93
94 AM_MAINTAINER_MODE([enable])
95 # This is for the Makefile.am files
96 AM_CONDITIONAL([ENABLE_DEBUG], [test "x$enable_debug" = "xyes"])
97 AS_IF([test "x$enable_debug" = "xyes"], [
98 #AC_MSG_NOTICE("debugging enabled!")
99 AX_CHECK_COMPILER_FLAGS([-g], [CFLAGS="$CFLAGS -g"])
100 AX_CHECK_COMPILER_FLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb3"])
101 AX_CHECK_COMPILER_FLAGS([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
102 AX_CHECK_COMPILER_FLAGS([-Wbad-function-cast], [CFLAGS="$CFLAGS -Wbad-function-cast"])
103 AX_CHECK_COMPILER_FLAGS([-Wchar-subscripts], [CFLAGS="$CFLAGS -Wchar-subscripts"])
104 AX_CHECK_COMPILER_FLAGS([-Wno-long-long], [CFLAGS="$CFLAGS -Wno-long-long"])
105 AX_CHECK_COMPILER_FLAGS([-pedantic], [CFLAGS="$CFLAGS -pedantic"])
106 # This is for the C files.
107 AC_DEFINE(ENABLE_DEBUG, 1,[Debug enabled])
108 ], [
109 AX_CHECK_COMPILER_FLAGS([-O2], [CFLAGS="$CFLAGS -O2"])
110 AC_DEFINE(ENABLE_DEBUG, 0,[Debug disabled])
111 ])
112
113 AX_CHECK_COMPILER_FLAGS([-Wuninitialized], [CFLAGS="$CFLAGS -Wuninitialized"])
114 AX_CHECK_COMPILER_FLAGS([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"])
115 AX_CHECK_COMPILER_FLAGS([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"])
116 AX_CHECK_COMPILER_FLAGS([-Wcast-qual], [CFLAGS="$CFLAGS -Wcast-qual"])
117 AX_CHECK_COMPILER_FLAGS([-Winline], [CFLAGS="$CFLAGS -Winline"])
118 AX_CHECK_COMPILER_FLAGS([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
119 AX_CHECK_COMPILER_FLAGS([-Wpointer-arith], [CFLAGS="$CFLAGS -Wpointer-arith"])
120 AX_CHECK_COMPILER_FLAGS([-Wnested-externs], [CFLAGS="$CFLAGS -Wnested-externs"])
121 AX_CHECK_COMPILER_FLAGS([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
122 AX_CHECK_COMPILER_FLAGS([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"])
123 AX_CHECK_COMPILER_FLAGS([-std], [CFLAGS="$CFLAGS -std=c99"])
124 AX_CHECK_COMPILER_FLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
125
126 # Module directory
127 AX_DEFINE_DIR(MODULE_DIR, libdir/modules/, ["Module directory: $module_dir."])
128 AC_SUBST(MODULE_DIR)
129
130 # Dependant Makefiles
131 AC_CONFIG_FILES([ Makefile
132 src/Makefile
133 plugin_examples/Makefile
134 ])
135 AC_OUTPUT

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28