projects
/
shibboleth
/
sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6afb7ce
)
Add debug option
author
cantor
<cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 7 May 2004 05:26:02 +0000
(
05:26
+0000)
committer
cantor
<cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 7 May 2004 05:26:02 +0000
(
05:26
+0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1089
cb58f699
-b61c-0410-a6fe-
9272a202ed29
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
1004527
..
4597327
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-6,6
+6,19
@@
AM_INIT_AUTOMAKE(shibboleth, 1.2)
sinclude(acx_pthread.m4)
sinclude(acx_rpctest.m4)
+AC_ARG_ENABLE(debug,
+ AC_HELP_STRING(--enable-debug,
+ [Compile a version of the library with symbols (Default = no)]),
+ enable_debug=$enableval, enable_debug=no)
+
+if test "$enable_debug" = "yes" ; then
+ CFLAGS="$CFLAGS -g -D_DEBUG"
+ CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
+else
+ CFLAGS="$CFLAGS -O2 -DNDEBUG"
+ CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
+fi
+
AC_PROG_CC([gcc3 gcc cc])
AC_PROG_CXX([g++3 g++ c++ CC])
AC_DISABLE_STATIC