# Change default port, and ensure endian.h is included when appropriate. # Specify automake/autoconfig version (automake ignores # "AM_INIT_AUTOMAKE([1.16])" in configure.in). # This change was implemented in-house and is not suitable for upstream use. # diff -r b3dce0151fc0 Makefile.am --- Makefile.am Mon Oct 04 16:51:52 2021 +0200 +++ Makefile.am Mon Oct 04 16:52:34 2021 +0200 @@ -4,3 +4,5 @@ doc/LTC-TSS_LLD_08_r2.pdf \ doc/LTC-TSS_LLD_08_r2.sxw \ doc/TSS_programming_SNAFUs.txt +# Suggested by libtoolize: +ACLOCAL_AMFLAGS = -I m4 diff -r b3dce0151fc0 configure.ac --- configure.ac Mon Oct 04 16:51:52 2021 +0200 +++ configure.ac Mon Oct 04 16:52:34 2021 +0200 @@ -11,7 +11,10 @@ # compute $target AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE([foreign subdir-objects 1.6]) +# Make automake-1.16 shut up about "option 'subdir-objects' is disabled" +AM_INIT_AUTOMAKE([foreign subdir-objects 1.16]) +# Required by new autoconf 1.15: +AC_CONFIG_MACRO_DIR([m4]) # Debugging support AC_ARG_ENABLE([debug], @@ -153,7 +156,9 @@ # # The default port that the TCS daemon listens on # -AC_SUBST(TCSD_DEFAULT_PORT, 30003) +#AC_SUBST(TCSD_DEFAULT_PORT, 30003) +# 0 designates UNIX Domain socket. For TCP sockets, 30003 is the traditional TCP port. +AC_SUBST(TCSD_DEFAULT_PORT, 0) # # The RPC mechanism to build into both libtspi and the tcsd # @@ -361,6 +366,7 @@ AC_C_BIGENDIAN([AC_DEFINE(_BIG_ENDIAN, 1, [big-endian host])]) AC_CHECK_DECL(htole32, [AC_DEFINE(HTOLE_DEFINED, 1, [htole32 function is available])]) +AC_CHECK_HEADER(endian.h, [AC_DEFINE(HAVE_ENDIAN_H, 1, [endian.h header])]) AC_CHECK_HEADER(sys/byteorder.h, [AC_DEFINE(HAVE_BYTEORDER_H, 1, [sys/byteorder.h header])]) AC_CHECK_FUNC(daemon, [ AC_DEFINE(HAVE_DAEMON, 1, [daemon function is available]) ]) @@ -382,7 +388,7 @@ # it here. If the --prefix option isn't specified during configure, let it all go to # /usr/local, even /usr/local/etc. :-P if test x"${prefix}" = x"/usr"; then - sysconfdir="/etc" + sysconfdir="/etc/security" localstatedir="/var" mandir="/usr/share/man" elif test x"${prefix}" = x"NONE"; then