/[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 427 - (show annotations) (download)
Tue Jun 16 10:06:39 2009 UTC (13 years, 3 months ago) by aramv
File size: 3097 byte(s)
Moved GCC warning flags to CC_CHECK_CFLAGS macro, added attributes.m4 file from xine.sf.net
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 # Checks for programs.
15 #AC_PROG_CXX
16 #AC_PROG_AWK
17 AC_PROG_CC
18 AM_PROG_CC_C_O
19 AC_PROG_CPP
20 AC_PROG_INSTALL
21 AC_PROG_LN_S
22 AC_PROG_MAKE_SET
23 AC_PROG_LIBTOOL
24 #LT_INIT
25 #CFLAGS="${CFLAGS=}"
26
27 # Checks for libraries.
28
29 # Checks for header files.
30 AC_HEADER_DIRENT
31 AC_HEADER_STDC
32 AC_CHECK_HEADERS([stddef.h stdlib.h string.h syslog.h wchar.h])
33
34 # Checks for typedefs, structures, and compiler characteristics.
35 AC_TYPE_SIZE_T
36
37 # Checks for library functions.
38 AC_FUNC_MALLOC
39 AC_FUNC_REALLOC
40 AC_CHECK_FUNCS([memset])
41 AC_CHECK_LIB([dl], [dlopen])
42
43 dnl this macro is used to get the arguments supplied
44 dnl to the configure script (./configure --enable-debug)
45 dnl Check if we have enable debug support.
46 AC_MSG_CHECKING(whether to enable debugging)
47 debug_default="yes"
48 AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default=$debug_default]],, enable_debug=$debug_default)
49 AS_IF([test x"$enable_debug" = "xyes"], [
50 AC_MSG_NOTICE("debugging enabled!")
51 CC_CHECK_CFLAGS([-g], [CFLAGS="$CFLAGS -g"])
52 CC_CHECK_CFLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb"])
53 CC_CHECK_CFLAGS([-Wuninitialized], [CFLAGS="$CFLAGS -Wuninitialized"])
54 CC_CHECK_CFLAGS([-Wbad-function-cast], [CFLAGS="$CFLAGS -Wbad-function-cast"])
55 CC_CHECK_CFLAGS([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"])
56 CC_CHECK_CFLAGS([-Wcast-qual], [CFLAGS="$CFLAGS -Wcast-qual"])
57 CC_CHECK_CFLAGS([-Wchar-subscripts], [CFLAGS="$CFLAGS -Wchar-subscripts"])
58 CC_CHECK_CFLAGS([-Winline], [CFLAGS="$CFLAGS -Winline"])
59 CC_CHECK_CFLAGS([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
60 CC_CHECK_CFLAGS([-Wnested-externs], [CFLAGS="$CFLAGS -Wnested-externs"])
61 CC_CHECK_CFLAGS([-Wpointer-arith], [CFLAGS="$CFLAGS -Wpointer-arith"])
62 CC_CHECK_CFLAGS([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
63 CC_CHECK_CFLAGS([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"])
64 CC_CHECK_CFLAGS([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"])
65 CC_CHECK_CFLAGS([-Wno-long-long], [CFLAGS="$CFLAGS -Wno-long-long"])
66 CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
67 AC_DEFINE(ENABLE_DEBUG, 1,[Debug enabled])
68 ], [
69 AC_DEFINE(ENABLE_DEBUG, 0,[Debug disabled])
70 CC_CHECK_CFLAGS([-O2], [CFLAGS="$CFLAGS -O2"])
71 CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
72 ])
73
74 #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"
75
76 DX_PDF_FEATURE(ON)
77 #DX_DOCDIR([doc])
78 DX_HTML_FEATURE(ON)
79 DX_INIT_DOXYGEN(FULL-PACKAGE-NAME, doxygen.cfg, doc)
80
81 AC_CONFIG_FILES([ Makefile
82 src/Makefile
83 plugin_examples/Makefile
84 ])
85 AC_OUTPUT

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