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

📄 aclocal.m4

📁 cipe 编程
💻 M4
字号:
dnl AX_MSG_RESULT_YN(a)dnl results "yes" iff a==1, "no" elseAC_DEFUN(AX_MSG_RESULT_YN, [x=notest "x$1" = "x1" && x=yesAC_MSG_RESULT($x)])dnl AX_EGREP(expr, file, action-if-found, action-if-not-found)dnl egrep for expr in fileAC_DEFUN(AX_EGREP, [dnlchangequote(, )dnl  if egrep "$1" $2 >/dev/null 2>&1; thenchangequote([, ])dnl  ifelse([$3], , :, [$3])ifelse([$4], , , [else  $4])dnlfi])dnl AX_MACRO_STR(macro, file)dnl grep string #define out of headerdnl result value in $ax_resultAC_DEFUN(AX_MACRO_STR,[AC_REQUIRE_CPP()dnlcat > conftest.$ac_ext <<EOF[#]line __oline__ "configure"#include "confdefs.h"#include <$2>[$1]EOF(eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |\ sed -n -e 's/^ *"\(.*\)".*$/\1/p' >conftestchangequote(, )dnlset "X" "`cat conftest`"changequote([, ])dnlax_result=[$]2rm -f conftest*])AC_DEFUN(AX_SAVE, [eval $1_AX_[$ax_stack]=[\"]$$1[\"]])AC_DEFUN(AX_RESTORE, [eval $1=[\"\$]{$1_AX_[$ax_stack]}[\"]])dnl AX_PUSHdnl save the contents of CFLAGS etc.AC_DEFUN(AX_PUSH, [dnlax_stack=`expr 0$ax_stack + 1`AX_SAVE(CC)AX_SAVE(CFLAGS)AX_SAVE(CPPFLAGS)AX_SAVE(LDFLAGS)AX_SAVE(LIBS)])dnl AX_POPdnl restore the contents of CFLAGS etc.AC_DEFUN(AX_POP, [dnlAX_RESTORE(CC)AX_RESTORE(CFLAGS)AX_RESTORE(CPPFLAGS)AX_RESTORE(LDFLAGS)AX_RESTORE(LIBS)ax_stack=`expr 0$ax_stack - 1`])dnl AX_GCC_NOALIASdnl adjust CFLAGS to include -fno-strict-aliasing if available.AC_DEFUN(AX_GCC_NOALIAS, [dnlAC_REQUIRE([AC_PROG_CC])AC_CACHE_CHECK([whether $CC needs -fno-strict-aliasing], ax_cv_prog_gcc_noalias, [  ax_cv_prog_gcc_noalias=no  if test "$GCC" ; then    AX_PUSH    CFLAGS="-fno-strict-aliasing $CFLAGS"    AC_TRY_COMPILE([], [return;], ax_cv_prog_gcc_noalias=yes)    AX_POP  fi])test "$ax_cv_prog_gcc_noalias" = "yes" && CFLAGS="-fno-strict-aliasing $CFLAGS"])dnl AX_FMTSTRING(N, V)dnl do AC_DEFINE_UNQUOTED if V is a proper format stringAC_DEFUN(AX_FMTSTRING, [dnlif test `echo "$2" | wc -c` -gt 120 ; then  AC_MSG_WARN(format string too long - ignoring);else  changequote(, )dnl why do I have to use [[]] despite this???  dnl change %[^s] to %% and %s to %  dnl the blank after $2 is necessary!  ax_ps=`echo "$2 " | sed 's/%[[^s]]/%%/g;s/%s/%/g;s/[[^%]]//g'`  changequote([, ])dnl  if test "$ax_ps" = "%" ; then     AC_DEFINE_UNQUOTED($1, $2)  else     AC_MSG_WARN($2 is not a proper format string - ignoring);   fifi])

⌨️ 快捷键说明

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