/[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 525 - (show annotations) (download)
Wed Jul 15 08:55:01 2009 UTC (12 years, 10 months ago) by aramv
File size: 3276 byte(s)
Wored on parser, trying to fix memleaks
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.63])
5 #FULL-PACKAGE-NAME = ees
6 #VERSION = 0.1
7 #BUG-REPORT-ADDRESS = aramv@nikhef.nl
8 AC_INIT([ees], [0.1], aramv@nikhef.nl)
9 AM_INIT_AUTOMAKE
10 #AC_CONFIG_SRCDIR([config.h.in])
11 AC_CONFIG_MACRO_DIR([m4])
12 AC_CONFIG_HEADERS([ees_config.h])
13
14 # needs to be called before AC_PROG_LIBTOOL
15 AC_LIBTOOL_DLOPEN
16
17 # Checks for programs.
18 #AC_PROG_CXX
19 #AC_PROG_AWK
20 AC_PROG_CC
21 AM_PROG_CC_C_O
22 #AC_PROG_CC_C99
23 AC_PROG_CC_C89
24 AC_PROG_CPP
25 AC_PROG_INSTALL
26 AC_PROG_LN_S
27 AC_PROG_MAKE_SET
28 AC_PROG_LEX
29 AC_PROG_YACC
30 AC_PROG_LIBTOOL
31 #LT_INIT
32
33 # Checks for libraries.
34
35 # Checks for header files.
36 AC_HEADER_DIRENT
37 AC_HEADER_STDC
38 AC_CHECK_HEADERS([dlfcn.h malloc.h stddef.h stdlib.h string.h syslog.h wchar.h])
39
40 # Checks for typedefs, structures, and compiler characteristics.
41 AC_C_CONST
42 AC_TYPE_SIZE_T
43
44 # Checks for library functions.
45 AC_FUNC_MALLOC
46 AC_FUNC_REALLOC
47 AC_CHECK_FUNCS([memset])
48 AC_CHECK_LIB([dl], [dlopen])
49
50 # Sets SVN revision
51 SVN_REVISION=`svn info . | sed -ne "s/^Revision: \(.*\:\)\{0,1\}\(.*\)$/\2/p"`
52 AC_SUBST(SVN_REVISION,[$SVN_REVISION])
53 AC_SUBST(VERSION,[$SVN_REVISION])
54
55
56 DX_PDF_FEATURE(ON)
57 DX_HTML_FEATURE(ON)
58 DX_INIT_DOXYGEN(FULL-PACKAGE-NAME, doxygen.cfg, doc)
59
60 #debug_default=yes
61 debug_default=no
62 AC_MSG_CHECKING([whether to enable debugging])
63 AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug],[turn on debugging])],
64 [
65 AC_MSG_RESULT(yes)
66 enable_debug="yes"
67 ],[
68 AC_MSG_RESULT($debug_default)
69 enable_debug=$debug_default
70 ]
71 )
72
73 AS_IF([test x"$enable_debug" = "xyes"], [
74 #AC_MSG_NOTICE("debugging enabled!")
75 CC_CHECK_CFLAGS([-g], [CFLAGS="$CFLAGS -g"])
76 #CC_CHECK_CFLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb"])
77 CC_CHECK_CFLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb3"])
78 CC_CHECK_CFLAGS([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
79 CC_CHECK_CFLAGS([-Wuninitialized], [CFLAGS="$CFLAGS -Wuninitialized"])
80 CC_CHECK_CFLAGS([-Wbad-function-cast], [CFLAGS="$CFLAGS -Wbad-function-cast"])
81 CC_CHECK_CFLAGS([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"])
82 CC_CHECK_CFLAGS([-Wcast-qual], [CFLAGS="$CFLAGS -Wcast-qual"])
83 CC_CHECK_CFLAGS([-Wchar-subscripts], [CFLAGS="$CFLAGS -Wchar-subscripts"])
84 CC_CHECK_CFLAGS([-Winline], [CFLAGS="$CFLAGS -Winline"])
85 CC_CHECK_CFLAGS([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
86 CC_CHECK_CFLAGS([-Wnested-externs], [CFLAGS="$CFLAGS -Wnested-externs"])
87 CC_CHECK_CFLAGS([-Wpointer-arith], [CFLAGS="$CFLAGS -Wpointer-arith"])
88 CC_CHECK_CFLAGS([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
89 CC_CHECK_CFLAGS([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"])
90 CC_CHECK_CFLAGS([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"])
91 CC_CHECK_CFLAGS([-Wno-long-long], [CFLAGS="$CFLAGS -Wno-long-long"])
92 CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
93 AC_DEFINE(ENABLE_DEBUG, 1,[Debug enabled])
94 ], [
95 CC_CHECK_CFLAGS([-O2], [CFLAGS="$CFLAGS -O2"])
96 CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
97 AC_DEFINE(ENABLE_DEBUG, 0,[Debug disabled])
98 ])
99
100 AC_DEFINE_DIR(MODULE_DIR, libdir/modules/, ["Module directory: $module_dir."])
101 AC_SUBST(MODULE_DIR,[$MODULE_DIR])
102
103 AC_CONFIG_FILES([ Makefile
104 src/Makefile
105 plugin_examples/Makefile
106 ])
107 AC_OUTPUT

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