1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h

metze
(cherry picked from commit a07c983fde52607806745914bb41039afb5618cc)
(This used to be commit 3db37038b3e5a59a9baa85f6bcd32ac6e5ec2da1)
This commit is contained in:
Stefan Metzmacher 2007-11-15 14:46:47 +01:00
parent 27d9ac3219
commit 928f899948

View File

@ -248,11 +248,18 @@ m4_define([AH_CHECK_FUNC_EXT],
dnl Define an AC_DEFINE with ifndef guard. dnl Define an AC_DEFINE with ifndef guard.
dnl AC_N_DEFINE(VARIABLE [, VALUE]) dnl AC_N_DEFINE(VARIABLE [, VALUE])
define(AC_N_DEFINE, AC_DEFUN([AC_N_DEFINE],
[cat >> confdefs.h <<\EOF [
[#ifndef] $1 AH_VERBATIM([$1], [
[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1) #ifndef $1
[#endif] # undef $1
#endif
])
cat >>confdefs.h <<\EOF
#ifndef $1
[#define] $1 m4_if($#, 1, 1, [$2])
#endif
EOF EOF
]) ])