-dnl Copyright © 2015, 2019-2023 Nick Bowler
+dnl Copyright © 2015, 2019-2024 Nick Bowler
dnl
dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
dnl This is free software: you are free to do what the fuck you want to.
AC_USE_SYSTEM_EXTENSIONS
AC_C_INLINE
+AM_PROG_AR
AC_SUBST([STUB_INCLUDES], [@&t@])
AC_CHECK_FUNCS_ONCE([wcwidth])
AM_CONDITIONAL([HAVE_WCWIDTH], [test x"$ac_cv_func_wcwidth" = x"yes"])
-AC_CONFIG_TESTDIR([.])
-DX_PROG_AUTOTEST
-AM_CONDITIONAL([HAVE_AUTOTEST], [test x"$dx_cv_autotest_works" = x"yes"])
+AC_CONFIG_TESTDIR([.], [t:$srcdir/t])
+DX_PROG_AUTOTEST_AM
AC_CACHE_CHECK([for struct option in <getopt.h>], [dx_cv_have_struct_option],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <getopt.h>],