root/trunk/m4/ensc_release.m4

Revision 476, 1.6 kB (checked in by uid68581, 5 years ago)

fixed broken quoting which is complained by recent automake

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 dnl $Id$
2
3 dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 dnl 
5 dnl This program is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; version 2 of the License.
8 dnl 
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 dnl GNU General Public License for more details.
13 dnl 
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program; if not, write to the Free Software
16 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 dnl Usage: ENSC_RELEASE(<cppflag-variable>)
19 dnl        <cppflag-variable> ... name of variable which will get the preprocessor
20 dnl                               flags and which will be AC_SUBST'ed
21
22 AC_DEFUN([ENSC_RELEASE],
23 [
24         AC_MSG_CHECKING([whether to enable release-mode])
25         AC_ARG_ENABLE([release],
26                       [AC_HELP_STRING([--enable-release],
27                                       [enable release mode (default: no)])],
28                       [case "$enableval" in
29                           yes)  ensc_release_mode=yes;;
30                           no)   ensc_release_mode=no;;
31                           *)    AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-release']);;
32                        esac],
33                       [ ensc_release_mode=no ])
34
35         if test x"$ensc_release_mode" = xno; then
36                 $1=
37         else
38                 $1='-DNDEBUG'
39         fi
40
41         AC_SUBST($1)
42         AC_MSG_RESULT($ensc_release_mode)
43 ])
Note: See TracBrowser for help on using the browser.