mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
r19245: mrege from samba3:
add AC_REMOVE_INCLUDE(), AC_REMOVE_DEFINE() macros
metze
(This used to be commit dc65a66252
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b6582987fe
commit
2bdaccaa9c
@ -264,6 +264,24 @@ define(AC_ADD_INCLUDE,
|
||||
EOF
|
||||
])
|
||||
|
||||
dnl remove an #include
|
||||
dnl AC_REMOVE_INCLUDE(VARIABLE)
|
||||
define(AC_REMOVE_INCLUDE,
|
||||
[
|
||||
grep -v '[#include] $1' confdefs.h >confdefs.h.tmp
|
||||
cat confdefs.h.tmp > confdefs.h
|
||||
rm confdefs.h.tmp
|
||||
])
|
||||
|
||||
dnl remove an #define
|
||||
dnl AC_REMOVE_DEFINE(VARIABLE)
|
||||
define(AC_REMOVE_DEFINE,
|
||||
[
|
||||
grep -v '[#define] $1 ' confdefs.h |grep -v '[#define] $1[$]'>confdefs.h.tmp
|
||||
cat confdefs.h.tmp > confdefs.h
|
||||
rm confdefs.h.tmp
|
||||
])
|
||||
|
||||
dnl AS_HELP_STRING is not available in autoconf 2.57, and AC_HELP_STRING is deprecated
|
||||
dnl in autoconf 2.59, so define AS_HELP_STRING to be AC_HELP_STRING unless it is already
|
||||
dnl defined.
|
||||
|
Reference in New Issue
Block a user