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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 438 - (hide annotations) (download)
Wed Jun 17 15:05:21 2009 UTC (12 years, 11 months ago) by aramv
File size: 3442 byte(s)
Setting version-info LDFLAG using SVN_REVISION macro
1 aramv 425 # -*- 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 aramv 429 # needs to be called before AC_PROG_LIBTOOL
15     AC_LIBTOOL_DLOPEN
16    
17 aramv 425 # Checks for programs.
18     #AC_PROG_CXX
19     #AC_PROG_AWK
20     AC_PROG_CC
21     AM_PROG_CC_C_O
22 aramv 429 #AC_PROG_CC_C99
23     AC_PROG_CC_C89
24 aramv 425 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 aramv 427 #CFLAGS="${CFLAGS=}"
31 aramv 425
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 aramv 438 # Sets SVN revision
49     SVN_REVISION=`svn info . | sed -ne "s/^Revision: \(.*\:\)\{0,1\}\(.*\)$/\2/p"`
50     AC_SUBST(SVN_REVISION,[$SVN_REVISION])
51    
52 aramv 427 dnl this macro is used to get the arguments supplied
53     dnl to the configure script (./configure --enable-debug)
54     dnl Check if we have enable debug support.
55     AC_MSG_CHECKING(whether to enable debugging)
56     debug_default="yes"
57     AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging [default=$debug_default]],, enable_debug=$debug_default)
58     AS_IF([test x"$enable_debug" = "xyes"], [
59     AC_MSG_NOTICE("debugging enabled!")
60     CC_CHECK_CFLAGS([-g], [CFLAGS="$CFLAGS -g"])
61 aramv 429 #CC_CHECK_CFLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb"])
62     CC_CHECK_CFLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb3"])
63     CC_CHECK_CFLAGS([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
64 aramv 427 CC_CHECK_CFLAGS([-Wuninitialized], [CFLAGS="$CFLAGS -Wuninitialized"])
65     CC_CHECK_CFLAGS([-Wbad-function-cast], [CFLAGS="$CFLAGS -Wbad-function-cast"])
66     CC_CHECK_CFLAGS([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"])
67     CC_CHECK_CFLAGS([-Wcast-qual], [CFLAGS="$CFLAGS -Wcast-qual"])
68     CC_CHECK_CFLAGS([-Wchar-subscripts], [CFLAGS="$CFLAGS -Wchar-subscripts"])
69     CC_CHECK_CFLAGS([-Winline], [CFLAGS="$CFLAGS -Winline"])
70     CC_CHECK_CFLAGS([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
71     CC_CHECK_CFLAGS([-Wnested-externs], [CFLAGS="$CFLAGS -Wnested-externs"])
72     CC_CHECK_CFLAGS([-Wpointer-arith], [CFLAGS="$CFLAGS -Wpointer-arith"])
73     CC_CHECK_CFLAGS([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
74     CC_CHECK_CFLAGS([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"])
75     CC_CHECK_CFLAGS([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"])
76     CC_CHECK_CFLAGS([-Wno-long-long], [CFLAGS="$CFLAGS -Wno-long-long"])
77     CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
78     AC_DEFINE(ENABLE_DEBUG, 1,[Debug enabled])
79     ], [
80     AC_DEFINE(ENABLE_DEBUG, 0,[Debug disabled])
81     CC_CHECK_CFLAGS([-O2], [CFLAGS="$CFLAGS -O2"])
82     CC_CHECK_CFLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
83     ])
84 aramv 425
85 aramv 427 #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"
86    
87 aramv 425 DX_PDF_FEATURE(ON)
88     #DX_DOCDIR([doc])
89     DX_HTML_FEATURE(ON)
90     DX_INIT_DOXYGEN(FULL-PACKAGE-NAME, doxygen.cfg, doc)
91    
92     AC_CONFIG_FILES([ Makefile
93     src/Makefile
94     plugin_examples/Makefile
95     ])
96     AC_OUTPUT

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