Changeset 1315


Ignore:
Timestamp:
Jul 8, 2009 11:02:43 AM (11 years ago)
Author:
andreasw
Message:

a few bugfixes for instdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/BSPsplit/coin.m4

    r1314 r1315  
    2727  AC_COIN_HAS_PROJECT($1)
    2828  AC_MSG_CHECKING(whether directory $1 should be recursed into)
    29   if test "$m4_tolower(coin_has_$1)" != skipped &&
     29  if test "$m4_tolower(coin_has_$1)" != skipping &&
    3030     test "$m4_tolower(coin_has_$1)" != installed; then
    3131    if test -r $srcdir/$1/configure; then
     
    24242424                     AC_MSG_ERROR([argument for --with-coin-instdir not a directory])
    24252425                   fi
    2426                    m4_ifvaln([$2],
    2427                      [if test -r $withval/include/coin/$2; then
    2428                         m4_tolower(coin_has_$1)=installed
    2429                         m4_toupper($1INSTDIR)=`cd $withval; pwd`
    2430                       fi],
    2431                      [AC_MSG_WARN([Cannot verify availability of $1 with --with-coin-instdir flag.  Project manager needs to provide name of header to look for])])],
     2426                   if test -r $withval/share/doc/coin/$1/README; then
     2427                     m4_tolower(coin_has_$1)=installed
     2428                     m4_toupper($1INSTDIR)=`cd $withval; pwd`
     2429                   fi],
    24322430                   [])
    24332431    fi
     
    24702468if test $m4_tolower(coin_has_$1) = installed; then
    24712469  AC_MSG_RESULT([installed in $m4_toupper($1INSTDIR)])
    2472   # Check for header
    2473   m4_ifvaln([$2],[tmp=$m4_toupper($1INSTDIR)/include/coin
    2474                   AC_MSG_CHECKING(whether header $2 is available in $tmp)
    2475                   if test -r $tmp/$2; then
    2476                     AC_MSG_RESULT([yes])
    2477                   else
    2478                     AC_MSG_RESULT([no])
    2479                     AC_MSG_ERROR([Header $2 not available in $1 installation directory])
    2480                   fi])
    2481   # Check for library (this is not qo reliable)
    2482   m4_ifvaln([$3],[tmp=$m4_toupper($1INSTDIR)/lib
    2483                   AC_MSG_CHECKING([whether library $3.* is available in $tmp])
    2484                   bla=`ls $tmp/$3.* 2>/dev/null | head -n 1`
    2485                   if test x"$bla" = x; then
    2486                     AC_MSG_RESULT([no])
    2487                     AC_MSG_ERROR([Library $3.* not available in $1 installation directory])
    2488                   else
    2489                     AC_MSG_RESULT([found $bla])
    2490                   fi])
     2470  AC_COIN_CHECK_FILE([$m4_toupper($1INSTDIR)/share/doc/coin/$1/README],
     2471                     [],[AC_MSG_ERROR([$m4_toupper($1INSTDIR)/share/doc/coin/$1/README should be available if $1 is installed])])
    24912472else
    24922473  AC_MSG_RESULT([$m4_tolower(coin_has_$1)])
     2474  if test $m4_tolower(coin_has_$1) != notGiven &&
     2475     test $m4_tolower(coin_has_$1) != skipping; then
     2476    AC_MSG_CHECKING([for source code location of $1])
     2477    AC_MSG_RESULT([$m4_toupper($1SRCDIR)])
     2478    AC_MSG_CHECKING([for object code location of $1])
     2479    AC_MSG_RESULT([$m4_toupper($1OBJDIR)])
     2480  fi
    24932481fi
    24942482]) # AC_COIN_HAS_PROJECT
Note: See TracChangeset for help on using the changeset viewer.