From f5acaea72794c5a63487f3710dbe7995ca2818a9 Mon Sep 17 00:00:00 2001 From: James Peach Date: Sun, 7 Jan 2007 04:43:04 +0000 Subject: r20592: Use the Heimdal copy of err.h only if the build host doesn't have it. (This used to be commit 1e8c4847b829217beec62ba46c592da3fae8a73e) --- source4/heimdal_build/config.m4 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'source4/heimdal_build/config.m4') diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4 index f2a1e2039a..8a69a880d4 100644 --- a/source4/heimdal_build/config.m4 +++ b/source4/heimdal_build/config.m4 @@ -31,12 +31,19 @@ esac ]) - +dnl Not all systems have err.h, so we provide a replacement. Heimdal +dnl unconditionally #includes , so we need to create an err.h, +dnl but we can't just have a static one because we don't want to use +dnl it on systems that have a real err.h. If the system has a real +dnl err.h, we should use that (eg. on Darwin, the declarations get +dnl linker attributes added, so we can't guarantee that our local +dnl declarations will be correct). Phew! +AC_CHECK_HEADERS([err.h], [], + [ cp heimdal/lib/roken/err.hin heimdal_build/err.h ]) AC_CHECK_HEADERS([ \ crypt.h \ curses.h \ - err.h \ errno.h \ inttypes.h \ netdb.h \ @@ -89,6 +96,7 @@ AC_CHECK_FUNCS([ \ closefrom \ hstrerror \ err \ + warn \ errx \ warnx \ flock \ -- cgit