/[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 2128 - (hide annotations) (download)
Thu Jan 6 10:32:40 2011 UTC (11 years, 4 months ago) by msalle
File size: 5047 byte(s)
$libdir should be libdir (or we get 7136libdir ?!!)

1 aramv 425 # -*- Autoconf -*-
2     # Process this file with autoconf to produce a configure script.
3    
4 aramv 627 AC_PREREQ([1.92])
5 aramv 1229 AC_INIT([ees], [0.0.1], aramv@nikhef.nl)
6 aramv 425 AM_INIT_AUTOMAKE
7     AC_CONFIG_MACRO_DIR([m4])
8 aramv 1600 AC_CONFIG_HEADERS([include/private/config.h])
9 aramv 425
10 aramv 627 # Checks for programs.
11 aramv 429 # needs to be called before AC_PROG_LIBTOOL
12     AC_LIBTOOL_DLOPEN
13 aramv 425 AC_PROG_CC
14     AM_PROG_CC_C_O
15 aramv 877 AC_PROG_CC_STDC
16     #AC_PROG_CC_C89
17 aramv 425 AC_PROG_CPP
18     AC_PROG_INSTALL
19     AC_PROG_LN_S
20     AC_PROG_MAKE_SET
21 aramv 525 AC_PROG_LEX
22 aramv 1229 AC_PROG_YACC
23    
24 aramv 801 if test "$LEX" == ":" ; then
25 aramv 796 AC_MSG_ERROR([No lex program found])
26 aramv 1069 else
27 aramv 1070 if test "$LEX" == "flex" ; then
28     AC_DEFINE(HAVE_FLEX, 1,[Flex installed])
29     fi
30 aramv 796 fi
31    
32 aramv 801 if test "$YACC" != "bison -y"; then
33 aramv 796 AC_MSG_ERROR([No yacc program found])
34     fi
35    
36 aramv 425 AC_PROG_LIBTOOL
37    
38     # Checks for libraries.
39    
40     # Checks for header files.
41     AC_HEADER_DIRENT
42     AC_HEADER_STDC
43 aramv 1600 AC_CHECK_HEADERS([dlfcn.h fcntl.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 pthread.h getopt.h signal.h sys/ioctl.h sys/stat.h netdb.h netinet/in.h arpa/inet.h sys/syscall.h sys/types.h ])
44 aramv 425
45     # Checks for typedefs, structures, and compiler characteristics.
46 aramv 445 AC_C_CONST
47 aramv 425 AC_TYPE_SIZE_T
48    
49     # Checks for library functions.
50     AC_FUNC_MALLOC
51     AC_FUNC_REALLOC
52 aramv 1685 AC_CHECK_FUNCS([memset daemon getpwnam_r getgrnam_r])
53 aramv 425 AC_CHECK_LIB([dl], [dlopen])
54 aramv 1229 AC_CHECK_LIB([pthread], [pthread_create])
55 aramv 1466 #AC_CHECK_LIB([xacml])
56 aramv 1465 #AC_CHECK_LIB([crypto])
57     #AC_CHECK_LIB([ssl])
58 aramv 425
59 aramv 627 # SVN revision
60 aramv 438 SVN_REVISION=`svn info . | sed -ne "s/^Revision: \(.*\:\)\{0,1\}\(.*\)$/\2/p"`
61 aramv 627 AC_SUBST(SVN_REVISION)
62 aramv 1615 AC_DEFINE_UNQUOTED(SVN_REVISION, [$SVN_REVISION], [will be returned by EEF_getVersion])
63 aramv 627
64     # Checks Lex version
65 aramv 1262 lex_version=`$LEX --version | sed -e 's/\(f*\)lex\s\?//g'`
66 aramv 572 preferred_lex_version="2.5.9"
67    
68     AC_MSG_CHECKING([for lex/flex version])
69     AC_MSG_RESULT($lex_version)
70    
71 aramv 1262 AX_COMPARE_VERSION([$preferred_lex_version], [le], [$lex_version], [enable_yylex_destroy="yes"], [enable_yylex_destroy="no"], [whether yylex_destroy() is available to clean up the lexer.])
72    
73 aramv 1060 AM_CONDITIONAL([ENABLE_YYLEX_DESTROY], [test "x$enable_yylex_destroy" = "xyes"])
74 aramv 1262 AS_IF([test "x$enable_yylex_destroy" = "xyes"], [
75     AC_DEFINE(HAVE_YYLEX_DESTROY, 1,[yylex_destroy is available to clean up the parser])
76     ], [
77     AC_DEFINE(HAVE_YYLEX_DESTROY, 0,[yylex_destroy is not available to clean up the parser])
78     ])
79 aramv 438
80 aramv 627 # Release version
81     AC_SUBST(MAJOR_VERSION,["0"])
82 aramv 480
83 aramv 627 # Doxygen options
84 aramv 480 DX_PDF_FEATURE(ON)
85     DX_HTML_FEATURE(ON)
86     DX_INIT_DOXYGEN(FULL-PACKAGE-NAME, doxygen.cfg, doc)
87    
88 aramv 627 # Debug mode
89 aramv 849 debug_default=no
90 aramv 480 AC_MSG_CHECKING([whether to enable debugging])
91     AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug],[turn on debugging])],
92     [
93     AC_MSG_RESULT(yes)
94     enable_debug="yes"
95     ],[
96     AC_MSG_RESULT($debug_default)
97     enable_debug=$debug_default
98     ]
99     )
100    
101 msalle 2125 # Set XACML variables
102     AC_XACML
103     if test "x$have_xacml" = "xno" ; then
104     AC_MSG_FAILURE(["no SAML2-XACML2-C-library interface found"])
105     fi
106 aramv 1471
107 aramv 830 # This is for the Makefile.am files
108     AM_CONDITIONAL([ENABLE_DEBUG], [test "x$enable_debug" = "xyes"])
109     AS_IF([test "x$enable_debug" = "xyes"], [
110 aramv 1511 AC_MSG_NOTICE("debugging enabled!")
111    
112 aramv 873 AX_CHECK_COMPILER_FLAGS([-g], [CFLAGS="$CFLAGS -g"])
113     AX_CHECK_COMPILER_FLAGS([-ggdb], [CFLAGS="$CFLAGS -ggdb3"])
114     AX_CHECK_COMPILER_FLAGS([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
115     AX_CHECK_COMPILER_FLAGS([-Wbad-function-cast], [CFLAGS="$CFLAGS -Wbad-function-cast"])
116     AX_CHECK_COMPILER_FLAGS([-Wchar-subscripts], [CFLAGS="$CFLAGS -Wchar-subscripts"])
117     AX_CHECK_COMPILER_FLAGS([-Wno-long-long], [CFLAGS="$CFLAGS -Wno-long-long"])
118     AX_CHECK_COMPILER_FLAGS([-pedantic], [CFLAGS="$CFLAGS -pedantic"])
119 aramv 853 # This is for the C files.
120 aramv 427 AC_DEFINE(ENABLE_DEBUG, 1,[Debug enabled])
121     ], [
122 aramv 873 AX_CHECK_COMPILER_FLAGS([-O2], [CFLAGS="$CFLAGS -O2"])
123 aramv 480 AC_DEFINE(ENABLE_DEBUG, 0,[Debug disabled])
124 aramv 427 ])
125 aramv 873 AX_CHECK_COMPILER_FLAGS([-Wuninitialized], [CFLAGS="$CFLAGS -Wuninitialized"])
126     AX_CHECK_COMPILER_FLAGS([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"])
127     AX_CHECK_COMPILER_FLAGS([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"])
128     AX_CHECK_COMPILER_FLAGS([-Wcast-qual], [CFLAGS="$CFLAGS -Wcast-qual"])
129     AX_CHECK_COMPILER_FLAGS([-Winline], [CFLAGS="$CFLAGS -Winline"])
130     AX_CHECK_COMPILER_FLAGS([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
131     AX_CHECK_COMPILER_FLAGS([-Wpointer-arith], [CFLAGS="$CFLAGS -Wpointer-arith"])
132     AX_CHECK_COMPILER_FLAGS([-Wnested-externs], [CFLAGS="$CFLAGS -Wnested-externs"])
133     AX_CHECK_COMPILER_FLAGS([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
134     AX_CHECK_COMPILER_FLAGS([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"])
135 aramv 1511 AX_CHECK_COMPILER_FLAGS([-std], [CFLAGS="$CFLAGS -std=c89"])
136 aramv 873 AX_CHECK_COMPILER_FLAGS([-Wall], [CFLAGS="$CFLAGS -Wall"])
137 aramv 1557 AM_MAINTAINER_MODE([enable])
138 aramv 844
139 msalle 2127 # Check for a libdir named lib64 on 64-bit or hybrid architectures
140 msalle 2128 AX_DEFINE_DIR(MODULE_DIR, [libdir/modules], ["Module directory: $module_dir."])
141 aramv 1481
142 aramv 627 AC_SUBST(MODULE_DIR)
143 aramv 427
144 aramv 627 # Dependant Makefiles
145 aramv 425 AC_CONFIG_FILES([ Makefile
146 aramv 627 src/Makefile
147     plugin_examples/Makefile
148 msalle 2127 setup/sed.template
149     setup/ees.init.d
150 aramv 627 ])
151 aramv 425 AC_OUTPUT

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