2023-02-21 00:24:21 +03:00
|
|
|
AC_INIT([Limine], [m4_esyscmd([./version.sh])], [https://github.com/limine-bootloader/limine/issues], [limine], [https://limine-bootloader.org/])
|
2022-01-16 08:09:36 +03:00
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_PREREQ([2.69])
|
2022-01-16 08:09:36 +03:00
|
|
|
|
2022-01-31 13:46:19 +03:00
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
|
2022-02-11 22:46:57 +03:00
|
|
|
SRCDIR="$(cd "$srcdir" && pwd -P)"
|
|
|
|
BUILDDIR="$(pwd -P)"
|
2022-01-16 08:09:36 +03:00
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([SRCDIR])
|
|
|
|
AC_SUBST([BUILDDIR])
|
2022-02-11 22:46:57 +03:00
|
|
|
|
2023-02-21 02:15:04 +03:00
|
|
|
REGEN_DATE="m4_esyscmd([date '+%B %Y' | tr -d '\n'])"
|
|
|
|
AC_SUBST([REGEN_DATE])
|
|
|
|
|
2023-03-14 21:51:22 +03:00
|
|
|
AC_DEFUN([PROG_ABSPATH], [
|
|
|
|
case "$$1" in
|
|
|
|
.*) $1="$(cd "$(dirname "$$1")" && pwd -P)/$(basename "$$1")" ;;
|
|
|
|
esac
|
|
|
|
])
|
|
|
|
|
2023-04-11 18:15:41 +03:00
|
|
|
test "x$CFLAGS" = "x" && CFLAGS='-g -O2 -pipe'
|
2023-02-12 22:14:51 +03:00
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_LANG([C])
|
2022-01-31 13:46:19 +03:00
|
|
|
AC_PROG_CC
|
2023-03-14 21:51:22 +03:00
|
|
|
PROG_ABSPATH([CC])
|
2022-01-28 12:23:26 +03:00
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_CHECK_HEADERS([stdint.h stddef.h stdbool.h limits.h inttypes.h stdio.h stdlib.h string.h],
|
2023-02-21 00:24:21 +03:00
|
|
|
[], [AC_MSG_ERROR([required header not found])])
|
2023-02-12 22:14:51 +03:00
|
|
|
|
2022-01-28 12:23:26 +03:00
|
|
|
werror_state="no"
|
|
|
|
AC_ARG_ENABLE([werror],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-werror], [treat warnings as errors])],
|
|
|
|
[werror_state="$enableval"])
|
2022-01-28 12:23:26 +03:00
|
|
|
if test "$werror_state" = "yes"; then
|
2023-04-11 18:15:41 +03:00
|
|
|
AC_SUBST([WERROR_FLAG], [-Werror])
|
|
|
|
else
|
|
|
|
AC_SUBST([WERROR_FLAG], [-Wno-error])
|
2022-01-28 12:23:26 +03:00
|
|
|
fi
|
|
|
|
|
2022-08-08 23:00:25 +03:00
|
|
|
AC_PROG_MKDIR_P
|
2023-03-14 21:51:22 +03:00
|
|
|
PROG_ABSPATH([MKDIR_P])
|
2022-01-22 05:46:48 +03:00
|
|
|
AC_PROG_INSTALL
|
2023-03-14 21:51:22 +03:00
|
|
|
PROG_ABSPATH([INSTALL])
|
2022-02-01 10:04:55 +03:00
|
|
|
AC_PROG_SED
|
2023-03-14 21:51:22 +03:00
|
|
|
PROG_ABSPATH([SED])
|
2022-09-15 07:56:32 +03:00
|
|
|
AC_PROG_GREP
|
2023-03-14 21:51:22 +03:00
|
|
|
PROG_ABSPATH([GREP])
|
2022-02-01 10:04:55 +03:00
|
|
|
AC_PROG_AWK
|
2023-03-14 21:51:22 +03:00
|
|
|
PROG_ABSPATH([AWK])
|
2022-02-01 10:04:55 +03:00
|
|
|
|
|
|
|
AC_CHECK_PROG([FIND_FOUND], [find], [yes])
|
|
|
|
if ! test "x$FIND_FOUND" = "xyes"; then
|
|
|
|
AC_MSG_ERROR([find not found, please install find before configuring])
|
|
|
|
fi
|
2022-01-16 08:09:36 +03:00
|
|
|
|
2023-02-12 22:14:51 +03:00
|
|
|
NATIVE_STRIP="$($CC -dumpmachine)"-strip
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_CHECK_PROG([NATIVE_STRIP_FOUND], [$NATIVE_STRIP], [yes])
|
2023-02-12 22:14:51 +03:00
|
|
|
if ! test "x$NATIVE_STRIP_FOUND" = "xyes"; then
|
|
|
|
NATIVE_STRIP=strip
|
|
|
|
fi
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([NATIVE_STRIP])
|
2023-02-12 22:14:51 +03:00
|
|
|
|
2023-03-14 19:20:46 +03:00
|
|
|
rm -rf "$BUILDDIR/toolchain-files"
|
2022-07-04 10:09:46 +03:00
|
|
|
|
2022-06-15 06:01:22 +03:00
|
|
|
BUILD_ALL="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([all],
|
2023-03-14 19:20:46 +03:00
|
|
|
[AS_HELP_STRING([--enable-all], [enable ALL ports and targets])],
|
2023-02-21 00:24:21 +03:00
|
|
|
[BUILD_ALL="$enableval"])
|
2022-06-15 06:01:22 +03:00
|
|
|
|
2022-09-22 16:58:59 +03:00
|
|
|
BUILD_CD="$BUILD_ALL"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([bios-cd],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-bios-cd], [enable building the x86 BIOS CD image])],
|
|
|
|
[BUILD_CD="$enableval"])
|
2022-09-22 16:58:59 +03:00
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([BUILD_CD])
|
2022-09-22 16:58:59 +03:00
|
|
|
|
|
|
|
BUILD_PXE="$BUILD_ALL"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([bios-pxe],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-bios-pxe], [enable building the x86 BIOS PXE image])],
|
|
|
|
[BUILD_PXE="$enableval"])
|
2022-09-22 16:58:59 +03:00
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([BUILD_PXE])
|
2022-09-22 16:58:59 +03:00
|
|
|
|
2022-06-15 06:01:22 +03:00
|
|
|
BUILD_BIOS="$BUILD_ALL"
|
2022-02-18 04:23:39 +03:00
|
|
|
|
|
|
|
AC_ARG_ENABLE([bios],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-bios], [enable building the x86 BIOS port])],
|
|
|
|
[BUILD_BIOS="$enableval"])
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-09-22 16:58:59 +03:00
|
|
|
if test "x$BUILD_BIOS" = "xno"; then
|
|
|
|
if test "x$BUILD_CD" = "xyes"; then
|
|
|
|
BUILD_BIOS="yes"
|
|
|
|
fi
|
|
|
|
if test "x$BUILD_PXE" = "xyes"; then
|
|
|
|
BUILD_BIOS="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2022-02-18 04:23:39 +03:00
|
|
|
if test "x$BUILD_BIOS" = "xno"; then
|
|
|
|
BUILD_BIOS=""
|
|
|
|
else
|
2023-03-14 19:20:46 +03:00
|
|
|
$MKDIR_P "$BUILDDIR/toolchain-files"
|
2023-03-15 00:35:11 +03:00
|
|
|
CC="$CC" \
|
|
|
|
ARCHITECTURE=i686 \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_TOOLCHAIN_SUFFIX="_FOR_TARGET" \
|
|
|
|
FREESTANDING_TOOLCHAIN="$TOOLCHAIN_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_CC=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_CC="$CC_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_LD=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_LD="$LD_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJCOPY=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJCOPY="$OBJCOPY_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJDUMP=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJDUMP="$OBJDUMP_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_READELF=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_READELF="$READELF_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
"$SRCDIR/freestanding-toolchain" >"$BUILDDIR/toolchain-files/bios-i686-toolchain.mk" || exit 1
|
2022-02-18 04:23:39 +03:00
|
|
|
BUILD_BIOS="limine-bios"
|
2022-09-15 07:33:29 +03:00
|
|
|
NEED_NASM=yes
|
|
|
|
NEED_GZIP=yes
|
2022-02-18 04:23:39 +03:00
|
|
|
fi
|
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([BUILD_BIOS])
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-06-15 06:01:22 +03:00
|
|
|
BUILD_UEFI_IA32="$BUILD_ALL"
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-06-15 04:25:36 +03:00
|
|
|
AC_ARG_ENABLE([uefi-ia32],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-uefi-ia32], [enable building the IA-32 UEFI port])],
|
|
|
|
[BUILD_UEFI_IA32="$enableval"])
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-06-15 04:25:36 +03:00
|
|
|
if test "x$BUILD_UEFI_IA32" = "xno"; then
|
|
|
|
BUILD_UEFI_IA32=""
|
2022-02-18 04:23:39 +03:00
|
|
|
else
|
2023-03-14 19:20:46 +03:00
|
|
|
$MKDIR_P "$BUILDDIR/toolchain-files"
|
2023-03-15 00:35:11 +03:00
|
|
|
CC="$CC" \
|
|
|
|
ARCHITECTURE=i686 \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_TOOLCHAIN_SUFFIX="_FOR_TARGET" \
|
|
|
|
FREESTANDING_TOOLCHAIN="$TOOLCHAIN_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_CC=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_CC="$CC_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_LD=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_LD="$LD_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJCOPY=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJCOPY="$OBJCOPY_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJDUMP=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJDUMP="$OBJDUMP_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
"$SRCDIR/freestanding-toolchain" >"$BUILDDIR/toolchain-files/uefi-i686-toolchain.mk" || exit 1
|
2022-06-15 04:25:36 +03:00
|
|
|
BUILD_UEFI_IA32="limine-uefi-ia32"
|
2022-09-15 07:33:29 +03:00
|
|
|
NEED_NASM=yes
|
2022-02-18 04:23:39 +03:00
|
|
|
fi
|
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([BUILD_UEFI_IA32])
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-06-15 06:01:22 +03:00
|
|
|
BUILD_UEFI_X86_64="$BUILD_ALL"
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-06-15 04:25:36 +03:00
|
|
|
AC_ARG_ENABLE([uefi-x86-64],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-uefi-x86-64], [enable building the x86-64 UEFI port])],
|
|
|
|
[BUILD_UEFI_X86_64="$enableval"])
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-06-15 04:25:36 +03:00
|
|
|
if test "x$BUILD_UEFI_X86_64" = "xno"; then
|
|
|
|
BUILD_UEFI_X86_64=""
|
2022-02-18 04:23:39 +03:00
|
|
|
else
|
2023-03-14 19:20:46 +03:00
|
|
|
$MKDIR_P "$BUILDDIR/toolchain-files"
|
2023-03-15 00:35:11 +03:00
|
|
|
CC="$CC" \
|
|
|
|
ARCHITECTURE=x86_64 \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_TOOLCHAIN_SUFFIX="_FOR_TARGET" \
|
|
|
|
FREESTANDING_TOOLCHAIN="$TOOLCHAIN_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_CC=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_CC="$CC_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_LD=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_LD="$LD_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJCOPY=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJCOPY="$OBJCOPY_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJDUMP=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJDUMP="$OBJDUMP_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
"$SRCDIR/freestanding-toolchain" >"$BUILDDIR/toolchain-files/uefi-x86_64-toolchain.mk" || exit 1
|
2022-06-15 04:25:36 +03:00
|
|
|
BUILD_UEFI_X86_64="limine-uefi-x86-64"
|
2022-09-15 07:33:29 +03:00
|
|
|
NEED_NASM=yes
|
2022-02-18 04:23:39 +03:00
|
|
|
fi
|
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([BUILD_UEFI_X86_64])
|
2022-02-18 04:23:39 +03:00
|
|
|
|
2022-08-18 18:32:54 +03:00
|
|
|
BUILD_UEFI_AARCH64="$BUILD_ALL"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([uefi-aarch64],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-uefi-aarch64], [enable building the aarch64 UEFI port])],
|
|
|
|
[BUILD_UEFI_AARCH64="$enableval"])
|
2022-08-18 18:32:54 +03:00
|
|
|
|
|
|
|
if test "x$BUILD_UEFI_AARCH64" = "xno"; then
|
|
|
|
BUILD_UEFI_AARCH64=""
|
|
|
|
else
|
2023-03-14 19:20:46 +03:00
|
|
|
mkdir -p "$BUILDDIR/toolchain-files"
|
2023-03-15 00:35:11 +03:00
|
|
|
CC="$CC" \
|
|
|
|
ARCHITECTURE=aarch64 \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_TOOLCHAIN_SUFFIX="_FOR_TARGET" \
|
|
|
|
FREESTANDING_TOOLCHAIN="$TOOLCHAIN_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_CC=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_CC="$CC_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_LD=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_LD="$LD_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJCOPY=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJCOPY="$OBJCOPY_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
WANT_FREESTANDING_OBJDUMP=yes \
|
2023-03-16 04:28:50 +03:00
|
|
|
FREESTANDING_OBJDUMP="$OBJDUMP_FOR_TARGET" \
|
2023-03-15 00:35:11 +03:00
|
|
|
"$SRCDIR/freestanding-toolchain" >"$BUILDDIR/toolchain-files/uefi-aarch64-toolchain.mk" || exit 1
|
2022-08-18 18:32:54 +03:00
|
|
|
BUILD_UEFI_AARCH64="limine-uefi-aarch64"
|
|
|
|
fi
|
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([BUILD_UEFI_AARCH64])
|
2022-08-18 18:32:54 +03:00
|
|
|
|
2022-06-15 06:01:22 +03:00
|
|
|
BUILD_CD_EFI="$BUILD_ALL"
|
2022-02-08 17:35:54 +03:00
|
|
|
|
2022-09-22 16:58:59 +03:00
|
|
|
AC_ARG_ENABLE([uefi-cd],
|
2023-02-21 00:24:21 +03:00
|
|
|
[AS_HELP_STRING([--enable-uefi-cd], [enable building limine-cd-efi.bin])],
|
|
|
|
[BUILD_CD_EFI="$enableval"])
|
2022-02-08 17:35:54 +03:00
|
|
|
|
2022-03-30 16:14:02 +03:00
|
|
|
if ! test "x$BUILD_CD_EFI" = "xno"; then
|
2022-02-08 17:43:21 +03:00
|
|
|
AC_CHECK_PROG([MTOOLS_FOUND], [mcopy], [yes])
|
|
|
|
if ! test "x$MTOOLS_FOUND" = "xyes"; then
|
2022-03-30 16:14:02 +03:00
|
|
|
if test "x$BUILD_CD_EFI" = "xyes"; then
|
|
|
|
AC_MSG_ERROR([mtools not found, install mtools to build limine-cd-efi.bin])
|
2022-02-08 17:43:21 +03:00
|
|
|
fi
|
2022-03-30 16:14:02 +03:00
|
|
|
AC_MSG_WARN([mtools not found, install mtools to build limine-cd-efi.bin])
|
|
|
|
BUILD_CD_EFI="no"
|
2022-02-08 17:43:21 +03:00
|
|
|
fi
|
2022-02-08 17:35:54 +03:00
|
|
|
fi
|
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([BUILD_CD_EFI])
|
2022-01-31 13:46:19 +03:00
|
|
|
|
2022-09-15 07:33:29 +03:00
|
|
|
if test "x$NEED_NASM" = "xyes"; then
|
|
|
|
AC_CHECK_PROG([NASM_FOUND], [nasm], [yes])
|
|
|
|
if ! test "x$NASM_FOUND" = "xyes"; then
|
|
|
|
AC_MSG_ERROR([nasm not found, please install nasm before configuring])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$NEED_GZIP" = "xyes"; then
|
|
|
|
AC_CHECK_PROG([GZIP_FOUND], [gzip], [yes])
|
|
|
|
if ! test "x$GZIP_FOUND" = "xyes"; then
|
|
|
|
AC_MSG_ERROR([gzip not found, please install gzip before configuring])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2023-03-16 04:28:50 +03:00
|
|
|
AC_ARG_VAR([TOOLCHAIN_FOR_TARGET], [alternative toolchain prefix for Limine (or 'llvm', or 'gnu')])
|
|
|
|
AC_ARG_VAR([CC_FOR_TARGET], [C compiler command for Limine])
|
|
|
|
AC_ARG_VAR([LD_FOR_TARGET], [linker command for Limine])
|
|
|
|
AC_ARG_VAR([OBJCOPY_FOR_TARGET], [objcopy command for Limine])
|
|
|
|
AC_ARG_VAR([OBJDUMP_FOR_TARGET], [objdump command for Limine])
|
|
|
|
AC_ARG_VAR([READELF_FOR_TARGET], [readelf command for Limine])
|
2022-02-01 10:04:55 +03:00
|
|
|
|
2023-04-11 18:15:41 +03:00
|
|
|
m4_define([DEFAULT_CFLAGS_FOR_TARGET], [-g -O2 -pipe])
|
2023-03-16 04:28:50 +03:00
|
|
|
AC_ARG_VAR([CFLAGS_FOR_TARGET], [C flags for Limine @<:@default: ]DEFAULT_CFLAGS_FOR_TARGET[@:>@])
|
|
|
|
test "x$CFLAGS_FOR_TARGET" = "x" && CFLAGS_FOR_TARGET="DEFAULT_CFLAGS_FOR_TARGET"
|
2022-02-01 10:04:55 +03:00
|
|
|
|
2023-03-16 04:28:50 +03:00
|
|
|
m4_define([DEFAULT_CPPFLAGS_FOR_TARGET], [])
|
|
|
|
AC_ARG_VAR([CPPFLAGS_FOR_TARGET], [C preprocessor flags for Limine @<:@default: ]DEFAULT_CPPFLAGS_FOR_TARGET[@:>@])
|
|
|
|
test "x$CPPFLAGS_FOR_TARGET" = "x" && CPPFLAGS_FOR_TARGET="DEFAULT_CPPFLAGS_FOR_TARGET"
|
2023-02-25 03:38:26 +03:00
|
|
|
|
2023-03-16 04:28:50 +03:00
|
|
|
m4_define([DEFAULT_LDFLAGS_FOR_TARGET], [])
|
|
|
|
AC_ARG_VAR([LDFLAGS_FOR_TARGET], [Linker flags for Limine @<:@default: ]DEFAULT_LDFLAGS_FOR_TARGET[@:>@])
|
|
|
|
test "x$LDFLAGS_FOR_TARGET" = "x" && LDFLAGS_FOR_TARGET="DEFAULT_LDFLAGS_FOR_TARGET"
|
2022-01-16 08:09:36 +03:00
|
|
|
|
2023-03-10 16:01:49 +03:00
|
|
|
LIMINE_COPYRIGHT=$($GREP Copyright "$SRCDIR/LICENSE")
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_SUBST([LIMINE_COPYRIGHT])
|
2022-02-21 01:05:53 +03:00
|
|
|
|
2023-02-19 12:07:21 +03:00
|
|
|
AC_PREFIX_DEFAULT([/usr/local])
|
2022-01-16 08:09:36 +03:00
|
|
|
|
2023-03-23 04:35:08 +03:00
|
|
|
if ! test "$SRCDIR" = "$BUILDDIR"; then
|
|
|
|
cp "$SRCDIR/limine.h" "$BUILDDIR/"
|
|
|
|
fi
|
|
|
|
|
2023-04-11 23:04:05 +03:00
|
|
|
AC_CONFIG_FILES([man/man1/limine.1 GNUmakefile config.h])
|
2022-01-16 08:09:36 +03:00
|
|
|
AC_OUTPUT
|