From: Marc Dionne Date: Tue, 17 Nov 2009 22:59:58 +0000 (-0500) Subject: aklog build fix: com_err.h header X-Git-Tag: openafs-devel-1_5_67~44 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=22541ea8323434cc555d71daf3c90b66e34c7c87 aklog build fix: com_err.h header Fix this build error: aklog_main.c:67:21: error: com_err.h: No such file or directory On some systems this system header is actually "et/com_err.h". Cope by checking for this at configure time and using that location if needed. Change-Id: Iaf4fb4fe157ff8e54aa043785377706eab6fb3d1 Reviewed-on: http://gerrit.openafs.org/836 Reviewed-by: Derrick Brashear Reviewed-by: Russ Allbery Tested-by: Russ Allbery --- diff --git a/acinclude.m4 b/acinclude.m4 index e08ab77..5fc6e30 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1557,6 +1557,7 @@ AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h poll.h sys/pag.h) AC_CHECK_HEADERS(windows.h malloc.h winsock2.h direct.h io.h sys/user.h sys/ipc.h) AC_CHECK_HEADERS(security/pam_modules.h siad.h usersec.h ucontext.h regex.h values.h sys/statvfs.h sys/statfs.h sys/bitypes.h) AC_CHECK_HEADERS(linux/errqueue.h,,,[#include ]) +AC_CHECK_HEADERS(et/com_err.h) AC_CHECK_TYPES([fsblkcnt_t],,,[ #include diff --git a/src/aklog/aklog_main.c b/src/aklog/aklog_main.c index 3c2a421..bc23117 100644 --- a/src/aklog/aklog_main.c +++ b/src/aklog/aklog_main.c @@ -64,7 +64,11 @@ #include #include +#if defined(HAVE_ET_COM_ERR_H) +#include +#else #include +#endif #ifndef HAVE_KERBEROSV_HEIM_ERR_H #include