AIX编译Autotools
目录
单位AIX上的autoconf和automake无法使用,必须得自己编译。
软件清单
- m4
- emacs*
- autoconf
- automake
- libtool
- 编译autoconf竟然需要emacs,单位AIX的emacs也无法使用,需要自己安装。
编译
m4
需要指定xlC为C编译器
./configure --prefix=/path/to/install CC=xlC CFLAGS=-q64 Emacs
编译Emacs一直没成功,无奈找了个aix的二进制包
autoconf
需要指定C编译器和EMACS目录。
./configure \
--prefix=/path/to/install \
CC=xlC \
EMACS=/path/to/emacs/bin \
EMACSLOADPATH=/path/to/emcas/lib automake
指定C和Fortran编译器
./configure \
--prefix=/path/to/install \
CC=xlC \
FC=xlf libtool
指定C、C++、Fortran编译器。
./configure --prefix=/path/to/install \
CC=xlC \
CXX=xlC
F77=xlf \
FC=xlf 使用
发现aix下autoconf检测gcc出错会直接退出,所以使用AC_PROG_CC之类的宏时,要先检测xlc,后检测gcc。
