Rheolef  7.2
an efficient C++ finite element environment
rheolef-config.in
Go to the documentation of this file.
1 #!/bin/sh
2 #
3 # This file is part of Rheolef.
4 #
5 # Copyright (C) 2000-2009 Pierre Saramito
6 #
7 # Rheolef is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # Rheolef is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Rheolef; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #
21 # --------------------------------------------------------------------------
22 # author: Pierre.Saramito@imag.fr
23 # date: 20 january 2000
24 
25 
125 
126 version=@VERSION@
127 prefix=@prefix@
128 exec_prefix=@exec_prefix@
129 bindir=@bindir@
130 libdir=@libdir@
131 pkglibdir=@pkglibdir@
132 datadir=@datarootdir@
133 datarootdir=@datarootdir@
134 mandir=@mandir@
135 includedir=@includedir@
136 docdir=@prefix@/share/doc/@doc_dir@
137 exampledir=$docdir/examples
138 incsubst="@INCLUDES_CGAL@ @INCLUDES_UMFPACK@ @INCLUDES_CHOLMOD@ @INCLUDES_SUITESPARSE_AMD@ @INCLUDES_SCOTCH@ @INCLUDES_PARMETIS@ @INCLUDES_EIGEN@ @INCLUDES_BLAS@ @INCLUDES_BOOST_MPI@ @INCLUDES_MPI@ @INCLUDES_FLOAT128@ @INCLUDES_DMALLOCXX@ @INCLUDES_DMALLOC@"
139 libsubst="@LDADD_CGAL@ @LDADD_UMFPACK@ @LDADD_CHOLMOD@ @LDADD_SUITESPARSE_AMD@ @LDADD_SCOTCH@ @LDADD_PARMETIS@ @LDADD_EIGEN@ @LDADD_BLAS@ @LDADD_BOOST_MPI@ @LDADD_MPI@ @LDADD_FLOAT128@ @LDADD_DMALLOCXX@ @LDADD_DMALLOC@"
140 cxx="@CXX@"
141 includes="@CPPFLAGS@ @CXXFLAGS@ ${incsubst} -I@includedir@ -I@libdir@"
142 libs="-L@libdir@ -lrheolef ${libsubst} @LDFLAGS@ @LIBS@ @RHEOLEF_HARDCODE_LIBDIR_FLAG_SPEC@"
143 ldadd="@libdir@/librheolef.la ${libsubst} @LDFLAGS@ @LIBS@ @RHEOLEF_HARDCODE_LIBDIR_FLAG_SPEC@"
144 NEW_INCLUDES_RHEOLEF=@INCLUDES_RHEOLEF@
145 NEW_LIBS_RHEOLEF=@LIBS_RHEOLEF@
146 library_interface_version=@LIBRARY_VERSION@
147 shlibpath_var="@RHEOLEF_SHLIBPATH_VAR@"
148 hardcode_libdir_flag_spec="@RHEOLEF_HARDCODE_LIBDIR_FLAG_SPEC@"
149 use_distributed="@USE_DISTRIBUTED@"
150 use_new_code="true"
151 use_old_code="false"
152 QD_EXT="@QD_EXT@"
153 usage="rheolef-config
154  [--version
155  | --help
156  | --prefix
157  | --exec-prefix
158  | --includedir
159  | --bindir
160  | --libdir
161  | --docdir
162  | --exampledir
163  | --mandir
164  | --pkglibdir
165  | --datadir
166  | --datarootdir
167  | --pkgdatadir
168  | --cxx
169  | --includes
170  | --libs
171  | --ldadd
172  | --shlibpath-var
173  | --library-interface-version
174  | --hardcode-libdir-flag-spec
175  | --is-distributed
176  | --float
177  | --have-new-code
178  | --have-old-code
179  | --check]
180 "
181 
182 if test $# -eq 0; then
183  echo ${usage} >&2
184  exit 0
185 fi
186 
187 while test $# -ne 0; do
188  case $1 in
189  --version) echo ${version};;
190  --help) echo ${usage} >&2; exit 0;;
191  --prefix) echo ${prefix};;
192  --exec-prefix) echo ${exec_prefix};;
193  --libdir) echo ${libdir};;
194  --pkglibdir) echo ${pkglibdir};;
195  --bindir) echo ${bindir};;
196  --docdir) echo ${docdir};;
197  --exampledir) echo ${exampledir};;
198  --mandir) echo ${mandir};;
199  --datadir) echo ${datarootdir};;
200  --datarootdir) echo ${datarootdir};;
201  --pkgdatadir) echo ${datarootdir}/rheolef;;
202  --includedir) echo ${includedir};;
203  --cxx) echo ${cxx};;
204  --includes) echo ${includes};;
205  --libs) echo ${libs};;
206  --ldadd) echo ${ldadd};;
207  --shlibpath-var) echo ${shlibpath_var};;
208  --library-interface-version) echo ${library_interface_version};;
209  --hardcode-libdir-flag-spec) echo ${hardcode_libdir_flag_spec};;
210  --is-distributed) echo ${use_distributed};;
211  --float)
212  case x"$QD_EXT" in
213  x) float="double";;
214  x.dd) float="dd_real";;
215  x.qd) float="qd_real";;
216  x.float128) float="float128";;
217  *) float="undefined";;
218  esac
219  echo ${float};;
220  --have-new-code) echo ${use_new_code};;
221  --have-old-code) echo ${use_old_code};;
222  --check) /bin/sh ${datadir}/rheolef/check-shlibpath_var.sh \
223  ${shlibpath_var} ${libdir} ${bindir};;
224  *) echo ${usage} >&2; exit 1;;
225  esac
226  shift
227 done
228