changeset 32289:f590821ec633

Simplify jpeglib check with header_check_broken().
author diego
date Sun, 26 Sep 2010 21:48:28 +0000
parents 1df84a32840f
children 33d9f6230dff
files configure
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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 <stdio.h>
-#include <stdlib.h>
-#include <setjmp.h>
-#include <string.h>
-#include <jpeglib.h>
-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"