.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "MODXSLT-CONFIG" 1 "September 6, 2004" "" "" .SH NAME modxslt-config \- program to return libmodxslt configuration .SH "SYNOPSIS" .ad l .hy 0 .HP 15 \fBmodxslt\-config\fR [\fB\-\-prefix\fR] [\fB\-\-exec\-prefix\fR] [\fB\-\-libs\fR] [\fB\-\-libtool\-libs\fR] [\fB\-\-includes\fR] [\fB\-\-cppflags\fR] [\fB\-\-cflags\fR] [\fB\-\-list\fR] [\fB\-\-query=\fIVAR\fR\fR] [\fB\-\-show=\fIVAR\fR\fR] [\fB\-\-version\fR] .ad .hy .SH "DESCRIPTION" .PP \fBmodxslt\-config\fR can be used to query the status of an installed libmodxslt and to access its compile time parameters/options\&. .PP The main idea behind \fBmodxslt\-config\fR (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 \fBmodxslt\-config\fR, while the makefiles will try to compile the package using the variables found using the \fBmodxslt\-config\fR command\&. .SH "OPTIONS" .TP \fB\-\-prefix\fR Returns libmodxslt install prefix, as specified to the configure script .TP \fB\-\-exec\-prefix\fR Returns libmodxslt install exec\-prefix, as specified to the configure script .TP \fB\-\-libs\fR Returns the parameters to be used with \fBld\fR to link your binaries with libmodxslt .TP \fB\-\-libtool\-libs\fR Returns the parameters to be used with \fBlibtool\fR to link your binaries with libmodxslt .TP \fB\-\-includes\fR Returns the parameters to be used with \fBcc\fR to allow your \&.c files to include libmodxslt headers .TP \fB\-\-cppflags\fR Returns the parameters to be used with \fBcpp\fR (the c preprocessor) to succesfully compile your \&.c files using libmodxslt headers .TP \fB\-\-cflags\fR Returns the parameters specified to \fBcc\fR during libmodxslt compilation .TP \fB\-\-list\fR \fBmodxslt\-config\fR 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) .TP \fB\-\-query=\fIVAR\fR\fR shows the value of variable \fIVAR\fR, expanding any shell variables therein .TP \fB\-\-show=\fIVAR\fR\fR same as \fB\-\-query\fR, but shell variables are not expanded .TP \fB\-\-version\fR Show version of libmodxslt installed on this system .PP If called without parameters, the help screen is displayed\&. More than one parameter can be specified at the same time\&. .SH "EXAMPLES" .nf $ \fBmodxslt\-config \-\-query=sysconfdir\fR /usr/local/etc $ \fBmodxslt\-config \-\-show=sysconfdir\fR ${prefix}/etc $ \fBmodxslt\-config \-\-prefix\fR /usr/local $ \fBmodxslt\-config \-\-cflags\fR \-g \-O2 \-D_REENTRANT $ \fBcc `modxslt\-config \-\-includes` `modxslt\-config \-\-libs` \\ `modxslt\-config \-\-cppflags` myownprogram\&.c \-o myownprogram\fR .fi .SH "RETURN VALUES" .PP \fBmodxslt\-config\fR 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\&. .SH "SEE ALSO" .PP modxslt\-perror(1), modxslt\-parse(1), modxslt manual, http://www\&.modxslt2\&.com .SH "LICENSE" .PP This manual page was written by Carlo Contavalli \&. 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\&. .SH AUTHOR Carlo Contavalli.