f~ core 英明,带领大家使用autoconf,automake,适用于多平台。;)
后面还有错误。看看如何调试。;)
bash-2.05b# libtool
libtool13 libtool15 libtoolize13 libtoolize15
bash-2.05b# autoconf
autoconf autoconf253
bash-2.05b# automake15
su-2.05b$ cd smth_bbs
su-2.05b$ ls
AUTHORS compile libsystem
COPYING config.guess local_utl
CVS config.icc ltmain.sh
ChangeLog config.lib mail2bbs
INSTALL config.sub makedist.sh
Makefile.am configure.ac rzsz
Makefile.spec.icc contrib service
Makefile.spec.sample daemon site
NEWS doc src
README filter.sh test
acinclude.m4 index wrapper.sh.in
bbs2www lib
bbs2www.in libBBS
su-2.05b$ aclocal15
su-2.05b$ autoheader253
configure.ac:6: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
configure.ac:33: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
configure.ac:211: warning: do not use m4_regexp: use regexp or m4_bregexp
autoheader253: `config.h.in' is created
su-2.05b$ automake15 -a
automake15: configure.ac: `AM_INIT_AUTOMAKE' must be used
automake15: configure.ac: installing `./install-sh'
automake15: configure.ac: installing `./mkinstalldirs'
automake15: configure.ac: installing `./missing'
automake15: configure.ac: installing `./depcomp'
su-2.05b$ autoconf
autoconf autoconf253
su-2.05b$ autoconf
configure.ac:124: error: possibly undefined macro: AC_CONFIG_LIBOBJ_DIR
su-2.05b$ libtool
libtool13 libtool15 libtoolize13 libtoolize15
su-2.05b$ libtoolize15 -c --force
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
su-2.05b$
su-2.05b$ aclocal15;autoheader253 ;automake15 -a;autoconf
configure.ac:6: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
configure.ac:33: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
configure.ac:211: warning: do not use m4_regexp: use regexp or m4_bregexp
autoheader253: `config.h.in' is unchanged
automake15: configure.ac: `AM_INIT_AUTOMAKE' must be used
configure.ac:124: error: possibly undefined macro: AC_CONFIG_LIBOBJ_DIR
===================
然后安装了这几个东西。
/usr/ports/devel/libtool15
automake-1.8.5
autoconf-2.59_2
ports上可以提供的有:
bash-2.05b# cd /usr/ports/devel/automake1
automake14 automake15 automake18 automake19
bash-2.05b# cd /usr/ports/devel/autoconf2
autoconf213 autoconf253 autoconf259
su-2.05b$ libtoolize15 -c --force
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
su-2.05b$ aclocal18;autoheader259;automake18 -a;autoconf259
/usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GT
K
run info '(automake)Extending aclocal'
or see
http://sources.redhat.com/automake/automake.html#Extending%20aclocalconfigure.ac:6: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:6: the top level
configure.ac:6: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:6: the top level
configure.ac:6: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:6: the top level
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
configure.ac:53: required file `innbbsd/Makefile.in' not found
configure.ac:53: required file `innbbsd/linkinnd.sh.in' not found
bbs2www/lib/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
bbs2www/lib/Makefile.am:1:
bbs2www/lib/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_
LIBTOOL'
bbs2www/lib/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' ag
ain.
bbs2www/lib/Makefile.am: installing `./depcomp'
bbs2www/phplib/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
bbs2www/phplib/Makefile.am:3:
bbs2www/phplib/Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PR
OG_LIBTOOL'
bbs2www/phplib/Makefile.am:3: to `configure.ac' and run `aclocal' and `autoconf'
again.
libBBS/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libBBS/Makefile.am:1:
libBBS/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTO
OL'
libBBS/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again.
libsystem/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libsystem/Makefile.am:1:
libsystem/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LI
BTOOL'
libsystem/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' agai
n.
rzsz/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
rzsz/Makefile.am:1:
rzsz/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL
'
rzsz/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again.
service/Makefile.am:4: Libtool library used but `LIBTOOL' is undefined
service/Makefile.am:4:
service/Makefile.am:4: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBT
OOL'
service/Makefile.am:4: to `configure.ac' and run `aclocal' and `autoconf' again.
service/pip/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
service/pip/Makefile.am:1:
service/pip/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_
LIBTOOL'
service/pip/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' ag
ain.
service/worker/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined
service/worker/Makefile.am:2:
service/worker/Makefile.am:2: The usual way to define `LIBTOOL' is to add `AC_PR
OG_LIBTOOL'
service/worker/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf'
again.
configure.ac:53: required file `innbbsd/Makefile.in' not found
configure.ac:53: required file `innbbsd/linkinnd.sh.in' not found
configure.ac:6: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.ac:6: the top level
configure.ac:167: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
【 在 flyriver@bbs.happynet.org-SPAM.no (江~~坏坏大猪) 的大作中提到: 】
: cd smth_bbs
: aclocal; autoheader; automake -a; autoconf
: cd sshbbsd
: aclocal; autoheader; automake -a; autoconf
: 然后就可以 configure 了,不过注意一下你的 libtool 版本是不是 1.4.x 的。
: 如果是 libtool-1.5.x 的话,还得先运行一下 libtoolize -c --force,才能
: 运行 aclocal; autoheader; automake -a; autoconf
: ...................
--
FROM bbs.tju.edu.cn