Changeset 18593

Show
Ignore:
Timestamp:
04/12/06 11:17:47 (3 years ago)
Author:
patrick
Message:

Bug fixed: The *-config scripts did not handle the case of returning

32-bit (i.e., IA32) compiler and linker arguments on the
x86_64 architecture.

SF Bug#: 1347662

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/gadgeteer/configure.in

    r18416 r18593  
    367367 
    368368if test "x$PLATFORM" = "xIRIX" -a "x$USE_GCC" != "xyes" ; then 
    369     gadget_n32_flags='-n32' 
    370     gadget_64_flags='-64' 
     369    gadget32_flags='-n32' 
     370    gadget64_flags='-64' 
     371elif test "x$GCC" = "xyes" ; then 
     372    gadget32_flags='-m32' 
     373    gadget64_flags='-m64' 
    371374fi 
    372375 
     
    409412AC_SUBST(gadget_extra_ldflags_linker) 
    410413AC_SUBST(gadget_extra_libs) 
    411 AC_SUBST(gadget_n32_flags) 
    412 AC_SUBST(gadget_64_flags) 
     414AC_SUBST(gadget32_flags) 
     415AC_SUBST(gadget64_flags) 
    413416AC_SUBST(gadget_use_x11) 
    414417 
  • juggler/trunk/modules/gadgeteer/gadgeteer-config.in

    r18340 r18593  
    3939            $ECHO_PREFIX); 
    4040use vars qw($exec_prefix $EXEC_PREFIX_SET $prefix $PREFIX_SET $LIBBITSUF 
    41             $GADGET_ABI_FLAGS $GADGET_ISA_FLAGS $Win32); 
     41            $PLATFORM $GADGET_ABI_FLAGS $GADGET_ISA_FLAGS $Win32); 
    4242 
    4343use File::Basename; 
     
    6363my $gadget_default_abi = qq(@ABI@); 
    6464my $gadget_default_isa = qq(@ISA@); 
    65 my $gadget_n32_flags   = qq(@gadget_n32_flags@); 
    66 my $gadget_64_flags    = qq(@gadget_64_flags@); 
    67 $LIBBITSUF          = qq(@LIBBITSUF@); 
     65my $gadget32_flags     = qq(@gadget32_flags@); 
     66my $gadget64_flags     = qq(@gadget64_flags@); 
     67$LIBBITSUF             = qq(@LIBBITSUF@); 
     68$PLATFORM              = qq(@PLATFORM@); 
    6869 
    6970my $use_gcc = '@USE_GCC@'; 
     
    7172$GADGET_ABI_FLAGS = ''; 
    7273 
    73 if ( $gadget_default_abi =~ /n32/i ) 
    74 
    75    $GADGET_ABI_FLAGS = "$gadget_n32_flags"; 
    76 
    77 elsif ( $gadget_default_abi =~ /64/ ) 
    78 
    79    $GADGET_ABI_FLAGS = "$gadget_64_flags"; 
     74# The default ABI is IRIX N32 or the default ISA is i386. 
     75if ( $gadget_default_abi =~ /32$/i || "$gadget_default_isa" eq 'i386' ) 
     76
     77   $GADGET_ABI_FLAGS = "$gadget32_flags"; 
     78
     79# The default ABI or ISA is 64-bit. 
     80elsif ( "$gadget_default_abi" eq '64' || "$gadget_default_isa" eq 'x86_64' ) 
     81
     82   $GADGET_ABI_FLAGS = "$gadget64_flags"; 
    8083} 
    8184 
     
    204207                                printing paths 
    205208        [--version]             Print the installed Gadgeteer's version number 
    206         [--cxxflags [N32|64]]   Print the Gadgeteer-specific flags for the C++ 
     209        [--cxxflags [32|64]]    Print the Gadgeteer-specific flags for the C++ 
    207210                                compiler 
    208211        [--includes]            Print out only the header path extension 
    209212                                arguments 
    210         [--libs [N32|64]]       Print the basic Gadgeteer-specific libraries 
    211         [--extra-libs [N32|64]] Print the extra linker options needed for 
     213        [--libs [32|64]]        Print the basic Gadgeteer-specific libraries 
     214        [--extra-libs [32|64]] Print the extra linker options needed for 
    212215                                making an executable 
    213216        [--linker]              Print libraries as direct arguments to the 
     
    290293   my $gadget_extra_cxxflags = qq(@gadget_extra_cxxflags@); 
    291294 
    292    if ( $cxxflags_arg =~ /n32/i ) 
    293    { 
    294       $gadget_extra_cxxflags = "$gadget_extra_cxxflags $gadget_n32_flags $GADGET_ISA_FLAGS"; 
    295    } 
    296    elsif ( $cxxflags_arg =~ /64/
    297    { 
    298       $gadget_extra_cxxflags = "$gadget_extra_cxxflags $gadget_64_flags $GADGET_ISA_FLAGS"; 
     295   if ( $cxxflags_arg =~ /32$/i ) 
     296   { 
     297      $gadget_extra_cxxflags = "$gadget_extra_cxxflags $gadget32_flags $GADGET_ISA_FLAGS"; 
     298   } 
     299   elsif ( "$cxxflags_arg" eq '64'
     300   { 
     301      $gadget_extra_cxxflags = "$gadget_extra_cxxflags $gadget64_flags $GADGET_ISA_FLAGS"; 
    299302   } 
    300303   elsif ( "$cxxflags_arg" eq '' ) 
     
    349352   my $ldflags = ''; 
    350353 
    351    if ( $libs_arg =~ /n32/i ) 
    352    { 
    353       $ldflags   = "$gadget_n32_flags $GADGET_ISA_FLAGS"; 
    354       $LIBBITSUF = '32'
    355    } 
    356    elsif ( $libs_arg =~ /64/
    357    { 
    358       $ldflags   = "$gadget_64_flags $GADGET_ISA_FLAGS"; 
     354   if ( $libs_arg =~ /32$/i ) 
     355   { 
     356      $ldflags   = "$gadget32_flags $GADGET_ISA_FLAGS"; 
     357      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     358   } 
     359   elsif ( "$libs_arg" eq '64'
     360   { 
     361      $ldflags   = "$gadget64_flags $GADGET_ISA_FLAGS"; 
    359362      $LIBBITSUF = '64'; 
    360363   } 
     
    405408   } 
    406409 
    407    if ( $extra_libs_arg =~ /n32/i ) 
    408    { 
    409       $LIBBITSUF = '32'
    410    } 
    411    elsif ( $extra_libs_arg =~ /64/
     410   if ( $extra_libs_arg =~ /32$/i ) 
     411   { 
     412      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     413   } 
     414   elsif ( "$extra_libs_arg" eq '64'
    412415   { 
    413416      $LIBBITSUF = '64'; 
  • juggler/trunk/modules/jackal/configure.in

    r18336 r18593  
    343343 
    344344if test "x$PLATFORM" = "xIRIX" -a "x$USE_GCC" != "xyes" ; then 
    345     jccl_n32_flags='-n32' 
    346     jccl_64_flags='-64' 
     345    jccl32_flags='-n32' 
     346    jccl64_flags='-64' 
     347elif test "x$GCC" = "xyes" ; then 
     348    jccl32_flags='-m32' 
     349    jccl64_flags='-m64' 
    347350fi 
    348351 
     
    409412AC_SUBST(jccl_extra_ldflags) 
    410413AC_SUBST(jccl_extra_libs) 
    411 AC_SUBST(jccl_n32_flags) 
    412 AC_SUBST(jccl_64_flags) 
     414AC_SUBST(jccl32_flags) 
     415AC_SUBST(jccl64_flags) 
    413416AC_SUBST(jccl_java_api_jars) 
    414417 
  • juggler/trunk/modules/jackal/jccl-config.in

    r18336 r18593  
    3939            $ECHO_PREFIX); 
    4040use vars qw($exec_prefix $EXEC_PREFIX_SET $prefix $PREFIX_SET $LIBBITSUF 
    41             $JCCL_ABI_FLAGS $JCCL_ISA_FLAGS $Win32); 
     41            $PLATFORM $JCCL_ABI_FLAGS $JCCL_ISA_FLAGS $Win32); 
    4242 
    4343use File::Basename; 
     
    5656sub groupLibdirArgs($); 
    5757 
    58 # TODO: Do not use @prefix@ if possible.  Make use of @LOCAL_BOOST@. 
    59  
    6058usage(1) if $#ARGV == -1; 
    6159 
     
    6462my $jccl_default_abi = qq(@ABI@); 
    6563my $jccl_default_isa = qq(@ISA@); 
    66 my $jccl_n32_flags   = qq(@jccl_n32_flags@); 
    67 my $jccl_64_flags    = qq(@jccl_64_flags@); 
     64my $jccl32_flags     = qq(@jccl32_flags@); 
     65my $jccl64_flags     = qq(@jccl64_flags@); 
    6866$LIBBITSUF           = qq(@LIBBITSUF@); 
     67$PLATFORM            = qq(@PLATFORM@); 
    6968 
    7069my $use_gcc = '@USE_GCC@'; 
     
    7271$JCCL_ABI_FLAGS = ''; 
    7372 
    74 if ( $jccl_default_abi =~ /n32/i ) 
    75 
    76    $JCCL_ABI_FLAGS = "$jccl_n32_flags"; 
    77 
    78 elsif ( $jccl_default_abi =~ /64/ ) 
    79 
    80    $JCCL_ABI_FLAGS = "$jccl_64_flags"; 
     73# The default ABI is IRIX N32 or the default ISA is i386. 
     74if ( $jccl_default_abi =~ /32$/i || "$jccl_default_isa" eq 'i386' ) 
     75
     76   $JCCL_ABI_FLAGS = "$jccl32_flags"; 
     77
     78# The default ABI or ISA is 64-bit. 
     79elsif ( "$jccl_default_abi" eq '64' || "$jccl_default_isa" eq 'x86_64' ) 
     80
     81   $JCCL_ABI_FLAGS = "$jccl64_flags"; 
    8182} 
    8283 
     
    221222                                printing paths 
    222223        [--version]             Print the installed JCCL's version number 
    223         [--cxxflags [N32|64]]   Print the JCCL-specific flags for the C++ 
     224        [--cxxflags [32|64]]    Print the JCCL-specific flags for the C++ 
    224225                                compiler 
    225226        [--includes]            Print out only the header path extension 
    226227                                arguments 
    227         [--libs [N32|64]]       Print the basic JCCL-specific libraries 
    228         [--extra-libs [N32|64]] Print the extra linker options needed for 
     228        [--libs [32|64]]        Print the basic JCCL-specific libraries 
     229        [--extra-libs [32|64]] Print the extra linker options needed for 
    229230                                making an executable 
    230231        [--linker]              Print libraries as direct arguments to the 
     
    305306   my $jccl_extra_cxxflags = qq(@jccl_extra_cxxflags@); 
    306307 
    307    if ( $cxxflags_arg =~ /n32/i ) 
    308    { 
    309       $jccl_extra_cxxflags = "$jccl_extra_cxxflags $jccl_n32_flags $JCCL_ISA_FLAGS"; 
    310    } 
    311    elsif ( $cxxflags_arg =~ /64/
    312    { 
    313       $jccl_extra_cxxflags = "$jccl_extra_cxxflags $jccl_64_flags $JCCL_ISA_FLAGS"; 
     308   if ( $cxxflags_arg =~ /32$/i ) 
     309   { 
     310      $jccl_extra_cxxflags = "$jccl_extra_cxxflags $jccl32_flags $JCCL_ISA_FLAGS"; 
     311   } 
     312   elsif ( "$cxxflags_arg" eq '64'
     313   { 
     314      $jccl_extra_cxxflags = "$jccl_extra_cxxflags $jccl64_flags $JCCL_ISA_FLAGS"; 
    314315   } 
    315316   elsif ( "$cxxflags_arg" eq '' ) 
     
    352353   my $ldflags = ''; 
    353354 
    354    if ( $libs_arg =~ /n32/i ) 
    355    { 
    356       $ldflags   = "$jccl_n32_flags $JCCL_ISA_FLAGS"; 
    357       $LIBBITSUF = '32'
    358    } 
    359    elsif ( $libs_arg =~ /64/
    360    { 
    361       $ldflags   = "$jccl_64_flags $JCCL_ISA_FLAGS"; 
     355   if ( $libs_arg =~ /32$/i ) 
     356   { 
     357      $ldflags   = "$jccl32_flags $JCCL_ISA_FLAGS"; 
     358      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     359   } 
     360   elsif ( "$libs_arg" eq '64'
     361   { 
     362      $ldflags   = "$jccl64_flags $JCCL_ISA_FLAGS"; 
    362363      $LIBBITSUF = '64'; 
    363364   } 
     
    407408   } 
    408409 
    409    if ( $extra_libs_arg =~ /n32/i ) 
    410    { 
    411       $LIBBITSUF = '32'
    412    } 
    413    elsif ( $extra_libs_arg =~ /64/
     410   if ( $extra_libs_arg =~ /32$/i ) 
     411   { 
     412      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     413   } 
     414   elsif ( "$extra_libs_arg" eq '64'
    414415   { 
    415416      $LIBBITSUF = '64'; 
  • juggler/trunk/modules/sonix/configure.in

    r18338 r18593  
    292292 
    293293if test "x$PLATFORM" = "xIRIX" -a "x$USE_GCC" != "xyes" ; then 
    294     snx_n32_flags='-n32' 
    295     snx_64_flags='-64' 
     294    snx32_flags='-n32' 
     295    snx64_flags='-64' 
     296elif test "x$GCC" = "xyes" ; then 
     297    snx32_flags='-m32' 
     298    snx64_flags='-m64' 
    296299fi 
    297300 
     
    332335AC_SUBST(snx_extra_ldflags_linker) 
    333336AC_SUBST(snx_extra_libs) 
    334 AC_SUBST(snx_n32_flags) 
    335 AC_SUBST(snx_64_flags) 
     337AC_SUBST(snx32_flags) 
     338AC_SUBST(snx64_flags) 
    336339 
    337340# ----------------------------------------------------------------------------- 
  • juggler/trunk/modules/sonix/sonix-config.in

    r18338 r18593  
    4848            $ECHO_PREFIX); 
    4949use vars qw($exec_prefix $EXEC_PREFIX_SET $prefix $PREFIX_SET $LIBBITSUF 
    50             $SNX_ABI_FLAGS $SNX_ISA_FLAGS $Win32); 
     50            $PLATFORM $SNX_ABI_FLAGS $SNX_ISA_FLAGS $Win32); 
    5151 
    5252use File::Basename; 
     
    7171my $snx_default_abi = qq(@ABI@); 
    7272my $snx_default_isa = qq(@ISA@); 
    73 my $snx_n32_flags   = qq(@snx_n32_flags@); 
    74 my $snx_64_flags    = qq(@snx_64_flags@); 
     73my $snx32_flags     = qq(@snx32_flags@); 
     74my $snx64_flags     = qq(@snx64_flags@); 
    7575$LIBBITSUF          = qq(@LIBBITSUF@); 
     76$PLATFORM           = qq(@PLATFORM@); 
    7677 
    7778my $use_gcc = '@USE_GCC@'; 
     
    7980$SNX_ABI_FLAGS = ''; 
    8081 
    81 if ( $snx_default_abi =~ /n32/i ) 
    82 
    83    $SNX_ABI_FLAGS = "$snx_n32_flags"; 
    84 
    85 elsif ( $snx_default_abi =~ /64/ ) 
    86 
    87    $SNX_ABI_FLAGS = "$snx_64_flags"; 
     82# The default ABI is IRIX N32 or the default ISA is i386. 
     83if ( $snx_default_abi =~ /32$/i  || "$snx_default_isa" eq 'i386' ) 
     84
     85   $SNX_ABI_FLAGS = "$snx32_flags"; 
     86
     87# The default ABI or ISA is 64-bit. 
     88elsif ( "$snx_default_abi" eq '64' || "$snx_default_isa" eq 'x86_64' ) 
     89
     90   $SNX_ABI_FLAGS = "$snx64_flags"; 
    8891} 
    8992 
     
    207210                                printing paths 
    208211        [--version]             Print the installed Sonix' version number 
    209         [--cxxflags [N32|64]]   Print the Sonix-specific flags for the C++ 
     212        [--cxxflags [32|64]]    Print the Sonix-specific flags for the C++ 
    210213                                compiler 
    211214        [--includes]            Print out only the header path extension 
    212215                                arguments 
    213         [--libs [N32|64]]       Print the basic Sonix-specific libraries 
    214         [--extra-libs [N32|64]] Print the extra linker options needed for 
     216        [--libs [32|64]]        Print the basic Sonix-specific libraries 
     217        [--extra-libs [32|64]] Print the extra linker options needed for 
    215218                                making an executable 
    216219        [--linker]              Print libraries as direct arguments to the 
     
    291294   my $snx_extra_cxxflags = qq(@snx_extra_cxxflags@); 
    292295 
    293    if ( $cxxflags_arg =~ /n32/i ) 
    294    { 
    295       $snx_extra_cxxflags = "$snx_extra_cxxflags $snx_n32_flags $SNX_ISA_FLAGS"; 
    296    } 
    297    elsif ( $cxxflags_arg =~ /64/
    298    { 
    299       $snx_extra_cxxflags = "$snx_extra_cxxflags $snx_64_flags $SNX_ISA_FLAGS"; 
     296   if ( $cxxflags_arg =~ /32$/i ) 
     297   { 
     298      $snx_extra_cxxflags = "$snx_extra_cxxflags $snx32_flags $SNX_ISA_FLAGS"; 
     299   } 
     300   elsif ( "$cxxflags_arg" eq '64'
     301   { 
     302      $snx_extra_cxxflags = "$snx_extra_cxxflags $snx64_flags $SNX_ISA_FLAGS"; 
    300303   } 
    301304   elsif ( "$cxxflags_arg" eq '' ) 
     
    350353   my $ldflags = ''; 
    351354 
    352    if ( $libs_arg =~ /n32/i ) 
    353    { 
    354       $ldflags   = "$snx_n32_flags $SNX_ISA_FLAGS"; 
    355       $LIBBITSUF = '32'
    356    } 
    357    elsif ( $libs_arg =~ /64/
    358    { 
    359       $ldflags   = "$snx_64_flags $SNX_ISA_FLAGS"; 
     355   if ( $libs_arg =~ /32$/i ) 
     356   { 
     357      $ldflags   = "$snx32_flags $SNX_ISA_FLAGS"; 
     358      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     359   } 
     360   elsif ( "$libs_arg" eq '64'
     361   { 
     362      $ldflags   = "$snx64_flags $SNX_ISA_FLAGS"; 
    360363      $LIBBITSUF = '64'; 
    361364   } 
     
    406409   } 
    407410 
    408    if ( $extra_libs_arg =~ /n32/i ) 
    409    { 
    410       $LIBBITSUF = '32'
    411    } 
    412    elsif ( $extra_libs_arg =~ /64/
     411   if ( $extra_libs_arg =~ /32$/i ) 
     412   { 
     413      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     414   } 
     415   elsif ( "$extra_libs_arg" eq '64'
    413416   { 
    414417      $LIBBITSUF = '64'; 
  • juggler/trunk/modules/tweek/configure.in

    r18415 r18593  
    12741274 
    12751275if test "x$PLATFORM" = "xIRIX" -a "x$USE_GCC" != "xyes" ; then 
    1276    tweek_n32_flags='-n32' 
    1277    tweek_64_flags='-64' 
     1276   tweek32_flags='-n32' 
     1277   tweek64_flags='-64' 
     1278elif test "x$GCC" = "xyes" ; then 
     1279   tweek32_flags='-m32' 
     1280   tweek64_flags='-m64' 
    12781281fi 
    12791282 
     
    13801383AC_SUBST(tweek_extra_ldflags) 
    13811384AC_SUBST(tweek_extra_libs) 
    1382 AC_SUBST(tweek_n32_flags) 
    1383 AC_SUBST(tweek_64_flags) 
     1385AC_SUBST(tweek32_flags) 
     1386AC_SUBST(tweek64_flags) 
    13841387AC_SUBST(tweek_idlflags_cxx) 
    13851388AC_SUBST(tweek_idl_incflag_cxx) 
  • juggler/trunk/modules/tweek/tweek-config.in

    r18333 r18593  
    4343            $ECHO_PREFIX); 
    4444use vars qw($exec_prefix $EXEC_PREFIX_SET $prefix $PREFIX_SET $LIBBITSUF 
    45             $TWEEK_ABI_FLAGS $TWEEK_ISA_FLAGS $Win32); 
     45            $PLATFORM $TWEEK_ABI_FLAGS $TWEEK_ISA_FLAGS $Win32); 
    4646 
    4747use File::Basename; 
     
    6666my $tweek_default_abi = qq(@ABI@); 
    6767my $tweek_default_isa = qq(@ISA@); 
    68 my $tweek_n32_flags   = qq(@tweek_n32_flags@); 
    69 my $tweek_64_flags    = qq(@tweek_64_flags@); 
     68my $tweek32_flags     = qq(@tweek32_flags@); 
     69my $tweek64_flags     = qq(@tweek64_flags@); 
    7070$LIBBITSUF            = qq(@LIBBITSUF@); 
     71$PLATFORM             = qq(@PLATFORM@); 
    7172 
    7273my $use_gcc = qq(@USE_GCC@); 
     
    7475$TWEEK_ABI_FLAGS = ''; 
    7576 
    76 if ( $tweek_default_abi =~ /n32/i ) 
    77 
    78    $TWEEK_ABI_FLAGS = "$tweek_n32_flags"; 
    79 
    80 elsif ( $tweek_default_abi =~ /64/ ) 
    81 
    82    $TWEEK_ABI_FLAGS = "$tweek_64_flags"; 
     77# The default ABI is IRIX N32 or the default ISA is i386. 
     78if ( $tweek_default_abi =~ /32$/i || "$tweek_default_isa" eq 'i386' ) 
     79
     80   $TWEEK_ABI_FLAGS = "$tweek32_flags"; 
     81
     82# The default ABI or ISA is 64-bit. 
     83elsif ( "$tweek_default_abi" eq '64' || "$tweek_default_isa" eq 'x86_64' ) 
     84
     85   $TWEEK_ABI_FLAGS = "$tweek64_flags"; 
    8386} 
    8487 
     
    315318                                printing paths 
    316319        [--version]             Print the installed Tweek's version number 
    317         [--cxxflags [N32|64]]   Print the Tweek-specific flags for the C++ 
     320        [--cxxflags [32|64]]    Print the Tweek-specific flags for the C++ 
    318321                                compiler 
    319322        [--includes]            Print out only the header path extension 
    320323                                arguments 
    321         [--libs [N32|64]]       Print the basic Tweek-specific libraries 
    322         [--extra-libs [N32|64]] Print the extra linker options needed for 
     324        [--libs [32|64]]        Print the basic Tweek-specific libraries 
     325        [--extra-libs [32|64]] Print the extra linker options needed for 
    323326                                making an executable 
    324327        [--linker]              Print libraries as direct arguments to the 
     
    422425   my $tweek_extra_cxxflags = qq(@tweek_extra_cxxflags@); 
    423426 
    424    if ( $cxxflags_arg =~ /n32/i ) 
    425    { 
    426       $tweek_extra_cxxflags = "$tweek_extra_cxxflags $tweek_n32_flags $TWEEK_ISA_FLAGS"; 
    427    } 
    428    elsif ( $cxxflags_arg =~ /64/
    429    { 
    430       $tweek_extra_cxxflags = "$tweek_extra_cxxflags $tweek_64_flags $TWEEK_ISA_FLAGS"; 
     427   if ( $cxxflags_arg =~ /32$/i ) 
     428   { 
     429      $tweek_extra_cxxflags = "$tweek_extra_cxxflags $tweek32_flags $TWEEK_ISA_FLAGS"; 
     430   } 
     431   elsif ( "$cxxflags_arg" eq '64'
     432   { 
     433      $tweek_extra_cxxflags = "$tweek_extra_cxxflags $tweek64_flags $TWEEK_ISA_FLAGS"; 
    431434   } 
    432435   elsif ( "$cxxflags_arg" eq '' ) 
     
    481484   my $ldflags = ''; 
    482485 
    483    if ( $libs_arg =~ /n32/i ) 
    484    { 
    485       $ldflags   = "$tweek_n32_flags $TWEEK_ISA_FLAGS"; 
    486       $LIBBITSUF = '32'
    487    } 
    488    elsif ( $libs_arg =~ /64/
    489    { 
    490       $ldflags   = "$tweek_64_flags $TWEEK_ISA_FLAGS"; 
     486   if ( $libs_arg =~ /32$/i ) 
     487   { 
     488      $ldflags   = "$tweek32_flags $TWEEK_ISA_FLAGS"; 
     489      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     490   } 
     491   elsif ( "$libs_arg" eq '64'
     492   { 
     493      $ldflags   = "$tweek64_flags $TWEEK_ISA_FLAGS"; 
    491494      $LIBBITSUF = '64'; 
    492495   } 
     
    537540   } 
    538541 
    539    if ( $extra_libs_arg =~ /n32/i ) 
    540    { 
    541       $LIBBITSUF = '32'
    542    } 
    543    elsif ( $extra_libs_arg =~ /64/
     542   if ( $extra_libs_arg =~ /32$/i ) 
     543   { 
     544      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     545   } 
     546   elsif ( "$extra_libs_arg" eq '64'
    544547   { 
    545548      $LIBBITSUF = '64'; 
  • juggler/trunk/modules/vapor/configure.in

    r18334 r18593  
    10001000 
    10011001if test "x$PLATFORM" = "xIRIX" -a "x$USE_GCC" != "xyes" ; then 
    1002     vpr_n32_flags='-n32' 
    1003     vpr_64_flags='-64' 
     1002    vpr32_flags='-n32' 
     1003    vpr64_flags='-64' 
    10041004    vpr_extra_include_dirs='boost/compatibility/cpp_c_headers' 
     1005elif test "x$GCC" = "xyes" ; then 
     1006    vpr32_flags='-m32' 
     1007    vpr64_flags='-m64' 
    10051008fi 
    10061009 
     
    10551058AC_SUBST(vpr_extra_ldflags_linker) 
    10561059AC_SUBST(vpr_extra_libs) 
    1057 AC_SUBST(vpr_n32_flags) 
    1058 AC_SUBST(vpr_64_flags) 
     1060AC_SUBST(vpr32_flags) 
     1061AC_SUBST(vpr64_flags) 
    10591062 
    10601063# ----------------------------------------------------------------------------- 
  • juggler/trunk/modules/vapor/vpr-config.in

    r18331 r18593  
    6767my $vpr_default_abi = qq(@ABI@); 
    6868my $vpr_default_isa = qq(@ISA@); 
    69 my $vpr_n32_flags   = qq(@vpr_n32_flags@); 
    70 my $vpr_64_flags    = qq(@vpr_64_flags@); 
     69my $vpr32_flags     = qq(@vpr32_flags@); 
     70my $vpr64_flags     = qq(@vpr64_flags@); 
    7171$LIBBITSUF          = qq(@LIBBITSUF@); 
    7272$PLATFORM           = qq(@PLATFORM@); 
     
    7676$VPR_ABI_FLAGS = ''; 
    7777 
    78 if ( $vpr_default_abi =~ /n32/i ) 
    79 
    80    $VPR_ABI_FLAGS = "$vpr_n32_flags"; 
    81 
    82 elsif ( $vpr_default_abi =~ /64/ ) 
    83 
    84    $VPR_ABI_FLAGS = "$vpr_64_flags"; 
     78# The default ABI is IRIX N32 or the default ISA is i386. 
     79if ( $vpr_default_abi =~ /32$/i || "$vpr_default_isa" eq 'i386' ) 
     80
     81   $VPR_ABI_FLAGS = "$vpr32_flags"; 
     82
     83# The default ABI or ISA is 64-bit. 
     84elsif ( "$vpr_default_abi" eq '64' || "$vpr_default_isa" eq 'x86_64' ) 
     85
     86   $VPR_ABI_FLAGS = "$vpr64_flags"; 
    8587} 
    8688 
     
    205207                                printing paths 
    206208        [--version]             Print the installed VPR's version number 
    207         [--cxxflags [N32|64]]   Print the VPR-specific flags for the C++ 
     209        [--cxxflags [32|64]]    Print the VPR-specific flags for the C++ 
    208210                                compiler 
    209211        [--includes]            Print out only the header path extension 
    210212                                arguments 
    211         [--libs [N32|64]]       Print the basic VPR-specific libraries 
    212         [--extra-libs [N32|64]] Print the extra linker options needed for 
     213        [--libs [32|64]]        Print the basic VPR-specific libraries 
     214        [--extra-libs [32|64]] Print the extra linker options needed for 
    213215                                making an executable 
    214216        [--linker]              Print libraries as direct arguments to the 
     
    248250   my $vpr_extra_cxxflags = qq(@vpr_extra_cxxflags@); 
    249251 
    250    if ( $cxxflags_arg =~ /n32/i ) 
    251    { 
    252       $vpr_extra_cxxflags = "$vpr_extra_cxxflags $vpr_n32_flags $VPR_ISA_FLAGS"; 
    253    } 
    254    elsif ( $cxxflags_arg =~ /64/
    255    { 
    256       $vpr_extra_cxxflags = "$vpr_extra_cxxflags $vpr_64_flags $VPR_ISA_FLAGS"; 
     252   if ( $cxxflags_arg =~ /32$/i ) 
     253   { 
     254      $vpr_extra_cxxflags = "$vpr_extra_cxxflags $vpr32_flags $VPR_ISA_FLAGS"; 
     255   } 
     256   elsif ( "$cxxflags_arg" eq '64'
     257   { 
     258      $vpr_extra_cxxflags = "$vpr_extra_cxxflags $vpr64_flags $VPR_ISA_FLAGS"; 
    257259   } 
    258260   elsif ( "$cxxflags_arg" eq '' ) 
     
    306308   my $ldflags = ''; 
    307309 
    308    if ( $libs_arg =~ /n32/i ) 
    309    { 
    310       $ldflags   = "$vpr_n32_flags $VPR_ISA_FLAGS"; 
    311       $LIBBITSUF = '32'
    312    } 
    313    elsif ( $libs_arg =~ /64/
    314    { 
    315       $ldflags   = "$vpr_64_flags $VPR_ISA_FLAGS"; 
     310   if ( $libs_arg =~ /32$/i ) 
     311   { 
     312      $ldflags   = "$vpr32_flags $VPR_ISA_FLAGS"; 
     313      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     314   } 
     315   elsif ( "$libs_arg" eq '64'
     316   { 
     317      $ldflags   = "$vpr64_flags $VPR_ISA_FLAGS"; 
    316318      $LIBBITSUF = '64'; 
    317319   } 
     
    336338   my $use_linker     = shift || 0; 
    337339 
    338    if ( $extra_libs_arg =~ /n32/i ) 
    339    { 
    340       $LIBBITSUF = '32'
    341    } 
    342    elsif ( $extra_libs_arg =~ /64/
     340   if ( $extra_libs_arg =~ /32$/i ) 
     341   { 
     342      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     343   } 
     344   elsif ( "$extra_libs_arg" eq '64'
    343345   { 
    344346      $LIBBITSUF = '64'; 
  • juggler/trunk/modules/vrjuggler/configure.in

    r18343 r18593  
    551551 
    552552if test "x$PLATFORM" = "xIRIX" -a "x$USE_GCC" != "xyes" ; then 
    553     vrj_n32_flags='-n32' 
    554     vrj_64_flags='-64' 
     553    vrj32_flags='-n32' 
     554    vrj64_flags='-64' 
     555elif test "x$GCC" = "xyes" ; then 
     556    vrj32_flags='-m32' 
     557    vrj64_flags='-m64' 
    555558fi 
    556559 
     
    603606AC_SUBST(vrj_extra_ldflags_linker) 
    604607AC_SUBST(vrj_extra_libs) 
    605 AC_SUBST(vrj_n32_flags) 
    606 AC_SUBST(vrj_64_flags) 
     608AC_SUBST(vrj32_flags) 
     609AC_SUBST(vrj64_flags) 
    607610 
    608611AC_SUBST(vrj_lib) 
  • juggler/trunk/modules/vrjuggler/vrjuggler-config.in

    r18343 r18593  
    3939            $ECHO_PREFIX); 
    4040use vars qw($exec_prefix $EXEC_PREFIX_SET $prefix $PREFIX_SET $LIBBITSUF 
    41             $VRJ_ABI_FLAGS $VRJ_ISA_FLAGS $Win32 %LIBS); 
     41            $PLATFORM $VRJ_ABI_FLAGS $VRJ_ISA_FLAGS $Win32 %LIBS); 
    4242 
    4343use File::Basename; 
     
    6666my $vrj_default_abi = qq(@ABI@); 
    6767my $vrj_default_isa = qq(@ISA@); 
    68 my $vrj_n32_flags   = qq(@vrj_n32_flags@); 
    69 my $vrj_64_flags    = qq(@vrj_64_flags@); 
     68my $vrj32_flags     = qq(@vrj32_flags@); 
     69my $vrj64_flags     = qq(@vrj64_flags@); 
    7070$LIBBITSUF          = qq(@LIBBITSUF@); 
     71$PLATFORM           = qq(@PLATFORM@); 
    7172 
    7273my $use_gcc = '@USE_GCC@'; 
     
    7475$VRJ_ABI_FLAGS = ''; 
    7576 
    76 if ( $vrj_default_abi =~ /n32/i ) 
    77 
    78    $VRJ_ABI_FLAGS = "$vrj_n32_flags"; 
    79 
    80 elsif ( $vrj_default_abi =~ /64/ ) 
    81 
    82    $VRJ_ABI_FLAGS = "$vrj_64_flags"; 
     77# The default ABI is IRIX N32 or the default ISA is i386. 
     78if ( $vrj_default_abi =~ /32$/i || "$vrj_default_isa" eq 'i386' ) 
     79
     80   $VRJ_ABI_FLAGS = "$vrj32_flags"; 
     81
     82# The default ABI or ISA is 64-bit. 
     83elsif ( "$vrj_default_abi" eq '64' || "$vrj_default_isa" eq 'x86_64' ) 
     84
     85   $VRJ_ABI_FLAGS = "$vrj64_flags"; 
    8386} 
    8487 
     
    230233                                printing paths 
    231234        [--version]             Print the installed VR Juggler's version number 
    232         [--cxxflags [N32|64]]   Print the VR Juggler-specific flags for the C++ 
     235        [--cxxflags [32|64]]    Print the VR Juggler-specific flags for the C++ 
    233236                                compiler 
    234237        [--includes]            Print out only the header path extension 
    235238                                arguments 
    236         [--libs [N32|64]]       Print the basic VR Juggler-specific libraries 
    237         [--extra-libs [N32|64]] Print the extra linker options needed for 
     239        [--libs [32|64]]        Print the basic VR Juggler-specific libraries 
     240        [--extra-libs [32|64]] Print the extra linker options needed for 
    238241                                making an executable 
    239242        [--linker]              Print libraries as direct arguments to the 
     
    315318   my $vrj_extra_cxxflags = qq(@vrj_extra_cxxflags@); 
    316319 
    317    if ( $cxxflags_arg =~ /n32/i ) 
    318    { 
    319       $vrj_extra_cxxflags = "$vrj_extra_cxxflags $vrj_n32_flags $VRJ_ISA_FLAGS"; 
    320    } 
    321    elsif ( $cxxflags_arg =~ /64/
    322    { 
    323       $vrj_extra_cxxflags = "$vrj_extra_cxxflags $vrj_64_flags $VRJ_ISA_FLAGS"; 
     320   if ( $cxxflags_arg =~ /32$/i ) 
     321   { 
     322      $vrj_extra_cxxflags = "$vrj_extra_cxxflags $vrj32_flags $VRJ_ISA_FLAGS"; 
     323   } 
     324   elsif ( "$cxxflags_arg" eq '64'
     325   { 
     326      $vrj_extra_cxxflags = "$vrj_extra_cxxflags $vrj64_flags $VRJ_ISA_FLAGS"; 
    324327   } 
    325328   elsif ( "$cxxflags_arg" eq '' ) 
     
    374377   my $ldflags = ''; 
    375378 
    376    if ( $libs_arg =~ /n32/i ) 
    377    { 
    378       $ldflags   = "$vrj_n32_flags $VRJ_ISA_FLAGS"; 
    379       $LIBBITSUF = '32'
    380    } 
    381    elsif ( $libs_arg =~ /64/
    382    { 
    383       $ldflags   = "$vrj_64_flags $VRJ_ISA_FLAGS"; 
     379   if ( $libs_arg =~ /32$/i ) 
     380   { 
     381      $ldflags   = "$vrj32_flags $VRJ_ISA_FLAGS"; 
     382      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     383   } 
     384   elsif ( "$libs_arg" eq '64'
     385   { 
     386      $ldflags   = "$vrj64_flags $VRJ_ISA_FLAGS"; 
    384387      $LIBBITSUF = '64'; 
    385388   } 
     
    448451   } 
    449452 
    450    if ( $extra_libs_arg =~ /n32/i ) 
    451    { 
    452       $LIBBITSUF = '32'
    453    } 
    454    elsif ( $extra_libs_arg =~ /64/
     453   if ( $extra_libs_arg =~ /32$/i ) 
     454   { 
     455      $LIBBITSUF = ("$PLATFORM" eq 'IRIX' ? '32' : '')
     456   } 
     457   elsif ( "$extra_libs_arg" eq '64'
    455458   { 
    456459      $LIBBITSUF = '64';