bug-libtool
[Top][All Lists]
Advanced

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

Re: libtool shell feature checks run with wrong shell


From: Ralf Wildenhues
Subject: Re: libtool shell feature checks run with wrong shell
Date: Tue, 5 Feb 2008 23:52:28 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

That should've been _AS_DETECT_REQUIRED instead of _AS_DETECT_SUGGESTED,
sorry.

2008-02-05  Ralf Wildenhues  <address@hidden>

        * configure.ac: Do not override $SHELL late in configure.ac.
        Use undocumented Autoconf interface _AS_DETECT_REQUIRED to
        require $(...) command replacement.

--- configure.ac.orig   2008-02-05 23:30:12.000000000 +0100
+++ configure.ac        2008-02-05 23:49:50.000000000 +0100
@@ -482,21 +482,9 @@
 dnl kludge end
 
 dnl check for b0rked Solaris (and other shells) and find one that works
-AC_MSG_CHECKING(for a working shell...)
-for i in /usr/xpg6/bin/sh /usr/xpg4/bin/sh /usr/ccs/bin/sh /bin/sh /usr/bin/sh 
/bin/ksh /bin/bash /usr/local/bin/bash ; do
-    $i -c 'if ! false ; then echo $(echo ok) ; fi' >config.$$ 2>/dev/null
-    j=`cat config.$$`
-    rm -f config.$$
-    if test "x$j" = "xok" ; then
-        SHELL=$i
-        AC_SUBST(SHELL)
-        break
-    fi
-done
-AC_MSG_RESULT($SHELL)
-if test "x$SHELL" = "x" ; then
-    AC_MSG_ERROR(no SUS compliant shell found - on Solaris, install SUNWxcu4)
-fi
+_AS_DETECT_REQUIRED([echo $(echo ok) > config.$$ 2>/dev/null
+                     j=`cat config.$$`
+                     test "x$j" = "xok"])
 
 case "$target_cpu:$target_os" in
        (alpha*:linux*)




reply via email to

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