Changeset 2306 for stable/0.7/coin.m4
- Timestamp:
- Jun 19, 2011 10:02:00 AM (10 years ago)
- Location:
- stable/0.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/0.7
- Property svn:mergeinfo changed
/trunk merged: 2288-2293,2304-2305
- Property svn:mergeinfo changed
-
stable/0.7/coin.m4
r2287 r2306 160 160 [AC_ARG_ENABLE(debug-m4_tolower($1), 161 161 [AC_HELP_STRING([--enable-debug-m4_tolower($1)], 162 [compile this project ($1)with debug compiler flags])],162 [compile project $1 with debug compiler flags])], 163 163 [case "${enableval}" in 164 164 yes) coin_debug_compile=true … … 1278 1278 AC_REQUIRE([AC_COIN_F77_COMPS]) 1279 1279 AC_MSG_NOTICE([Trying to determine Fortran compiler name]) 1280 AC_CHECK_ PROGS([F77],[$coin_f77_comps],[unavailable])1280 AC_CHECK_TOOLS([F77],[$coin_f77_comps],[unavailable]) 1281 1281 ]) 1282 1282 … … 1800 1800 # work on additional platforms 1801 1801 1802 AC_DEFUN([AC_COIN_LIBTOOL_WRAPPER],1803 [AC_BEFORE([AC_COIN_BLA],[$0])1804 AC_PROG_LIBTOOL])1805 1806 AC_DEFUN([AC_COIN_BLA],[echo bla])1807 1808 1802 AC_DEFUN([AC_COIN_PROG_LIBTOOL], 1809 1803 [# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- … … 2014 2008 AC_SUBST(ABSBUILDDIR) 2015 2009 fi 2016 2010 2011 # On AIX, the default sed cannot deal with somewhat long sed commands executed by config.status. 2012 # So we reduce the hardcoded number of commands given to sed from 48 to 5 in config.status, hoping this will suffice. 2013 AC_CONFIG_COMMANDS_POST([ 2014 case $build in 2015 *-aix*) 2016 AC_MSG_NOTICE(patching config.status to reduce ac_max_sed_lines to 5) 2017 sed -e 's/ac_max_sed_lines=48/ac_max_sed_lines=5/g' config.status > config.status.tmp 2018 mv config.status.tmp config.status 2019 ;; 2020 esac 2021 ]) 2022 2017 2023 AC_OUTPUT 2018 2024 … … 2238 2244 fi 2239 2245 ]) # AC_COIN_CHECK_GNU_READLINE 2246 2247 ########################################################################### 2248 # COIN_CHECK_ISFINITE # 2249 ########################################################################### 2250 2251 # This macro checks for a usable implementation of a function to check 2252 # whether a given floating point number is finite. 2253 # If a function is found, then the macro defines the symbol 2254 # toupper($1)_C_FINITE to the name of this function. 2255 2256 AC_DEFUN([AC_COIN_CHECK_ISFINITE],[ 2257 2258 AC_LANG_PUSH(C++) 2259 2260 AC_COIN_CHECK_CXX_CHEADER(math) 2261 AC_COIN_CHECK_CXX_CHEADER(float) 2262 AC_COIN_CHECK_CXX_CHEADER(ieeefp) 2263 2264 COIN_C_FINITE= 2265 AC_CHECK_DECL([finite],[COIN_C_FINITE=finite],,[ 2266 #ifdef HAVE_CMATH 2267 # include <cmath> 2268 #else 2269 # ifdef HAVE_MATH_H 2270 # include <math.h> 2271 # endif 2272 #endif 2273 #ifdef HAVE_CFLOAT 2274 # include <cfloat> 2275 #else 2276 # ifdef HAVE_FLOAT_H 2277 # include <float.h> 2278 # endif 2279 #endif 2280 #ifdef HAVE_CIEEEFP 2281 # include <cieeefp> 2282 #else 2283 # ifdef HAVE_IEEEFP_H 2284 # include <ieeefp.h> 2285 # endif 2286 #endif]) 2287 if test -z "$COIN_C_FINITE"; then 2288 AC_CHECK_DECL([_finite],[COIN_C_FINITE=_finite],,[ 2289 #ifdef HAVE_CMATH 2290 # include <cmath> 2291 #else 2292 # ifdef HAVE_MATH_H 2293 # include <math.h> 2294 # endif 2295 #endif 2296 #ifdef HAVE_CFLOAT 2297 # include <cfloat> 2298 #else 2299 # ifdef HAVE_FLOAT_H 2300 # include <float.h> 2301 # endif 2302 #endif 2303 #ifdef HAVE_CIEEEFP 2304 # include <cieeefp> 2305 #else 2306 # ifdef HAVE_IEEEFP_H 2307 # include <ieeefp.h> 2308 # endif 2309 #endif]) 2310 if test -z "$COIN_C_FINITE"; then 2311 AC_CHECK_DECL([isfinite],[COIN_C_FINITE=isfinite],,[ 2312 #ifdef HAVE_CMATH 2313 # include <cmath> 2314 #else 2315 # ifdef HAVE_MATH_H 2316 # include <math.h> 2317 # endif 2318 #endif 2319 #ifdef HAVE_CFLOAT 2320 # include <cfloat> 2321 #else 2322 # ifdef HAVE_FLOAT_H 2323 # include <float.h> 2324 # endif 2325 #endif 2326 #ifdef HAVE_CIEEEFP 2327 # include <cieeefp> 2328 #else 2329 # ifdef HAVE_IEEEFP_H 2330 # include <ieeefp.h> 2331 # endif 2332 #endif]) 2333 fi 2334 fi 2335 if test -z "$COIN_C_FINITE"; then 2336 AC_MSG_WARN(Cannot find C-function for checking Inf.) 2337 else 2338 AC_DEFINE_UNQUOTED(COIN_C_FINITE,[$COIN_C_FINITE], 2339 [Define to be the name of C-function for Inf check]) 2340 fi 2341 2342 AC_LANG_POP(C++) 2343 ]) 2344 2345 ########################################################################### 2346 # COIN_CHECK_ISNAN # 2347 ########################################################################### 2348 2349 # This macro checks for a usable implementation of a function to check 2350 # whether a given floating point number represents NaN. 2351 # If a function is found, then the macro defines the symbol COIN_C_ISNAN 2352 # to the name of this function. 2353 2354 AC_DEFUN([AC_COIN_CHECK_ISNAN],[ 2355 2356 AC_LANG_PUSH(C++) 2357 2358 AC_COIN_CHECK_CXX_CHEADER(math) 2359 AC_COIN_CHECK_CXX_CHEADER(float) 2360 AC_COIN_CHECK_CXX_CHEADER(ieeefp) 2361 2362 COIN_C_ISNAN= 2363 AC_CHECK_DECL([isnan],[COIN_C_ISNAN=isnan],,[ 2364 #ifdef HAVE_CMATH 2365 # include <cmath> 2366 #else 2367 # ifdef HAVE_MATH_H 2368 # include <math.h> 2369 # endif 2370 #endif 2371 #ifdef HAVE_CFLOAT 2372 # include <cfloat> 2373 #else 2374 # ifdef HAVE_FLOAT_H 2375 # include <float.h> 2376 # endif 2377 #endif 2378 #ifdef HAVE_CIEEEFP 2379 # include <cieeefp> 2380 #else 2381 # ifdef HAVE_IEEEFP_H 2382 # include <ieeefp.h> 2383 # endif 2384 #endif]) 2385 2386 # It appears that for some systems (e.g., Mac OSX), cmath will provide only 2387 # std::isnan, and bare isnan will be unavailable. Typically we need a parameter 2388 # in the test to allow C++ to do overload resolution. 2389 2390 if test -z "$COIN_C_ISNAN"; then 2391 AC_CHECK_DECL([std::isnan(42.42)],[COIN_C_ISNAN=std::isnan],,[ 2392 #ifdef HAVE_CMATH 2393 # include <cmath> 2394 #else 2395 # ifdef HAVE_MATH_H 2396 # include <math.h> 2397 # endif 2398 #endif 2399 #ifdef HAVE_CFLOAT 2400 # include <cfloat> 2401 #else 2402 # ifdef HAVE_FLOAT_H 2403 # include <float.h> 2404 # endif 2405 #endif 2406 #ifdef HAVE_CIEEEFP 2407 # include <cieeefp> 2408 #else 2409 # ifdef HAVE_IEEEFP_H 2410 # include <ieeefp.h> 2411 # endif 2412 #endif]) 2413 fi 2414 2415 if test -z "$COIN_C_ISNAN"; then 2416 AC_CHECK_DECL([_isnan],[COIN_C_ISNAN=_isnan],,[ 2417 #ifdef HAVE_CMATH 2418 # include <cmath> 2419 #else 2420 # ifdef HAVE_MATH_H 2421 # include <math.h> 2422 # endif 2423 #endif 2424 #ifdef HAVE_CFLOAT 2425 # include <cfloat> 2426 #else 2427 # ifdef HAVE_FLOAT_H 2428 # include <float.h> 2429 # endif 2430 #endif 2431 #ifdef HAVE_CIEEEFP 2432 # include <cieeefp> 2433 #else 2434 # ifdef HAVE_IEEEFP_H 2435 # include <ieeefp.h> 2436 # endif 2437 #endif]) 2438 fi 2439 if test -z "$COIN_C_ISNAN"; then 2440 AC_CHECK_DECL([isnand],[COIN_C_ISNAN=isnand],,[ 2441 #ifdef HAVE_CMATH 2442 # include <cmath> 2443 #else 2444 # ifdef HAVE_MATH_H 2445 # include <math.h> 2446 # endif 2447 #endif 2448 #ifdef HAVE_CFLOAT 2449 # include <cfloat> 2450 #else 2451 # ifdef HAVE_FLOAT_H 2452 # include <float.h> 2453 # endif 2454 #endif 2455 #ifdef HAVE_CIEEEFP 2456 # include <cieeefp> 2457 #else 2458 # ifdef HAVE_IEEEFP_H 2459 # include <ieeefp.h> 2460 # endif 2461 #endif]) 2462 fi 2463 if test -z "$COIN_C_ISNAN"; then 2464 AC_MSG_WARN(Cannot find C-function for checking NaN.) 2465 else 2466 AC_DEFINE_UNQUOTED(COIN_C_ISNAN,[$COIN_C_ISNAN], 2467 [Define to be the name of C-function for NaN check]) 2468 fi 2469 2470 AC_LANG_POP(C++) 2471 ]) 2240 2472 2241 2473 ########################################################################### … … 2462 2694 2463 2695 AC_ARG_ENABLE(m4_tolower($1)-libcheck, 2464 AS_HELP_STRING([--enable-m4_tolower($1)-libcheck], 2465 [use disable-m4_tolower($1)-libcheck to skip the link 2466 check at configuration time]), 2696 AS_HELP_STRING([--disable-m4_tolower($1)-libcheck], 2697 [skip the link check at configuration time]), 2467 2698 [m4_tolower($1)_libcheck=$enableval], 2468 2699 [m4_tolower($1)_libcheck=yes]) … … 2741 2972 2742 2973 AC_ARG_ENABLE([pkg-config], 2743 [AC_HELP_STRING([-- enable-pkg-config],[use pkg-config if available (default is yes)])],2974 [AC_HELP_STRING([--disable-pkg-config],[disable use of pkg-config (if available)])], 2744 2975 [use_pkgconfig="$enableval"], 2745 2976 [use_pkgconfig=yes]) … … 2870 3101 if test -n "$PKG_CONFIG" ; then 2871 3102 if $PKG_CONFIG --exists "$2"; then 2872 m4_toupper($1)[]_VERSIONS="`$PKG_CONFIG --modversion "$2" 2>/dev/null | tr '\n' ' '`"3103 m4_toupper($1)[]_VERSIONS="`$PKG_CONFIG --modversion "$2" 2>/dev/null | sed -n -e "1h;2,\\$H;\\${g;s/\n/ /g;p}"`" 2873 3104 $3 2874 3105 else … … 3258 3489 3259 3490 AC_ARG_ENABLE([interpackage-dependencies], 3260 AC_HELP_STRING([-- enable-interpackage-dependencies], [whether to deduce Makefile dependencies from package linker flags (default: yes)]),3491 AC_HELP_STRING([--disable-interpackage-dependencies], [disables deduction of Makefile dependencies from package linker flags]), 3261 3492 [], [enable_interpackage_dependencies=yes]) 3262 3493
Note: See TracChangeset
for help on using the changeset viewer.