Mercurial > hg > octave-kai > gnulib-hg
annotate m4/assert.m4 @ 13169:b55181348b50
fseeko: Fix C++ test error on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 05 Apr 2010 18:18:11 +0200 |
parents | c2cbabec01dd |
children | 97fc9a21a8fb |
rev | line source |
---|---|
10868
fe92b59cff81
gl_ASSERT: don't say assertions are disabled when they're not
Jim Meyering <meyering@redhat.com>
parents:
10861
diff
changeset
|
1 #serial 7 |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
2 |
12559
c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents:
12518
diff
changeset
|
3 # Copyright (C) 1998-1999, 2001, 2004, 2008-2010 Free Software Foundation, Inc. |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
4 # This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
5 # gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
6 # with or without modifications, as long as this notice is preserved. |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
7 |
1330 | 8 dnl based on code from Eleftherios Gkioulekas |
10861
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
9 dnl Autoconf 2.60 provides AC_HEADER_ASSERT for the same purpose, but |
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
10 dnl it has broken semantics for --enable-assert until 2.64. |
5016
7141ea4946af
Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
11 AC_DEFUN([gl_ASSERT], |
1330 | 12 [ |
10861
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
13 AC_MSG_CHECKING([whether to enable assertions]) |
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
14 AC_ARG_ENABLE([assert], |
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
15 [AS_HELP_STRING([--disable-assert], [turn off assertions])], |
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
16 [AS_IF([test "x$enableval" = xno], |
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
17 [AC_DEFINE([NDEBUG], [1], |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
10868
diff
changeset
|
18 [Define to 1 if assertions should be disabled.])], |
10861
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
19 [test "x$enableval" != xyes], |
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
20 [AC_MSG_WARN([invalid argument supplied to --enable-assert]) |
10868
fe92b59cff81
gl_ASSERT: don't say assertions are disabled when they're not
Jim Meyering <meyering@redhat.com>
parents:
10861
diff
changeset
|
21 enable_assert=yes])], |
fe92b59cff81
gl_ASSERT: don't say assertions are disabled when they're not
Jim Meyering <meyering@redhat.com>
parents:
10861
diff
changeset
|
22 [enable_assert=yes]) |
10861
69048e86dbdf
assert: honor --enable-assert
William Pursell <bill.pursell@gmail.com>
parents:
5611
diff
changeset
|
23 AC_MSG_RESULT([$enable_assert]) |
1330 | 24 ]) |