diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-02-12 17:36:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:06 -0500 |
commit | 4126b34e1f34a67b1eed06329530c17dfa54fb00 (patch) | |
tree | b7e26d04eff469b1887628061fb4aae19c3910c8 /source4/lib/replace/libreplace_macros.m4 | |
parent | 71115bb3e69e301cbced87b85418815237d50329 (diff) | |
download | samba-4126b34e1f34a67b1eed06329530c17dfa54fb00.tar.gz samba-4126b34e1f34a67b1eed06329530c17dfa54fb00.tar.xz samba-4126b34e1f34a67b1eed06329530c17dfa54fb00.zip |
r21302: Provide simple redirecting headers for standard headers.
(This used to be commit 74c47839536c9ccfa1240289d20df65d9d13839d)
Diffstat (limited to 'source4/lib/replace/libreplace_macros.m4')
-rw-r--r-- | source4/lib/replace/libreplace_macros.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_macros.m4 b/source4/lib/replace/libreplace_macros.m4 index 0669c10c2a..f262b9b6eb 100644 --- a/source4/lib/replace/libreplace_macros.m4 +++ b/source4/lib/replace/libreplace_macros.m4 @@ -306,3 +306,12 @@ AC_DEFUN(AC_VERIFY_C_PROTOTYPE, ) AS_IF([test $AS_TR_SH([ac_cv_c_prototype_$1]) = yes],[$3],[$4]) ]) + +AC_DEFUN(LIBREPLACE_PROVIDE_HEADER, +[AC_CHECK_HEADER([$1], + [ AC_CONFIG_COMMANDS(rm-$1, [rm -f $libreplacedir/$1], [libreplacedir=$libreplacedir]) ], + [ AC_CONFIG_COMMANDS(mk-$1, [echo "#include \"replace.h\"" > $libreplacedir/$1], [libreplacedir=$libreplacedir]) ] + ) +]) + + |