hns - 日記自動生成システム - Version 2.19.9

先月 2001年09月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2001年09月05日(水) 旧暦 [n年日記]

#1 [Namazu] NetBSD で --with-included-gettext が必要なのは

(付けないと)
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for gettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for gettext in libintl... checking for gettext in -lintl... yes
yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... no
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  ja ja_JP.SJIS es fr
autoconf-2.52 で作った configure だと
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking for dcgettext... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for bison... no
checking for catalogs to be installed...  ja ja_JP.SJIS es fr

2.13 の方を観察して見ると:

  1. libintl.h はある(と言っている。いい)
  2. library は libc でなく libintl (これもいい)
  3. 変な yes が見える
  4. dcgettext がないと言っている。 (本当にないので止むを得ない。でも何故ないの)

気が付くこと:

  • gettext には実行形式とライブラリがある。
  • namazu の ./configure に必要なのはライブラリだけ(のはず)
  • libintl が必要なはずなのに -lintl を付けてくれない

configure の一部。:

6407   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
6408 echo "configure:6409: checking for gettext in libintl" >&5
6409 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
6410   echo $ac_n "(cached) $ac_c" 1>&6
6411 else
6412   echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
6413 echo "configure:6414: checking for gettext in -lintl" >&5
6414 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
6415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6416   echo $ac_n "(cached) $ac_c" 1>&6
6417 else
6418   ac_save_LIBS="$LIBS"
6419 LIBS="-lintl  $LIBS"
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* Override any gcc2 internal prototype to avoid an error.  */
6424 /* We use char because int might match the return type of a gcc2
6425     builtin and then its argument prototype would still apply.  */
6426 char gettext();
6427 
6428 int main() {
6429 gettext()  
6430 ; return 0; }
6431 EOF
cc が抜けている感じがするが..

aclocal/gettext.m4:

この辺は、次に書いてある内容に依存している(らしい)
makoto@u ■16:24:37/010905(...local/share)> ls -l aclocal/gettext.m4
-rw-r--r--  1 root  wheel  14427 Sep  4 08:45 aclocal/gettext.m4
makoto@u ■16:24:43/010905(...local/share)> \
? grep serial aclocal/gettext.m4
# serial 10

ところが autoconf-2.13 が入っているところに autoconf-2.52 を上書き:

しても上の gettext.m4 は変らない。
これは gettext-0.10.39 を入れた時に入ったもの。



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)