X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=configure.in;h=ee74d837c48061446c7ac9754197ef4c6ec24d99;hb=75b5f45c7bbe22216ffd810316ecfcc41af1c063;hp=ecd33a311a269fd455a758464583fdfbac4a26d5;hpb=1d5bfc54842481ae55acf0ed28feb636d549975a;p=swftools.git diff --git a/configure.in b/configure.in index ecd33a3..ee74d83 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-pre10 # -Winline? if test "x$CHECKMEM" '!=' "x";then @@ -16,6 +16,9 @@ fi if test "x$DEBUG" '!=' "x";then CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CFLAGS" CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CXXFLAGS" + STRIP="echo debug enabled, not stripping " + export STRIP + AC_SUBST(STRIP) else CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CFLAGS" CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CXXFLAGS" @@ -73,6 +76,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,,