Changeset 1636


Ignore:
Timestamp:
Nov 28, 2010 9:48:00 AM (9 years ago)
Author:
stefan
Message:

install also osi-clp.pc file in main directory (will be needed soon); rerun autotools

Location:
trunk/Clp
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/Makefile.am

    r1582 r1636  
    111111pkgconfiglib_DATA = clp.pc
    112112
     113if COIN_HAS_OSI
     114pkgconfiglib_DATA += osi-clp.pc
     115endif
     116
    113117if COIN_HAS_PKGCONFIG
    114118addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Clp
  • trunk/Clp/Makefile.in

    r1618 r1636  
    5858# included in the tarball
    5959@ALWAYS_FALSE@am__append_1 = test
     60@COIN_HAS_OSI_TRUE@am__append_2 = osi-clp.pc
    6061DIST_COMMON = README $(am__configure_deps) \
    6162        $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     
    6566        $(top_srcdir)/examples/Makefile.in \
    6667        $(top_srcdir)/inc/config_clp.h.in \
    67         $(top_srcdir)/src/OsiClp/osi-clp-uninstalled.pc.in AUTHORS \
    68         config.guess config.sub depcomp install-sh ltmain.sh missing
    69 @HAVE_EXTERNALS_TRUE@am__append_2 = Externals
    70 @HAVE_EXTERNALS_TRUE@am__append_3 = .Externals-stamp
     68        $(top_srcdir)/src/OsiClp/osi-clp-uninstalled.pc.in \
     69        $(top_srcdir)/src/OsiClp/osi-clp.pc.in AUTHORS config.guess \
     70        config.sub depcomp install-sh ltmain.sh missing
     71@HAVE_EXTERNALS_TRUE@am__append_3 = Externals
     72@HAVE_EXTERNALS_TRUE@am__append_4 = .Externals-stamp
    7173subdir = .
    7274ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    8082CONFIG_HEADER = $(top_builddir)/inc/config_clp.h
    8183CONFIG_CLEAN_FILES = examples/Makefile clp.pc clp-uninstalled.pc \
    82         osi-clp-uninstalled.pc doxydoc/doxygen.conf
     84        osi-clp.pc osi-clp-uninstalled.pc doxydoc/doxygen.conf
    8385SOURCES =
    8486DIST_SOURCES =
     
    322324        examples/testBasis.cpp examples/testGub2.cpp \
    323325        examples/testGub.cpp examples/testQP.cpp \
    324         examples/useVolume.cpp $(am__append_2)
     326        examples/useVolume.cpp $(am__append_3)
    325327
    326328########################################################################
     
    328330########################################################################
    329331pkgconfiglibdir = $(libdir)/pkgconfig
    330 pkgconfiglib_DATA = clp.pc
     332pkgconfiglib_DATA = clp.pc $(am__append_2)
    331333@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Clp
    332334
     
    337339
    338340# Files that are generated and should be cleaned with make distclean
    339 DISTCLEANFILES = $(am__append_3) $(VPATH_DISTCLEANFILES)
     341DISTCLEANFILES = $(am__append_4) $(VPATH_DISTCLEANFILES)
    340342DocFiles = README AUTHORS LICENSE
    341343DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
     
    398400        cd $(top_builddir) && $(SHELL) ./config.status $@
    399401clp-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/clp-uninstalled.pc.in
     402        cd $(top_builddir) && $(SHELL) ./config.status $@
     403osi-clp.pc: $(top_builddir)/config.status $(top_srcdir)/src/OsiClp/osi-clp.pc.in
    400404        cd $(top_builddir) && $(SHELL) ./config.status $@
    401405osi-clp-uninstalled.pc: $(top_builddir)/config.status $(top_srcdir)/src/OsiClp/osi-clp-uninstalled.pc.in
  • trunk/Clp/configure

    r1631 r1636  
    2083220832# initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x)
    2083320833projtoprocess="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
     20838allproj=""
     20839allpcfiles=""
     20840while test "x$projtoprocess" != x ; do
    2083920841
    2084020842  for proj in $projtoprocess ; do
    20841     # if $proj has been processed already, skip this round
    20842     if test "x$projprocessed" != x ; then
    20843       for projdone in $projprocessed ; do
    20844         if test $projdone = $proj ; then
    20845           continue 2
    20846         fi
    20847       done
    20848     fi
    20849 
    2085020843    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    2085120844    pcfile=""
     
    2085620849      if test -r "$dir/$proj-uninstalled.pc" ; then
    2085720850        pcfile="$dir/$proj-uninstalled.pc"
    20858         pcfiledir="$dir"
    2085920851        break
    2086020852      fi
     
    2086320855
    2086420856    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}
    2088320863
    2088420864      # 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 ; then
     20865      if test "x$allproj" = x ; then
    2088620866        COINUTILS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    2088720867      fi
    2088820868
    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/<\?>\?=[  ]*[^    ]\+//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"
    2089520871
    2089620872    else
    2089720873      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    2089820874echo "${ECHO_T}no, dependency $proj not available" >&6
     20875      allproj=fail
    2089920876      break 2
    2090020877    fi
    2090120878
     20879    break
    2090220880  done
    2090320881
    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
     20885done
     20886
     20887if 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
     20938echo "${ECHO_T}yes" >&6
    2091120939
    2091220940cat >>confdefs.h <<\_ACEOF
     
    2091620944
    2091720945
    20918       CLPLIB_PCREQUIRES="coinutils $CLPLIB_PCREQUIRES"
    20919       CLPLIB_CFLAGS="$COINUTILS_CFLAGS $CLPLIB_CFLAGS"
    20920       CLPLIB_LIBS="$COINUTILS_LIBS $CLPLIB_LIBS"
    20921 
    20922 
    20923     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    20924       if test -n "$COINUTILS_CFLAGS" ; then
    20925         { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
     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
    2092620954echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
    20927       fi
    20928       if test -n "$COINUTILS_LIBS" ; then
    20929         { echo "$as_me:$LINENO: CoinUtils LIBS   are $COINUTILS_LIBS" >&5
     20955    fi
     20956    if test -n "$COINUTILS_LIBS" ; then
     20957      { echo "$as_me:$LINENO: CoinUtils LIBS   are $COINUTILS_LIBS" >&5
    2093020958echo "$as_me: CoinUtils LIBS   are $COINUTILS_LIBS" >&6;}
    20931       fi
    20932       if test -n "$COINUTILS_DATA" ; then
    20933         { echo "$as_me:$LINENO: CoinUtils DATA   is  $COINUTILS_DATA" >&5
     20959    fi
     20960    if test -n "$COINUTILS_DATA" ; then
     20961      { echo "$as_me:$LINENO: CoinUtils DATA   is  $COINUTILS_DATA" >&5
    2093420962echo "$as_me: CoinUtils DATA   is  $COINUTILS_DATA" >&6;}
    20935       fi
    20936 
    20937         { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
     20963    fi
     20964
     20965      { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
    2093820966echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
    20939         { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
     20967      { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
    2094020968echo "$as_me: ClpLib LIBS   are $CLPLIB_LIBS" >&6;}
    2094120969
    20942     fi
    2094320970  fi
    20944 done
     20971
     20972fi
    2094520973
    2094620974
     
    2115321181# initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x)
    2115421182projtoprocess="osi"
    21155 projprocessed=""
    21156 
    21157 while test $coin_has_osi = notGiven ; do
    21158   # setup list of projects that need to be processed in the next round
    21159   nextprojtoprocess=""
     21183
     21184# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     21185# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     21186# also, we setup the DATA variable
     21187allproj=""
     21188allpcfiles=""
     21189while test "x$projtoprocess" != x ; do
    2116021190
    2116121191  for proj in $projtoprocess ; do
    21162     # if $proj has been processed already, skip this round
    21163     if test "x$projprocessed" != x ; then
    21164       for projdone in $projprocessed ; do
    21165         if test $projdone = $proj ; then
    21166           continue 2
    21167         fi
    21168       done
    21169     fi
    21170 
    2117121192    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    2117221193    pcfile=""
     
    2117721198      if test -r "$dir/$proj-uninstalled.pc" ; then
    2117821199        pcfile="$dir/$proj-uninstalled.pc"
    21179         pcfiledir="$dir"
    2118021200        break
    2118121201      fi
     
    2118421204
    2118521205    if test "x$pcfile" != x ; then
    21186       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    21187       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    21188       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21189       OSI_CFLAGS="$projcflags $OSI_CFLAGS"
    21190 
    21191       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    21192       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    21193       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    21194       if test "x$projlibs" != x ; then
    21195         if test -d "${pcfiledir}/src" ; then
    21196           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    21197         else
    21198           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    21199         fi
    21200       else
    21201         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    21202       fi
    21203       OSI_LIBS="$OSI_LIBS $projlibs"
     21206      # read dependencies from $pcfile and filter it
     21207      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     21208
     21209      # add projrequires to the front of the list of projects that have to be processed next
     21210      # at the same time, remove $proj from this list
     21211      projtoprocess=${projtoprocess/$proj/$projrequires}
    2120421212
    2120521213      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    21206       if test "x$projprocessed" = x ; then
     21214      if test "x$allproj" = x ; then
    2120721215        OSI_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    2120821216      fi
    2120921217
    21210       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    21211       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    21212       nextprojtoprocess="$nextprojtoprocess $projrequires"
    21213 
    21214       # remember that we have processed $proj
    21215       projprocessed="$projprocessed $proj"
     21218      allproj="$allproj $proj"
     21219      allpcfiles="$pcfile:$allpcfiles"
    2121621220
    2121721221    else
    2121821222      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    2121921223echo "${ECHO_T}no, dependency $proj not available" >&6
     21224      allproj=fail
    2122021225      break 2
    2122121226    fi
    2122221227
     21228    break
    2122321229  done
    2122421230
    21225   projtoprocess="$nextprojtoprocess"
    21226 
    21227   # if there are no more projects to search for, finish up
    21228   if test "x$projtoprocess" = x ; then
    21229     coin_has_osi=yes
    21230     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    21231 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     21231  # remove spaces on begin of $projtoprocess
     21232  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     21233
     21234done
     21235
     21236if test "$allproj" != fail ; then
     21237
     21238  # now go through the list of .pc files and assemble compiler and linker flags
     21239  # important is here to obey the reverse order that has been setup before,
     21240  # since then libraries that are required by several others should be after these other libraries
     21241  pcfilesprocessed=""
     21242
     21243  save_IFS="$IFS"
     21244  IFS=":"
     21245  for pcfile in $allpcfiles ; do
     21246
     21247    # if $pcfile has been processed already, skip this round
     21248    if test "x$pcfilesprocessed" != x ; then
     21249      for pcfiledone in $pcfilesprocessed ; do
     21250        if test "$pcfiledone" = "$pcfile" ; then
     21251          continue 2
     21252        fi
     21253      done
     21254    fi
     21255
     21256    # reconstruct the directory where the .pc file is located
     21257    pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
     21258
     21259    # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     21260    projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     21261    projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21262    OSI_CFLAGS="$projcflags $OSI_CFLAGS"
     21263
     21264    # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     21265    # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     21266    projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     21267    if test "x$projlibs" != x ; then
     21268      if test -d "${pcfiledir}/src" ; then
     21269        projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     21270      else
     21271        projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     21272      fi
     21273    else
     21274      projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     21275    fi
     21276    OSI_LIBS="$projlibs $OSI_LIBS"
     21277
     21278    # remember that we have processed $pcfile
     21279    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21280
     21281  done
     21282  IFS="$save_IFS"
     21283
     21284  # finish up
     21285  coin_has_osi=yes
     21286  echo "$as_me:$LINENO: result: yes" >&5
     21287echo "${ECHO_T}yes" >&6
    2123221288
    2123321289cat >>confdefs.h <<\_ACEOF
     
    2123721293
    2123821294
    21239       OSICLPLIB_PCREQUIRES="osi $OSICLPLIB_PCREQUIRES"
    21240       OSICLPLIB_CFLAGS="$OSI_CFLAGS $OSICLPLIB_CFLAGS"
    21241       OSICLPLIB_LIBS="$OSI_LIBS $OSICLPLIB_LIBS"
    21242 
    21243 
    21244     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21245       if test -n "$OSI_CFLAGS" ; then
    21246         { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
     21295    OSICLPLIB_PCREQUIRES="osi $OSICLPLIB_PCREQUIRES"
     21296    OSICLPLIB_CFLAGS="$OSI_CFLAGS $OSICLPLIB_CFLAGS"
     21297    OSICLPLIB_LIBS="$OSI_LIBS $OSICLPLIB_LIBS"
     21298
     21299
     21300  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21301    if test -n "$OSI_CFLAGS" ; then
     21302      { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
    2124721303echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
    21248       fi
    21249       if test -n "$OSI_LIBS" ; then
    21250         { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
     21304    fi
     21305    if test -n "$OSI_LIBS" ; then
     21306      { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
    2125121307echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
    21252       fi
    21253       if test -n "$OSI_DATA" ; then
    21254         { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
     21308    fi
     21309    if test -n "$OSI_DATA" ; then
     21310      { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
    2125521311echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
    21256       fi
    21257 
    21258         { echo "$as_me:$LINENO: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&5
     21312    fi
     21313
     21314      { echo "$as_me:$LINENO: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&5
    2125921315echo "$as_me: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&6;}
    21260         { echo "$as_me:$LINENO: OsiClpLib LIBS   are $OSICLPLIB_LIBS" >&5
     21316      { echo "$as_me:$LINENO: OsiClpLib LIBS   are $OSICLPLIB_LIBS" >&5
    2126121317echo "$as_me: OsiClpLib LIBS   are $OSICLPLIB_LIBS" >&6;}
    2126221318
    21263     fi
    2126421319  fi
    21265 done
     21320
     21321fi
    2126621322
    2126721323
     
    2145621512# initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x)
    2145721513projtoprocess="osi-unittests"
    21458 projprocessed=""
    21459 
    21460 while test $coin_has_ositests = notGiven ; do
    21461   # setup list of projects that need to be processed in the next round
    21462   nextprojtoprocess=""
     21514
     21515# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     21516# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     21517# also, we setup the DATA variable
     21518allproj=""
     21519allpcfiles=""
     21520while test "x$projtoprocess" != x ; do
    2146321521
    2146421522  for proj in $projtoprocess ; do
    21465     # if $proj has been processed already, skip this round
    21466     if test "x$projprocessed" != x ; then
    21467       for projdone in $projprocessed ; do
    21468         if test $projdone = $proj ; then
    21469           continue 2
    21470         fi
    21471       done
    21472     fi
    21473 
    2147421523    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    2147521524    pcfile=""
     
    2148021529      if test -r "$dir/$proj-uninstalled.pc" ; then
    2148121530        pcfile="$dir/$proj-uninstalled.pc"
    21482         pcfiledir="$dir"
    2148321531        break
    2148421532      fi
     
    2148721535
    2148821536    if test "x$pcfile" != x ; then
    21489       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    21490       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    21491       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21492       OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
    21493 
    21494       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    21495       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    21496       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    21497       if test "x$projlibs" != x ; then
    21498         if test -d "${pcfiledir}/src" ; then
    21499           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    21500         else
    21501           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    21502         fi
    21503       else
    21504         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    21505       fi
    21506       OSITESTS_LIBS="$OSITESTS_LIBS $projlibs"
     21537      # read dependencies from $pcfile and filter it
     21538      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     21539
     21540      # add projrequires to the front of the list of projects that have to be processed next
     21541      # at the same time, remove $proj from this list
     21542      projtoprocess=${projtoprocess/$proj/$projrequires}
    2150721543
    2150821544      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    21509       if test "x$projprocessed" = x ; then
     21545      if test "x$allproj" = x ; then
    2151021546        OSITESTS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    2151121547      fi
    2151221548
    21513       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    21514       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    21515       nextprojtoprocess="$nextprojtoprocess $projrequires"
    21516 
    21517       # remember that we have processed $proj
    21518       projprocessed="$projprocessed $proj"
     21549      allproj="$allproj $proj"
     21550      allpcfiles="$pcfile:$allpcfiles"
    2151921551
    2152021552    else
    2152121553      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    2152221554echo "${ECHO_T}no, dependency $proj not available" >&6
     21555      allproj=fail
    2152321556      break 2
    2152421557    fi
    2152521558
     21559    break
    2152621560  done
    2152721561
    21528   projtoprocess="$nextprojtoprocess"
    21529 
    21530   # if there are no more projects to search for, finish up
    21531   if test "x$projtoprocess" = x ; then
    21532     coin_has_ositests=yes
    21533     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    21534 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     21562  # remove spaces on begin of $projtoprocess
     21563  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     21564
     21565done
     21566
     21567if test "$allproj" != fail ; then
     21568
     21569  # now go through the list of .pc files and assemble compiler and linker flags
     21570  # important is here to obey the reverse order that has been setup before,
     21571  # since then libraries that are required by several others should be after these other libraries
     21572  pcfilesprocessed=""
     21573
     21574  save_IFS="$IFS"
     21575  IFS=":"
     21576  for pcfile in $allpcfiles ; do
     21577
     21578    # if $pcfile has been processed already, skip this round
     21579    if test "x$pcfilesprocessed" != x ; then
     21580      for pcfiledone in $pcfilesprocessed ; do
     21581        if test "$pcfiledone" = "$pcfile" ; then
     21582          continue 2
     21583        fi
     21584      done
     21585    fi
     21586
     21587    # reconstruct the directory where the .pc file is located
     21588    pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
     21589
     21590    # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     21591    projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     21592    projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21593    OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
     21594
     21595    # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     21596    # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     21597    projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     21598    if test "x$projlibs" != x ; then
     21599      if test -d "${pcfiledir}/src" ; then
     21600        projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     21601      else
     21602        projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     21603      fi
     21604    else
     21605      projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     21606    fi
     21607    OSITESTS_LIBS="$projlibs $OSITESTS_LIBS"
     21608
     21609    # remember that we have processed $pcfile
     21610    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21611
     21612  done
     21613  IFS="$save_IFS"
     21614
     21615  # finish up
     21616  coin_has_ositests=yes
     21617  echo "$as_me:$LINENO: result: yes" >&5
     21618echo "${ECHO_T}yes" >&6
    2153521619
    2153621620cat >>confdefs.h <<\_ACEOF
     
    2154121625
    2154221626
    21543     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21544       if test -n "$OSITESTS_CFLAGS" ; then
    21545         { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
     21627  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21628    if test -n "$OSITESTS_CFLAGS" ; then
     21629      { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
    2154621630echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
    21547       fi
    21548       if test -n "$OSITESTS_LIBS" ; then
    21549         { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
     21631    fi
     21632    if test -n "$OSITESTS_LIBS" ; then
     21633      { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
    2155021634echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
    21551       fi
    21552       if test -n "$OSITESTS_DATA" ; then
    21553         { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
     21635    fi
     21636    if test -n "$OSITESTS_DATA" ; then
     21637      { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
    2155421638echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
    21555       fi
    21556 
    2155721639    fi
     21640
    2155821641  fi
    21559 done
     21642
     21643fi
    2156021644
    2156121645
     
    2174521829# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x)
    2174621830projtoprocess="coindatasample"
    21747 projprocessed=""
    21748 
    21749 while test $coin_has_sample = notGiven ; do
    21750   # setup list of projects that need to be processed in the next round
    21751   nextprojtoprocess=""
     21831
     21832# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     21833# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     21834# also, we setup the DATA variable
     21835allproj=""
     21836allpcfiles=""
     21837while test "x$projtoprocess" != x ; do
    2175221838
    2175321839  for proj in $projtoprocess ; do
    21754     # if $proj has been processed already, skip this round
    21755     if test "x$projprocessed" != x ; then
    21756       for projdone in $projprocessed ; do
    21757         if test $projdone = $proj ; then
    21758           continue 2
    21759         fi
    21760       done
    21761     fi
    21762 
    2176321840    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    2176421841    pcfile=""
     
    2176921846      if test -r "$dir/$proj-uninstalled.pc" ; then
    2177021847        pcfile="$dir/$proj-uninstalled.pc"
    21771         pcfiledir="$dir"
    2177221848        break
    2177321849      fi
     
    2177621852
    2177721853    if test "x$pcfile" != x ; then
    21778       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    21779       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    21780       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21781       SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
    21782 
    21783       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    21784       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    21785       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    21786       if test "x$projlibs" != x ; then
    21787         if test -d "${pcfiledir}/src" ; then
    21788           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    21789         else
    21790           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    21791         fi
    21792       else
    21793         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    21794       fi
    21795       SAMPLE_LIBS="$SAMPLE_LIBS $projlibs"
     21854      # read dependencies from $pcfile and filter it
     21855      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     21856
     21857      # add projrequires to the front of the list of projects that have to be processed next
     21858      # at the same time, remove $proj from this list
     21859      projtoprocess=${projtoprocess/$proj/$projrequires}
    2179621860
    2179721861      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    21798       if test "x$projprocessed" = x ; then
     21862      if test "x$allproj" = x ; then
    2179921863        SAMPLE_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    2180021864      fi
    2180121865
    21802       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    21803       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    21804       nextprojtoprocess="$nextprojtoprocess $projrequires"
    21805 
    21806       # remember that we have processed $proj
    21807       projprocessed="$projprocessed $proj"
     21866      allproj="$allproj $proj"
     21867      allpcfiles="$pcfile:$allpcfiles"
    2180821868
    2180921869    else
    2181021870      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    2181121871echo "${ECHO_T}no, dependency $proj not available" >&6
     21872      allproj=fail
    2181221873      break 2
    2181321874    fi
    2181421875
     21876    break
    2181521877  done
    2181621878
    21817   projtoprocess="$nextprojtoprocess"
    21818 
    21819   # if there are no more projects to search for, finish up
    21820   if test "x$projtoprocess" = x ; then
    21821     coin_has_sample=yes
    21822     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    21823 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     21879  # remove spaces on begin of $projtoprocess
     21880  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     21881
     21882done
     21883
     21884if test "$allproj" != fail ; then
     21885
     21886  # now go through the list of .pc files and assemble compiler and linker flags
     21887  # important is here to obey the reverse order that has been setup before,
     21888  # since then libraries that are required by several others should be after these other libraries
     21889  pcfilesprocessed=""
     21890
     21891  save_IFS="$IFS"
     21892  IFS=":"
     21893  for pcfile in $allpcfiles ; do
     21894
     21895    # if $pcfile has been processed already, skip this round
     21896    if test "x$pcfilesprocessed" != x ; then
     21897      for pcfiledone in $pcfilesprocessed ; do
     21898        if test "$pcfiledone" = "$pcfile" ; then
     21899          continue 2
     21900        fi
     21901      done
     21902    fi
     21903
     21904    # reconstruct the directory where the .pc file is located
     21905    pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
     21906
     21907    # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     21908    projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     21909    projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21910    SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
     21911
     21912    # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     21913    # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     21914    projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     21915    if test "x$projlibs" != x ; then
     21916      if test -d "${pcfiledir}/src" ; then
     21917        projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     21918      else
     21919        projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     21920      fi
     21921    else
     21922      projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     21923    fi
     21924    SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
     21925
     21926    # remember that we have processed $pcfile
     21927    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     21928
     21929  done
     21930  IFS="$save_IFS"
     21931
     21932  # finish up
     21933  coin_has_sample=yes
     21934  echo "$as_me:$LINENO: result: yes" >&5
     21935echo "${ECHO_T}yes" >&6
    2182421936
    2182521937cat >>confdefs.h <<\_ACEOF
     
    2183021942
    2183121943
    21832     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21833       if test -n "$SAMPLE_CFLAGS" ; then
    21834         { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     21944  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     21945    if test -n "$SAMPLE_CFLAGS" ; then
     21946      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
    2183521947echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
    21836       fi
    21837       if test -n "$SAMPLE_LIBS" ; then
    21838         { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
     21948    fi
     21949    if test -n "$SAMPLE_LIBS" ; then
     21950      { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
    2183921951echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
    21840       fi
    21841       if test -n "$SAMPLE_DATA" ; then
    21842         { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
     21952    fi
     21953    if test -n "$SAMPLE_DATA" ; then
     21954      { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
    2184321955echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
    21844       fi
    21845 
    2184621956    fi
     21957
    2184721958  fi
    21848 done
     21959
     21960fi
    2184921961
    2185021962
     
    2203422146# initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x)
    2203522147projtoprocess="coindatanetlib"
    22036 projprocessed=""
    22037 
    22038 while test $coin_has_netlib = notGiven ; do
    22039   # setup list of projects that need to be processed in the next round
    22040   nextprojtoprocess=""
     22148
     22149# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     22150# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22151# also, we setup the DATA variable
     22152allproj=""
     22153allpcfiles=""
     22154while test "x$projtoprocess" != x ; do
    2204122155
    2204222156  for proj in $projtoprocess ; do
    22043     # if $proj has been processed already, skip this round
    22044     if test "x$projprocessed" != x ; then
    22045       for projdone in $projprocessed ; do
    22046         if test $projdone = $proj ; then
    22047           continue 2
    22048         fi
    22049       done
    22050     fi
    22051 
    2205222157    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    2205322158    pcfile=""
     
    2205822163      if test -r "$dir/$proj-uninstalled.pc" ; then
    2205922164        pcfile="$dir/$proj-uninstalled.pc"
    22060         pcfiledir="$dir"
    2206122165        break
    2206222166      fi
     
    2206522169
    2206622170    if test "x$pcfile" != x ; then
    22067       # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
    22068       projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
    22069       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22070       NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
    22071 
    22072       # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
    22073       # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
    22074       projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
    22075       if test "x$projlibs" != x ; then
    22076         if test -d "${pcfiledir}/src" ; then
    22077           projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
    22078         else
    22079           projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
    22080         fi
    22081       else
    22082         projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
    22083       fi
    22084       NETLIB_LIBS="$NETLIB_LIBS $projlibs"
     22171      # read dependencies from $pcfile and filter it
     22172      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     22173
     22174      # add projrequires to the front of the list of projects that have to be processed next
     22175      # at the same time, remove $proj from this list
     22176      projtoprocess=${projtoprocess/$proj/$projrequires}
    2208522177
    2208622178      # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one)
    22087       if test "x$projprocessed" = x ; then
     22179      if test "x$allproj" = x ; then
    2208822180        NETLIB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"`
    2208922181      fi
    2209022182
    22091       # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next
    22092       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[  ]*[^    ]\+//g'`
    22093       nextprojtoprocess="$nextprojtoprocess $projrequires"
    22094 
    22095       # remember that we have processed $proj
    22096       projprocessed="$projprocessed $proj"
     22183      allproj="$allproj $proj"
     22184      allpcfiles="$pcfile:$allpcfiles"
    2209722185
    2209822186    else
    2209922187      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    2210022188echo "${ECHO_T}no, dependency $proj not available" >&6
     22189      allproj=fail
    2210122190      break 2
    2210222191    fi
    2210322192
     22193    break
    2210422194  done
    2210522195
    22106   projtoprocess="$nextprojtoprocess"
    22107 
    22108   # if there are no more projects to search for, finish up
    22109   if test "x$projtoprocess" = x ; then
    22110     coin_has_netlib=yes
    22111     echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5
    22112 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6
     22196  # remove spaces on begin of $projtoprocess
     22197  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     22198
     22199done
     22200
     22201if test "$allproj" != fail ; then
     22202
     22203  # now go through the list of .pc files and assemble compiler and linker flags
     22204  # important is here to obey the reverse order that has been setup before,
     22205  # since then libraries that are required by several others should be after these other libraries
     22206  pcfilesprocessed=""
     22207
     22208  save_IFS="$IFS"
     22209  IFS=":"
     22210  for pcfile in $allpcfiles ; do
     22211
     22212    # if $pcfile has been processed already, skip this round
     22213    if test "x$pcfilesprocessed" != x ; then
     22214      for pcfiledone in $pcfilesprocessed ; do
     22215        if test "$pcfiledone" = "$pcfile" ; then
     22216          continue 2
     22217        fi
     22218      done
     22219    fi
     22220
     22221    # reconstruct the directory where the .pc file is located
     22222    pcfiledir=`echo $pcfile | sed -e 's/\/[^\/]*$//'`
     22223
     22224    # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags
     22225    projcflags=`sed -n -e 's/Cflags://p' "$pcfile"`
     22226    projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22227    NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
     22228
     22229    # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags
     22230    # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir
     22231    projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"`
     22232    if test "x$projlibs" != x ; then
     22233      if test -d "${pcfiledir}/src" ; then
     22234        projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs"
     22235      else
     22236        projlibs="-L`cd "$pcfiledir"; pwd` $projlibs"
     22237      fi
     22238    else
     22239      projlibs=`sed -n -e 's/Libs://p' "$pcfile"`
     22240    fi
     22241    NETLIB_LIBS="$projlibs $NETLIB_LIBS"
     22242
     22243    # remember that we have processed $pcfile
     22244    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22245
     22246  done
     22247  IFS="$save_IFS"
     22248
     22249  # finish up
     22250  coin_has_netlib=yes
     22251  echo "$as_me:$LINENO: result: yes" >&5
     22252echo "${ECHO_T}yes" >&6
    2211322253
    2211422254cat >>confdefs.h <<\_ACEOF
     
    2211922259
    2212022260
    22121     if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22122       if test -n "$NETLIB_CFLAGS" ; then
    22123         { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     22261  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22262    if test -n "$NETLIB_CFLAGS" ; then
     22263      { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
    2212422264echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
    22125       fi
    22126       if test -n "$NETLIB_LIBS" ; then
    22127         { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
     22265    fi
     22266    if test -n "$NETLIB_LIBS" ; then
     22267      { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
    2212822268echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
    22129       fi
    22130       if test -n "$NETLIB_DATA" ; then
    22131         { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
     22269    fi
     22270    if test -n "$NETLIB_DATA" ; then
     22271      { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
    2213222272echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
    22133       fi
    22134 
    2213522273    fi
     22274
    2213622275  fi
    22137 done
     22276
     22277fi
    2213822278
    2213922279
     
    2287123011
    2287223012if test $coin_has_osi = yes ; then
    22873                       ac_config_files="$ac_config_files src/OsiClp/osi-clp.pc osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in"
     23013                      ac_config_files="$ac_config_files osi-clp.pc:src/OsiClp/osi-clp.pc.in osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in"
    2287423014
    2287523015fi
     
    2361223752  "clp.pc" ) CONFIG_FILES="$CONFIG_FILES clp.pc" ;;
    2361323753  "clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES clp-uninstalled.pc" ;;
    23614   "src/OsiClp/osi-clp.pc" ) CONFIG_FILES="$CONFIG_FILES src/OsiClp/osi-clp.pc" ;;
     23754  "osi-clp.pc" ) CONFIG_FILES="$CONFIG_FILES osi-clp.pc:src/OsiClp/osi-clp.pc.in" ;;
    2361523755  "osi-clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in" ;;
    2361623756  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
  • trunk/Clp/configure.ac

    r1628 r1636  
    138138                 
    139139if test $coin_has_osi = yes ; then
    140   AC_CONFIG_FILES([src/OsiClp/osi-clp.pc
     140  AC_CONFIG_FILES([osi-clp.pc:src/OsiClp/osi-clp.pc.in
    141141                   osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in])
    142142fi
  • trunk/Clp/src/OsiClp/Makefile.am

    r1559 r1636  
    4242includecoindir = $(includedir)/coin
    4343includecoin_HEADERS = OsiClpSolverInterface.hpp
    44 
    45 pkgconfiglibdir = $(libdir)/pkgconfig
    46 pkgconfiglib_DATA = osi-clp.pc
  • trunk/Clp/src/OsiClp/Makefile.in

    r1618 r1636  
    2020
    2121# Author:  Andreas Waechter           IBM    2006-04-13
    22 
    2322
    2423
     
    4746subdir = src/OsiClp
    4847DIST_COMMON = $(includecoin_HEADERS) $(srcdir)/Makefile.am \
    49         $(srcdir)/Makefile.in $(srcdir)/osi-clp.pc.in
     48        $(srcdir)/Makefile.in
    5049ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    5150am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
     
    5554mkinstalldirs = $(install_sh) -d
    5655CONFIG_HEADER = $(top_builddir)/inc/config_clp.h
    57 CONFIG_CLEAN_FILES = osi-clp.pc
     56CONFIG_CLEAN_FILES =
    5857am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
    5958am__vpath_adj = case $$p in \
     
    6362am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
    6463am__installdirs = "$(DESTDIR)$(coinlibdir)" \
    65         "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(includecoindir)"
     64        "$(DESTDIR)$(includecoindir)"
    6665coinlibLTLIBRARIES_INSTALL = $(INSTALL)
    6766LTLIBRARIES = $(coinlib_LTLIBRARIES)
     
    8988SOURCES = $(libOsiClp_la_SOURCES)
    9089DIST_SOURCES = $(libOsiClp_la_SOURCES)
    91 pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
    92 DATA = $(pkgconfiglib_DATA)
    9390includecoinHEADERS_INSTALL = $(INSTALL_HEADER)
    9491HEADERS = $(includecoin_HEADERS)
     
    313310includecoindir = $(includedir)/coin
    314311includecoin_HEADERS = OsiClpSolverInterface.hpp
    315 pkgconfiglibdir = $(libdir)/pkgconfig
    316 pkgconfiglib_DATA = osi-clp.pc
    317312all: all-am
    318313
     
    348343$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    349344        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    350 osi-clp.pc: $(top_builddir)/config.status $(srcdir)/osi-clp.pc.in
    351         cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
    352345install-coinlibLTLIBRARIES: $(coinlib_LTLIBRARIES)
    353346        @$(NORMAL_INSTALL)
     
    418411        -rm -f libtool
    419412uninstall-info-am:
    420 install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
    421         @$(NORMAL_INSTALL)
    422         test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
    423         @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
    424           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
    425           f=$(am__strip_dir) \
    426           echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
    427           $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
    428         done
    429 
    430 uninstall-pkgconfiglibDATA:
    431         @$(NORMAL_UNINSTALL)
    432         @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
    433           f=$(am__strip_dir) \
    434           echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
    435           rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
    436         done
    437413install-includecoinHEADERS: $(includecoin_HEADERS)
    438414        @$(NORMAL_INSTALL)
     
    530506check-am: all-am
    531507check: check-am
    532 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
     508all-am: Makefile $(LTLIBRARIES) $(HEADERS)
    533509installdirs:
    534         for dir in "$(DESTDIR)$(coinlibdir)" "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(includecoindir)"; do \
     510        for dir in "$(DESTDIR)$(coinlibdir)" "$(DESTDIR)$(includecoindir)"; do \
    535511          test -z "$$dir" || $(mkdir_p) "$$dir"; \
    536512        done
     
    580556info-am:
    581557
    582 install-data-am: install-coinlibLTLIBRARIES install-includecoinHEADERS \
    583         install-pkgconfiglibDATA
     558install-data-am: install-coinlibLTLIBRARIES install-includecoinHEADERS
    584559
    585560install-exec-am:
     
    610585
    611586uninstall-am: uninstall-coinlibLTLIBRARIES \
    612         uninstall-includecoinHEADERS uninstall-info-am \
    613         uninstall-pkgconfiglibDATA
     587        uninstall-includecoinHEADERS uninstall-info-am
    614588
    615589.PHONY: CTAGS GTAGS all all-am check check-am clean \
     
    620594        install-coinlibLTLIBRARIES install-data install-data-am \
    621595        install-exec install-exec-am install-includecoinHEADERS \
    622         install-info install-info-am install-man \
    623         install-pkgconfiglibDATA install-strip installcheck \
    624         installcheck-am installdirs maintainer-clean \
     596        install-info install-info-am install-man install-strip \
     597        installcheck installcheck-am installdirs maintainer-clean \
    625598        maintainer-clean-generic mostlyclean mostlyclean-compile \
    626599        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
    627600        tags uninstall uninstall-am uninstall-coinlibLTLIBRARIES \
    628         uninstall-includecoinHEADERS uninstall-info-am \
    629         uninstall-pkgconfiglibDATA
     601        uninstall-includecoinHEADERS uninstall-info-am
    630602
    631603# Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset for help on using the changeset viewer.