as-scrub-include.m4
来自「LAPACK++ (Linear Algebra PACKage in C++)」· M4 代码 · 共 33 行
M4
33 行
dnl as-scrub-include.m4 0.0.1dnl autostars m4 macro for scrubbing CFLAGS of system include dirsdnl because gcc 3.x complains about including system including dirsdnldnl thomas@apestaart.orgdnldnl This macro uses output of cpp -v and expects it to contain text that dnl looks a little bit like this:dnl #include <...> search starts here:dnl /usr/local/includednl /usr/lib/gcc-lib/i386-redhat-linux/3.2/includednl /usr/includednl End of search list.dnl AS_SCRUB_INCLUDE(VAR)dnl examplednl AS_SCRUB_INCLUDE(CFLAGS)dnl will remove all system include dirs from the given CFLAGSAC_DEFUN([AS_SCRUB_INCLUDE],[ GIVEN_CFLAGS=$[$1] INCLUDE_DIRS=`echo | cpp -v 2>&1` dnl remove everything from this output between the "starts here" and "End of" dnl line INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'` for dir in $INCLUDE_DIRS; do GIVEN_CFLAGS=$(echo $GIVEN_CFLAGS | sed -e "s;-I$dir ;;" | sed -e "s;-I$dir$;;") done [$1]=$GIVEN_CFLAGS])
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?