以下のようなスクリプトを用意します。
setup.sh
#!/bin/sh if [ $# -eq 1 ]; then . ../setup-pre.sh $1 else . ../setup-pre.sh fi STD="-mt" CFLAGS="$CFLAGS -xstrconst $STD" CXXFLAGS="$CXXFLAGS -noex $STD" ./configure $CONFDIRS \ --sysconfdir=/etc/mysql \ --localstatedir=/var/mysql \ --libexecdir=/usr/local/libexec/$ISA \ --without-debug \ --without-bench \ --enable-assembler \ --enable-thread-safe-client \ --with-charset=utf8 \ --with-extra-charsets=all \ --with-mysqld-user=mysql \ --with-zlib-dir=$zlibpath \ --with-pstack \ --with-openssl=$sslpath \ --with-openssl-includes=$sslinc \ --with-openssl-libs=$ssllib \ --with-big-tables \ --with-example-storage-engine \ --with-archive-storage-engine \ --with-csv-storage-engine \ --with-blackhole-storage-engine
makeしてインストールします。
% ./setup.sh [ sparcv8plus | sparcv9 | i386 | amd64 ] && gmake # gmake install