Changeset 18968

Show
Ignore:
Timestamp:
06/25/06 21:34:07 (2 years ago)
Author:
patrick
Message:

Merged Doozer++ 2.1.2 from its vendor branch so that we can build univeral
binaries on Mac OS X.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/Doozer++/ChangeLog

    r18848 r18968  
    11DATE       AUTHOR       CHANGE 
    22---------- ------------ ------------------------------------------------------- 
     32006-06-25 patrickh     Added support for universal binaries on Mac OS X. 
     4                        NEW VERSION: 2.1.2 
     52006-06-25 patrickh     Use libtool(1) instead of ar(1) on Mac OS X. 
    362006-05-17 patrickh     Fixed a version detection bug in DPP_HAVE_GNU_MAKE for 
    47                        the case of GNU Make pre-releases. 
  • juggler/trunk/Doozer++/config/abi.m4

    r18574 r18968  
    2929dnl ----------------------------------------------------------------- 
    3030dnl File:          abi.m4,v 
    31 dnl Date modified: 2006/04/12 14:24:45 
    32 dnl Version:       1.19 
     31dnl Date modified: 2006/06/26 02:01:39 
     32dnl Version:       1.20 
    3333dnl ----------------------------------------------------------------- 
    3434dnl ************** <auto-copyright.pl END do not edit this line> ************** 
     
    5959dnl                      ELF_ALPHA (ELF/alpha) 
    6060dnl                      HP (pa-risc) 
     61dnl                      DARWIN_PPC (Mach-O/PowerPC) 
     62dnl                      DARWIN_i386 (Mach-O/i386) 
     63dnl                      DARWIN_UNIVERSAL (Mach-O/universal) 
    6164dnl 
    6265dnl Variables defined: 
    63 dnl     ABI          - The ABI chosen.  It will have one of the following 
    64 dnl                    values: 64, N32, ELF, WIN32 
    65 dnl     ISA          - The ISA chosen.  It will have one of the following 
    66 dnl                    values: mips3, mips4, i386 
    67 dnl     LIBBITSUF    - The suffix for some library directories (which are 
    68 dnl                    typically named in $LDFLAGS).  If it has a value, it 
    69 dnl                    will be 32 or 64 which only has meaning on IRIX. 
    70 dnl     ABI_FLAGS    - Any extra compiler flags needed for compiling with the 
    71 dnl                    named ABI/ISA setting.  This should be appended to 
    72 dnl                    $CFLAGS and $CXXFLAGS for all compile and link tests 
    73 dnl                    that Autconf performs. 
    74 dnl     DPP_ABI_TYPE - The argument given to --with-abi. 
     66dnl     ABI                 - The ABI chosen. 
     67dnl     ISA                 - The ISA chosen. 
     68dnl     LIBBITSUF           - The suffix for some library directories (which 
     69dnl                           are typically named in $LDFLAGS). 
     70dnl     ABI_FLAGS           - Any extra compiler flags needed for compiling 
     71dnl                           with the named ABI/ISA setting. This should be 
     72dnl                           appended to $CFLAGS and $CXXFLAGS for all 
     73dnl                           compile and link tests that Autconf performs. 
     74dnl     PLATFORM_SDK        - Subset of $ABI_FLAGS providing information about 
     75dnl                           the platform SDK required for building the 
     76dnl                           desired ABI/ISA combination(s). 
     77dnl     UNIVERSAL_ARHC_LIST - The list of architectures that will be supported 
     78dnl                           by universal binaries. 
     79dnl     DPP_ABI_TYPE        - The argument given to --with-abi. 
    7580dnl =========================================================================== 
    7681 
    77 dnl abi.m4,v 1.19 2006/04/12 14:24:45 patrickh Exp 
     82dnl abi.m4,v 1.20 2006/06/26 02:01:39 patrickh Exp 
    7883 
    7984dnl --------------------------------------------------------------------------- 
     
    8287dnl 
    8388dnl Usage: 
    84 dnl     DPP_ABI_CFG([ ABI [, ISA [, library-suffix [, extra-flags]]]]) 
     89dnl     DPP_ABI_CFG([ ABI [, ISA [, library-suffix [, extra-flags [, platform-sdk]]]]]) 
    8590dnl 
    8691dnl Arguments: 
     
    8994dnl     ISA            - The instruction set architecture for the target CPU. 
    9095dnl                      This argument is optional. 
    91 dnl     library-suffix - The bit-width suffix for the library directory 
    92 dnl                      tied to the ABI.  This is only meaningful on IRIX. 
    93 dnl                      This argument is optional. 
     96dnl     library-suffix - The bit-width suffix for the library directory tied 
     97dnl                      to the ABI. This argument is optional. 
    9498dnl     extra-flags    - Extra compiler flags related to the ABI and ISA. 
    9599dnl                      This argument is optional. 
    96 dnl --------------------------------------------------------------------------- 
    97 AC_DEFUN([DPP_ABI_CFG], [ ABI=$1 ISA=$2 LIBBITSUF=$3 ABI_FLAGS=$4 _EXTRA_FLAGS=$4 ; ]) 
     100dnl     platform-sdk   - Yet more compler flags related to the ABI and ISA. 
     101dnl                      These are used to identify the platform SDK needed 
     102dnl                      for targeting the desird ABI/ISA combination. This 
     103dnl                      argument is optional and is appended to $ABI_FLAGS 
     104dnl                      and $_EXTRA_FLAGS. 
     105dnl --------------------------------------------------------------------------- 
     106AC_DEFUN([DPP_ABI_CFG], 
     107
     108   ABI=$1 
     109   ISA=$2 
     110   LIBBITSUF=$3 
     111   ABI_FLAGS="$4 $5" 
     112   _EXTRA_FLAGS="$4 $5" 
     113   PLATFORM_SDK=$5 
     114]) 
    98115 
    99116dnl --------------------------------------------------------------------------- 
     
    111128   dnl ----------------------------------------------------------------------- 
    112129   dnl Define the binary format.  Possible values are the following: 
    113    dnl     N32_M3        - On IRIX, use N32 mips3 binaries 
    114    dnl     N32_M4        - On IRIX, use N32 mips4 binaries 
    115    dnl     64_M3         - On IRIX, use 64-bit mips3 binaries 
    116    dnl     64_M4         - On IRIX, use 64-bit mips4 binaries 
    117    dnl     ELF_i386      - On an i386 OS (e.g., Linux/i386), use ELF binaries 
    118    dnl     ELF_x86_64    - On an AMD64/x86_64/x64 OS (e.g., Linux/amd64), use 
    119    dnl                     ELF binaries 
    120    dnl     WIN32_i386    - On an i386 Win32 OS, use Win32 binaries 
    121    dnl     COFF_ALPHA    - On an Alpha, use COFF binaries 
    122    dnl     ELF_ALPHA     - On an Alpha, use ELF binaries 
    123    dnl     HP            - On HP-UX, use PA-RISC binaries 
    124    dnl     HP64          - On HP-UX, use 64-bit PA-RISC binaries 
    125    dnl     DARWIN_PPC    - On Darwin, use PowerPC binaries 
     130   dnl     N32_M3           - On IRIX, use N32 mips3 binaries 
     131   dnl     N32_M4           - On IRIX, use N32 mips4 binaries 
     132   dnl     64_M3            - On IRIX, use 64-bit mips3 binaries 
     133   dnl     64_M4            - On IRIX, use 64-bit mips4 binaries 
     134   dnl     ELF_i386         - On an i386 OS (e.g., Linux/i386), use ELF 
     135   dnl                        binaries 
     136   dnl     ELF_x86_64       - On an AMD64/x86_64/x64 OS (e.g., Linux/amd64), 
     137   dnl                        use ELF binaries 
     138   dnl     WIN32_i386       - On an i386 Win32 OS, use Win32 binaries 
     139   dnl     COFF_ALPHA       - On an Alpha, use COFF binaries 
     140   dnl     ELF_ALPHA        - On an Alpha, use ELF binaries 
     141   dnl     HP               - On HP-UX, use PA-RISC binaries 
     142   dnl     HP64             - On HP-UX, use 64-bit PA-RISC binaries 
     143   dnl     DARWIN_PPC       - On Darwin, use PowerPC binaries 
     144   dnl     DARWIN_i386      - On Darwin, use i386 binaries 
     145   dnl     DARWIN_UNIVERSAL - On Darwin, use Mach-O universal binaries 
    126146   dnl ----------------------------------------------------------------------- 
    127147   AC_ARG_WITH(abi, 
    128                [  --with-abi=<N32_M3|N32_M4|64_M3|64_M4|ELF_i386|ELF_x86_64|WIN32_i386|COFF_ALPHA|ELF_ALPHA|HP|HP64|DARWIN_PPC
     148               [  --with-abi=<N32_M3|N32_M4|64_M3|64_M4|ELF_i386|ELF_x86_64|WIN32_i386|COFF_ALPHA|ELF_ALPHA|HP|HP64|DARWIN_PPC|DARWIN_i386|DARWIN_UNIVERSAL
    129149                          Define the Application Binary 
    130150                          Interface to use], 
    131151               DPP_ABI_TYPE="$withval") 
     152 
     153   AC_ARG_WITH([macosx-sdk], 
     154               [  --with-macosx-sdk=<PATH> 
     155                          Path to Mac OS X platform SDK   [default=none]], 
     156               [osx_platform_sdk="$withval"], [dpp_platform_sdk='']) 
     157 
     158   if test "x$osx_platform_sdk" != "x" ; then 
     159      changequote(<<, >>) 
     160      min_osx_ver=`echo $osx_platform_sdk | sed -e 's/.*MacOSX\(10\.[^u]*\)u*\.sdk.*/\1/'` 
     161      changequote([, ]) 
     162      osx_sdk_flags="-isysroot $osx_platform_sdk -mmacosx-version-min=$min_osx_ver" 
     163   fi 
    132164 
    133165   dnl Set default values for these before checking $DPP_ABI_TYPE. 
     
    173205         ;; 
    174206      xDARWIN_PPC) 
    175          DPP_ABI_CFG('Mach-O', 'powerpc') 
     207         DPP_ABI_CFG('Mach-O', 'powerpc', , [-arch ppc], [$osx_sdk_flags]) 
     208         ;; 
     209      xDARWIN_i386) 
     210         DPP_ABI_CFG('Mach-O', 'i386', , [-arch i386], [$osx_sdk_flags]) 
     211         ;; 
     212      xDARWIN_UNIVERSAL) 
     213         UNIVERSAL_ARCH_LIST='ppc i386' 
     214         dpp_universal_arch_flags='' 
     215         for a in $UNIVERSAL_ARCH_LIST ; do 
     216            dpp_universal_arch_flags="$dpp_universal_arch_flags -arch $a" 
     217         done 
     218         DPP_ABI_CFG('Mach-O', 'universal', , [$dpp_universal_arch_flags], 
     219                     [$osx_sdk_flags]) 
    176220         ;; 
    177221   esac 
     
    183227   AC_SUBST(ISA) 
    184228   AC_SUBST(LIBBITSUF) 
     229   AC_SUBST(PLATFORM_SDK) 
     230   AC_SUBST(UNIVERSAL_ARCH_LIST) 
    185231]) 
  • juggler/trunk/Doozer++/config/compiler.m4

    r16866 r18968  
    2222dnl ----------------------------------------------------------------- 
    2323dnl File:          compiler.m4,v 
    24 dnl Date modified: 2005/01/08 22:44:39 
    25 dnl Version:       1.43 
     24dnl Date modified: 2006/06/25 17:56:06 
     25dnl Version:       1.45 
    2626dnl ----------------------------------------------------------------- 
    2727dnl ************** <auto-copyright.pl END do not edit this line> ************** 
     
    133133dnl =========================================================================== 
    134134 
    135 dnl compiler.m4,v 1.43 2005/01/08 22:44:39 patrickh Exp 
     135dnl compiler.m4,v 1.45 2006/06/25 17:56:06 patrickh Exp 
    136136 
    137137dnl --------------------------------------------------------------------------- 
     
    280280         AC_DEFINE(_MBCS, , [define if compiling on a Win32 platform]) 
    281281         ;; 
    282       dnl A machine running OSX 
     282      dnl A machine running Mac OS X. 
    283283      darwin*) 
    284          AR='ar' 
    285          ARFLAGS='-ruv' 
     284         AR='libtool' 
     285         ARFLAGS='-static' 
     286         AR_NAME_FLAG='-o ' 
    286287         LD='$(CXX) -dynamiclib' 
    287288         LDOPTS='' 
  • juggler/trunk/Doozer++/config/general.m4

    r18848 r18968  
    2222dnl ----------------------------------------------------------------- 
    2323dnl File:          general.m4,v 
    24 dnl Date modified: 2006/05/17 18:45:40 
    25 dnl Version:       1.84 
     24dnl Date modified: 2006/06/26 02:01:39 
     25dnl Version:       1.85 
    2626dnl ----------------------------------------------------------------- 
    2727dnl ************** <auto-copyright.pl END do not edit this line> ************** 
     
    4747dnl =========================================================================== 
    4848 
    49 dnl general.m4,v 1.84 2006/05/17 18:45:40 patrickh Exp 
     49dnl general.m4,v 1.85 2006/06/26 02:01:39 patrickh Exp 
    5050 
    5151dnl Set the version of Doozer++. 
    52 define(DPP_DPPVERSION, 2.1.1
     52define(DPP_DPPVERSION, 2.1.2
    5353 
    5454dnl --------------------------------------------------------------------------- 
  • juggler/trunk/Doozer++/config/java.m4

    r18006 r18968  
    2222dnl ----------------------------------------------------------------- 
    2323dnl File:          java.m4,v 
    24 dnl Date modified: 2005/08/23 19:45:45 
    25 dnl Version:       1.56 
     24dnl Date modified: 2006/06/26 02:01:39 
     25dnl Version:       1.57 
    2626dnl ----------------------------------------------------------------- 
    2727dnl ************** <auto-copyright.pl END do not edit this line> ************** 
     
    5959dnl =========================================================================== 
    6060 
    61 dnl java.m4,v 1.56 2005/08/23 19:45:45 patrickh Exp 
     61dnl java.m4,v 1.57 2006/06/26 02:01:39 patrickh Exp 
    6262 
    6363dnl --------------------------------------------------------------------------- 
     
    384384 
    385385   if test "x$PLATFORM" = "xDarwin" ; then 
     386      dpp_save_CFLAGS="$CFLAGS" 
     387      CFLAGS="$CFLAGS $ABI_FLAGS" 
    386388      LIBS="$LIBS $JVM_LIB" 
    387389      AC_CACHE_CHECK([for JNI_CreateJavaVM in JavaVM framework], 
     
    392394                        [dpp_cv_JNI_CreateJavaVM_javavm_fw='no'])]) 
    393395      dpp_jni_libs="$dpp_cv_JNI_CreateJavaVM_javavm_fw" 
     396      CFLAGS="$dpp_save_CFLAGS" 
    394397   elif test "x$OS_TYPE" = "xUNIX" ; then 
    395398      AC_CHECK_LIB([$JVM_LIB], [JNI_CreateJavaVM],