Browse Source

Commit helper M4 macro file.

This file should have been committed since the very beginning,
but I somehow completely forgot it...
develop
Damien Goutte-Gattat 3 years ago
parent
commit
dce7f23d17
  1. 16
      m4/notch.m4

16
m4/notch.m4

@ -0,0 +1,16 @@
dnl ICP_CHECK_NOTCH_FUNCS
dnl Check for various functions that may not be present
dnl everywhere, and for which we provide a replacement.
dnl
AC_DEFUN([ICP_CHECK_NOTCH_FUNCS],[
AC_CHECK_HEADERS([err.h], [], [AC_CONFIG_LINKS([err.h:lib/err.compat.h])])
AC_REPLACE_FUNCS([err])
AC_CHECK_DECLS([program_invocation_short_name], [],
[AC_CHECK_FUNCS([getprogname setprogname], [],
[AC_LIBOBJ([progname])])],
[#include <errno.h>
])
AC_CHECK_DECLS([P_tmpdir])
AH_BOTTOM([#include <compat.h>
])
])
Loading…
Cancel
Save