1 .\" Hey, Emacs! This is -*-nroff-*- you know...
3 .\" icu-config.1: manual page for the icu-config utility
5 .\" Copyright (C) 2002-2008 IBM, Inc. and others.
7 .\" Based on Yves Arrouye's pkgdata page <yves@arrouye.net>
8 .\" Modified by Steven R. Loomis <srl@jtcsv.com>.
9 .\" With help from http://www.igpm.rwth-aachen.de/~albrecht/manpage.html
11 .TH ICU-CONFIG 1 "17 May 2004" "ICU MANPAGE" "ICU @VERSION@ Manual"
18 \- output ICU build options
34 .BI "\-\-cppflags\-searchpath"
43 .BI "\-\-detect\-prefix"
46 .BI "\-\-exec\-prefix"
52 .BI "\-\-help\fP, \fB\-?\fP,\fB"
59 .BI "\-\-icudata\-install\-dir"
62 .BI "\-\-icudata\-mode"
71 .BI "\-\-invoke=" "prog"
77 .BI "\-\-ldflags\-layout"
80 .BI "\-\-ldflags\-libsonly"
83 .BI "\-\-ldflags\-searchpath"
86 .BI "\-\-ldflags\-system"
89 .BI "\-\-ldflags\-icuio"
98 .BI "\-\-prefix=" "prefix"
104 .BI "\-\-shared\-datadir"
110 .BI "\-\-unicode\-version"
123 simplifies the task of building and linking against ICU as compared to
124 manually configuring user makefiles or equivalent. Because
126 is an executable script, it also solves the problem of locating the ICU
127 libraries and headers, by allowing the system PATH to locate it.
130 can be used without a makefile. The command line below is sufficient for
131 building a single-file c++ program against ICU. (For example, \fBicu/source/samples/props/props.cpp\fR)
134 `icu-config --cxx --cxxflags --cppflags --ldflags` -o props props.cpp
139 will be called from within a makefile, and used to set up variables. The
140 following example also builds the \fIprops\fR example.
143 CC=$(shell icu-config --cc)
145 CXX=$(shell icu-config --cxx)
147 CPPFLAGS=$(shell icu-config --cppflags)
149 CXXFLAGS=$(shell icu-config --cxxflags)
151 LDFLAGS =$(shell icu-config --ldflags)
158 make(1) will automatically use the above variables.
162 Prints the binary (executable) directory path. Normally equivalent to 'bin'.
163 ICU user-executable applications and scripts are found here.
166 Print the C compiler used. Equivalent to the $(CC) Makefile variable.
169 Print the C compiler flags. Equivalent to the $(CFLAGS) Makefile variable.
170 Does NOT include preprocessor directives such as include path or defined symbols. Examples include debugging (\-g) and optimization flags
173 Print the C preprocessor flags. Equivalent to the $(CPPFLAGS) Makefile variable. Examples are \-I include paths and \-D define directives.
175 .BI "\-\-cppflags\-searchpath"
176 Print the C preprocessor flags, as above but only \-I search paths.
179 Print the C++ compiler. Equivalent to the $(CXX) Makefile variable.
182 Print the C++ compiler flags. Equivalent to the $(CXXFLAGS) Makefile variable.
184 .BI "\-\-detect\-prefix"
185 If ICU has been moved from its installed location, prepending this flag to
188 calls will attempt to locate ICU relative to where the
190 script has been located. Can be used as a last-chance effort if the ICU
191 install has been damaged.
193 .BI "\-\-exec\-prefix"
194 Print the prefix used for executable program directories (such as bin, sbin, etc). Normally the same as the prefix.
197 Script will return with a successful (0) status if ICU seems to be installed
198 and located correctly, otherwise an error message and nonzero status will
201 .BI "\-\-help\fP, \fB\-?\fP,\fB\-\-usage"
202 Print a help and usage message.
205 Print the \fIshortname\fP of the ICU data file. This does not include any suffix such as .dat, .dll, .so, .lib, .a, etc nor does it include prefixes such as 'lib'. It may be in the form \fBicudt21b\fP
207 .BI "\-\-icudata\-install\-dir"
208 Print the directory where ICU packaged data should
209 be installed. Can use as pkgdata(1)'s --install option.
211 .BI "\-\-icudata\-mode"
212 Print the default ICU pkgdata mode, such as dll or common. Can use as pkgdata(1)'s --mode option.
215 Print the path to packaged archive data. (should be where $ICU_DATA
216 or equivalent default path points.) Will NOT point to the libdir.
219 If ICU is not installed in a location where the operating system will locate
220 its shared libraries, this option will print out commands so as to set the
221 appropriate environment variables to load ICU's shared libraries. For example,
222 on many systems a variable named LD_LIBRARY_PATH or equivalent must be set.
224 .BI "\-\-invoke=" "prog"
225 Same as the \fB\-\-invoke\fP option, except includes options for invoking
226 a program named \fIprog\fP. If \fIprog\fP is the name of an ICU tool,
227 such as genrb(1), then \fBicu-config\fP will also include the full path
231 Print any flags which should be passed to the linker. These may include
232 -L for library search paths, and -l for including ICU libraries. By default,
233 this option will attempt to link in the "common" (libicuuc) and "i18n"
234 (libicui18n) libraries, as well as the data library. If additional libraries
235 are required, any of the following two flags may be added in conjunction with this one,
236 for example "\-\-ldflags \-\-ldflags-icuio" if the icuio library is required
237 in addition to the standard ICU libraries.
238 Equivalent to the $(LDFLAGS) Makefile variable.
240 .BI "\-\-ldflags\-layout"
241 Prints the link option for the ICU layout library.
243 .BI "\-\-ldflags\-icuio"
244 Prints the link option to add the ICU I/O package
246 .BI "\-\-ldflags\-libsonly"
247 Similar to \fI\-\-ldflags\fP but only includes the \-l options.
249 .BI "\-\-ldflags\-searchpath"
250 Similar to \fI\-\-ldflags\fP but only includes the \-L search path options.
252 .BI "\-\-ldflags\-system"
253 Similar to \fI\-\-ldflags\fP but only includes system libraries (such as pthreads)
255 Prints the location of the installed ICU man pages. Normally (man)
258 Prints the prefix (base directory) under which the installed ICU resides.
260 .BI "\-\-prefix=" "prefix"
261 Sets the ICU prefix to \fIprefix\fP for the remainder of this command line.
262 Does test whether the new prefix is valid.
265 Prints the location of ICU system binaries, normally (sbin)
267 .BI "\-\-shared\-datadir"
268 Prints the location of ICU shared data, normally (share)
271 Prints the location of ICU system configuration data, normally (etc)
273 .BI "\-\-unicode\-version"
274 Prints the Version of the Unicode Standard which the current ICU uses.
277 Prints the current version of ICU.
280 Prints the 'Makefile.inc' path, suitable for use with pkgdata(1)'s \-O option.
287 Copyright (C) 2002-2004 IBM, Inc. and others.