Changeset e62a1d in git


Ignore:
Timestamp:
May 20, 2013, 4:27:50 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
35564a593038fa54330b221ac4ac3342667c31ea
Parents:
16f511afd4aa6b9ce29c1da0d049c151df5bc2b5
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-20 16:27:50+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-24 14:52:29+02:00
Message:
Disable debug by default (separated into m4/options.m4)
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r16f511 re62a1d  
    138138fi
    139139
    140 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
    141  [if test "x$enableval"  = "xyes"; then
    142    ENABLE_DEBUG=yes
    143  fi], ENABLE_DEBUG=no)
    144 
    145 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     140SING_CHECK_DEBUG
    146141
    147142AC_ARG_ENABLE(countedref, AS_HELP_STRING([--enable-countedref], [Enable autoloading of reference counted types]),
  • factory/configure.ac

    r16f511 re62a1d  
    9494  enable_debugoutput=no)
    9595
    96 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
    97  [if test "x$enableval"  = "xyes"; then
    98    ENABLE_DEBUG=yes
    99  fi], ENABLE_DEBUG=no)
    100 
    101 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     96SING_CHECK_DEBUG
    10297
    10398#
  • gfanlib/configure.ac

    r16f511 re62a1d  
    6666AC_C_INLINE
    6767
    68 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
    69  [if test "x$enableval"  = "xyes"; then
    70    ENABLE_DEBUG=yes
    71  fi], ENABLE_DEBUG=no)
    72 
    73 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     68SING_CHECK_DEBUG
    7469
    7570#AC_MSG_RESULT($ac_cv_singuname)
  • libpolys/configure.ac

    r16f511 re62a1d  
    118118#fi
    119119
    120 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
    121  [if test "x$enableval"  = "xyes"; then
    122    ENABLE_DEBUG=yes
    123  fi], ENABLE_DEBUG=no)
    124 
    125 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     120SING_CHECK_DEBUG
    126121
    127122# AC_SUBST(PREFIX)
  • m4/options.m4

    r16f511 re62a1d  
    6969AC_MSG_RESULT($ENABLE_PLURAL)
    7070])
     71
     72
     73
     74AC_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])
  • omalloc/configure.ac

    r16f511 re62a1d  
    2828dnl help for configure
    2929dnl
    30 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
    31  [if test "x$enableval"  = "xyes"; then
    32    ENABLE_DEBUG=yes
    33  fi], ENABLE_DEBUG=no)
    34 
    35 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     30SING_CHECK_DEBUG
    3631
    3732AC_ARG_WITH(
  • resources/configure.ac

    r16f511 re62a1d  
    6060
    6161SING_CHECK_PIPE
    62 
    63 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
    64  [if test "x$enableval"  = "xyes"; then
    65    ENABLE_DEBUG=yes
    66  fi], ENABLE_DEBUG=no)
    67 
    68 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
    69 
     62SING_CHECK_DEBUG
    7063
    7164# CFLAGS
  • xalloc/configure.ac

    r16f511 re62a1d  
    2424LT_INIT
    2525
    26 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     26SING_CHECK_DEBUG
    2727
    2828AC_CONFIG_FILES([Makefile])
Note: See TracChangeset for help on using the changeset viewer.