Ignore:
Timestamp:
Oct 21, 2013 7:52:35 AM (9 years ago)
Author:
ming
Message:

Re #1630 (misc): Thanks to Mark Michelson for the patch

This changes the autoconfigure script to use different checks for ar and ranlib.
The previous methods were causing compilation failures since it may cause a non-existent "ccar" command to be run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r4623 r4628  
    4242AC_LANG_C 
    4343 
    44 dnl # 
    45 dnl # Setup CROSS_COMPILE variable 
    46 dnl # 
    47 if test -z "$CROSS_COMPILE"; then  
    48     CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` 
    49 fi 
    50  
    51 if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi 
    52 AC_SUBST(AR) 
     44AC_PROG_RANLIB 
     45AC_CHECK_TOOLS([AR], [ar gar], :) 
     46 
     47if test "$AR_FLAGS" = ""; then AR_FLAGS="rv"; fi 
     48AC_SUBST(AR_FLAGS) 
    5349if test "$LD" = ""; then LD="$CC"; fi 
    5450AC_SUBST(LD) 
    5551if test "$LDOUT" = ""; then LDOUT="-o "; fi 
    5652AC_SUBST(LDOUT) 
    57 if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi 
    58 AC_SUBST(RANLIB) 
    5953if test "$OBJEXT" = ""; then OBJEXT='o'; fi 
    6054AC_SUBST(OBJEXT) 
Note: See TracChangeset for help on using the changeset viewer.