modxslt-config(1)

NAME

modxslt-config - program to return libmodxslt configura
tion

SYNOPSIS

modxslt-config    [--prefix]    [--exec-prefix]   [--libs]
[--libtool-libs] [--includes]  [--cppflags]  [--cflags]  [--list]
[--query=VAR] [--show=VAR] [--version]

DESCRIPTION

modxslt-config can be used to query the status of an in
stalled libmodxslt and to access its compile time parameters/op
tions.
The main idea behind modxslt-config (or any other foo-con
fig) 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 speci
fied 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 libmod
xslt headers
--cflags
Returns the parameters specified to cc during lib
modxslt compilation
--list modxslt-config allows you to access any other vari
able 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 ex
panded
--version
Show version of libmodxslt installed on this system
If called without parameters, the help screen is dis
played. 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=fuf
fa). Status 3 is returned when an argument which needs an addi
tional 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 according
ly to the shell being used.

SEE ALSO

modxslt-perror(1), modxslt-parse(1), modxslt manual,
http://www.modxslt2.com

LICENSE

This manual page was written by Carlo Contavalli <ccon
tavalli at modxslt2.com>. Permission is granted to copy, dis
tribute 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.
September 6, 2004 MOD
Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout