diff options
author | sf <sf@FreeBSD.org> | 2001-02-17 20:18:20 +0800 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2001-02-17 20:18:20 +0800 |
commit | 005cd18a5de70486a502c1f8449b0fdcc7eaa653 (patch) | |
tree | dc86548ad57c122dbdbf46cbc0edf0a01492f94e /japanese/less | |
parent | e0173b8aabd20eff5725acc12414924130727e1a (diff) | |
download | freebsd-ports-graphics-005cd18a5de70486a502c1f8449b0fdcc7eaa653.tar.gz freebsd-ports-graphics-005cd18a5de70486a502c1f8449b0fdcc7eaa653.tar.zst freebsd-ports-graphics-005cd18a5de70486a502c1f8449b0fdcc7eaa653.zip |
use better -lxpg4 detection code.
Obtained from: vim6
Diffstat (limited to 'japanese/less')
-rw-r--r-- | japanese/less/files/patch-ab | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/japanese/less/files/patch-ab b/japanese/less/files/patch-ab index f6a5a6d9cac..a271e8726fc 100644 --- a/japanese/less/files/patch-ab +++ b/japanese/less/files/patch-ab @@ -1,19 +1,10 @@ ---- configure.in.orig Mon Nov 6 22:49:26 2000 -+++ configure.in Mon Nov 6 22:50:32 2000 -@@ -24,6 +24,16 @@ +--- configure.in.orig Sat Feb 17 16:37:23 2001 ++++ configure.in Sat Feb 17 16:38:58 2001 +@@ -26,6 +26,7 @@ AC_CHECK_LIB(gen, regcmp) AC_CHECK_LIB(intl, regcmp) AC_CHECK_LIB(PW, regcmp) -+setlocale_works=no -+AC_TRY_RUN([ -+#include <locale.h> -+int main() { -+char *p; p = setlocale(LC_ALL, "ja_JP.EUC"); -+if (p == NULL) exit(1); else exit(0); }], -+setlocale_works=yes,:,:) -+if test x$setlocale_works = xno; then -+AC_CHECK_LIB(xpg4, setlocale) -+fi ++AC_CHECK_LIB(xpg4, _xpg4_setrunelocale, [LIBS="$LIBS -lxpg4"],,) dnl Checks for terminal libraries AC_MSG_CHECKING(for working terminal libraries) |