chore: clean up build scripts
* remove checks that we do not use * autoconf-archive is now mandatory
This commit is contained in:
parent
5526a0bc77
commit
93a6850de7
27
configure.ac
27
configure.ac
|
@ -19,15 +19,11 @@ LT_INIT([dlopen])
|
|||
|
||||
# -- Checks for programs --
|
||||
|
||||
AC_PROG_AWK
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_CXX
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_MKDIR_P
|
||||
AC_PROG_SED
|
||||
|
||||
# -- Checks for libraries --
|
||||
|
||||
|
@ -70,25 +66,10 @@ AM_CONDITIONAL([BUILD_ARIFY], [test x${enable_arify} != xno])
|
|||
|
||||
# -- Checks for compiler builtins and attributes --
|
||||
|
||||
ARIF_TRY_APPLY([AX_GCC_BUILTIN], [__builtin_unreachable])
|
||||
ARIF_TRY_APPLY([AX_GCC_FUNC_ATTRIBUTE], [constructor], [destructor])
|
||||
ARIF_TRY_APPLY([AX_GCC_VAR_ATTRIBUTE], [unused])
|
||||
|
||||
# -- Checks for header files --
|
||||
|
||||
AC_CHECK_HEADERS([fcntl.h strings.h unistd.h])
|
||||
|
||||
# -- Checks for typedefs, structures, and compiler characteristics --
|
||||
|
||||
AC_CHECK_HEADER_STDBOOL
|
||||
AC_C_INLINE
|
||||
AC_TYPE_SIZE_T
|
||||
|
||||
# -- Checks for library functions
|
||||
|
||||
AC_FUNC_MALLOC
|
||||
AC_FUNC_REALLOC
|
||||
AC_CHECK_FUNCS([atexit memchr strcasecmp])
|
||||
AX_GCC_BUILTIN([__builtin_unreachable])
|
||||
AX_GCC_FUNC_ATTRIBUTE([constructor])
|
||||
AX_GCC_FUNC_ATTRIBUTE([destructor])
|
||||
AX_GCC_VAR_ATTRIBUTE([unused])
|
||||
|
||||
# -- Output --
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ AC_DEFUN([ARIF_ARG_ENABLE], [
|
|||
m4_popdef([enable_var_])
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl ARIF_CHECK_PKG(package, version, package-name, [action-if-not-given],
|
||||
dnl [action-if-with], [action-if-without])
|
||||
|
@ -58,15 +57,3 @@ AC_DEFUN([ARIF_CHECK_PKG], [
|
|||
])
|
||||
m4_popdef([with_var_])
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl ARIF_TRY_APPLY(macro-name, ...)
|
||||
dnl
|
||||
dnl If `macro-name' is defined, for each remaining argument,
|
||||
dnl applies the macro to that argument.
|
||||
dnl
|
||||
AC_DEFUN([ARIF_TRY_APPLY], [
|
||||
m4_ifdef([$1], [
|
||||
m4_foreach([val_], [m4_shift($@)], [$1(val_)])
|
||||
])
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue