Changeset 1634
- Timestamp:
- Nov 22, 2010 5:14:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/1.13/Clp/configure
r1633 r1634 20832 20832 # initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x) 20833 20833 projtoprocess="coinutils" 20834 projprocessed="" 20835 20836 while test $coin_has_coinutils = notGiven ; do 20837 # setup list of projects that need to be processed in the next round 20838 nextprojtoprocess="" 20834 20835 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 20836 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 20837 # also, we setup the DATA variable 20838 allproj="" 20839 allpcfiles="" 20840 while test "x$projtoprocess" != x ; do 20839 20841 20840 20842 for proj in $projtoprocess ; do 20841 # if $proj has been processed already, skip this round20842 if test "x$projprocessed" != x ; then20843 for projdone in $projprocessed ; do20844 if test $projdone = $proj ; then20845 continue 220846 fi20847 done20848 fi20849 20850 20843 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 20851 20844 pcfile="" … … 20856 20849 if test -r "$dir/$proj-uninstalled.pc" ; then 20857 20850 pcfile="$dir/$proj-uninstalled.pc" 20858 pcfiledir="$dir"20859 20851 break 20860 20852 fi … … 20863 20855 20864 20856 if test "x$pcfile" != x ; then 20865 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 20866 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 20867 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 20868 COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS" 20869 20870 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 20871 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 20872 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 20873 if test "x$projlibs" != x ; then 20874 if test -d "${pcfiledir}/src" ; then 20875 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 20876 else 20877 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 20878 fi 20879 else 20880 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 20881 fi 20882 COINUTILS_LIBS="$COINUTILS_LIBS $projlibs" 20857 # read dependencies from $pcfile and filter it 20858 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 20859 20860 # add projrequires to the front of the list of projects that have to be processed next 20861 # at the same time, remove $proj from this list 20862 projtoprocess=${projtoprocess/$proj/$projrequires} 20883 20863 20884 20864 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 20885 if test "x$ projprocessed" = x ; then20865 if test "x$allproj" = x ; then 20886 20866 COINUTILS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 20887 20867 fi 20888 20868 20889 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 20890 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 20891 nextprojtoprocess="$nextprojtoprocess $projrequires" 20892 20893 # remember that we have processed $proj 20894 projprocessed="$projprocessed $proj" 20869 allproj="$allproj $proj" 20870 allpcfiles="$pcfile:$allpcfiles" 20895 20871 20896 20872 else 20897 20873 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 20898 20874 echo "${ECHO_T}no, dependency $proj not available" >&6 20875 allproj=fail 20899 20876 break 2 20900 20877 fi 20901 20878 20879 break 20902 20880 done 20903 20881 20904 projtoprocess="$nextprojtoprocess" 20905 20906 # if there are no more projects to search for, finish up 20907 if test "x$projtoprocess" = x ; then 20908 coin_has_coinutils=yes 20909 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 20910 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 20882 # remove spaces on begin of $projtoprocess 20883 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 20884 20885 done 20886 20887 if test "$allproj" != fail ; then 20888 20889 # now go through the list of .pc files and assemble compiler and linker flags 20890 # important is here to obey the reverse order that has been setup before, 20891 # since then libraries that are required by several others should be after these other libraries 20892 pcfilesprocessed="" 20893 20894 save_IFS="$IFS" 20895 IFS=":" 20896 for pcfile in $allpcfiles ; do 20897 20898 # if $pcfile has been processed already, skip this round 20899 if test "x$pcfilesprocessed" != x ; then 20900 for pcfiledone in $pcfilesprocessed ; do 20901 if test "$pcfiledone" = "$pcfile" ; then 20902 continue 2 20903 fi 20904 done 20905 fi 20906 20907 # reconstruct the directory where the .pc file is located 20908 pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'` 20909 20910 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 20911 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 20912 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 20913 COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS" 20914 20915 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 20916 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 20917 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 20918 if test "x$projlibs" != x ; then 20919 if test -d "${pcfiledir}/src" ; then 20920 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 20921 else 20922 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 20923 fi 20924 else 20925 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 20926 fi 20927 COINUTILS_LIBS="$projlibs $COINUTILS_LIBS" 20928 20929 # remember that we have processed $pcfile 20930 pcfilesprocessed="$pcfilesprocessed:$pcfile" 20931 20932 done 20933 IFS="$save_IFS" 20934 20935 # finish up 20936 coin_has_coinutils=yes 20937 echo "$as_me:$LINENO: result: yes" >&5 20938 echo "${ECHO_T}yes" >&6 20911 20939 20912 20940 cat >>confdefs.h <<\_ACEOF … … 20916 20944 20917 20945 20918 20919 20920 20921 20922 20923 20924 20925 20946 CLPLIB_PCREQUIRES="coinutils $CLPLIB_PCREQUIRES" 20947 CLPLIB_CFLAGS="$COINUTILS_CFLAGS $CLPLIB_CFLAGS" 20948 CLPLIB_LIBS="$COINUTILS_LIBS $CLPLIB_LIBS" 20949 20950 20951 if test 1 = 0 ; then #change this test to enable a bit of debugging output 20952 if test -n "$COINUTILS_CFLAGS" ; then 20953 { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5 20926 20954 echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;} 20927 20928 20929 20955 fi 20956 if test -n "$COINUTILS_LIBS" ; then 20957 { echo "$as_me:$LINENO: CoinUtils LIBS are $COINUTILS_LIBS" >&5 20930 20958 echo "$as_me: CoinUtils LIBS are $COINUTILS_LIBS" >&6;} 20931 20932 20933 20959 fi 20960 if test -n "$COINUTILS_DATA" ; then 20961 { echo "$as_me:$LINENO: CoinUtils DATA is $COINUTILS_DATA" >&5 20934 20962 echo "$as_me: CoinUtils DATA is $COINUTILS_DATA" >&6;} 20935 20936 20937 20963 fi 20964 20965 { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5 20938 20966 echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;} 20939 20967 { echo "$as_me:$LINENO: ClpLib LIBS are $CLPLIB_LIBS" >&5 20940 20968 echo "$as_me: ClpLib LIBS are $CLPLIB_LIBS" >&6;} 20941 20969 20942 fi20943 20970 fi 20944 done 20971 20972 fi 20945 20973 20946 20974 … … 21148 21176 # initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x) 21149 21177 projtoprocess="osi" 21150 projprocessed="" 21151 21152 while test $coin_has_osi = notGiven ; do 21153 # setup list of projects that need to be processed in the next round 21154 nextprojtoprocess="" 21178 21179 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 21180 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 21181 # also, we setup the DATA variable 21182 allproj="" 21183 allpcfiles="" 21184 while test "x$projtoprocess" != x ; do 21155 21185 21156 21186 for proj in $projtoprocess ; do 21157 # if $proj has been processed already, skip this round21158 if test "x$projprocessed" != x ; then21159 for projdone in $projprocessed ; do21160 if test $projdone = $proj ; then21161 continue 221162 fi21163 done21164 fi21165 21166 21187 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21167 21188 pcfile="" … … 21172 21193 if test -r "$dir/$proj-uninstalled.pc" ; then 21173 21194 pcfile="$dir/$proj-uninstalled.pc" 21174 pcfiledir="$dir"21175 21195 break 21176 21196 fi … … 21179 21199 21180 21200 if test "x$pcfile" != x ; then 21181 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21182 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 21183 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21184 OSI_CFLAGS="$projcflags $OSI_CFLAGS" 21185 21186 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21187 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21188 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21189 if test "x$projlibs" != x ; then 21190 if test -d "${pcfiledir}/src" ; then 21191 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21192 else 21193 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21194 fi 21195 else 21196 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21197 fi 21198 OSI_LIBS="$OSI_LIBS $projlibs" 21201 # read dependencies from $pcfile and filter it 21202 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 21203 21204 # add projrequires to the front of the list of projects that have to be processed next 21205 # at the same time, remove $proj from this list 21206 projtoprocess=${projtoprocess/$proj/$projrequires} 21199 21207 21200 21208 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 21201 if test "x$ projprocessed" = x ; then21209 if test "x$allproj" = x ; then 21202 21210 OSI_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 21203 21211 fi 21204 21212 21205 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 21206 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 21207 nextprojtoprocess="$nextprojtoprocess $projrequires" 21208 21209 # remember that we have processed $proj 21210 projprocessed="$projprocessed $proj" 21213 allproj="$allproj $proj" 21214 allpcfiles="$pcfile:$allpcfiles" 21211 21215 21212 21216 else 21213 21217 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 21214 21218 echo "${ECHO_T}no, dependency $proj not available" >&6 21219 allproj=fail 21215 21220 break 2 21216 21221 fi 21217 21222 21223 break 21218 21224 done 21219 21225 21220 projtoprocess="$nextprojtoprocess" 21221 21222 # if there are no more projects to search for, finish up 21223 if test "x$projtoprocess" = x ; then 21224 coin_has_osi=yes 21225 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 21226 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 21226 # remove spaces on begin of $projtoprocess 21227 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 21228 21229 done 21230 21231 if test "$allproj" != fail ; then 21232 21233 # now go through the list of .pc files and assemble compiler and linker flags 21234 # important is here to obey the reverse order that has been setup before, 21235 # since then libraries that are required by several others should be after these other libraries 21236 pcfilesprocessed="" 21237 21238 save_IFS="$IFS" 21239 IFS=":" 21240 for pcfile in $allpcfiles ; do 21241 21242 # if $pcfile has been processed already, skip this round 21243 if test "x$pcfilesprocessed" != x ; then 21244 for pcfiledone in $pcfilesprocessed ; do 21245 if test "$pcfiledone" = "$pcfile" ; then 21246 continue 2 21247 fi 21248 done 21249 fi 21250 21251 # reconstruct the directory where the .pc file is located 21252 pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'` 21253 21254 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21255 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 21256 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21257 OSI_CFLAGS="$projcflags $OSI_CFLAGS" 21258 21259 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21260 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21261 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21262 if test "x$projlibs" != x ; then 21263 if test -d "${pcfiledir}/src" ; then 21264 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21265 else 21266 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21267 fi 21268 else 21269 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21270 fi 21271 OSI_LIBS="$projlibs $OSI_LIBS" 21272 21273 # remember that we have processed $pcfile 21274 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21275 21276 done 21277 IFS="$save_IFS" 21278 21279 # finish up 21280 coin_has_osi=yes 21281 echo "$as_me:$LINENO: result: yes" >&5 21282 echo "${ECHO_T}yes" >&6 21227 21283 21228 21284 cat >>confdefs.h <<\_ACEOF … … 21232 21288 21233 21289 21234 21235 21236 21237 21238 21239 21240 21241 21290 OSICLPLIB_PCREQUIRES="osi $OSICLPLIB_PCREQUIRES" 21291 OSICLPLIB_CFLAGS="$OSI_CFLAGS $OSICLPLIB_CFLAGS" 21292 OSICLPLIB_LIBS="$OSI_LIBS $OSICLPLIB_LIBS" 21293 21294 21295 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21296 if test -n "$OSI_CFLAGS" ; then 21297 { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5 21242 21298 echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;} 21243 21244 21245 21299 fi 21300 if test -n "$OSI_LIBS" ; then 21301 { echo "$as_me:$LINENO: Osi LIBS are $OSI_LIBS" >&5 21246 21302 echo "$as_me: Osi LIBS are $OSI_LIBS" >&6;} 21247 21248 21249 21303 fi 21304 if test -n "$OSI_DATA" ; then 21305 { echo "$as_me:$LINENO: Osi DATA is $OSI_DATA" >&5 21250 21306 echo "$as_me: Osi DATA is $OSI_DATA" >&6;} 21251 21252 21253 21307 fi 21308 21309 { echo "$as_me:$LINENO: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&5 21254 21310 echo "$as_me: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&6;} 21255 21311 { echo "$as_me:$LINENO: OsiClpLib LIBS are $OSICLPLIB_LIBS" >&5 21256 21312 echo "$as_me: OsiClpLib LIBS are $OSICLPLIB_LIBS" >&6;} 21257 21313 21258 fi21259 21314 fi 21260 done 21315 21316 fi 21261 21317 21262 21318 … … 21451 21507 # initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x) 21452 21508 projtoprocess="osi-unittests" 21453 projprocessed="" 21454 21455 while test $coin_has_ositests = notGiven ; do 21456 # setup list of projects that need to be processed in the next round 21457 nextprojtoprocess="" 21509 21510 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 21511 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 21512 # also, we setup the DATA variable 21513 allproj="" 21514 allpcfiles="" 21515 while test "x$projtoprocess" != x ; do 21458 21516 21459 21517 for proj in $projtoprocess ; do 21460 # if $proj has been processed already, skip this round21461 if test "x$projprocessed" != x ; then21462 for projdone in $projprocessed ; do21463 if test $projdone = $proj ; then21464 continue 221465 fi21466 done21467 fi21468 21469 21518 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21470 21519 pcfile="" … … 21475 21524 if test -r "$dir/$proj-uninstalled.pc" ; then 21476 21525 pcfile="$dir/$proj-uninstalled.pc" 21477 pcfiledir="$dir"21478 21526 break 21479 21527 fi … … 21482 21530 21483 21531 if test "x$pcfile" != x ; then 21484 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21485 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 21486 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21487 OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS" 21488 21489 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21490 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21491 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21492 if test "x$projlibs" != x ; then 21493 if test -d "${pcfiledir}/src" ; then 21494 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21495 else 21496 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21497 fi 21498 else 21499 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21500 fi 21501 OSITESTS_LIBS="$OSITESTS_LIBS $projlibs" 21532 # read dependencies from $pcfile and filter it 21533 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 21534 21535 # add projrequires to the front of the list of projects that have to be processed next 21536 # at the same time, remove $proj from this list 21537 projtoprocess=${projtoprocess/$proj/$projrequires} 21502 21538 21503 21539 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 21504 if test "x$ projprocessed" = x ; then21540 if test "x$allproj" = x ; then 21505 21541 OSITESTS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 21506 21542 fi 21507 21543 21508 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 21509 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 21510 nextprojtoprocess="$nextprojtoprocess $projrequires" 21511 21512 # remember that we have processed $proj 21513 projprocessed="$projprocessed $proj" 21544 allproj="$allproj $proj" 21545 allpcfiles="$pcfile:$allpcfiles" 21514 21546 21515 21547 else 21516 21548 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 21517 21549 echo "${ECHO_T}no, dependency $proj not available" >&6 21550 allproj=fail 21518 21551 break 2 21519 21552 fi 21520 21553 21554 break 21521 21555 done 21522 21556 21523 projtoprocess="$nextprojtoprocess" 21524 21525 # if there are no more projects to search for, finish up 21526 if test "x$projtoprocess" = x ; then 21527 coin_has_ositests=yes 21528 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 21529 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 21557 # remove spaces on begin of $projtoprocess 21558 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 21559 21560 done 21561 21562 if test "$allproj" != fail ; then 21563 21564 # now go through the list of .pc files and assemble compiler and linker flags 21565 # important is here to obey the reverse order that has been setup before, 21566 # since then libraries that are required by several others should be after these other libraries 21567 pcfilesprocessed="" 21568 21569 save_IFS="$IFS" 21570 IFS=":" 21571 for pcfile in $allpcfiles ; do 21572 21573 # if $pcfile has been processed already, skip this round 21574 if test "x$pcfilesprocessed" != x ; then 21575 for pcfiledone in $pcfilesprocessed ; do 21576 if test "$pcfiledone" = "$pcfile" ; then 21577 continue 2 21578 fi 21579 done 21580 fi 21581 21582 # reconstruct the directory where the .pc file is located 21583 pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'` 21584 21585 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21586 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 21587 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21588 OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS" 21589 21590 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21591 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21592 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21593 if test "x$projlibs" != x ; then 21594 if test -d "${pcfiledir}/src" ; then 21595 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21596 else 21597 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21598 fi 21599 else 21600 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21601 fi 21602 OSITESTS_LIBS="$projlibs $OSITESTS_LIBS" 21603 21604 # remember that we have processed $pcfile 21605 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21606 21607 done 21608 IFS="$save_IFS" 21609 21610 # finish up 21611 coin_has_ositests=yes 21612 echo "$as_me:$LINENO: result: yes" >&5 21613 echo "${ECHO_T}yes" >&6 21530 21614 21531 21615 cat >>confdefs.h <<\_ACEOF … … 21536 21620 21537 21621 21538 21539 21540 21622 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21623 if test -n "$OSITESTS_CFLAGS" ; then 21624 { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5 21541 21625 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;} 21542 21543 21544 21626 fi 21627 if test -n "$OSITESTS_LIBS" ; then 21628 { echo "$as_me:$LINENO: OsiTests LIBS are $OSITESTS_LIBS" >&5 21545 21629 echo "$as_me: OsiTests LIBS are $OSITESTS_LIBS" >&6;} 21546 21547 21548 21630 fi 21631 if test -n "$OSITESTS_DATA" ; then 21632 { echo "$as_me:$LINENO: OsiTests DATA is $OSITESTS_DATA" >&5 21549 21633 echo "$as_me: OsiTests DATA is $OSITESTS_DATA" >&6;} 21550 fi21551 21552 21634 fi 21635 21553 21636 fi 21554 done 21637 21638 fi 21555 21639 21556 21640 … … 21740 21824 # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x) 21741 21825 projtoprocess="coindatasample" 21742 projprocessed="" 21743 21744 while test $coin_has_sample = notGiven ; do 21745 # setup list of projects that need to be processed in the next round 21746 nextprojtoprocess="" 21826 21827 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 21828 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 21829 # also, we setup the DATA variable 21830 allproj="" 21831 allpcfiles="" 21832 while test "x$projtoprocess" != x ; do 21747 21833 21748 21834 for proj in $projtoprocess ; do 21749 # if $proj has been processed already, skip this round21750 if test "x$projprocessed" != x ; then21751 for projdone in $projprocessed ; do21752 if test $projdone = $proj ; then21753 continue 221754 fi21755 done21756 fi21757 21758 21835 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21759 21836 pcfile="" … … 21764 21841 if test -r "$dir/$proj-uninstalled.pc" ; then 21765 21842 pcfile="$dir/$proj-uninstalled.pc" 21766 pcfiledir="$dir"21767 21843 break 21768 21844 fi … … 21771 21847 21772 21848 if test "x$pcfile" != x ; then 21773 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21774 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 21775 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21776 SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS" 21777 21778 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21779 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21780 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21781 if test "x$projlibs" != x ; then 21782 if test -d "${pcfiledir}/src" ; then 21783 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21784 else 21785 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21786 fi 21787 else 21788 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21789 fi 21790 SAMPLE_LIBS="$SAMPLE_LIBS $projlibs" 21849 # read dependencies from $pcfile and filter it 21850 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 21851 21852 # add projrequires to the front of the list of projects that have to be processed next 21853 # at the same time, remove $proj from this list 21854 projtoprocess=${projtoprocess/$proj/$projrequires} 21791 21855 21792 21856 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 21793 if test "x$ projprocessed" = x ; then21857 if test "x$allproj" = x ; then 21794 21858 SAMPLE_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 21795 21859 fi 21796 21860 21797 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 21798 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 21799 nextprojtoprocess="$nextprojtoprocess $projrequires" 21800 21801 # remember that we have processed $proj 21802 projprocessed="$projprocessed $proj" 21861 allproj="$allproj $proj" 21862 allpcfiles="$pcfile:$allpcfiles" 21803 21863 21804 21864 else 21805 21865 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 21806 21866 echo "${ECHO_T}no, dependency $proj not available" >&6 21867 allproj=fail 21807 21868 break 2 21808 21869 fi 21809 21870 21871 break 21810 21872 done 21811 21873 21812 projtoprocess="$nextprojtoprocess" 21813 21814 # if there are no more projects to search for, finish up 21815 if test "x$projtoprocess" = x ; then 21816 coin_has_sample=yes 21817 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 21818 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 21874 # remove spaces on begin of $projtoprocess 21875 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 21876 21877 done 21878 21879 if test "$allproj" != fail ; then 21880 21881 # now go through the list of .pc files and assemble compiler and linker flags 21882 # important is here to obey the reverse order that has been setup before, 21883 # since then libraries that are required by several others should be after these other libraries 21884 pcfilesprocessed="" 21885 21886 save_IFS="$IFS" 21887 IFS=":" 21888 for pcfile in $allpcfiles ; do 21889 21890 # if $pcfile has been processed already, skip this round 21891 if test "x$pcfilesprocessed" != x ; then 21892 for pcfiledone in $pcfilesprocessed ; do 21893 if test "$pcfiledone" = "$pcfile" ; then 21894 continue 2 21895 fi 21896 done 21897 fi 21898 21899 # reconstruct the directory where the .pc file is located 21900 pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'` 21901 21902 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21903 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 21904 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21905 SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS" 21906 21907 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21908 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21909 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21910 if test "x$projlibs" != x ; then 21911 if test -d "${pcfiledir}/src" ; then 21912 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21913 else 21914 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21915 fi 21916 else 21917 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21918 fi 21919 SAMPLE_LIBS="$projlibs $SAMPLE_LIBS" 21920 21921 # remember that we have processed $pcfile 21922 pcfilesprocessed="$pcfilesprocessed:$pcfile" 21923 21924 done 21925 IFS="$save_IFS" 21926 21927 # finish up 21928 coin_has_sample=yes 21929 echo "$as_me:$LINENO: result: yes" >&5 21930 echo "${ECHO_T}yes" >&6 21819 21931 21820 21932 cat >>confdefs.h <<\_ACEOF … … 21825 21937 21826 21938 21827 21828 21829 21939 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21940 if test -n "$SAMPLE_CFLAGS" ; then 21941 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5 21830 21942 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;} 21831 21832 21833 21943 fi 21944 if test -n "$SAMPLE_LIBS" ; then 21945 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5 21834 21946 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;} 21835 21836 21837 21947 fi 21948 if test -n "$SAMPLE_DATA" ; then 21949 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5 21838 21950 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;} 21839 fi21840 21841 21951 fi 21952 21842 21953 fi 21843 done 21954 21955 fi 21844 21956 21845 21957 … … 22029 22141 # initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x) 22030 22142 projtoprocess="coindatanetlib" 22031 projprocessed="" 22032 22033 while test $coin_has_netlib = notGiven ; do 22034 # setup list of projects that need to be processed in the next round 22035 nextprojtoprocess="" 22143 22144 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it 22145 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards 22146 # also, we setup the DATA variable 22147 allproj="" 22148 allpcfiles="" 22149 while test "x$projtoprocess" != x ; do 22036 22150 22037 22151 for proj in $projtoprocess ; do 22038 # if $proj has been processed already, skip this round22039 if test "x$projprocessed" != x ; then22040 for projdone in $projprocessed ; do22041 if test $projdone = $proj ; then22042 continue 222043 fi22044 done22045 fi22046 22047 22152 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 22048 22153 pcfile="" … … 22053 22158 if test -r "$dir/$proj-uninstalled.pc" ; then 22054 22159 pcfile="$dir/$proj-uninstalled.pc" 22055 pcfiledir="$dir"22056 22160 break 22057 22161 fi … … 22060 22164 22061 22165 if test "x$pcfile" != x ; then 22062 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 22063 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 22064 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 22065 NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS" 22066 22067 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 22068 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 22069 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 22070 if test "x$projlibs" != x ; then 22071 if test -d "${pcfiledir}/src" ; then 22072 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 22073 else 22074 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 22075 fi 22076 else 22077 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 22078 fi 22079 NETLIB_LIBS="$NETLIB_LIBS $projlibs" 22166 # read dependencies from $pcfile and filter it 22167 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 22168 22169 # add projrequires to the front of the list of projects that have to be processed next 22170 # at the same time, remove $proj from this list 22171 projtoprocess=${projtoprocess/$proj/$projrequires} 22080 22172 22081 22173 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 22082 if test "x$ projprocessed" = x ; then22174 if test "x$allproj" = x ; then 22083 22175 NETLIB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 22084 22176 fi 22085 22177 22086 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 22087 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ ]\{0,\}[^ ]\{1,\}//g'` 22088 nextprojtoprocess="$nextprojtoprocess $projrequires" 22089 22090 # remember that we have processed $proj 22091 projprocessed="$projprocessed $proj" 22178 allproj="$allproj $proj" 22179 allpcfiles="$pcfile:$allpcfiles" 22092 22180 22093 22181 else 22094 22182 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 22095 22183 echo "${ECHO_T}no, dependency $proj not available" >&6 22184 allproj=fail 22096 22185 break 2 22097 22186 fi 22098 22187 22188 break 22099 22189 done 22100 22190 22101 projtoprocess="$nextprojtoprocess" 22102 22103 # if there are no more projects to search for, finish up 22104 if test "x$projtoprocess" = x ; then 22105 coin_has_netlib=yes 22106 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 22107 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 22191 # remove spaces on begin of $projtoprocess 22192 projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'` 22193 22194 done 22195 22196 if test "$allproj" != fail ; then 22197 22198 # now go through the list of .pc files and assemble compiler and linker flags 22199 # important is here to obey the reverse order that has been setup before, 22200 # since then libraries that are required by several others should be after these other libraries 22201 pcfilesprocessed="" 22202 22203 save_IFS="$IFS" 22204 IFS=":" 22205 for pcfile in $allpcfiles ; do 22206 22207 # if $pcfile has been processed already, skip this round 22208 if test "x$pcfilesprocessed" != x ; then 22209 for pcfiledone in $pcfilesprocessed ; do 22210 if test "$pcfiledone" = "$pcfile" ; then 22211 continue 2 22212 fi 22213 done 22214 fi 22215 22216 # reconstruct the directory where the .pc file is located 22217 pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'` 22218 22219 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 22220 projcflags=`sed -n -e 's/Cflags://p' "$pcfile"` 22221 projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 22222 NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS" 22223 22224 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 22225 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 22226 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 22227 if test "x$projlibs" != x ; then 22228 if test -d "${pcfiledir}/src" ; then 22229 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 22230 else 22231 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 22232 fi 22233 else 22234 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 22235 fi 22236 NETLIB_LIBS="$projlibs $NETLIB_LIBS" 22237 22238 # remember that we have processed $pcfile 22239 pcfilesprocessed="$pcfilesprocessed:$pcfile" 22240 22241 done 22242 IFS="$save_IFS" 22243 22244 # finish up 22245 coin_has_netlib=yes 22246 echo "$as_me:$LINENO: result: yes" >&5 22247 echo "${ECHO_T}yes" >&6 22108 22248 22109 22249 cat >>confdefs.h <<\_ACEOF … … 22114 22254 22115 22255 22116 22117 22118 22256 if test 1 = 0 ; then #change this test to enable a bit of debugging output 22257 if test -n "$NETLIB_CFLAGS" ; then 22258 { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5 22119 22259 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;} 22120 22121 22122 22260 fi 22261 if test -n "$NETLIB_LIBS" ; then 22262 { echo "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&5 22123 22263 echo "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;} 22124 22125 22126 22264 fi 22265 if test -n "$NETLIB_DATA" ; then 22266 { echo "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&5 22127 22267 echo "$as_me: Netlib DATA is $NETLIB_DATA" >&6;} 22128 fi22129 22130 22268 fi 22269 22131 22270 fi 22132 done 22271 22272 fi 22133 22273 22134 22274
Note: See TracChangeset
for help on using the changeset viewer.