|
Last change
on this file since 3628 was 3529, checked in by bird, 4 years ago |
|
Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.
|
-
Property svn:eol-style
set to
LF
|
|
File size:
944 bytes
|
| Line | |
|---|
| 1 | #serial 7
|
|---|
| 2 |
|
|---|
| 3 | # Copyright (C) 1998-1999, 2001, 2004, 2008-2021 Free Software Foundation, Inc.
|
|---|
| 4 | # This file is free software; the Free Software Foundation
|
|---|
| 5 | # gives unlimited permission to copy and/or distribute it,
|
|---|
| 6 | # with or without modifications, as long as this notice is preserved.
|
|---|
| 7 |
|
|---|
| 8 | dnl based on code from Eleftherios Gkioulekas
|
|---|
| 9 | dnl Autoconf 2.60 provides AC_HEADER_ASSERT for the same purpose, but
|
|---|
| 10 | dnl it has broken semantics for --enable-assert until 2.64.
|
|---|
| 11 | AC_DEFUN([gl_ASSERT],
|
|---|
| 12 | [
|
|---|
| 13 | AC_MSG_CHECKING([whether to enable assertions])
|
|---|
| 14 | AC_ARG_ENABLE([assert],
|
|---|
| 15 | [AS_HELP_STRING([--disable-assert], [turn off assertions])],
|
|---|
| 16 | [AS_IF([test "x$enableval" = xno],
|
|---|
| 17 | [AC_DEFINE([NDEBUG], [1],
|
|---|
| 18 | [Define to 1 if assertions should be disabled.])],
|
|---|
| 19 | [test "x$enableval" != xyes],
|
|---|
| 20 | [AC_MSG_WARN([invalid argument supplied to --enable-assert])
|
|---|
| 21 | enable_assert=yes])],
|
|---|
| 22 | [enable_assert=yes])
|
|---|
| 23 | AC_MSG_RESULT([$enable_assert])
|
|---|
| 24 | ])
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.