acmacros.m4

来自「FreeFem++可以生成高质量的有限元网格。可以用于流体力学」· M4 代码 · 共 36 行

M4
36
字号
# Checks whether a compiler accepts a given flag# ----------------------------------------------# $1 = compiler name# $2 = flag# $3 = make macro containing flags for that compiler# Note: changes AC_LANG()AC_DEFUN([CHECK_COMPILE_FLAG],	[AC_MSG_CHECKING(whether the $1 compiler accepts $2)	check_save_flags="$$3"	AC_LANG_PUSH($1)	$3="$$3 $2"	# The program needs to contain something for the test source	# file to be created by autoconf.	# Some options really need to be linked (not only compiled) to	# check whether they work.	AC_LINK_IFELSE([ifelse($1,Fortran 77,[       program x       end],			[AC_LANG_PROGRAM])],		check_flag_ok=yes,		check_flag_ok=no)	AC_MSG_RESULT($check_flag_ok)	if test "$check_flag_ok" = no;	then		$3="$check_save_flags"	fi	AC_LANG_POP($1)])

⌨️ 快捷键说明

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