⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.ac

📁 由一个古老的BASIC解释器改进而成, 保留了ANSI C固有的艺术美感.
💻 AC
字号:
# configure.ac for blassic


# Require autoconf >= 2.50
AC_PREREQ(2.50)
AC_INIT(version.cpp)
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM


# Parse version.cpp to get the version number.
# The number is defined in version.cpp to avoid affecting the Windows
# compilation process.
#
# Julian: changed the "grep -w Major" for "grep 'version::Major'"
# because the -w option in not always present,

AC_MSG_CHECKING(for version number in $srcdir/version.cpp)

VERSION_MAJOR=`grep 'version::Major' $srcdir/version.cpp | \
				sed 's/.*version::.*= *//;s/[[,;]]//'`
VERSION_MINOR=`grep 'version::Minor' $srcdir/version.cpp | \
				sed 's/.*version::.*= *//;s/[[,;]]//'`
VERSION_RELEASE=`grep 'version::Release' $srcdir/version.cpp | \
				sed 's/.*version::.*= *//;s/[[,;]]//'`

AC_MSG_RESULT([got $VERSION_MAJOR.$VERSION_MINOR.$VERSION_RELEASE])

if test "_$VERSION_MAJOR" = "_"; then
	AC_MSG_ERROR([version::Major not found])
elif test "_$VERSION_MINOR" = "_"; then
	AC_MSG_ERROR([version::Minor not found])
elif test "_$VERSION_RELEASE" = "_"; then
	AC_MSG_ERROR([version::Release not found])
fi

AM_INIT_AUTOMAKE(blassic, $VERSION_MAJOR.$VERSION_MINOR.$VERSION_RELEASE)


# Checks for programs.
AC_PROG_CXX
AC_LANG_CPLUSPLUS


#CXXFLAGS="-g"  # default compilation options; avoids having -O2 by default
CXXFLAGS="-O3"	# We want maximun optimization even in debugging.

# Julian: Some systems install ncurses in /opt
CPPFLAGS="-I/opt/ncurses/include"
LDFLAGS="-L/opt/ncurses/lib"

###############################################################################
# Julian
# If the systems has libdl, use it.

AC_CHECK_LIB(dl, dlopen)


###############################################################################


AC_ARG_ENABLE(svgalib,
	[  --enable-svgalib              Use svgalib [[yes]]],
	[
		if test "_$enableval" = "_no"; then
			:
			AC_SUBST(SVGALIB_CFLAGS)
			AC_SUBST(SVGALIB_LIBS)
		else
			AM_PATH_SVGALIB(1.4.0)
		fi
	],
	[
		:
		AC_SUBST(SVGALIB_CFLAGS)
		AC_SUBST(SVGALIB_LIBS)
	]
)
if test "_$SVGALIB_LIBS" = "_"; then
	AC_MSG_RESULT([not using svgalib])
fi


###############################################################################


AC_ARG_ENABLE(installed-examples,
	[  --enable-installed-examples   Install the example programs [[yes]]],
	[
		if test "_$enableval" = "_no"; then
			INSTALL_EXAMPLE_PROGS=no
		else
			INSTALL_EXAMPLE_PROGS=yes
		fi
	],
	[
		INSTALL_EXAMPLE_PROGS=yes
	]
)

AM_CONDITIONAL(INSTALL_EXAMPLE_PROGS, [test "_$INSTALL_EXAMPLE_PROGS" = _yes])




###############################################################################

# Generate files.
AC_OUTPUT([
	Makefile
	blassic.spec
])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -