Menu

#13 ./configure.sh troubles

open
nobody
compilation (7)
5
2003-02-01
2003-02-01
No

When running ./configure.sh on solaris 9 (sparc) I
receive the message "./configure.sh: test: argument
expected". Do you have any suggestions as to what I
might try?

Sincerely,

Michael Rector

Discussion

  • Marius S.

    Marius S. - 2003-02-04

    Logged In: YES
    user_id=1184

    I've never used Solaris, but I searched the configure.sh
    file for "test". I found a few places where there were tests
    for MAD. The place you get the error is probably here:

    if test ! -z "$MADDIR" ; then
    INCLUDES="$INCLUDES $MADDIR/include"
    DEFINES="$DEFINES ENABLE_MAD"
    LIBRARIES="$LIBRARIES -lmad"
    LIBDIRS="$LIBDIRS -L$MADDIR/lib"
    fi

    I didn't write the script (nor I'm any good at it), but that
    looks wong to me. Anyway, you can try just removing that
    part altogether (what is shown above).

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    Replace:
    if test ! -z "$MADDIR" ; then
    with:
    if test ! "x$MADDIR" = "$MADDIR" ; then

    according to the portable shell script guidelines:
    http://www.gnu.org/manual/autoconf/html_node/autoconf_122.html

    -- Ren
    (I'll update configure.sh)

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    if test ! "x$MADDIR" = "$MADDIR" ; then

    should of course be:

    if test ! "x$MADDIR" = "x" ; then

    -- Ren

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.