[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf-lib-link/m4/lib-ld.m4 port to POSIX 1003.1-2001
From: |
Bruno Haible |
Subject: |
Re: autoconf-lib-link/m4/lib-ld.m4 port to POSIX 1003.1-2001 |
Date: |
Wed, 18 Jun 2003 14:38:51 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> autoconf-lib-link/m4/lib-ld.m4 uses egrep, which isn't portable to
> POSIX 1003.1-2001 hosts. This code was originally derived from
> libtool, which has been fixed to not use egrep. Here's an untested
> backport of that fix to gettext.
> -v. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
> - acl_cv_prog_gnu_ld=yes
> -else
> - acl_cv_prog_gnu_ld=no
> -fi])
> +case `$LD -v 2>&1 </dev/null` in
> +*GNU* | *'with BFD'*)
> + acl_cv_prog_gnu_ld=yes ;;
> +*)
> + acl_cv_prog_gnu_ld=no ;;
> +esac])
Would you mind testing this patch on HP-UX with CONFIG_SHELL=/bin/sh?
I remember that HP-UX sh is particularly annoying because it gives an
unintelligible error message when the expansion of EXPR in a "case EXPR in"
statement is larger than a certain limit (1024 bytes or so). Maybe
adding a "| head -1" or "| head -2" to the backquoted expression would
be safer?
Bruno