Changeset 1727


Ignore:
Timestamp:
Nov 3, 2010 1:58:50 AM (9 years ago)
Author:
stefan
Message:

the prefix is set in AC_OUTPUT (if not set by user) which is too late for AC_COIN_HAS_PKGCONFIG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r1711 r1727  
    36363636# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
    36373637# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    3638 COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     3638if test "x${prefix}" = xNONE ; then
     3639  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     3640else
     3641  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     3642fi
    36393643
    36403644AC_ARG_WITH([coin-instdir],
     
    36543658  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
    36553659  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
    3656   # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
    3657   COIN_PKG_CONFIG_PATH_UNINSTALLED=
     3660  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)  COIN_PKG_CONFIG_PATH_UNINSTALLED=
    36583661  if test -e ../coin_subdirs.txt ; then
    36593662    for i in `cat ../coin_subdirs.txt` ; do
Note: See TracChangeset for help on using the changeset viewer.