1 |
|
---|
2 | /** \page sc-config
|
---|
3 |
|
---|
4 | The sc-config program is used to obtain information about MPQC's compile
|
---|
5 | time environment.
|
---|
6 |
|
---|
7 | \if man
|
---|
8 | <h1>Synopsis</h1>
|
---|
9 |
|
---|
10 | <pre>
|
---|
11 | sc-config <b>{--prefix, --exec-prefix, --version, --so-version, --scdatadir, --buildid, --cppflags, --cflags, --cxxflags, --cc, --f77flags, --f77, f--cxx, --libdir, --libs, --libtool, --ltlink, --ltlinklibopts, --ltlinkbinopts, --ltcomp, --ltinst}</b>
|
---|
12 | </pre>
|
---|
13 | \endif
|
---|
14 |
|
---|
15 | <h1>Description</h1>
|
---|
16 |
|
---|
17 | The sc-config program is used to obtain information about MPQC's compile
|
---|
18 | time environment. It can be used to initialize variables in a makefile
|
---|
19 | that will be used to compile programs that depend on MPQC. For example,
|
---|
20 | the following makefile could be used to compile a program <tt>myprog</tt>,
|
---|
21 | which depends on the MPQC libraries.
|
---|
22 |
|
---|
23 | <pre>
|
---|
24 | SCCONFIG = /usr/local/mpqc/current/bin/sc-config
|
---|
25 | CXX := \$(shell \$(SCCONFIG) --cxx)
|
---|
26 | CXXFLAGS := \$(shell \$(SCCONFIG) --cxxflags)
|
---|
27 | CPPFLAGS := \$(shell \$(SCCONFIG) --cppflags)
|
---|
28 | LIBS := \$(shell \$(SCCONFIG) --libs)
|
---|
29 |
|
---|
30 | myprog: myprog.o
|
---|
31 | \$(CXX) \$(CXXFLAGS) -o \$@ \$^ \$(LIBS)
|
---|
32 | </pre>
|
---|
33 |
|
---|
34 |
|
---|
35 | <h1>Running sc-config</h1>
|
---|
36 |
|
---|
37 | sc-config takes the following command line options:
|
---|
38 |
|
---|
39 | <dl>
|
---|
40 | <dt><tt>--prefix</tt><dd>Print the installation prefix.
|
---|
41 | <dt><tt>--exec-prefix</tt><dd>Print the executable installation prefix.
|
---|
42 | <dt><tt>--version</tt><dd>Print the version number.
|
---|
43 | <dt><tt>--so-version</tt><dd>Print the shared object version.
|
---|
44 | <dt><tt>--scdatadir</tt><dd>Print the data installation directory.
|
---|
45 | <dt><tt>--buildid</tt><dd>Print the build identifier.
|
---|
46 | <dt><tt>--cppflags</tt><dd>Print the C preprocessor flags.
|
---|
47 | <dt><tt>--cflags</tt><dd>Print the C flags.
|
---|
48 | <dt><tt>--cxxflags</tt><dd>Print the C++ flags.
|
---|
49 | <dt><tt>--cc</tt><dd>Print the C flags.
|
---|
50 | <dt><tt>--f77flags</tt><dd>Print the FORTRAN 77 flags.
|
---|
51 | <dt><tt>--f77</tt><dd>Print the FORTRAN 77 compiler.
|
---|
52 | <dt><tt>--cxx</tt><dd>Print the C++ compiler.
|
---|
53 | <dt><tt>--libdir</tt><dd>Print the library directories.
|
---|
54 | <dt><tt>--libs</tt><dd>Print the libraries.
|
---|
55 | <dt><tt>--libtool</tt><dd>Print the libtool executable.
|
---|
56 | <dt><tt>--ltlink</tt><dd>Print the libtool link command.
|
---|
57 | <dt><tt>--ltlinklibopts</tt><dd>Print the libtool library link options.
|
---|
58 | <dt><tt>--ltlinkbinopts</tt><dd>Print the libtool binary link options.
|
---|
59 | <dt><tt>--ltcomp</tt><dd>Print the libtool compile command.
|
---|
60 | <dt><tt>--ltinst</tt><dd>Print the libtool install command.
|
---|
61 | </dl>
|
---|
62 |
|
---|
63 | <h1>License</h1>
|
---|
64 |
|
---|
65 | sc-config is open-source software; you can redistribute it and/or modify it
|
---|
66 | under the terms of the GNU General Public License as published by the Free
|
---|
67 | Software Foundation; either version 2 of the License, or (at your option)
|
---|
68 | any later version.
|
---|
69 |
|
---|
70 | <h1>Warranty</h1>
|
---|
71 |
|
---|
72 | sc-config is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
73 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
---|
74 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
---|
75 | details.
|
---|
76 |
|
---|
77 | */
|
---|