beautypg.com

Compilers and options – APC UPS control system User Manual

Page 40

background image

./configure --prefix=/usr --sbindir=/sbin --enable-usb \

--enable-pthreads

and you can optionally build and install the CGI programs as follows:

./configure --prefix=/usr --sbindir=/sbin --enable-usb \

--enable-cgi --with-cgi-bin=/home/httpd/cgi-bin \
--enable-pthreads

Compilers and Options

Some systems require unusual options for compilation or linking that the
./configure

script does not know about. You can specify initial values for

variables by setting them in the environment. Using a Bourne-compatible
shell, you can do that on the command line like this:

CFLAGS="-O2 -Wall" LDFLAGS= ./configure

Or on systems that have the env program, you can do it like this:

env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure

Or for example on the Sun Solaris system, you can use:

setenv CFLAGS -O2
setenv LDFLAGS -O
./configure

You can get a listing of all available options by doing:

./configure --help

or simply see the previous section of this manual.

39