2020-11-17 06:24:43 +00:00
|
|
|
dnl
|
2021-01-10 17:53:38 +00:00
|
|
|
dnl Copyright (C) 2020,2021 CismonX <admin@cismon.net>
|
2020-11-17 06:24:43 +00:00
|
|
|
dnl
|
|
|
|
dnl Copying and distribution of this file, with or without modification, are
|
|
|
|
dnl permitted in any medium without royalty, provided the copyright notice and
|
|
|
|
dnl this notice are preserved. This file is offered as-is, without any warranty.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_PREREQ([2.60])
|
2021-01-25 06:17:06 +00:00
|
|
|
AC_INIT([ctlseqs], [0.1.0], [bug-report@cismon.net])
|
2020-11-17 06:24:43 +00:00
|
|
|
AC_CONFIG_SRCDIR([src/ctlseqs.c])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AM_INIT_AUTOMAKE([foreign])
|
2021-01-25 06:17:06 +00:00
|
|
|
AM_EXTRA_RECURSIVE_TARGETS([install-man uninstall-man])
|
2020-11-17 06:24:43 +00:00
|
|
|
LT_PREREQ([2.4.0])
|
|
|
|
LT_INIT
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC_C99
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
|
|
|
|
# Checks for compiler builtins and attributes.
|
|
|
|
m4_ifdef([AX_GCC_BUILTIN], [
|
|
|
|
AX_GCC_BUILTIN(__builtin_expect)
|
|
|
|
AX_GCC_BUILTIN(__builtin_unreachable)
|
|
|
|
AX_GCC_FUNC_ATTRIBUTE(cold)
|
|
|
|
AX_GCC_FUNC_ATTRIBUTE(hot)
|
|
|
|
])
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_CHECK_HEADERS([fcntl.h limits.h stddef.h stdlib.h string.h sys/ioctl.h termios.h unistd.h])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_CHECK_HEADER_STDBOOL
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_SSIZE_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
2021-01-22 04:39:41 +00:00
|
|
|
AC_CHECK_FUNCS([memset strtoul])
|
2020-11-17 06:24:43 +00:00
|
|
|
|
2020-12-14 13:13:13 +00:00
|
|
|
# Specify libtool library version.
|
|
|
|
m4_define([CTLSEQS_LT_CURRENT], [0])
|
|
|
|
m4_define([CTLSEQS_LT_REVISION], [0])
|
|
|
|
m4_define([CTLSEQS_LT_AGE], [0])
|
|
|
|
AC_SUBST([CTLSEQS_LT_VERSION], [CTLSEQS_LT_CURRENT:CTLSEQS_LT_REVISION:CTLSEQS_LT_AGE])
|
|
|
|
|
2020-12-27 18:05:42 +00:00
|
|
|
AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile examples/Makefile])
|
2020-11-17 06:24:43 +00:00
|
|
|
AC_OUTPUT
|