configureやmake時に必要なライブラリやヘッダーファイルが標準ではないディレクトリに置かれている場合、
検索パスを環境変数で追加することができる。

LDFLAGS="-L" CPPFLAGS="-I" configure [options]
とか
LDFLAGS="-L" CPPFLAGS="-I" configure [options]


apacheのconfigureスクリプトのヘルプより引用

Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L if you have libraries in a
nonstandard directory
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if
you have headers in a nonstandard directory
CPP C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.


ここ
http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=3865&forum=10
を参考にした