Menu

#6666 IRIX: configure mistakenly detects $_host_alias-strings

*None
closed-fixed
digitall
None
5
2014-07-01
2014-06-30
canavan
No

Using 1.7.0-branch, configure uses a test Checking for $_host_alias-strings... that is too optimistic. For some reason, on IRIX 6.5 /usr/bsd/which produces the error message on stdout, and therefore tries to use $_host_alias-strings even if that does not exist:

$ echo "x$(which $_host_alias-strings 2>/dev/null)"
x-strings not in /usr/sbin /usr/bsd /sbin /usr/bin /usr/bin/X11 . /usr/local/bin /usr/nekoware/bin /usr/local/bin /usr/nekoware/bin /usr/local/bin /usr/nekoware/bin /usr/local/bin /usr/nekoware/bin

I'd propose extending the test to check the return result as well, e.g.

if test ! "x$(which $_host_alias-strings 2>/dev/null)" = "x" && which $_host_alias-strings >/dev/null 2>&1; then

alternatively, one could check if the output of which refers to an executable file, e.g. [ -x "which $_host_alias-strings" ]

Discussion

  • digitall

    digitall - 2014-07-01
    • labels: 1.7.0 configure test strings host-alias -->
    • summary: configure mistakenly detects $_host_alias-strings on IRIX --> IRIX: configure mistakenly detects $_host_alias-strings
     
  • digitall

    digitall - 2014-07-01

    Will look at amending the configure check.

     
  • digitall

    digitall - 2014-07-01

    If this works, I'll commit this (with thanks to LordHoto for helping work this out).

     
  • digitall

    digitall - 2014-07-01
    • status: open --> pending-fixed
    • assigned_to: digitall
     
  • canavan

    canavan - 2014-07-01

    A quick test shows that the new test is working properly and detects mips-irix6.5-strings exactly if it is available.

    thanks.

     
  • digitall

    digitall - 2014-07-01

    No problem. Committed fix to master as150ac10a1e233540e56d272bfd6f21492c7b2a4e.
    Backported to release branch-1-7 as b188db856075d750748a3cb8ce8f067212fb3d47.

    Closing as fixed.

     
  • digitall

    digitall - 2014-07-01
    • status: pending-fixed --> closed-fixed