Changeset 18968
- Timestamp:
- 06/25/06 21:34:07 (2 years ago)
- Files:
-
- juggler/trunk/Doozer++/ChangeLog (modified) (1 diff)
- juggler/trunk/Doozer++/config/abi.m4 (modified) (7 diffs)
- juggler/trunk/Doozer++/config/compiler.m4 (modified) (3 diffs)
- juggler/trunk/Doozer++/config/general.m4 (modified) (2 diffs)
- juggler/trunk/Doozer++/config/java.m4 (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/Doozer++/ChangeLog
r18848 r18968 1 1 DATE AUTHOR CHANGE 2 2 ---------- ------------ ------------------------------------------------------- 3 2006-06-25 patrickh Added support for universal binaries on Mac OS X. 4 NEW VERSION: 2.1.2 5 2006-06-25 patrickh Use libtool(1) instead of ar(1) on Mac OS X. 3 6 2006-05-17 patrickh Fixed a version detection bug in DPP_HAVE_GNU_MAKE for 4 7 the case of GNU Make pre-releases. juggler/trunk/Doozer++/config/abi.m4
r18574 r18968 29 29 dnl ----------------------------------------------------------------- 30 30 dnl File: abi.m4,v 31 dnl Date modified: 2006/0 4/12 14:24:4532 dnl Version: 1. 1931 dnl Date modified: 2006/06/26 02:01:39 32 dnl Version: 1.20 33 33 dnl ----------------------------------------------------------------- 34 34 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 59 59 dnl ELF_ALPHA (ELF/alpha) 60 60 dnl HP (pa-risc) 61 dnl DARWIN_PPC (Mach-O/PowerPC) 62 dnl DARWIN_i386 (Mach-O/i386) 63 dnl DARWIN_UNIVERSAL (Mach-O/universal) 61 64 dnl 62 65 dnl 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. 66 dnl ABI - The ABI chosen. 67 dnl ISA - The ISA chosen. 68 dnl LIBBITSUF - The suffix for some library directories (which 69 dnl are typically named in $LDFLAGS). 70 dnl ABI_FLAGS - Any extra compiler flags needed for compiling 71 dnl with the named ABI/ISA setting. This should be 72 dnl appended to $CFLAGS and $CXXFLAGS for all 73 dnl compile and link tests that Autconf performs. 74 dnl PLATFORM_SDK - Subset of $ABI_FLAGS providing information about 75 dnl the platform SDK required for building the 76 dnl desired ABI/ISA combination(s). 77 dnl UNIVERSAL_ARHC_LIST - The list of architectures that will be supported 78 dnl by universal binaries. 79 dnl DPP_ABI_TYPE - The argument given to --with-abi. 75 80 dnl =========================================================================== 76 81 77 dnl abi.m4,v 1. 19 2006/04/12 14:24:45patrickh Exp82 dnl abi.m4,v 1.20 2006/06/26 02:01:39 patrickh Exp 78 83 79 84 dnl --------------------------------------------------------------------------- … … 82 87 dnl 83 88 dnl Usage: 84 dnl DPP_ABI_CFG([ ABI [, ISA [, library-suffix [, extra-flags ]]]])89 dnl DPP_ABI_CFG([ ABI [, ISA [, library-suffix [, extra-flags [, platform-sdk]]]]]) 85 90 dnl 86 91 dnl Arguments: … … 89 94 dnl ISA - The instruction set architecture for the target CPU. 90 95 dnl 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. 96 dnl library-suffix - The bit-width suffix for the library directory tied 97 dnl to the ABI. This argument is optional. 94 98 dnl extra-flags - Extra compiler flags related to the ABI and ISA. 95 99 dnl This argument is optional. 96 dnl --------------------------------------------------------------------------- 97 AC_DEFUN([DPP_ABI_CFG], [ ABI=$1 ISA=$2 LIBBITSUF=$3 ABI_FLAGS=$4 _EXTRA_FLAGS=$4 ; ]) 100 dnl platform-sdk - Yet more compler flags related to the ABI and ISA. 101 dnl These are used to identify the platform SDK needed 102 dnl for targeting the desird ABI/ISA combination. This 103 dnl argument is optional and is appended to $ABI_FLAGS 104 dnl and $_EXTRA_FLAGS. 105 dnl --------------------------------------------------------------------------- 106 AC_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 ]) 98 115 99 116 dnl --------------------------------------------------------------------------- … … 111 128 dnl ----------------------------------------------------------------------- 112 129 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 126 146 dnl ----------------------------------------------------------------------- 127 147 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> 129 149 Define the Application Binary 130 150 Interface to use], 131 151 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 132 164 133 165 dnl Set default values for these before checking $DPP_ABI_TYPE. … … 173 205 ;; 174 206 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]) 176 220 ;; 177 221 esac … … 183 227 AC_SUBST(ISA) 184 228 AC_SUBST(LIBBITSUF) 229 AC_SUBST(PLATFORM_SDK) 230 AC_SUBST(UNIVERSAL_ARCH_LIST) 185 231 ]) juggler/trunk/Doozer++/config/compiler.m4
r16866 r18968 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: compiler.m4,v 24 dnl Date modified: 200 5/01/08 22:44:3925 dnl Version: 1.4 324 dnl Date modified: 2006/06/25 17:56:06 25 dnl Version: 1.45 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 133 133 dnl =========================================================================== 134 134 135 dnl compiler.m4,v 1.4 3 2005/01/08 22:44:39patrickh Exp135 dnl compiler.m4,v 1.45 2006/06/25 17:56:06 patrickh Exp 136 136 137 137 dnl --------------------------------------------------------------------------- … … 280 280 AC_DEFINE(_MBCS, , [define if compiling on a Win32 platform]) 281 281 ;; 282 dnl A machine running OSX282 dnl A machine running Mac OS X. 283 283 darwin*) 284 AR='ar' 285 ARFLAGS='-ruv' 284 AR='libtool' 285 ARFLAGS='-static' 286 AR_NAME_FLAG='-o ' 286 287 LD='$(CXX) -dynamiclib' 287 288 LDOPTS='' juggler/trunk/Doozer++/config/general.m4
r18848 r18968 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: general.m4,v 24 dnl Date modified: 2006/0 5/17 18:45:4025 dnl Version: 1.8 424 dnl Date modified: 2006/06/26 02:01:39 25 dnl Version: 1.85 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 47 47 dnl =========================================================================== 48 48 49 dnl general.m4,v 1.8 4 2006/05/17 18:45:40patrickh Exp49 dnl general.m4,v 1.85 2006/06/26 02:01:39 patrickh Exp 50 50 51 51 dnl Set the version of Doozer++. 52 define(DPP_DPPVERSION, 2.1. 1)52 define(DPP_DPPVERSION, 2.1.2) 53 53 54 54 dnl --------------------------------------------------------------------------- juggler/trunk/Doozer++/config/java.m4
r18006 r18968 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: java.m4,v 24 dnl Date modified: 200 5/08/23 19:45:4525 dnl Version: 1.5 624 dnl Date modified: 2006/06/26 02:01:39 25 dnl Version: 1.57 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 59 59 dnl =========================================================================== 60 60 61 dnl java.m4,v 1.5 6 2005/08/23 19:45:45patrickh Exp61 dnl java.m4,v 1.57 2006/06/26 02:01:39 patrickh Exp 62 62 63 63 dnl --------------------------------------------------------------------------- … … 384 384 385 385 if test "x$PLATFORM" = "xDarwin" ; then 386 dpp_save_CFLAGS="$CFLAGS" 387 CFLAGS="$CFLAGS $ABI_FLAGS" 386 388 LIBS="$LIBS $JVM_LIB" 387 389 AC_CACHE_CHECK([for JNI_CreateJavaVM in JavaVM framework], … … 392 394 [dpp_cv_JNI_CreateJavaVM_javavm_fw='no'])]) 393 395 dpp_jni_libs="$dpp_cv_JNI_CreateJavaVM_javavm_fw" 396 CFLAGS="$dpp_save_CFLAGS" 394 397 elif test "x$OS_TYPE" = "xUNIX" ; then 395 398 AC_CHECK_LIB([$JVM_LIB], [JNI_CreateJavaVM],
