/[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 429 - (show annotations) (download)
Wed Jun 17 08:16:35 2009 UTC (12 years, 11 months ago) by aramv
File size: 3303 byte(s)
First plugin manager code
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([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
9 AM_INIT_AUTOMAKE
10 #AC_CONFIG_SRCDIR([config.h.in])
11 AC_CONFIG_MACRO_DIR([m4])
12 AC_CONFIG_HEADERS([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_LIBTOOL
29 #LT_INIT
30 #CFLAGS="${CFLAGS=}"
31
32 # Checks for libraries.
33
34 # Checks for header files.
35 AC_HEADER_DIRENT
36 AC_HEADER_STDC
37 AC_CHECK_HEADERS([stddef.h stdlib.h string.h syslog.h wchar.h])
38
39 # Checks for typedefs, structures, and compiler characteristics.
40 AC_TYPE_SIZE_T
41
42 # Checks for library functions.
43 AC_FUNC_MALLOC
44 AC_FUNC_REALLOC
45 AC_CHECK_FUNCS([memset])
46 AC_CHECK_LIB([dl], [dlopen])
47
48 dnl this macro is used to get the arguments supplied
49 dnl to the configure script (./configure --enable-debug)
50 dnl Check if we have enable debug support.
51 AC_MSG_CHECKING(whether to enable debugging)
52 debug_default="yes"
53 AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default=$debug_default]],, enable_debug=$debug_default)
54 AS_IF([test x"$enable_debug" = "xyes"], [
55 AC_MSG_NOTICE("debugging enabled!")
56 CC_CHECK_CFLAGS([-g], [CFLAGS="$CFLAGS -g"])
57 #CC_CHECK_CFLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb"])
58 CC_CHECK_CFLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb3"])
59 CC_CHECK_CFLAGS([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
60 CC_CHECK_CFLAGS([-Wuninitialized], [CFLAGS="$CFLAGS -Wuninitialized"])
61 CC_CHECK_CFLAGS([-Wbad-function-cast], [CFLAGS="$CFLAGS -Wbad-function-cast"])
62 CC_CHECK_CFLAGS([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"])
63 CC_CHECK_CFLAGS([-Wcast-qual], [CFLAGS="$CFLAGS -Wcast-qual"])
64 CC_CHECK_CFLAGS([-Wchar-subscripts], [CFLAGS="$CFLAGS -Wchar-subscripts"])
65 CC_CHECK_CFLAGS([-Winline], [CFLAGS="$CFLAGS -Winline"])
66 CC_CHECK_CFLAGS([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
67 CC_CHECK_CFLAGS([-Wnested-externs], [CFLAGS="$CFLAGS -Wnested-externs"])
68 CC_CHECK_CFLAGS([-Wpointer-arith], [CFLAGS="$CFLAGS -Wpointer-arith"])
69 CC_CHECK_CFLAGS([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
70 CC_CHECK_CFLAGS([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"])
71 CC_CHECK_CFLAGS([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"])
72 CC_CHECK_CFLAGS([-Wno-long-long], [CFLAGS="$CFLAGS -Wno-long-long"])
73 CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
74 AC_DEFINE(ENABLE_DEBUG, 1,[Debug enabled])
75 ], [
76 AC_DEFINE(ENABLE_DEBUG, 0,[Debug disabled])
77 CC_CHECK_CFLAGS([-O2], [CFLAGS="$CFLAGS -O2"])
78 CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
79 ])
80
81 #CPPFLAGS="-g -Wall -O2 -Wuninitialized -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-long-long"
82
83 DX_PDF_FEATURE(ON)
84 #DX_DOCDIR([doc])
85 DX_HTML_FEATURE(ON)
86 DX_INIT_DOXYGEN(FULL-PACKAGE-NAME, doxygen.cfg, doc)
87
88 AC_CONFIG_FILES([ Makefile
89 src/Makefile
90 plugin_examples/Makefile
91 ])
92 AC_OUTPUT

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