- HOME
- ・チ・蝪シ・ネ・・「・。ハス鯀エシヤク、アイタ筍ヒ
- エハーラ・・ユ・。・・・ケ。ハテ豬鮠ヤク、ア。ヒ
|
| 、筅テ、ネ、箒ヒワナェ、ハソキソ | |
-
、ウ、ウ
、ヒ。「ネセ、ヒエヒワナェ、ハ automake ヘム、ホソキソ、ヘムーユ、キ、゙、キ、ソ。」
イ譯ケ、マ。「OPEN SOURCE 、ホタコソタ(?) 、ヒ、ホ、テ、ネ、テ、ニ。「
シォハャ、ホフワナェ、ヒコヌ、筝皃、・ス。シ・ケ、ォ、鮟マ、皃、ル、ュ、ヌ、キ、遉ヲ。」
チエ、ニ、 0 、ォ、鮟マ、皃、ハ、、ニ・ハ・・サ・・ケ、ヌ、ケ。」
shimaki:~/tmp/hello $ ls
Makefile.am autogen.sh* configure.in hello.c
shimaki:~/tmp/hello $
|
|---|
、ウ、ホ・ム・テ・ア。シ・ク、ヒ、マ。「ーハセ螟ホ4、ト、ホ・ユ・。・、・、ャエ゙、゙、、ニ、、、゙、ケ。」
autogen.sh, make 、シツケヤ、ケ、、タ、ア、ヌ。「
shimaki:~/tmp/hello $ ./autogen.sh
**キルケ**: ./configure 、ーソフオ、キ、ヌシツケヤ、キ、゙、ケ。」
、筅キーソ、サリト熙キ、ソ、、、ホ、ヌ、「、、ミ。「
'./autogen.sh' 、ホーソ、ヒサリト熙キ、ニ、ッ、タ、オ、、。」
ス靉テ...
コステ... .deps/ ・ヌ・」・・ッ・ネ・ ...
ウホヌァテ... ・ノ・ュ・螂皈・ネ・ユ・。・、・ ... ス靉、ネ、ミ、キ、゙、ケ
gtkspace.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
guile.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
qthreads.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
シツケヤテ... aclocal -I m4...
シツケヤテ... autoconf...
シツケヤテ... autoheader...
シツケヤテ... automake --add-missing --foreign...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
シツケヤテ... configure ...
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
、オ、「。「'hello' 、ウレ、キ、爨ソ、皃ヒ 'make' 、シツケヤ、キ、隍ヲ。」
shimaki:~/tmp/hello $ ls
Makefile autogen.sh* config.log hello.c mkinstalldirs@
Makefile.am config.cache config.status* install-sh@ stamp-h
Makefile.in config.h configure* m4/ stamp-h.in
aclocal.m4 config.h.in configure.in missing@
shimaki:~/tmp/hello $ make
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c hello.c
gcc -g -O2 -o hello hello.o
shimaki:~/tmp/hello $ ./hello
Hello, world!
shimaki:~/tmp/hello $
|
ク賚、ホ、ネ、ェ、遙」
autogen.sh 、マハフ、ヒニテシ、ハ、ウ、ネ、マ、キ、ニ、、、゙、サ、。」
、ソ、タテア、ヒ。「automake, autoconf ナ、シツケヤ、キ。「configure ・ケ・ッ・・ラ・ネ、
シツケヤ、キ、ニ、、、、タ、ア、ヌ、ケ。」
テ豼ネ、クォ、ニ、、、ソ、タ、ア、、ミトセ、ヒヘイ、ヌ、ュ、、ヌ、キ、遉ヲ。」
シツコン、ヒシォハャ、ホ・ム・テ・ア。シ・ク、ヌサネヘム、ケ、、ネ、ュ、マ。「
Makefile.am, configure.in
、ホハムケケ、ヒコ、、コ、ヒ!
| src/ 、ホ、「、エヒワナェ、ハソキソ | |
-
、ウ、ウ
、ヒ。「src/ ・ヌ・」・・ッ・ネ・熙エ゙、猜セ、ヒエヒワナェ、ハ automake ヘム、ホ
ソキソ、ヘムーユ、キ、゙、キ、ソ。」
shimaki:~/tmp/src_hello $ ls
Makefile.am autogen.sh* configure.in src/
shimaki:~/tmp/src_hello $ ls src
Makefile.am hello.c
shimaki:~/tmp/src_hello $
|
、ウ、ホ・ム・テ・ア。シ・ク、ヒ、マ。「ーハセ螟ホ1、ト、ホ・ヌ・」・・ッ・ネ・熙ネ5、ト、ホ・ユ・。・、・、ャエ゙、゙、、ニ、、、゙、ケ。」
autogen.sh, make 、シツケヤ、ケ、、タ、ア、ヌ。「
shimaki:~/tmp/src_hello $ ./autogen.sh
**キルケ**: ./configure 、ーソフオ、キ、ヌシツケヤ、キ、゙、ケ。」
、筅キーソ、サリト熙キ、ソ、、、ホ、ヌ、「、、ミ。「
'./autogen.sh' 、ホーソ、ヒサリト熙キ、ニ、ッ、タ、オ、、。」
ス靉テ...
コステ... .deps/ ・ヌ・」・・ッ・ネ・ ...
ウホヌァテ... ・ノ・ュ・螂皈・ネ・ユ・。・、・ ... ス靉、ネ、ミ、キ、゙、ケ
gtkspace.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
guile.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
qthreads.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
シツケヤテ... aclocal -I m4...
シツケヤテ... autoconf...
シツケヤテ... autoheader...
シツケヤテ... automake --add-missing --foreign...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
シツケヤテ... configure ...
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for inline... inline
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating config.h
、オ、「。「'hello' 、ウレ、キ、爨ソ、皃ヒ 'make' 、シツケヤ、キ、隍ヲ。」
shimaki:~/tmp/src_hello $ make
make all-recursive
make[1]: Entering directory `/home/shimaki/tmp/src_hello'
Making all in src
make[2]: Entering directory `/home/shimaki/tmp/src_hello/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c hello.c
gcc -g -O2 -Wall -o hello hello.o
make[2]: Leaving directory `/home/shimaki/tmp/src_hello/src'
make[2]: Entering directory `/home/shimaki/tmp/src_hello'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/shimaki/tmp/src_hello'
make[1]: Leaving directory `/home/shimaki/tmp/src_hello'
shimaki:~/tmp/src_hello $ ./src/hello
Hello, world!
shimaki:~/tmp/src_hello $
|
ク賚、ホ、ネ、ェ、遙」
autogen.sh 、マハフ、ヒニテシ、ハ、ウ、ネ、マ、キ、ニ、、、゙、サ、。」
、ソ、タテア、ヒ。「automake, autoconf ナ、シツケヤ、キ。「configure ・ケ・ッ・・ラ・ネ、
シツケヤ、キ、ニ、、、、タ、ア、ヌ、ケ。」
テ豼ネ、クォ、ニ、、、ソ、タ、ア、、ミトセ、ヒヘイ、ヌ、ュ、、ヌ、キ、遉ヲ。」
シツコン、ヒシォハャ、ホ・ム・テ・ア。シ・ク、ヌサネヘム、ケ、、ネ、ュ、マ。「
Makefile.am, configure.in
、ホハムケケ、ヒコ、、コ、ヒ!
| library 、コタョ、ケ、エヒワナェ、ハソキソ | |
-
、ウ、ウ
、ヒ。「library 、コタョ、ケ、エヒワナェ、ハ automake ヘム、ホ
ソキソ、ヘムーユ、キ、゙、キ、ソ。」
shimaki:~/tmp/lib_hello $ ls
Makefile.am autogen.sh* hello/ hello.m4
acconfig.h configure.in hello-config.in
shimaki:~/tmp/lib_hello $ ls hello
Makefile.am hello.c hello.h
shimaki:~/tmp/lib_hello $
|
、ウ、ホ・ム・テ・ア。シ・ク、ヒ、マ。「ーハセ螟ホ1、ト、ホ・ヌ・」・・ッ・ネ・熙ネ9、ト、ホ・ユ・。・、・、ャ
エ゙、゙、、ニ、、、゙、ケ。」
autogen.sh, make 、シツケヤ、ケ、、タ、ア、ヌ。「
shimaki:~/tmp/lib_hello $ ./autogen.sh
**キルケ**: ./configure 、ーソフオ、キ、ヌシツケヤ、キ、゙、ケ。」
、筅キーソ、サリト熙キ、ソ、、、ホ、ヌ、「、、ミ。「
'./autogen.sh' 、ホーソ、ヒサリト熙キ、ニ、ッ、タ、オ、、。」
ス靉テ...
コステ... .deps/ ・ヌ・」・・ッ・ネ・ ...
ウホヌァテ... ・ノ・ュ・螂皈・ネ・ユ・。・、・ ... ス靉、ネ、ミ、キ、゙、ケ
gtkspace.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
guile.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
qthreads.m4 ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
シツケヤテ... libtoolize...
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
シツケヤテ... aclocal -I m4...
シツケヤテ... autoconf...
シツケヤテ... autoheader...
シツケヤテ... automake --add-missing --foreign...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
シツケヤテ... configure ...
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for inline... inline
updating cache ./config.cache
creating ./config.status
creating hello-config
creating Makefile
creating hello/Makefile
creating config.h
、オ、「。「'hello' 、ウレ、キ、爨ソ、皃ヒ 'make' 、シツケヤ、キ、隍ヲ。」
shimaki:~/tmp/lib_hello $ make
make all-recursive
make[1]: Entering directory `/home/shimaki/tmp/lib_hello'
Making all in hello
make[2]: Entering directory `/home/shimaki/tmp/lib_hello/hello'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -W\
all -c hello.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -Wp,-MD,.deps/hello.pp -c -fPIC -\
DPIC hello.c -o .libs/hello.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -Wp,-MD,.deps/hello.pp -c hello.c \
-o hello.o >/dev/null 2>&1
mv -f .libs/hello.lo hello.lo
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o libhello.la -rpath /usr/loc\
al/lib -version-info 0:0:0 -release 0.1 hello.lo
rm -fr .libs/libhello.la .libs/libhello.* .libs/libhello-0.1.*
gcc -shared hello.lo -lc -Wl,-soname -Wl,libhello-0.1.so.0 -o .libs/libhello-\
0.1.so.0.0.0
(cd .libs && rm -f libhello-0.1.so.0 && ln -s libhello-0.1.so.0.0.0 libhello-0.1\
.so.0)
(cd .libs && rm -f libhello.so && ln -s libhello-0.1.so.0.0.0 libhello.so)
ar cru .libs/libhello.a hello.o
ranlib .libs/libhello.a
creating libhello.la
(cd .libs && rm -f libhello.la && ln -s ../libhello.la libhello.la)
make[2]: Leaving directory `/home/shimaki/tmp/lib_hello/hello'
make[2]: Entering directory `/home/shimaki/tmp/lib_hello'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/shimaki/tmp/lib_hello'
make[1]: Leaving directory `/home/shimaki/tmp/lib_hello'
shimaki:~/tmp/lib_hello $
|
|---|
ク賚、ホ、ネ、ェ、遙」
、チ、遉テ、ネ・ユ・。・、・、ホソ、ャツソ、、オ、、筅キ、゙、ケ、ャ。「
hello.m4, hello-config.in 、ハ、ノ、ホオュスメ、
、ウ、、ニノ、皃ミ・ミ・テ・チ・!?
、オ、「!、マ、ク、皃゙、キ、遉ヲ。」
| configure 、ヒ --enable-??? ・ェ・ラ・キ・逾、、ト、ア、 | |
- ホ网ィ、ミ。「--enable-debug ・ェ・ラ・キ・逾、、ト、ア、セケ
configure.in 、ヒ
AC_ARG_ENABLE(debug, [ --enable-debug trun on debugging [default no]],,enable_debug=no)
AC_MSG_CHECKING(whether to enable debuging)
if test x$enable_debug = xyes; then
AC_MSG_RESULT(yes)
AC_DEFINE(DEBUG)
else
AC_MSG_RESULT(no)
fi
、イテ、ィ。「
acconfig.h 、ヒ
#undef DEBUG
、イテ、ィ。「コヌク螟ヒ。「autoheader 、シツケヤ、キ、゙、ケ。」
| C compiler 、キ霪熙ケ、 | |
- GCC 、ャ、「、セケ遉マヘ・タ霰ェ、ヒタ゚ト熙オ、、゙、ケ。」
configure.in 、ヒ
AC_PROG_CC
AC_C_INLINE
if test x$CC = xgcc; then
CFLAGS="$CFLAGS -Wall"
fi
、イテ、ィ、、ミ OK 、ヌ、ケ。」
| ・ウ・゙・・ノ、ャ PATH セ螟ヒ、「、、ォトエ、ル、 | |
- ホ网ィ、ミ。「sort 、ャ、「、、ォ、ノ、ヲ、ォトエ、ル、セケ
configure.in 、ヒ
AC_PATH_PROGS(SORT, sort, :)
if test $SORT = ":"; then
AC_MSG_ERROR(Test for sort failed. Please install sort program.)
fi
、イテ、ィ。「
Makefile.am 、ヒ
...
SORT=@SORT@
...
$(SORT) file
、ハ、ノ、ネイテ、ィ、、ミ。「OK 、ヌ、ケ。」
ハ」ソ、ホ・ラ・・ー・鬣爨トエ、ル、ソ、、、ネ、ュ、マ。「
AC_PATH_PROGS(EMACS, emacs xemacs, :)
、ホヘヘ、ヒ。「・ケ・レ。シ・ケ、ヌ・ウ・゙・・ノ、カ霏レ、テ、ニハツ、ル、ニ、荀、ミ OK 、ヌ、ケ。」
コヌス鬢ヒクォ、ト、ォ、テ、ソ・ウ・゙・・ノ、ホ・ユ・・ム・ケフセ、ャ EMACS 、ヒニ、熙゙、ケ。」
クォ、ト、ォ、鬢ハ、ア、、ミ。「":" 、ャタ゚ト熙オ、、゙、ケ、ホ、ヌ。「ウニシォ・ィ・鬘シ・チ・ァ・テ・ッ、ャ
ノャヘラ、ヌ、ケ。」
| lex & yacc 、トエ、ル、 | |
- lex 、 yacc 、ャ、「、、ォ、ノ、ヲ、ォトエ、ル、セケ
AM_PROG_LEX
if test -n "$LEX"; then
if test x$enable_debug != xyes; then
if test x$LEX = xflex; then
LEX="$LEX -F"
fi
fi
LEX="$LEX -8"
fi
AC_PROG_YACC
if test -n "$YACC"; then
YACC="$YACC -dv"
fi
、ハ、ノ、ネ、ケ、、ミ。「OK 、ヌ、ケ。」
flex 、 bison 、ャクォ、ト、ォ、、ミヘ・タ隍キ、ニ、ス、、セ、、ホハムソ、ヒタ゚ト熙オ、、゙、ケ。」
| GTK 、ャ・、・・ケ・ネ。シ・、オ、、ニ、、、、ォトエ、ル、 | |
- GTK 、トエ、ル、、ヒ、マ。「
AM_PATH_GTK(1.0.1,,
AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help))
X_LIBS=$GTK_LIBS
X_CFLAGS=$GTK_CFLAGS
AC_SUBST(X_LIBS)
AC_SUBST(X_CFLAGS)
、ネ、キ、゙、ケ。」
Makefile.am 、ヒ。「
...
INCLUDE = @X_CFLAGS@
foo_LDADD = @X_LIBS@
...
、ハ、ノ、ネ、ケ、、ミ。「OK 、ヌ、ケ。」
| libtiff 、ャ・、・・ケ・ネ。シ・、オ、、ニ、、、、ォトエ、ル、 | |
- libtiff 、トエ、ル、、ヒ、マ。「
if test -z "$LIBTIFF_LIB"; then
AC_CHECK_LIB(tiff, TIFFReadScanline,
AC_CHECK_HEADER(tiffio.h,
TIFF='tiff'; LIBTIFF_LIB='-ltiff',
AC_MSG_WARN(*** TIFF header files not found ***)),
AC_CHECK_LIB(tiff, TIFFWriteScanline,
AC_CHECK_HEADER(tiffio.h,
TIFF='tiff'; LIBTIFF_LIB='-ltiff -ljpeg -lz',
AC_MSG_WARN(*** TIFF header files not found ***)),
AC_CHECK_LIB(tiff34, TIFFFlushData,
AC_CHECK_HEADER(tiffio.h,
TIFF='tiff'; LIBTIFF_LIB='-ltiff34 -ljpeg -lz',
AC_MSG_WARN(*** TIFF header files not found ***)),
AC_MSG_WARN(*** TIFF library not found ***), -ljpeg -lz -lm), -ljpeg -lz -lm), -lm)
fi
AC_SUBST(TIFF)
AC_SUBST(LIBTIFF_LIB)
、ハ、ノ、ネ、キ、゙、ケ。」
Makefile.am 、ヒ。「
...
foo_LDADD = @LIBTIFF_LIB@
...
、ハ、ノ、ネ、ケ、、ミ。「OK 、ヌ、ケ。」
| libjpeg 、ャ・、・・ケ・ネ。シ・、オ、、ニ、、、、ォトエ、ル、 | |
- libjpeg 、トエ、ル、、ヒ、マ。「
if test -z "$LIBJPEG_LIB"; then
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
jpeg_ok=yes,
jpeg_ok=no
AC_MSG_WARN(*** JPEG library not found ***))
if test "$jpeg_ok" = yes; then
AC_MSG_CHECKING([for jpeglib.h])
AC_TRY_CPP(
[#include
#undef PACKAGE
#undef VERSION
#include ],
jpeg_ok=yes,
jpeg_ok=no)
AC_MSG_RESULT($jpeg_ok)
if test "$jpeg_ok" = yes; then
JPEG='jpeg'; LIBJPEG_LIB='-ljpeg'
else
AC_MSG_WARN(*** JPEG header file not found ***)
fi
fi
fi
AC_SUBST(JPEG)
AC_SUBST(LIBJPEG_LIB)
、ハ、ノ、ネ、キ、゙、ケ。」
Makefile.am 、ヒ。「
...
foo_LDADD = @LIBJPEG_LIB@
...
、ハ、ノ、ネ、ケ、、ミ。「OK 、ヌ、ケ。」
|