[Zlib-devel] zlib-1.2.4.3: configure script fails on NetBSD 5.0.2 IA-32
Mark Adler
madler at alumni.caltech.edu
Mon Apr 12 17:52:40 EDT 2010
On Apr 12, 2010, at 2:27 PM, Nelson H. F. Beebe wrote:
> Using bash instead of /bin/sh produces a successful build and test:
>
> % env CC=gcc CXX=g++ LDFLAGS=-Wl,-rpath,/usr/local/lib bash ./configure
Well, dang. That means that the automagical detection of an old sh and exec bash at the beginning of configure isn't working. I was hoping that that would solve this.
Maybe configure should try to use bash no matter what. Please try the patch below on configure and let me know if it makes a difference on your NetBSD system.
Mark
--- configure.was 2010-04-11 12:31:49.000000000 -0700
+++ configure 2010-04-12 14:49:43.000000000 -0700
@@ -16,18 +16,6 @@
# make sure we are running under a compatible shell (stolen from ffmpeg and libnfo,
# except their's wasn't portable enough due to ! usage, so this is better)
if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then
- unset foo
- try=0
- (: ${foo%%bar}) 2>/dev/null
- if test "$?" -ne 0; then
- try=1
- else
- (: ${foo?}) 2>/dev/null
- if test "$?" -eq 0; then
- try=1
- fi
- fi
- if test "$try" -eq 1; then
ZLIB_CONFIGURE_EXEC=1
export ZLIB_CONFIGURE_EXEC
type "bash" > /dev/null 2>&1 && exec bash "$0" "$@"
@@ -35,11 +23,6 @@
if test -x /usr/xpg4/bin/sh; then
exec /usr/xpg4/bin/sh "$0" "$@"
fi
-# echo "No compatible shell script interpreter found."
-# exit 1
-# we could give up here, but go ahead and give their old sh a try
- fi
- unset try
fi
if [ -n "${CHOST}" ]; then
More information about the Zlib-devel
mailing list