[Top][All Lists]

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

make 3.81 beta3 configuration script error

From: Eric West
Subject: make 3.81 beta3 configuration script error
Date: Sat, 12 Nov 2005 11:38:24 -0500

The syntax of the code used to detect the PATH envar delimiter breaks on Solaris 5.6 and 5.7. As a result the HAVE_DOS_PATHS is defined and a subsequent build on these platforms fails.

The errant code is

    85  as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    86  as_cr_digits='0123456789'
    87  as_cr_alnum=$as_cr_Letters$as_cr_digits
    88  # The user is always right.
    89  if test "${PATH_SEPARATOR+set}" != set; then
    90    echo "#! /bin/sh" >conf$$.sh
    91    echo  "exit 0"   >>conf$$.sh
    92    chmod +x conf$$.sh
    93    if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    94      PATH_SEPARATOR=';'
    95    else
    96      PATH_SEPARATOR=:
    97    fi
    98    rm -f conf$$.sh
    99  fi

I experimented with an assortment of set -x and echo debug statements and concluded that line 91 is causing the problem. On these Solaris systems, the "exit 0" line 94  is executed.

With the code as above:
    make-3.81beta3> ./configure
    make-3.81beta3> grep HAVE_DOS_PATHS config.h
    #define HAVE_DOS_PATHS 1

With line 91 commented out:
    make-3.81beta3> ./configure
    make-3.81beta3> grep HAVE_DOS config.h
    /* #undef HAVE_DOS_PATHS */

Interestingly the exit command does not cause any problem on Sol 5.9. I tested the configure script with and without the commented out line 91 on Sol 5.9.


E r i c   W e s t
Boston, Ma USA
reply via email to

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