# HG changeset patch # User diego # Date 1285537708 0 # Node ID f590821ec63395b8ae4fd5b77a08a384ce47dfd1 # Parent 1df84a32840f1fd867d51633622054d8271700b0 Simplify jpeglib check with header_check_broken(). diff -r 1df84a32840f -r f590821ec633 configure --- a/configure Sun Sep 26 21:32:54 2010 +0000 +++ b/configure Sun Sep 26 21:48:28 2010 +0000 @@ -4935,15 +4935,7 @@ echocheck "JPEG support" if test "$_jpeg" = auto ; then _jpeg=no -cat > $TMPC << EOF -#include -#include -#include -#include -#include -int main(void) { return 0; } -EOF - cc_check -ljpeg $_ld_lm && _jpeg=yes + header_check_broken stdio.h jpeglib.h -ljpeg $_ld_lm && _jpeg=yes fi echores "$_jpeg"