1.nh 2.TH iodbc\-config 1 "16 June 2004" "@VERSION@" "@PACKAGE_NAME@" 3 4.SH NAME 5iodbc-config - script to get information about the installed version of iODBC 6 7.SH SYNOPSIS 8.B iodbc-config 9.RB [ \-\-prefix\fI[=DIR]\fR ] 10.RB [ \-\-exec\-prefix\fI[=DIR]\fR ] 11.RB [ \-\-version ] 12.RB [ \-\-cflags ] 13.RB [ \-\-libs ] 14.RB [ \-\-static\-libs ] 15.RB [ \-\-libtool\-libs ] 16.RB [ \-\-odbcini ] 17.RB [ \-\-odbcinstini ] 18 19.SH DESCRIPTION 20\fBiodbc-config\fR is a tool that is used to configure to determine 21the compiler and linker flags that should be used to compile 22and link programs that use \fRiODBC\fR. 23. 24.SH OPTIONS 25\fBiodbc-config\fR accepts the following options: 26.TP 8 27.B \-\-version 28Print the currently installed version of \fBiODBC\fR on the standard output. 29.TP 8 30.B \-\-cflags 31Print the compiler flags that are necessary to compile an \fBiODBC\fR program. 32.TP 8 33.B \-\-libs 34Print the linker flags that are necessary to link an \fBiODBC\fR program using 35dynamic libraries (if supported). 36.TP 8 37.B \-\-static\-libs 38Print the linker flags that are necessary to link an \fBiODBC\fR program using 39static libraries. 40.TP 8 41.B \-\-libtool\-libs 42Print the linker flags that are necessary to link an \fBiODBC\fR program in a 43libtool environment. 44.TP 8 45.B \-\-odbcini 46Print the path of the system wide odbc.ini file. 47.TP 8 48.B \-\-odbcinstini 49Print the path of the system wide odbcinst.ini file. 50.TP 8 51.B \-\-prefix\fI[=PREFIX]\fR 52If specified, use PREFIX instead of the installation prefix that \fBiODBC\fR 53was built with when computing the output for the \-\-cflags and 54\-\-libs options. This option is also used for the exec prefix 55if \-\-exec\-prefix was not specified. This option must be specified 56before any \-\-libs or \-\-cflags options. 57 58If PREFIX is not specified, the \fB\-\-prefix\fR flag shows where \fBiODBC\fR 59is currently installed. 60.TP 8 61.B \-\-exec\-prefix=PREFIX 62If specified, use PREFIX instead of the installation exec prefix that 63\fBiODBC\fR was built with when computing the output for the \-\-cflags 64and \-\-libs options. This option must be specified before any 65\-\-libs or \-\-cflags options. 66 67.SH EXAMPLES 68To compile a program that calls the \fBiODBC\fR API, make sure the 69\fBiodbc\-config\fR program can be found in the \fBPATH\fR environment 70variable, before using the following Makefile fragment: 71 72.nf 73 CFLAGS=\`iodbc-config \-\-cflags\` 74 LDLIBS=\`iodbc-config \-\-libs\` 75 76 iodbctest: iodbctest.c 77 cc $(CFLAGS) \-o iodbctest iodbctest.c $(LDLIBS) 78 79.fi 80 81.SH COPYRIGHT 82Copyright \(co 1996-2004 by OpenLink Software 83 84.SH AUTHOR 85iODBC Administrator <iodbc@openlinksw.com> 86