mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h
metze
(This used to be commit a07c983fde
)
This commit is contained in:
parent
de119cc807
commit
0f134fab53
@ -248,11 +248,18 @@ m4_define([AH_CHECK_FUNC_EXT],
|
||||
|
||||
dnl Define an AC_DEFINE with ifndef guard.
|
||||
dnl AC_N_DEFINE(VARIABLE [, VALUE])
|
||||
define(AC_N_DEFINE,
|
||||
[cat >> confdefs.h <<\EOF
|
||||
[#ifndef] $1
|
||||
[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1)
|
||||
[#endif]
|
||||
AC_DEFUN([AC_N_DEFINE],
|
||||
[
|
||||
AH_VERBATIM([$1], [
|
||||
#ifndef $1
|
||||
# undef $1
|
||||
#endif
|
||||
])
|
||||
|
||||
cat >>confdefs.h <<\EOF
|
||||
#ifndef $1
|
||||
[#define] $1 m4_if($#, 1, 1, [$2])
|
||||
#endif
|
||||
EOF
|
||||
])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user