- Timestamp:
- Jan 1, 2011 11:59:34 AM (10 years ago)
- Location:
- stable/0.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/0.7
-
stable/0.7/coin.m4
r2041 r2050 69 69 70 70 AC_DEFUN([AC_COIN_PROJECTDIR_INIT], 71 [# Initialize the ADDLIBS variable 72 ADDLIBS="-lm $LIBS" 73 AC_SUBST(ADDLIBS) 74 75 # Initialize the PCADDLIBS variable. 76 # This variable is used to setup library flags for the "Libs:" section in a .pc file. 77 # In certain cases, it may contain more flags than the ADDLIBS variable. 78 PCADDLIBS="" 79 AC_SUBST(PCADDLIBS) 80 71 [ 81 72 # As backup, we make sure we don't loose an FLIBS if it has been set 82 73 # by the user 83 74 save_FLIBS="$FLIBS" 84 85 # Initialize the FADDLIBS variable (which is to be used with a fortran86 # compiler and will not include FLIBS)87 FADDLIBS="$LIBS"88 AC_SUBST(FADDLIBS)89 75 90 76 # A useful makefile conditional that is always false … … 567 553 fi 568 554 555 # correct the LD variable in a mingw build with MS or intel compiler 569 556 case "$CXX" in 570 cl* | */cl* | CL* | */CL* )557 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 571 558 AC_COIN_MINGW_LD_FIX 572 559 ;; … … 953 940 fi 954 941 955 # Correct ADDLIBS initialization if we are using the MScompiler942 # Correct the LD variable if we are using the MS or Intel-windows compiler 956 943 case "$CC" in 957 944 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 958 ADDLIBS=959 945 AC_COIN_MINGW_LD_FIX 960 946 ;; … … 1169 1155 fi 1170 1156 1157 # correct the LD variable if we use the intel fortran compiler in windows 1171 1158 case "$F77" in 1172 1159 ifort* | */ifort* | IFORT* | */IFORT*) … … 1950 1937 if test x$coin_skip_ac_output != xyes; then 1951 1938 1952 FADDLIBS="$ADDLIBS"1953 if test x"$coin_need_flibs" = xyes; then1954 ADDLIBS="$ADDLIBS $FLIBS"1955 fi1956 PCADDLIBS="$PCADDLIBS $ADDLIBS"1957 1958 1939 # library extension 1959 1940 AC_SUBST(LIBEXT) … … 2112 2093 if test $coin_has_zlib = yes; then 2113 2094 AC_CHECK_LIB([z],[gzopen], 2114 [ADDLIBS="-lz $ADDLIBS" 2115 coin_foreach_w([myvar], [$1], [ 2095 [coin_foreach_w([myvar], [$1], [ 2116 2096 m4_toupper(myvar)_LIBS="-lz $m4_toupper(myvar)_LIBS" 2117 2097 m4_toupper(myvar)_PCLIBS="-lz $m4_toupper(myvar)_PCLIBS" 2118 2098 m4_toupper(myvar)_LIBS_INSTALLED="-lz $m4_toupper(myvar)_LIBS_INSTALLED" 2119 2099 ]) 2120 ],2100 :], 2121 2101 [coin_has_zlib=no]) 2122 2102 fi … … 2152 2132 if test $coin_has_bzlib = yes; then 2153 2133 AC_CHECK_LIB([bz2],[BZ2_bzReadOpen], 2154 [ADDLIBS="-lbz2 $ADDLIBS" 2155 coin_foreach_w([myvar], [$1], [ 2134 [coin_foreach_w([myvar], [$1], [ 2156 2135 m4_toupper(myvar)_LIBS="-lbz2 $m4_toupper(myvar)_LIBS" 2157 2136 m4_toupper(myvar)_PCLIBS="-lbz2 $m4_toupper(myvar)_PCLIBS" 2158 2137 m4_toupper(myvar)_LIBS_INSTALLED="-lbz2 $m4_toupper(myvar)_LIBS_INSTALLED" 2159 2138 ]) 2160 ],2139 :], 2161 2140 [coin_has_bzlib=no]) 2162 2141 fi … … 2204 2183 if test $coin_has_readline = yes; then 2205 2184 AC_CHECK_LIB([readline],[readline], 2206 [ADDLIBS="-lreadline $LIBS $ADDLIBS" 2207 coin_foreach_w([myvar], [$1], [ 2185 [coin_foreach_w([myvar], [$1], [ 2208 2186 m4_toupper(myvar)_LIBS="-lreadline $LIBS $m4_toupper(myvar)_LIBS" 2209 2187 m4_toupper(myvar)_PCLIBS="-lreadline $LIBS $m4_toupper(myvar)_PCLIBS" 2210 2188 m4_toupper(myvar)_LIBS_INSTALLED="-lreadline $LIBS $m4_toupper(myvar)_LIBS_INSTALLED" 2211 2189 ]) 2212 ],2190 :], 2213 2191 [coin_has_readline=no]) 2214 2192 fi … … 2326 2304 2327 2305 AC_DEFUN([AC_COIN_EXAMPLE_FILES], 2328 [AC_REQUIRE([AC_COIN_CHECK_GNU_ZLIB]) 2329 AC_REQUIRE([AC_COIN_CHECK_VPATH]) 2306 [AC_REQUIRE([AC_COIN_CHECK_VPATH]) 2330 2307 AC_REQUIRE([AC_COIN_ENABLE_DOSCOMPILE]) 2331 2308 AC_REQUIRE([AC_PROG_LN_S]) … … 2487 2464 [if test x"$m4_tolower($1)_libcheck" != xno; then 2488 2465 coin_save_LIBS="$LIBS" 2489 LIBS="$$2LIB $ ADDLIBS $5"2466 LIBS="$$2LIB $5" 2490 2467 coin_$2_link=no 2491 2468 AC_LANG_PUSH(C) … … 2506 2483 2507 2484 # If we make it this far, we've verified the file and linked the function. Add 2508 # the necessary link flags to ADDLIBS and$6_{PC}LIBS and define the preprocessor symbol2485 # the necessary link flags to $6_{PC}LIBS and define the preprocessor symbol 2509 2486 # COIN_HAS_LBRY. 2510 2487 2511 ADDLIBS="$$2LIB $ADDLIBS"2512 2488 coin_foreach_w([myvar], [$6], [ 2513 2489 m4_toupper(myvar)_LIBS="$$2LIB $m4_toupper(myvar)_LIBS" … … 2718 2694 # --coin-instdir, and the directory named in a file ../coin_subdirs.txt 2719 2695 # or ../../coin_subdirs.txt in a variable COIN_PKG_CONFIG_PATH, which is 2720 # also AC_SUBST'ed. 2696 # also AC_SUBST'ed. For a path xxx given in the coin-subdirs.txt, also 2697 # the directory xxx/pkgconfig is added, if existing. 2721 2698 2722 2699 AC_DEFUN([AC_COIN_HAS_PKGCONFIG], … … 2790 2767 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 2791 2768 fi 2769 if test -d ../$i/pkgconfig ; then 2770 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 2771 fi 2792 2772 done 2793 2773 fi … … 2797 2777 if test -d ../../$i ; then 2798 2778 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 2779 fi 2780 if test -d ../../$i/pkgconfig ; then 2781 COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}" 2799 2782 fi 2800 2783 done
Note: See TracChangeset
for help on using the changeset viewer.