man modxslt-config (Commandes) - program to return libmodxslt configuration
NAME
modxslt-config - program to return libmodxslt configuration
SYNOPSIS
DESCRIPTION
modxslt-config can be used to query the status of an installed libmodxslt and to access its compile time parameters/options.
The main idea behind modxslt-config (or any other foo-config) is to provide an easy way for configre scripts and makefiles to use a given library. The configure script of a package using libmodxslt should try to search for modxslt-config, while the makefiles will try to compile the package using the variables found using the modxslt-config command.
OPTIONS
- --prefix
- Returns libmodxslt install prefix, as specified to the configure script
- --exec-prefix
- Returns libmodxslt install exec-prefix, as specified to the configure script
- --libs
- Returns the parameters to be used with ld to link your binaries with libmodxslt
- --libtool-libs
- Returns the parameters to be used with libtool to link your binaries with libmodxslt
- --includes
- Returns the parameters to be used with cc to allow your .c files to include libmodxslt headers
- --cppflags
- Returns the parameters to be used with cpp (the c preprocessor) to succesfully compile your .c files using libmodxslt headers
- --cflags
- Returns the parameters specified to cc during libmodxslt compilation
- --list
- modxslt-config allows you to access any other variable specified or detected by the libmodxslt configure script. This options lists all known varaibles and their raw values (with shell variables not substituted)
- --query=VAR
- shows the value of variable VAR, expanding any shell variables therein
- --show=VAR
- same as --query, but shell variables are not expanded
- --version
- Show version of libmodxslt installed on this system
If called without parameters, the help screen is displayed. More than one parameter can be specified at the same time.
EXAMPLES
$ modxslt-config --query=sysconfdir /usr/local/etc $ modxslt-config --show=sysconfdir ${prefix}/etc $ modxslt-config --prefix /usr/local $ modxslt-config --cflags -g -O2 -D_REENTRANT $ cc `modxslt-config --includes` `modxslt-config --libs` \ `modxslt-config --cppflags` myownprogram.c -o myownprogram
RETURN VALUES
modxslt-config exits with status 1 in case no argument was supplied and the help screen was displayed. Status 2 is returned whenever an argument wich does not need any additional parameter is encountered with an unnecessary parameter (like --prefix=fuffa). Status 3 is returned when an argument which needs an additional parameter is encountered without the needed parameter (like --query), while 4 is returned when an unknown argument is specified. Any other exit status should be interpreted accordingly to the shell being used.
SEE ALSO
LICENSE
This manual page was written by Carlo Contavalli <ccontavalli at modxslt2.com>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
AUTHOR
Carlo Contavalli.