Changeset 2424 for stable/0.7
- Timestamp:
- Sep 3, 2011 1:05:41 PM (10 years ago)
- Location:
- stable/0.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/0.7
-
stable/0.7/coin.m4
r2337 r2424 2067 2067 2068 2068 # This macro defined the --enable-gnu-packages flag. This can be used 2069 # to check if a user wants to compile GNU packges (such as readline or2070 # zlib)into the executable. By default, GNU packages are disabled.2069 # to check if a user wants to compile GNU packges (such as readline) 2070 # into the executable. By default, GNU packages are disabled. 2071 2071 # This also defines the automake conditional COIN_ENABLE_GNU_PACKAGES 2072 2072 … … 2112 2112 # it adds the linker flag to the variables X_LIBS, X_PCLIBS, and X_LIBS_INSTALLED. 2113 2113 2114 # TODO the macro name should be changed to AC_COIN_CHECK_ZLIB 2115 2114 2116 AC_DEFUN([AC_COIN_CHECK_GNU_ZLIB], 2115 [ AC_REQUIRE([AC_COIN_ENABLE_GNU_PACKAGES])2117 [ 2116 2118 AC_BEFORE([AC_COIN_PROG_CXX],[$0]) 2117 2119 AC_BEFORE([AC_COIN_PROG_CC],[$0]) … … 2120 2122 2121 2123 coin_has_zlib=no 2122 if test $coin_enable_gnu = yes; then 2124 2125 AC_ARG_ENABLE([zlib], 2126 [AC_HELP_STRING([--disable-zlib],[do not compile with compression library zlib])], 2127 [coin_enable_zlib=$enableval], 2128 [coin_enable_zlib=yes]) 2129 2130 if test $coin_enable_zlib = yes; then 2123 2131 AC_COIN_CHECK_HEADER([zlib.h],[coin_has_zlib=yes]) 2124 2132 2125 2133 if test $coin_has_zlib = yes; then 2126 AC_CHECK_LIB([z],[gzopen], 2127 [coin_foreach_w([myvar], [$1], [ 2134 AC_CHECK_LIB([z],[gzopen],[:],[coin_has_zlib=no]) 2135 fi 2136 2137 if test $coin_has_zlib = yes; then 2138 coin_foreach_w([myvar], [$1], [ 2128 2139 m4_toupper(myvar)_LIBS="-lz $m4_toupper(myvar)_LIBS" 2129 2140 m4_toupper(myvar)_PCLIBS="-lz $m4_toupper(myvar)_PCLIBS" 2130 2141 m4_toupper(myvar)_LIBS_INSTALLED="-lz $m4_toupper(myvar)_LIBS_INSTALLED" 2131 ]) 2132 :], 2133 [coin_has_zlib=no]) 2134 fi 2135 2136 if test $coin_has_zlib = yes; then 2142 ]) 2137 2143 AC_DEFINE([COIN_HAS_ZLIB],[1],[Define to 1 if zlib is available]) 2138 2144 fi … … 2151 2157 # of arguments X, it adds the linker flag to the variables X_LIBS, X_PCLIBS, and X_LIBS_INSTALLED. 2152 2158 2159 # TODO the macro name should be changed to AC_COIN_CHECK_BZLIB 2160 2153 2161 AC_DEFUN([AC_COIN_CHECK_GNU_BZLIB], 2154 [ AC_REQUIRE([AC_COIN_ENABLE_GNU_PACKAGES])2162 [ 2155 2163 AC_BEFORE([AC_COIN_PROG_CXX],[$0]) 2156 2164 AC_BEFORE([AC_COIN_PROG_CC],[$0]) … … 2158 2166 AC_BEFORE([$0],[AC_COIN_FINALIZE]) 2159 2167 2168 AC_ARG_ENABLE([bzlib], 2169 [AC_HELP_STRING([--disable-bzlib],[do not compile with compression library bzlib])], 2170 [coin_enable_bzlib=$enableval], 2171 [coin_enable_bzlib=yes]) 2172 2160 2173 coin_has_bzlib=no 2161 if test $coin_enable_ gnu= yes; then2174 if test $coin_enable_bzlib = yes; then 2162 2175 AC_COIN_CHECK_HEADER([bzlib.h],[coin_has_bzlib=yes]) 2163 2176 2164 2177 if test $coin_has_bzlib = yes; then 2165 AC_CHECK_LIB([bz2],[BZ2_bzReadOpen], 2166 [coin_foreach_w([myvar], [$1], [ 2178 AC_CHECK_LIB([bz2],[BZ2_bzReadOpen],[:],[coin_has_bzlib=no]) 2179 fi 2180 2181 if test $coin_has_bzlib = yes; then 2182 coin_foreach_w([myvar], [$1], [ 2167 2183 m4_toupper(myvar)_LIBS="-lbz2 $m4_toupper(myvar)_LIBS" 2168 2184 m4_toupper(myvar)_PCLIBS="-lbz2 $m4_toupper(myvar)_PCLIBS" 2169 2185 m4_toupper(myvar)_LIBS_INSTALLED="-lbz2 $m4_toupper(myvar)_LIBS_INSTALLED" 2170 2186 ]) 2171 :],2172 [coin_has_bzlib=no])2173 fi2174 2175 if test $coin_has_bzlib = yes; then2176 2187 AC_DEFINE([COIN_HAS_BZLIB],[1],[Define to 1 if bzlib is available]) 2177 2188 fi … … 2215 2226 # Now we check for readline 2216 2227 if test $coin_has_readline = yes; then 2217 AC_CHECK_LIB([readline],[readline], 2218 [coin_foreach_w([myvar], [$1], [ 2228 AC_CHECK_LIB([readline],[readline],[:],[coin_has_readline=no]) 2229 fi 2230 2231 if test $coin_has_readline = yes; then 2232 coin_foreach_w([myvar], [$1], [ 2219 2233 m4_toupper(myvar)_LIBS="-lreadline $LIBS $m4_toupper(myvar)_LIBS" 2220 2234 m4_toupper(myvar)_PCLIBS="-lreadline $LIBS $m4_toupper(myvar)_PCLIBS" 2221 2235 m4_toupper(myvar)_LIBS_INSTALLED="-lreadline $LIBS $m4_toupper(myvar)_LIBS_INSTALLED" 2222 ]) 2223 :], 2224 [coin_has_readline=no]) 2225 fi 2226 2227 if test $coin_has_readline = yes; then 2236 ]) 2228 2237 AC_DEFINE([COIN_HAS_READLINE],[1],[Define to 1 if readline is available]) 2229 2238 fi … … 2232 2241 fi 2233 2242 ]) # AC_COIN_CHECK_GNU_READLINE 2243 2244 ########################################################################### 2245 # COIN_CHECK_GMP # 2246 ########################################################################### 2247 2248 # This macro checks for the gmp library. If found, it defines the C 2249 # preprocessor variable COIN_HAS_GMP. Further, for a (space separated) list 2250 # of arguments X, it adds the linker flag to the variables X_LIBS, X_PCLIBS, and X_LIBS_INSTALLED. 2251 2252 AC_DEFUN([AC_COIN_CHECK_GMP], 2253 [ 2254 AC_BEFORE([AC_COIN_PROG_CXX],[$0]) 2255 AC_BEFORE([AC_COIN_PROG_CC],[$0]) 2256 AC_BEFORE([AC_COIN_PROG_F77],[$0]) 2257 AC_BEFORE([$0],[AC_COIN_FINALIZE]) 2258 2259 AC_ARG_ENABLE([gmp], 2260 [AC_HELP_STRING([--disable-gmp],[do not compile with GNU multiple precision library])], 2261 [coin_enable_gmp=$enableval], 2262 [coin_enable_gmp=yes]) 2263 2264 coin_has_gmp=no 2265 if test $coin_enable_gmp = yes; then 2266 AC_COIN_CHECK_HEADER([gmp.h],[AC_CHECK_LIB([gmp],[__gmpz_init],[coin_has_gmp=yes])]) 2267 2268 if test $coin_has_gmp = yes ; then 2269 coin_foreach_w([myvar], [$1], [ 2270 m4_toupper(myvar)_LIBS="-lgmp $m4_toupper(myvar)_LIBS" 2271 m4_toupper(myvar)_PCLIBS="-lgmp $m4_toupper(myvar)_PCLIBS" 2272 m4_toupper(myvar)_LIBS_INSTALLED="-lgmp $m4_toupper(myvar)_LIBS_INSTALLED" 2273 ]) 2274 AC_DEFINE([COIN_HAS_GMP],[1],[Define to 1 if GMP is available]) 2275 fi 2276 fi 2277 ]) # AC_COIN_CHECK_GMP 2234 2278 2235 2279 ########################################################################### -
stable/0.7/compile_f2c
- Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset
for help on using the changeset viewer.