aklog build fix: com_err.h header
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 17 Nov 2009 22:59:58 +0000 (17:59 -0500)
committerRuss Allbery <rra|account-1000002@unknown>
Wed, 18 Nov 2009 02:25:27 +0000 (18:25 -0800)
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 <shadow@dementia.org>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>

acinclude.m4
src/aklog/aklog_main.c

index e08ab77..5fc6e30 100644 (file)
@@ -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 <linux/types.h>])
+AC_CHECK_HEADERS(et/com_err.h)
 
 AC_CHECK_TYPES([fsblkcnt_t],,,[
 #include <sys/types.h>
index 3c2a421..bc23117 100644 (file)
 
 #include <afs/stds.h>
 #include <krb5.h>
+#if defined(HAVE_ET_COM_ERR_H)
+#include <et/com_err.h>
+#else
 #include <com_err.h>
+#endif
 
 #ifndef HAVE_KERBEROSV_HEIM_ERR_H
 #include <afs/com_err.h>