acinclude.m4

来自「xml开源解析代码.版本为libxml2-2.6.29,可支持GB3212.网络」· M4 代码 · 共 29 行

M4
29
字号
dnl Like AC_TRY_EVAL but also errors out if the compiler generatesdnl _any_ output. Some compilers might issue warnings which we wantdnl to catch.AC_DEFUN([AC_TRY_EVAL2],[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl(eval [$]$1) 2>&AC_FD_CC; _out=`eval [$]$1 2>&1` && test "x$_out" = x; }])dnl Like AC_TRY_COMPILE but calls AC_TRY_EVAL2 instead of AC_TRY_EVALAC_DEFUN([AC_TRY_COMPILE2],[cat > conftest.$ac_ext <<EOF[#]line __oline__ "configure"#include "confdefs.h"[$1]int main(void) {[$2]; return 0; }EOFif AC_TRY_EVAL2(ac_compile); then  ifelse([$3], , :, [rm -rf conftest*  $3])else  echo "configure: failed program was:" >&AC_FD_CC  cat conftest.$ac_ext >&AC_FD_CCifelse([$4], , , [  rm -rf conftest*  $4])dnlfirm -f conftest*])

⌨️ 快捷键说明

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