1
############################################################################
6
# Let the user decide if debug symbol information should be compiled
7
# in. The compiled libraries/executables will use a lot less space
8
# if stripped for their symbol information.
10
# Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX
11
# in the configure.in script.
13
# Author: Morten Eriksen, <mortene@sim.no>.
16
AC_DEFUN([SIM_AC_DEBUGSYMBOLS], [
19
AC_HELP_STRING([--enable-symbols],
20
[include symbol debug information [[default=yes]]]),
21
[case "${enableval}" in
22
yes) enable_symbols=yes ;;
23
no) enable_symbols=no ;;
24
*) AC_MSG_ERROR(bad value "${enableval}" for --enable-symbols) ;;
28
# FIXME: don't mangle options like -fno-gnu-linker and -fvolatile-global
30
if test x"$enable_symbols" = x"no"; then
31
# CPPFLAGS="`echo $CPPFLAGS | sed 's/-g\>//'`"
32
CFLAGS="`echo $CFLAGS | sed 's/-g\>//'`"
33
CXXFLAGS="`echo $CXXFLAGS | sed 's/-g\>//'`"
35
]) # SIM_AC_DEBUGSYMBOLS