2015-07-15 03:43:52 +00:00
|
|
|
# -*- Autoconf -*-
|
2012-04-21 00:04:34 +00:00
|
|
|
# Process this file with autoconf to produce a configure script.
|
2022-10-31 02:36:44 +00:00
|
|
|
AC_INIT(epple2, v1.0.6)
|
2013-12-20 23:13:20 +00:00
|
|
|
AC_PREREQ(2.68)
|
2012-04-21 00:04:34 +00:00
|
|
|
|
2013-12-20 04:17:32 +00:00
|
|
|
AC_CONFIG_SRCDIR([src/apple2.cpp])
|
2012-04-21 00:04:34 +00:00
|
|
|
|
2015-07-29 04:08:52 +00:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2013-12-20 04:17:32 +00:00
|
|
|
AM_INIT_AUTOMAKE
|
2012-04-21 00:04:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CXX
|
2015-07-29 04:08:52 +00:00
|
|
|
AC_LANG([C++])
|
2016-11-13 05:33:35 +00:00
|
|
|
AC_REQUIRE_CPP
|
2012-04-21 00:04:34 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_RANLIB
|
2015-07-15 03:43:52 +00:00
|
|
|
AC_PATH_PROGS([XA65],[xa65 xa])
|
|
|
|
if test "X$ac_cv_path_XA65" == X
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([Cannot find xa (xa65) 6502 cross assembler by Andre Fachat])
|
|
|
|
fi
|
|
|
|
AC_ARG_VAR([XA65],[path to xa (xa65) 6502 cross assembler by Andre Fachat])
|
|
|
|
|
|
|
|
AC_PATH_PROG([LDO65],[ldo65])
|
|
|
|
if test "X$ac_cv_path_LDO65" == X
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([Cannot find ldo65, from xa (xa65) 6502 cross assembler by Andre Fachat])
|
|
|
|
fi
|
|
|
|
AC_ARG_VAR([LDO65],[path to ldo65, from xa (xa65) 6502 cross assembler by Andre Fachat])
|
|
|
|
|
|
|
|
AC_PATH_PROG([RELOC65],[reloc65])
|
|
|
|
if test "X$ac_cv_path_RELOC65" == X
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([Cannot find reloc, from xa (xa65) 6502 cross assembler by Andre Fachat])
|
|
|
|
fi
|
|
|
|
AC_ARG_VAR([RELOC65],[path to reloc65, from xa (xa65) 6502 cross assembler by Andre Fachat])
|
|
|
|
|
|
|
|
AC_PATH_PROG([M4],[m4])
|
|
|
|
if test "X$ac_cv_path_M4" == X
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([Cannot find m4])
|
|
|
|
fi
|
|
|
|
AC_ARG_VAR([M4],[path to m4])
|
|
|
|
|
|
|
|
AC_PATH_PROG([MD5SUM],[md5sum])
|
|
|
|
AC_ARG_VAR([MD5SUM],[path to md5sum])
|
2012-04-21 00:04:34 +00:00
|
|
|
|
2013-02-01 00:12:59 +00:00
|
|
|
|
|
|
|
|
2012-04-21 00:04:34 +00:00
|
|
|
# Checks for libraries.
|
2019-04-11 20:14:55 +00:00
|
|
|
AC_CHECK_LIB([SDL2],[SDL_Init],,[AC_MSG_ERROR([cannot find libSDL2])])
|
2012-04-21 00:04:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_SIZE_T
|
2019-04-13 20:59:22 +00:00
|
|
|
|
|
|
|
|
2012-04-21 00:04:34 +00:00
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_CHECK_FUNCS([memset sqrt])
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-13 03:27:50 +00:00
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile conf/Makefile rom/Makefile])
|
2012-04-21 00:04:34 +00:00
|
|
|
AC_OUTPUT
|