Mercurial > gnulib
annotate m4/func.m4 @ 40196:e63f5d3edab5
relocatable-prog: Update documentation.
* doc/relocatable-maint.texi (Supporting Relocation): Update to match
the recent changes.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 24 Feb 2019 01:49:15 +0100 |
parents | b06060465f09 |
children |
rev | line source |
---|---|
9761
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
1 # func.m4 serial 2 |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
19484
diff
changeset
|
2 dnl Copyright (C) 2008-2019 Free Software Foundation, Inc. |
9761
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
6 |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
7 # Written by Simon Josefsson |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
8 |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
9 AC_DEFUN([gl_FUNC], |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
10 [ |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
11 AC_CACHE_CHECK([whether __func__ is available], [gl_cv_var_func], |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
12 AC_COMPILE_IFELSE( |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
13 [AC_LANG_PROGRAM([[]], [[const char *str = __func__;]])], |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
14 [gl_cv_var_func=yes], |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
15 [gl_cv_var_func=no])) |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
16 if test "$gl_cv_var_func" != yes; then |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
17 AC_DEFINE([__func__], ["<unknown function>"], |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
18 [Define as a replacement for the ISO C99 __func__ variable.]) |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
19 fi |
f63d3075f044
Rename __func__ module to func.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
20 ]) |