Ignore:
Timestamp:
Dec 31, 2009 1:11:54 PM (11 years ago)
Author:
stefan
Message:

put CYGPATH_W into include paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/BSPsplit/coin.m4

    r1455 r1459  
    34593459
    34603460AC_COIN_PKG_CHECK_MODULE_EXISTS([$1],[$2],
    3461   [ m4_toupper($1)[]_CFLAGS=`$PKG_CONFIG --cflags "$2" 2>/dev/null`
     3461  [ cflags=`$PKG_CONFIG --cflags "$2" 2>/dev/null`
     3462    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     3463        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     3464        # but only do this if is not trivial
     3465    if test "$CYGPATH_W" != "echo" ; then
     3466      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     3467          [cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`]
     3468        fi
     3469    m4_toupper($1)[]_CFLAGS="$cflags"
    34623470    m4_toupper($1)[]_LIBS=`$PKG_CONFIG --libs "$2" 2>/dev/null`
    34633471    m4_toupper($1)[]_DATA=`$PKG_CONFIG --variable=datadir "$2" 2>/dev/null`
     
    36573665                   [directory with header files for using module $1]),
    36583666    [m4_tolower(coin_has_$1)=yes
    3659      m4_toupper($1_CFLAGS)="-I$withval"],
     3667     m4_toupper($1_CFLAGS)="-I`${CYGPATH_W} $withval`"],
    36603668    [])
    36613669
Note: See TracChangeset for help on using the changeset viewer.