dnl License for more details.
dnl
-AC_PREREQ(2.64)
-AC_INIT([GNU lightning], 2.1.3, pcpa@gnu.org, lightning)
+AC_PREREQ([2.71])
+AC_INIT([GNU lightning],[2.1.3],[pcpa@gnu.org],[lightning])
AC_CONFIG_AUX_DIR([build-aux])
AC_CANONICAL_TARGET
AC_CONFIG_SRCDIR([Makefile.am])
if test "x$DISASSEMBLER" != "xno"; then
LIGHTNING_CFLAGS="$LIGHTNING_CFLAGS -DDISASSEMBLER=1"
save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -I$PWD/include -D_GNU_SOURCE"
+ CFLAGS="$CFLAGS -D_GNU_SOURCE"
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
- #include <lightning.h>
- #include <lightning/jit_private.h>
#include <dis-asm.h>
int main(int argc, char *argv[])
{
s390*) cpu=s390 ;;
alpha*) cpu=alpha ;;
riscv*) cpu=riscv ;;
+ loongarch*) cpu=loongarch ;;
*) ;;
esac
-AM_CONDITIONAL(cpu_arm, [test cpu-$cpu = cpu-arm])
-AM_CONDITIONAL(cpu_mips, [test cpu-$cpu = cpu-mips])
-AM_CONDITIONAL(cpu_ppc, [test cpu-$cpu = cpu-ppc])
-AM_CONDITIONAL(cpu_sparc, [test cpu-$cpu = cpu-sparc])
-AM_CONDITIONAL(cpu_x86, [test cpu-$cpu = cpu-x86])
-AM_CONDITIONAL(cpu_ia64, [test cpu-$cpu = cpu-ia64])
-AM_CONDITIONAL(cpu_hppa, [test cpu-$cpu = cpu-hppa])
-AM_CONDITIONAL(cpu_aarch64, [test cpu-$cpu = cpu-aarch64])
-AM_CONDITIONAL(cpu_s390, [test cpu-$cpu = cpu-s390])
-AM_CONDITIONAL(cpu_alpha, [test cpu-$cpu = cpu-alpha])
-AM_CONDITIONAL(cpu_riscv, [test cpu-$cpu = cpu-riscv])
+AM_CONDITIONAL(cpu_arm, [test cpu-$cpu = cpu-arm])
+AM_CONDITIONAL(cpu_mips, [test cpu-$cpu = cpu-mips])
+AM_CONDITIONAL(cpu_ppc, [test cpu-$cpu = cpu-ppc])
+AM_CONDITIONAL(cpu_sparc, [test cpu-$cpu = cpu-sparc])
+AM_CONDITIONAL(cpu_x86, [test cpu-$cpu = cpu-x86])
+AM_CONDITIONAL(cpu_ia64, [test cpu-$cpu = cpu-ia64])
+AM_CONDITIONAL(cpu_hppa, [test cpu-$cpu = cpu-hppa])
+AM_CONDITIONAL(cpu_aarch64, [test cpu-$cpu = cpu-aarch64])
+AM_CONDITIONAL(cpu_s390, [test cpu-$cpu = cpu-s390])
+AM_CONDITIONAL(cpu_alpha, [test cpu-$cpu = cpu-alpha])
+AM_CONDITIONAL(cpu_riscv, [test cpu-$cpu = cpu-riscv])
+AM_CONDITIONAL(cpu_loongarch, [test cpu-$cpu = cpu-loongarch])
# Test x87 if both, x87 and sse2 available
ac_cv_test_x86_x87=
ac_cv_test_arm_swf=
save_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -I$PWD/include -D_GNU_SOURCE"
+CFLAGS="$CFLAGS -D_GNU_SOURCE"
if test x$cpu = x; then
AC_MSG_ERROR([cpu $target_cpu not supported])
elif test $cpu = x86; then
AC_RUN_IFELSE([AC_LANG_SOURCE([[
- #include <lightning.h>
int main(void) {
int ac, flags;
unsigned int eax, ebx, ecx, edx;
AC_SUBST(MAYBE_INCLUDE_STDINT_H, ["#include <stdint.h>"])
fi
-AC_OUTPUT([Makefile
+AC_CONFIG_FILES([Makefile
lightning.pc
gnulib-lib/Makefile
doc/Makefile
include/lightning.h
lib/Makefile
check/Makefile])
+AC_OUTPUT