#%Module #########
set is_module_rm [module-info mode remove]

#---- whatis is used by module apropos
module-whatis   "Set environnement for gfmixf (2026-05-28)"


#---- module help message
proc ModulesHelp { } {
  puts stderr "This modulefile defines the requisite environement"
  puts stderr "needed to use package: gfmixf version (2026-05-28)"
  puts stderr ""
  puts stderr "Phylogenetic analyses using the site-and-branch-heterogeneous GFmix model"
  puts stderr "URL: https://www.mathstat.dal.ca/~tsusko/software.html"
  puts stderr ""
  puts stderr "WARNING: gfmixf requires module(s) < R >. to be loaded first"
  puts stderr ""
  ## is there any program to document.
  puts stderr "package provides following commands:"
  puts stderr "\tan_freq"
  puts stderr "\tcharfreq-taxa"
  puts stderr "\tgfmix_lnl_align"
  puts stderr "\tgfmixf"
  puts stderr "\trert"
  puts stderr "\ttreecns"
  puts stderr ""
}


#---- hack for auto-loading module based on AUTOLOADMODULE env var
if {[info exists env(AUTOLOADMODULE)]} {
     module load  R
}
#---- check for prereq modules
if { [ module-info mode load ] && ! (  [ is-loaded "R" ] )} {
    puts stderr "error: gfmixf requires module(s) < R > to be loaded first"
    exit
}

#---- set PATHs.
prepend-path PATH   /opt/gensoft/exe/gfmixf/2026-05-28/bin 

#---- set library path

#---- set pkgconfig path

#---- set CMAKE_PREFIX_PATH


#---- set include path

#---- prepend specified env var

#---- set ACLOCAL_PATH

#---- export usefull variables

#---- export aliases

