Changeset 7d160bb in git for m4


Ignore:
Timestamp:
May 24, 2013, 2:39:16 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
55150e5fbf40e9e0fa5d2c2fe5efd309f4ab2e12
Parents:
35564a593038fa54330b221ac4ac3342667c31ea
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-24 14:39:16+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-24 16:33:55+02:00
Message:
Better compiler flags handling by BS

fix: empty default compiler flags
add: use optimization flags by default (incompatible with debug, see --disable-optimizationflags)
add: check multiple compiler flags (debug/optimization)

NOTE: some optimization flags lead to GCC crashes.
NOTE: no implicit templates cannot be used due to some templated code (tgb*) :(
Location:
m4
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • m4/options.m4

    r35564a5 r7d160bb  
    6969AC_MSG_RESULT($ENABLE_PLURAL)
    7070])
    71 
    72 
    73 
    74 AC_DEFUN([SING_CHECK_DEBUG], [
    75  ENABLE_DEBUG="no"
    76 
    77  AC_MSG_CHECKING([whether debugging checks should be embedded])
    78 
    79  AC_ARG_ENABLE([debug],
    80   AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
    81   [if test "x$enableval" = "xyes"; then
    82   ENABLE_DEBUG="yes"
    83   fi])
    84  
    85  AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
    86  
    87  if test "x${ENABLE_DEBUG}" != xyes; then
    88   AC_MSG_RESULT([no])
    89   AC_DEFINE([OM_NDEBUG],1,"Disable OM Debug")
    90   AC_DEFINE([NDEBUG],1,"Disable Debug")
    91  else
    92   AC_MSG_RESULT([yes])
    93  fi
    94 ])
Note: See TracChangeset for help on using the changeset viewer.