Rheolef  7.1
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 library_interface_version=@LIBRARY_VERSION@
145 shlibpath_var="@RHEOLEF_SHLIBPATH_VAR@"
146 hardcode_libdir_flag_spec="@RHEOLEF_HARDCODE_LIBDIR_FLAG_SPEC@"
147 use_distributed="@USE_DISTRIBUTED@"
148 use_new_code="true"
149 use_old_code="false"
150 QD_EXT="@QD_EXT@"
151 usage="rheolef-config
152  [--version
153  | --help
154  | --prefix
155  | --exec-prefix
156  | --includedir
157  | --bindir
158  | --libdir
159  | --docdir
160  | --exampledir
161  | --mandir
162  | --pkglibdir
163  | --datadir
164  | --datarootdir
165  | --pkgdatadir
166  | --cxx
167  | --includes
168  | --libs
169  | --ldadd
170  | --shlibpath-var
171  | --library-interface-version
172  | --hardcode-libdir-flag-spec
173  | --is-distributed
174  | --float
175  | --have-new-code
176  | --have-old-code
177  | --check]
178 "
179 
180 if test $# -eq 0; then
181  echo ${usage} >&2
182  exit 0
183 fi
184 
185 while test $# -ne 0; do
186  case $1 in
187  --version) echo ${version};;
188  --help) echo ${usage} >&2; exit 0;;
189  --prefix) echo ${prefix};;
190  --exec-prefix) echo ${exec_prefix};;
191  --libdir) echo ${libdir};;
192  --pkglibdir) echo ${pkglibdir};;
193  --bindir) echo ${bindir};;
194  --docdir) echo ${docdir};;
195  --exampledir) echo ${exampledir};;
196  --mandir) echo ${mandir};;
197  --datadir) echo ${datarootdir};;
198  --datarootdir) echo ${datarootdir};;
199  --pkgdatadir) echo ${datarootdir}/rheolef;;
200  --includedir) echo ${includedir};;
201  --cxx) echo ${cxx};;
202  --includes) echo ${includes};;
203  --libs) echo ${libs};;
204  --ldadd) echo ${ldadd};;
205  --shlibpath-var) echo ${shlibpath_var};;
206  --library-interface-version) echo ${library_interface_version};;
207  --hardcode-libdir-flag-spec) echo ${hardcode_libdir_flag_spec};;
208  --is-distributed) echo ${use_distributed};;
209  --float)
210  case x"$QD_EXT" in
211  x) float="double";;
212  x.dd) float="dd_real";;
213  x.qd) float="qd_real";;
214  x.float128) float="float128";;
215  *) float="undefined";;
216  esac
217  echo ${float};;
218  --have-new-code) echo ${use_new_code};;
219  --have-old-code) echo ${use_old_code};;
220  --check) /bin/sh ${datadir}/rheolef/check-shlibpath_var.sh \
221  ${shlibpath_var} ${libdir} ${bindir};;
222  *) echo ${usage} >&2; exit 1;;
223  esac
224  shift
225 done
226