libkernaux/configure.ac

62 lines
2.8 KiB
Plaintext
Raw Normal View History

2020-11-27 09:28:13 +00:00
AC_PREREQ([2.68])
2020-11-27 10:33:23 +00:00
AC_INIT([libkernaux],
[0.0.0],
2021-12-12 12:13:52 +00:00
[https://github.com/tailix/libkernaux/issues],
2020-11-27 10:33:23 +00:00
[libkernaux],
2021-12-12 12:13:52 +00:00
[https://github.com/tailix/libkernaux])
2020-11-27 09:28:13 +00:00
2020-12-07 04:42:52 +00:00
AC_CONFIG_HEADERS([config.h])
2020-11-27 09:28:13 +00:00
AC_CONFIG_SRCDIR([src/pfa.c])
2020-11-30 04:13:13 +00:00
AC_CANONICAL_HOST
2020-11-30 03:27:43 +00:00
2021-12-14 20:37:11 +00:00
AC_ARG_ENABLE([assert], AS_HELP_STRING([--enable-assert], [enable runtime assertions]))
2020-12-06 00:23:07 +00:00
AC_ARG_ENABLE([cmdline], AS_HELP_STRING([--disable-cmdline], [disable command line parser]))
AC_ARG_ENABLE([console], AS_HELP_STRING([--disable-console], [disable serial console]))
2021-12-13 22:07:00 +00:00
AC_ARG_ENABLE([elf], AS_HELP_STRING([--disable-elf], [disable ELF utils]))
2020-12-06 00:23:07 +00:00
AC_ARG_ENABLE([multiboot2], AS_HELP_STRING([--disable-multiboot2], [disable Multiboot 2 information parser]))
AC_ARG_ENABLE([pfa], AS_HELP_STRING([--disable-pfa], [disable Page Frame Allocator]))
AC_ARG_ENABLE([units], AS_HELP_STRING([--disable-units], [disable measurement units utils]))
2020-12-06 00:23:07 +00:00
2020-12-08 02:56:38 +00:00
AM_CONDITIONAL([ARCH_I386], [test "$host_cpu" = i386])
2020-12-07 04:37:16 +00:00
AM_CONDITIONAL([ARCH_X86_64], [test "$host_cpu" = x86_64])
2021-12-14 20:37:11 +00:00
AM_CONDITIONAL([ENABLE_ASSERT], [test "$enable_assert" != no])
AM_CONDITIONAL([ENABLE_CMDLINE], [test "$enable_cmdline" != no])
AM_CONDITIONAL([ENABLE_CONSOLE], [test "$enable_console" != no])
2021-12-13 22:07:00 +00:00
AM_CONDITIONAL([ENABLE_ELF], [test "$enable_elf" != no])
AM_CONDITIONAL([ENABLE_MULTIBOOT2], [test "$enable_multiboot2" != no])
AM_CONDITIONAL([ENABLE_PFA], [test "$enable_pfa" != no])
AM_CONDITIONAL([ENABLE_UNITS], [test "$enable_units" != no])
2020-12-08 02:56:38 +00:00
AS_IF([test "$host_cpu" = i386], [AC_DEFINE([ARCH_I386], [1], [architecture is i386])])
2020-12-07 04:37:16 +00:00
AS_IF([test "$host_cpu" = x86_64], [AC_DEFINE([ARCH_X86_64], [1], [architecture is x86_64])])
2021-12-14 20:37:11 +00:00
AS_IF([test "$enable_assert" != no], [AC_DEFINE([ENABLE_ASSERT], [1], [enabled runtime assertions])])
AS_IF([test "$enable_cmdline" != no], [AC_DEFINE([ENABLE_CMDLINE], [1], [enabled command line parser])])
AS_IF([test "$enable_console" != no], [AC_DEFINE([ENABLE_CONSOLE], [1], [enabled serial console])])
2021-12-13 22:07:00 +00:00
AS_IF([test "$enable_elf" != no], [AC_DEFINE([ENABLE_ELF], [1], [enabled ELF utils])])
AS_IF([test "$enable_multiboot2" != no], [AC_DEFINE([ENABLE_MULTIBOOT2], [1], [enabled Multiboot 2 information parser])])
AS_IF([test "$enable_pfa" != no], [AC_DEFINE([ENABLE_PFA], [1], [enabled Page Frame Allocator])])
2021-12-13 22:07:00 +00:00
AS_IF([test "$enable_units", != no], [AC_DEFINE([ENABLE_UNITS], [1], [enabled measurement units utils])])
2020-11-30 03:27:43 +00:00
2020-11-27 09:28:13 +00:00
AM_INIT_AUTOMAKE([1.9 subdir-objects -Wall -Werror])
AC_CONFIG_FILES([
Makefile
2020-11-27 10:29:53 +00:00
include/Makefile
2020-11-27 09:28:13 +00:00
])
AC_LANG([C])
2020-11-27 10:33:23 +00:00
AM_PROG_AR
AM_PROG_AS
2020-11-27 09:28:13 +00:00
AC_PROG_CC
2020-11-27 13:43:58 +00:00
AC_PROG_CC_C99
2020-11-27 09:28:13 +00:00
AC_PROG_RANLIB
2020-12-06 04:04:02 +00:00
AC_C_INLINE
2020-12-06 10:27:55 +00:00
AC_CHECK_HEADER_STDBOOL
2020-12-06 21:37:53 +00:00
AC_CHECK_HEADERS([stdarg.h stddef.h])
2020-11-27 09:28:13 +00:00
AC_OUTPUT