Changeset 705 for trunk/coin.m4


Ignore:
Timestamp:
Oct 26, 2007 2:51:22 PM (12 years ago)
Author:
lou
Message:

Fix bonehead mistake in test to avoid /usr/ucb/cc on Solaris. What was I
thinking?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r664 r705  
    883883# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
    884884# Depending on the user's PATH, when Studio/Workshop cc is not present we may
    885 # find /usr/ucb/cc, which is likely to be a non-functional shell. The test used
    886 # here is the same as that used in /usr/ucb/cc. This doesn't entirely solve the
    887 # problem, as the user may still need to force the issue if /usr/ucb/cc and gcc
    888 # both work and the user's PATH leads to /usr/ucb/cc before gcc.
     885# find /usr/ucb/cc, which is almost certainly not a good choice for the C
     886# compiler. In this case, put cc after gcc.
    889887
    890888case $build in
     
    896894             fi ;;
    897895  *-*-solaris*)
    898              if test -f /usr/ccs/bin/ucbcc ; then
     896             AC_CHECK_PROG(sol_cc_compiler,cc,cc,[],[],/usr/ucb/cc)
     897             if test "$sol_cc_compiler" = "cc" ; then
    899898               comps="cc xlc gcc pgcc icc"
    900899             else
    901                comps="xlc gcc pgcc icc"
     900               comps="xlc gcc pgcc icc cc"
    902901             fi
    903902             ;;
Note: See TracChangeset for help on using the changeset viewer.