bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoconf-2.59 fails to build on QNX


From: Paul Eggert
Subject: Re: Autoconf-2.59 fails to build on QNX
Date: 17 Feb 2004 09:18:26 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"Stephen Rasku" <address@hidden> writes:

> It displays "unset".

> #! /bin/sh
> if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
>   as_unset=unset
> else
>   as_unset=false
> fi
> echo $as_unset

That's weird, since I thought that's the snippet of code at the line
number that you mentioned.

Does the rest of this message exactly match the first few lines of the
file 'tests/autom4te'?  If not, what are the differences?  If so, what
does the QNX shell do when asked to execute these lines?  And if it
succeeds on these lines, why does it succeed on them but fail on
tests/autom4te?

----- cut here -----
#! /bin/sh
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]