Changeset 4641


Ignore:
Timestamp:
07/16/10 17:40:42 (15 years ago)
Author:
Eric.Larour
Message:

New chaco library to integrate into configure process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/m4/issm_options.m4

    r4275 r4641  
    190190        AC_MSG_RESULT($HAVE_DAKOTA)
    191191        dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%dakota-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    192 
    193 
     192       
     193        dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%chaco-beginning%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     194        AC_ARG_WITH([chaco-dir],
     195                          AS_HELP_STRING([--with-chaco-dir = DIR], [chaco root directory.]),
     196                         [CHACO_ROOT=$withval],[CHACO_ROOT=""])
     197        AC_MSG_CHECKING(for Chaco )
     198       
     199        if test -d "$CHACO_ROOT"; then
     200
     201                dnl defaults
     202                HAVE_CHACO=yes
     203                CHACOINCL=-I$CHACO_ROOT/include
     204                CHACOLIB="-L$CHACO_ROOT/lib -lchaco"
     205
     206                AC_DEFINE([_HAVE_CHACO_],[1],[with Chaco in ISSM src])
     207                AC_SUBST([CHACOINCL])
     208                AC_SUBST([CHACOLIB])
     209
     210        else
     211                HAVE_CHACO=no
     212        fi
     213        AC_MSG_RESULT($HAVE_CHACO)
     214        dnl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%chaco-end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    194215
    195216
Note: See TracChangeset for help on using the changeset viewer.