Wez*_*ong 2 automake autoconf autotools libtool
这一直困扰着我多年,但我一直忽视它,就像我怀疑其他人一样.
AM_INIT_AUTOMAKE([dist-bzip2])
AC_PROG_CC
AC_PROG_LIBTOOL
AC_C_INLINE
AM_PROG_CC_C_O
Run Code Online (Sandbox Code Playgroud)
有了上面的configure.ac文件,configure会去找我一个C编译器,但接下来继续:
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 1966080
Run Code Online (Sandbox Code Playgroud)
这并没有真正伤害任何东西,它只会增加视觉噪音并使事情需要更长时间才能运行 - 再次,它并不重要,但多年来一直困扰着我.
我已经尝试过使用--with-tags = C,AC_LANG([C])以及一些其他的shell变量技巧(肯定感觉就像是错误的方式......)看看我是否可以关闭它.
有没有人知道autoconf/automake/libtool有福的方式来获得仅针对C的配置探测?
如果使用libtool 1.5或更早版本,则必须使用脏技巧.把它放在你的configure.ac中:
m4_defun([_LT_AC_LANG_CXX_CONFIG], [:])
m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
Run Code Online (Sandbox Code Playgroud)
或者您可以切换到libtool 2.2或更高版本,它会自动(并且更智能地)检测要查找的编译器.
| 归档时间: |
|
| 查看次数: |
966 次 |
| 最近记录: |