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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 426 by aramv, Fri Jun 12 16:22:19 2009 UTC revision 427 by aramv, Tue Jun 16 10:06:39 2009 UTC
# Line 22  AC_PROG_LN_S Line 22  AC_PROG_LN_S
22  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
23  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
24  #LT_INIT  #LT_INIT
25    #CFLAGS="${CFLAGS=}"
26    
27  # Checks for libraries.  # Checks for libraries.
28    
# Line 39  AC_FUNC_REALLOC Line 40  AC_FUNC_REALLOC
40  AC_CHECK_FUNCS([memset])  AC_CHECK_FUNCS([memset])
41  AC_CHECK_LIB([dl], [dlopen])  AC_CHECK_LIB([dl], [dlopen])
42    
43  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"  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)  DX_PDF_FEATURE(ON)
77  #DX_DOCDIR([doc])  #DX_DOCDIR([doc])

Legend:
Removed from v.426  
changed lines
  Added in v.427

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