GNU tools


autoconf 2.59

インストールディレクトリ、ファイル名を変更してインストールします。

% vi Makefile.in
% vi bin/Makefile.in
% vi lib/Makefile.in
% vi lib/Autom4te/Makefile.in
% vi lib/autotest/Makefile.in
% vi lib/autoconf/Makefile.in
% vi lib/autoscan/Makefile.in
% vi lib/m4sugar/Makefile.in

- pkgdatadir = $(datadir)/@PACKAGE@
+ pkgdatadir = $(datadir)/@PACKAGE@-@PACKAGE_VERSION@
% vi doc/Makefile.in

- INFO_DEPS = autoconf.info standards.info
+ INFO_DEPS = autoconf-2.59.info standards-2.59.info

- autoconf.info: autoconf.texi version.texi $(autoconf_TEXINFOS)
+ autoconf-2.59.info: autoconf.texi version.texi $(autoconf_TEXINFOS)

- standards.info: standards.texi $(standards_TEXINFOS)
+ standards-2.59.info: standards.texi $(standards_TEXINFOS)
% mv doc/autoconf.info doc/autoconf-2.59.info
% mv doc/standards.info doc/standards-2.59.info

configureスクリプトを実行します。

./configure --program-suffix="-2.59"

makeしてインストールします。

% gmake
# gmake install

sed 4.1.5

boolの未定義エラーが出ますので、定義ヘッダをインクルードするよう します。
SolarisのsedではMakefileの生成でエラーが出てしまいますので、SFWsedを イントールして使うか、sed-4.1.4をインストールして使うかします。
gccでコンパイルします。

以下のようなスクリプトを実行します。

% vi lib/regexec.c
+ #include "stdbool.h"

% env CC=gcc ./configure
% gmake
# gmake install

gettext 0.15

iconvはOSのライブラリを使用します。

以下のようなスクリプトを実行します。

#!/bin/sh

if [ $# -eq 1 ]; then
        . ../../setup-pre.sh $1
else
        . ../../setup-pre.sh
fi

case `uname -r` in
"5.8")
        iconvpath=/usr
        ;;

"5.9")
        iconvpath=/usr
        ;;

"5.10")
        iconvpath=/usr
        ;;

*)
        iconvpath=/usr/local
        ;;
esac

./configure $CONFDIRS \
        --mandir=/usr/local/man \
        --infodir=/usr/local/info \
        --with-libiconv-prefix=$iconvpath
% ./setup.sh [ sparcv8plus | sparcv9 | i386 | amd64 ] && gmake
# gmake install

gawk 3.1.5/gmake 3.81

iconvはOSのライブラリを使用します。

以下のようなスクリプトを実行します。

#!/bin/sh

if [ $# -eq 1 ]; then
        . ../../setup-pre.sh $1
else
        . ../../setup-pre.sh
fi

case `uname -r` in
"5.8")
        iconvpath=/usr
        iconvlib=-lc
        ;;

"5.9")
        iconvpath=/usr
        iconvlib=-lc
        ;;

"5.10")
        iconvpath=/usr
        iconvlib=-lc
        ;;

*)
        iconvpath=/usr/local
        iconvlib=-liconv
        ;;
esac

./configure \
  --with-libiconv-prefix=$iconvpath \
  --with-libintl-prefix=/usr/local
% ./setup.sh [ sparcv8plus | sparcv9 | i386 | amd64 ] && gmake
# gmake install

gcc 3.4.6

GNU makeを使います。cshを使っていると途中のスクリプト実行で失敗して しまうので環境変数SHELLをshに設定します。

% ./configure
% env SHELL=/bin/sh gmake bootstrap
# gmake install

gcc 4.3.5

GNU tarで展開します。
GNU makeを使います。cshを使っていると途中のスクリプト実行で失敗して しまうので環境変数SHELLをkshに設定します。

Solaris 8/9ではboehm-gcやgcjのコンパイルに問題があるのでcoreとg++ のみコンパイルします。

#!/bin/sh

CONFIG_SHELL=/bin/ksh; export CONFIG_SHELL

. ../../setup-pre.sh

CC=$GCCBIN; export CC
CXX=$GPPBIN; export CXX
CFLAGS= ; export CFLAGS
CXXFLAGS= ; export CXXFLAGS
CPPFLAGS="-I/usr/local/include"; export CPPFLAGS
LDFLAGS="-L/usr/local/lib -R/usr/local/lib"; export LDFLAGS

if [ "i386" = "`isainfo -k`" -o "amd64" = "`isainfo -k`" ]; then
        X86OPT="--with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld"
else
        X86OPT=
fi

./configure $X86OPT --enable-bootstrap
% gmake bootstrap
# gmake install

libtool

以下のようなスクリプトを実行します。

#!/bin/sh

. ../../setup-pre.sh

./configure $CONFDIRS
% ./setup.sh [ sparcv8plus | sparcv9 | i386 | amd64 ] && gmake
# gmake install

libiconv 1.9.2

EUC-JP-MSなどが使用できるパッチを適用します。

OSのiconvライブラリと使い分けができるようにインストールディレクト リを分けます。

以下のようなスクリプトを実行します。

#!/bin/sh

if [ $# -eq 1 ]; then
        . ../setup-pre.sh $1
else
        . ../setup-pre.sh
fi

CPPFLAGS="-I/usr/local/include/libiconv $CPPFLAGS"
LDFLAGS="$CISAFLAGS -L/usr/local/lib/libiconv$LIBISA -R/usr/local/lib/libiconv$LIBISA $LDFLAGS"

./configure \
  --bindir=/usr/local/bin/$ISA \
  --libdir=/usr/local/lib/libiconv$LIBISA \
  --includedir=/usr/local/include/libiconv \
  --mandir=/usr/local/man \
  --enable-extra-encodings
% ./setup.sh [ sparcv8plus | sparcv9 | i386 | amd64 ] && gmake
# gmake install

Screen 4.0.2

#!/bin/sh

CFLAGS="-DSOLARIS=1"; export CFLAGS

./configure --prefix=/usr/local \
        --infodir=/usr/local/info \
        --mandir=/usr/local/man \
        --enable-pam \
        --enable-locale \
        --enable-telnet \
        --enable-colors256
% ./setup.sh && gmake
# gmake install

hiraga@next-hop.net
Last modified: $Date: 2010/10/08 00:24:05 $
Apache