Changeset 19909

Show
Ignore:
Timestamp:
04/06/07 16:30:39 (2 years ago)
Author:
patrick
Message:

Added command line flags for overriding the default Objective-C and
Objective-C++ compiler commands. This is just to stay in sync with the
similar flags for the C and C++ compilers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/macros/vrj-helpers.m4

    r19773 r19909  
    131131    AC_ARG_WITH(cxx, [  --with-cxx=<PATH>       Alternate C++ compiler ], 
    132132                _alt_cxx="$withval", _alt_cxx='none') 
     133 
     134    # Override the Object-C compiler that configure would otherwise find 
     135    # itself. 
     136    AC_ARG_WITH(objc, 
     137                [  --with-objc=<PATH>       Alternate Objective-C compiler], 
     138                _alt_objc="$withval", _alt_objc='none') 
     139 
     140    # Override the Objective-C++ compiler that configure would otherwise find 
     141    # itself. 
     142    AC_ARG_WITH(objcxx, 
     143                [  --with-objcxx=<PATH>     Alternate Objective-C++ compiler ], 
     144                _alt_objcxx="$withval", _alt_objcxx='none') 
    133145 
    134146    # ------------------------------------------------------------------------- 
     
    175187    else 
    176188        CXX="${_alt_cxx}" 
     189    fi 
     190 
     191    # If no alternate Objective-C compiler was specified, check to see if it is 
     192    # necessary to force the use of a specific compiler on a given platform. 
     193    if test "x${_alt_objc}" = "xnone" ; then 
     194        OBJC='cc' 
     195    else 
     196        OBJC="${_alt_objc}" 
     197    fi 
     198 
     199    # If no alternate Objective-C++ compiler was specified, check to see if it 
     200    # is necessary to force the use of a specific compiler on a given platform. 
     201    if test "x${_alt_objcxx}" = "xnone" ; then 
     202        OBJCXX='cc' 
     203    else 
     204        OBJCXX="${_alt_objcxx}" 
    177205    fi 
    178206