--- configure.orig 2012-08-08 11:59:15.000000000 +0200 +++ configure 2012-08-08 11:59:45.000000000 +0200 @@ -20271,8 +20271,8 @@ ac_save_USER_INCLUDES="$USER_INCLUDES" ac_save_USER_LDFLAGS="$USER_LDFLAGS" - USER_INCLUDES="$USER_INCLUDES $LIBJPEG_CFLAGS" - USER_LDFLAGS="$USER_LDFLAGS $LIBJPEG_CFLAGS" + USER_INCLUDES="$USER_INCLUDES $LIBJPEG_CFLAGS $CPPFLAGS" + USER_LDFLAGS="$USER_LDFLAGS $LIBJPEG_LDFLAGS $LDFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg6b" >&5