Skip to content

Commit de4bcb5

Browse files
committed
Update autoconf files for endian.h change.
1 parent 4b8d141 commit de4bcb5

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

config.h.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,22 @@
363363
don't. */
364364
#undef HAVE_DECL_HOWMANY
365365

366+
/* Define to 1 if you have the declaration of `htole64', and to 0 if you
367+
don't. */
368+
#undef HAVE_DECL_HTOLE64
369+
366370
/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
367371
don't. */
368372
#undef HAVE_DECL_H_ERRNO
369373

374+
/* Define to 1 if you have the declaration of `le32toh', and to 0 if you
375+
don't. */
376+
#undef HAVE_DECL_LE32TOH
377+
378+
/* Define to 1 if you have the declaration of `le64toh', and to 0 if you
379+
don't. */
380+
#undef HAVE_DECL_LE64TOH
381+
370382
/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
371383
don't. */
372384
#undef HAVE_DECL_LOGINFAILED

configure

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11325,6 +11325,65 @@ then :
1132511325
fi
1132611326

1132711327

11328+
ac_fn_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "
11329+
#ifdef HAVE_SYS_TYPES_H
11330+
# include <sys/types.h>
11331+
#endif
11332+
#ifdef HAVE_STDINT_H
11333+
# include <stdint.h>
11334+
#endif
11335+
#ifdef HAVE_ENDIAN_H
11336+
# include <endian.h>
11337+
#endif
11338+
11339+
" "$ac_c_undeclared_builtin_options" "CFLAGS"
11340+
if test "x$ac_cv_have_decl_le32toh" = xyes
11341+
then :
11342+
ac_have_decl=1
11343+
else $as_nop
11344+
ac_have_decl=0
11345+
fi
11346+
printf "%s\n" "#define HAVE_DECL_LE32TOH $ac_have_decl" >>confdefs.h
11347+
ac_fn_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "
11348+
#ifdef HAVE_SYS_TYPES_H
11349+
# include <sys/types.h>
11350+
#endif
11351+
#ifdef HAVE_STDINT_H
11352+
# include <stdint.h>
11353+
#endif
11354+
#ifdef HAVE_ENDIAN_H
11355+
# include <endian.h>
11356+
#endif
11357+
11358+
" "$ac_c_undeclared_builtin_options" "CFLAGS"
11359+
if test "x$ac_cv_have_decl_le64toh" = xyes
11360+
then :
11361+
ac_have_decl=1
11362+
else $as_nop
11363+
ac_have_decl=0
11364+
fi
11365+
printf "%s\n" "#define HAVE_DECL_LE64TOH $ac_have_decl" >>confdefs.h
11366+
ac_fn_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "
11367+
#ifdef HAVE_SYS_TYPES_H
11368+
# include <sys/types.h>
11369+
#endif
11370+
#ifdef HAVE_STDINT_H
11371+
# include <stdint.h>
11372+
#endif
11373+
#ifdef HAVE_ENDIAN_H
11374+
# include <endian.h>
11375+
#endif
11376+
11377+
" "$ac_c_undeclared_builtin_options" "CFLAGS"
11378+
if test "x$ac_cv_have_decl_htole64" = xyes
11379+
then :
11380+
ac_have_decl=1
11381+
else $as_nop
11382+
ac_have_decl=0
11383+
fi
11384+
printf "%s\n" "#define HAVE_DECL_HTOLE64 $ac_have_decl" >>confdefs.h
11385+
11386+
1132811387
# On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h]
1132911388
# to be included first.
1133011389
ac_fn_c_check_header_compile "$LINENO" "sys/audit.h" "ac_cv_header_sys_audit_h" "
@@ -27710,3 +27769,4 @@ if test "$AUDIT_MODULE" = "bsm" ; then
2771027769
echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
2771127770
echo "See the Solaris section in README.platform for details."
2771227771
fi
27772+

0 commit comments

Comments
 (0)