2012-04-16 7 views
0

私はWindows XP(SP3)のユーザーで、linuxユーティリティーの新人です。 私はautoconfとlinuxの他の自動ツールを使う必要があります。私は自分のシステムに以下のものをインストールしています。linuxの自動ツールを使用して

-Msysバージョン1.0.11 -msysDTK-1.0.1 -msysgit -wget-1.11.4-1 -autoconf-2.68 -automake-1.11.1 -libtool-2.4.1 - libcrypt-1.1 -perl-5.8.8 -m4-1.4.14 --gettext runtime_0.18.1.1-2_win32 -glib_2.28.1-1_win32 -glib_2.28.8-1_win32 -pkg-config_0.23- 3_win32 -pkg-config-dev_0.23-3_win32

私はチュートリアルを試しました Configure.acは、次の行で作成されたhttp://www.dwheeler.com/autotoolsから "autotoolsの入門"、MSYSシェルから

AC_INIT([hello], [0.01]) 
AC_OUTPUT 

は、コマンドを実行した

$ autoreconf -i 

は、私が以前にネットから別のアーカイブされたチュートリアルを試してみました

/usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of AG_PATH_AU 
TOOPTS 
/usr/share/aclocal/autoopts.m4:22: run info '(automake)Extending aclocal' 
/usr/share/aclocal/autoopts.m4:22: or see http://sources.redhat.com/automake/a 
utomake.html#Extending-aclocal 

次のログ、すなわち、を得ましたにhello-initialというディレクトリがあります。 'hello-initial'にはhello.cとhello.hを含むsrcディレクトリがあります。 Makefile.amを次の行で作成しました。

SUBDIRS = src。 srcディレクトリ内

、次の行にMakefile.amを作成し、

helloprgdir=../ 
helloprg_PROGRAMS=hello 
hello_SOURCES=hello.c 

IのCD編MSYSでハロー初期ディレクトリには、シェル、およびチュートリアルに続いて、次のログが生成されましたすなわち、

[email protected]_1 ~ 
$ cd /gold/hello-initial 

[email protected]_1 /gold/hello-initial 
$ autoscan 

[email protected]_1 /gold/hello-initial 
$ aclocal 
/usr/share/aclocal/autoopts.m4:22: warning: underquoted definition of AG_PATH_AU 
TOOPTS 
/usr/share/aclocal/autoopts.m4:22: run info '(automake)Extending aclocal' 
/usr/share/aclocal/autoopts.m4:22: or see http://sources.redhat.com/automake/a 
utomake.html#Extending-aclocal 
configure.ac:8: warning: macro `AM_CONFIG_HEADERS' not found in library 

[email protected]_1 /gold/hello-initial 
$ automake -ac 
configure.ac:7: installing `./install-sh' 
configure.ac:7: installing `./missing' 
automake: no `Makefile.am' found for any configure output. 

P1のヘルプ。 RGDS、

+3

をしてください使用し、自分自身と世界に好意を行うと、オートツールを使用しないでください。たとえば、代わりにCMakeを使用します。 – zvrba

+0

CMakeへの切り替えを提案する+1。オートツールはオートシェルに似ています。もちろん、それらを使用することを強制されていない限り(Gnomeプラットフォームへの貢献など)... –

答えて

1

configure.ac

AC_INIT([project name], [major.minor.revision], [[email protected]]) 
AM_INIT_AUTOMAKE([foreign])dnl foreign means that its not standard gnu project or not strict 
AC_PROG_CC 
AC_CONFIG_FILES([ 
Makefile 
]) 
AC_OUTPUT 

Autoconfの言語は、 'M4' はautoconfのinfoページでそれをチェックです。
automakeの情報ページは始めるのに適しています。 autotoolsのインストールについてのドキュメントとautoconf自体
をgetingため
http://www.gnu.org/software/autoconf/
'autoreconf --install'
とautoconf を更新するための 'autoreconf' または 'autoconfの'

関連する問題