From 4d0ea6999fd0e5b671cfee9c1ab65811993e5baf Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 7 Feb 2003 13:07:31 +0000 Subject: [PATCH] better $prefix support. --- configure.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index ecd33a3..62d24ce 100644 --- a/configure.in +++ b/configure.in @@ -7,7 +7,7 @@ AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging], DEBUG=true) PACKAGE=swftools -VERSION=0.4.4-pre6 +VERSION=0.4.4-pre9 # -Winline? if test "x$CHECKMEM" '!=' "x";then @@ -73,6 +73,14 @@ if test -d /usr/local/include; then # CPPFLAGS="$CPPFLAGS -I/usr/local/include" echo > /dev/null fi +if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then + # if the user has a special prefix (like /opt), there might also be $prefix/lib + # and $prefix/include, which should be included in our search paths for libraries + # and includes. + LDFLAGS="$LDFLAGS -L${libdir}" + CPPFLAGS="$CPPFLAGS -I${includedir}" + # TODO- test whether gcc still works after this +fi dnl Checks for libraries. AC_CHECK_LIB(m, sin,, -- 1.7.10.4