diff options
author | adam <adam@pkgsrc.org> | 2017-02-21 18:24:20 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-02-21 18:24:20 +0000 |
commit | 0a57804f3ccc547505646be956a34362ae538773 (patch) | |
tree | 958b74dd1d2310d5e26430f4ee4def1f4146d1fb /graphics/jasper | |
parent | 3b4217a11a0a28eb69971ffa3625edfbb93afc59 (diff) | |
download | pkgsrc-0a57804f3ccc547505646be956a34362ae538773.tar.gz |
Changes 2.0.10:
Fixed a problem in the JP2 encoder that caused a null pointer dereference when no ICC profile data is available (e.g., in the case of an unknown color space).
Diffstat (limited to 'graphics/jasper')
-rw-r--r-- | graphics/jasper/Makefile | 25 | ||||
-rw-r--r-- | graphics/jasper/PLIST | 18 | ||||
-rw-r--r-- | graphics/jasper/distinfo | 13 | ||||
-rw-r--r-- | graphics/jasper/options.mk | 18 | ||||
-rw-r--r-- | graphics/jasper/patches/patch-CMakeLists.txt | 18 | ||||
-rw-r--r-- | graphics/jasper/patches/patch-CVE-2016-8654 | 119 | ||||
-rw-r--r-- | graphics/jasper/patches/patch-configure | 341 |
7 files changed, 59 insertions, 493 deletions
diff --git a/graphics/jasper/Makefile b/graphics/jasper/Makefile index 4e959b5bd90..67e5023dd05 100644 --- a/graphics/jasper/Makefile +++ b/graphics/jasper/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.45 2016/12/17 23:02:51 dholland Exp $ +# $NetBSD: Makefile,v 1.46 2017/02/21 18:24:20 adam Exp $ -DISTNAME= jasper-1.900.29 -PKGREVISION= 1 +DISTNAME= jasper-2.0.10 CATEGORIES= graphics MASTER_SITES= http://www.ece.uvic.ca/~mdadams/jasper/software/ @@ -10,25 +9,13 @@ HOMEPAGE= http://www.ece.uvic.ca/~mdadams/jasper/ COMMENT= Software-based reference implementation of the JPEG-2000 codec LICENSE= modified-bsd -USE_LANGUAGES= c99 -USE_LIBTOOL= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --enable-shared --without-x --disable-opengl - -USE_TOOLS+= gmake -USE_TOOLS+= pkg-config +USE_CMAKE= yes +USE_LANGUAGES= c99 c++ +CMAKE_ARGS+= -DALLOW_IN_SOURCE_BUILD=ON PKGCONFIG_OVERRIDE= pkgconfig/jasper.pc -# The solaris stdbool.h requires c99 which is fine for jasper, but -# not so good for things that depend upon jasper. See PR#43901 -CONFIGURE_ENV.SunOS+= ac_cv_header_stdbool_h=no - -INSTALLATION_DIRS+= share/doc/jasper - -post-install: - ${INSTALL_DATA} ${WRKSRC}/doc/jasper.pdf ${DESTDIR}${PREFIX}/share/doc/jasper - ${INSTALL_DATA} ${WRKSRC}/doc/jpeg2000.pdf ${DESTDIR}${PREFIX}/share/doc/jasper +.include "options.mk" .include "../../mk/jpeg.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/graphics/jasper/PLIST b/graphics/jasper/PLIST index 2193781e24b..310b3ae8483 100644 --- a/graphics/jasper/PLIST +++ b/graphics/jasper/PLIST @@ -1,11 +1,12 @@ -@comment $NetBSD: PLIST,v 1.10 2016/12/16 09:44:44 he Exp $ +@comment $NetBSD: PLIST,v 1.11 2017/02/21 18:24:20 adam Exp $ bin/imgcmp bin/imginfo bin/jasper -bin/tmrdemo +${PLIST.opengl}bin/jiv include/jasper/jas_cm.h include/jasper/jas_config.h include/jasper/jas_debug.h +include/jasper/jas_dll.h include/jasper/jas_fix.h include/jasper/jas_getopt.h include/jasper/jas_icc.h @@ -21,11 +22,14 @@ include/jasper/jas_tvp.h include/jasper/jas_types.h include/jasper/jas_version.h include/jasper/jasper.h -lib/libjasper.la +lib/libjasper.so +lib/libjasper.so.4 +lib/libjasper.so.4.0.0 +lib/pkgconfig/jasper.pc man/man1/imgcmp.1 man/man1/imginfo.1 man/man1/jasper.1 -man/man1/jiv.1 -share/doc/jasper/jasper.pdf -share/doc/jasper/jpeg2000.pdf -lib/pkgconfig/jasper.pc +${PLIST.opengl}man/man1/jiv.1 +share/doc/JasPer/README +share/doc/JasPer/jasper.pdf +share/doc/JasPer/jpeg2000.pdf diff --git a/graphics/jasper/distinfo b/graphics/jasper/distinfo index 423b2bbbd76..90d8dcc4f07 100644 --- a/graphics/jasper/distinfo +++ b/graphics/jasper/distinfo @@ -1,11 +1,10 @@ -$NetBSD: distinfo,v 1.24 2016/12/17 23:10:25 dholland Exp $ +$NetBSD: distinfo,v 1.25 2017/02/21 18:24:20 adam Exp $ -SHA1 (jasper-1.900.29.tar.gz) = 6d50e5ea9e822ad5f88f4451819acab2e3b47f8e -RMD160 (jasper-1.900.29.tar.gz) = 4ae47353f3dc086b3a11eff86ec7fb57d598c6fb -SHA512 (jasper-1.900.29.tar.gz) = fdf557889660b9068e3712ff809fe7d4ab0855e1afff9a39eb19763599b4e747472743e4c49a42f7d38beadc6a0aa7a7b402422422853e8bb6d683def81b1544 -Size (jasper-1.900.29.tar.gz) = 1746319 bytes -SHA1 (patch-CVE-2016-8654) = 99eaf8432aa681b8a5f4116928b7537f3de05213 -SHA1 (patch-configure) = 14039911be04b88559e40f20a01bb46fd0db4488 +SHA1 (jasper-2.0.10.tar.gz) = 42518b05fd73242f8ee8047d2e35e0275a697a5f +RMD160 (jasper-2.0.10.tar.gz) = 5c13f11b2f5f7eb2ef161e2e691398c3d65bfeba +SHA512 (jasper-2.0.10.tar.gz) = 3cc08c9bc1f9ad1e4bac78a3246d6ee1a35a75d5b89b3b0f27cb5980420101256a2e05eeb7bf8a0c73d1a73c044b83b4cbca441c1418dced53d7a142e69129ed +Size (jasper-2.0.10.tar.gz) = 1672392 bytes +SHA1 (patch-CMakeLists.txt) = 6e8705e6231bd9e2b31bc2f91aa495af32dd9d3a SHA1 (patch-src_libjasper_base_jas__seq.c) = a0208cd0271388ae0fdc2e359da3223a35a7ae14 SHA1 (patch-src_libjasper_base_jas__stream.c) = 2e9ad538ab2c0191063fef06202949b435b0085e SHA1 (patch-src_libjasper_jp2_jp2__cod.c) = bfbe752e105d75fbad71a01080013c7a5a8645d8 diff --git a/graphics/jasper/options.mk b/graphics/jasper/options.mk new file mode 100644 index 00000000000..fdca01f363a --- /dev/null +++ b/graphics/jasper/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1 2017/02/21 18:24:20 adam Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.jasper +PKG_SUPPORTED_OPTIONS= opengl + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= opengl + +.if empty(PKG_OPTIONS:Mopengl) +CMAKE_ARGS+= -DJAS_ENABLE_OPENGL=OFF +.else +CMAKE_ARGS+= -DJAS_ENABLE_OPENGL=ON +PLIST.opengl= yes +. if ${OPSYS} != "Darwin" +. include "../../graphics/glut/buildlink3.mk" +. endif +.endif diff --git a/graphics/jasper/patches/patch-CMakeLists.txt b/graphics/jasper/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..b06f60c8603 --- /dev/null +++ b/graphics/jasper/patches/patch-CMakeLists.txt @@ -0,0 +1,18 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2017/02/21 18:24:20 adam Exp $ + +Remove the weird hack. + +--- CMakeLists.txt.orig 2017-02-21 17:54:13.000000000 +0000 ++++ CMakeLists.txt +@@ -55,11 +55,7 @@ set(JAS_SO_MINOR 0) + set(JAS_SO_RELEASE 0) + # This is a temporary hack for OSX that should be removed when JAS_SO_VERSION + # is next incremented. +-if (MACOSX) +-set(JAS_SO_NAME "5.${JAS_SO_MINOR}.${JAS_SO_RELEASE}") +-else() + set(JAS_SO_NAME "${JAS_SO_VERSION}.${JAS_SO_MINOR}.${JAS_SO_RELEASE}") +-endif() + + message("Shared library ABI version: ${JAS_SO_VERSION}") + message("Shared library build version: ${JAS_SO_NAME}") diff --git a/graphics/jasper/patches/patch-CVE-2016-8654 b/graphics/jasper/patches/patch-CVE-2016-8654 deleted file mode 100644 index c3332e1a42f..00000000000 --- a/graphics/jasper/patches/patch-CVE-2016-8654 +++ /dev/null @@ -1,119 +0,0 @@ -$NetBSD: patch-CVE-2016-8654,v 1.2 2016/12/17 23:10:25 dholland Exp $ - -From 4a59cfaf9ab3d48fca4a15c0d2674bf7138e3d1a Mon Sep 17 00:00:00 2001 -From: Michael Adams <mdadams@ece.uvic.ca> -Date: Sat, 26 Nov 2016 20:23:23 -0800 -Subject: [PATCH] Fixed a buffer overrun problem in the QMFB code in the JPC - codec that was caused by a buffer being allocated with a size that was too - small in some cases. Added a new regression test case. - ---- - data/test/bad/PoC1.jpc | Bin 0 -> 233 bytes - src/libjasper/jpc/jpc_qmfb.c | 28 +++++++++++++++------------- - 2 files changed, 15 insertions(+), 13 deletions(-) - create mode 100644 data/test/bad/PoC1.jpc - -# diff --git a/data/test/bad/PoC1.jpc b/data/test/bad/PoC1.jpc -# new file mode 100644 -# index 0000000000000000000000000000000000000000..95239547c40ebd947169f8d87ec399759d1acd3f -# GIT binary patch -# literal 233 -# zcmezG|38pHlYx<efuVtcK><X=Km(8g!Vtj7&dB&bh=G@t0i>9PMS)TLe+&alg2Vq5 -# z23-b5=c3falKdho1;;R5FC%XSjbu#)BLf2i9Ux(-;Fy!1uMn15oSC2Ze*yy+*u*jh -# z#{ZKa{p#MIIpO~#?i1JcuDH+a{XxR{o@qS)=2<S+_kGs5vcd1wR*^ZWYAZ`pBG>(V -# z>o4CL(REnycXM0m>2?DJ+q$m14-a1!FY%njRQ9-BmDw#gXoZ8CkKEbRXJ=<JubTMl -# Q@K-MmpN6@L&;H*808TDYDF6Tf -# -# literal 0 -# HcmV?d00001 - -diff --git src/libjasper/jpc/jpc_qmfb.c src/libjasper/jpc/jpc_qmfb.c -index 45be24e..f26070f 100644 ---- src/libjasper/jpc/jpc_qmfb.c -+++ src/libjasper/jpc/jpc_qmfb.c -@@ -374,7 +374,7 @@ void jpc_qmfb_split_col(jpc_fix_t *a, int numrows, int stride, - register jpc_fix_t *dstptr; - register int n; - register int m; -- int hstartcol; -+ int hstartrow; - - /* Get a buffer. */ - if (bufsize > QMFB_SPLITBUFSIZE) { -@@ -385,9 +385,9 @@ void jpc_qmfb_split_col(jpc_fix_t *a, int numrows, int stride, - } - - if (numrows >= 2) { -- hstartcol = (numrows + 1 - parity) >> 1; -- // ORIGINAL (WRONG): m = (parity) ? hstartcol : (numrows - hstartcol); -- m = numrows - hstartcol; -+ hstartrow = (numrows + 1 - parity) >> 1; -+ // ORIGINAL (WRONG): m = (parity) ? hstartrow : (numrows - hstartrow); -+ m = numrows - hstartrow; - - /* Save the samples destined for the highpass channel. */ - n = m; -@@ -408,7 +408,7 @@ void jpc_qmfb_split_col(jpc_fix_t *a, int numrows, int stride, - srcptr += stride << 1; - } - /* Copy the saved samples into the highpass channel. */ -- dstptr = &a[hstartcol * stride]; -+ dstptr = &a[hstartrow * stride]; - srcptr = buf; - n = m; - while (n-- > 0) { -@@ -439,20 +439,21 @@ void jpc_qmfb_split_colgrp(jpc_fix_t *a, int numrows, int stride, - register int n; - register int i; - int m; -- int hstartcol; -+ int hstartrow; - - /* Get a buffer. */ - if (bufsize > QMFB_SPLITBUFSIZE) { -- if (!(buf = jas_alloc2(bufsize, sizeof(jpc_fix_t)))) { -+ if (!(buf = jas_alloc3(bufsize, JPC_QMFB_COLGRPSIZE, -+ sizeof(jpc_fix_t)))) { - /* We have no choice but to commit suicide in this case. */ - abort(); - } - } - - if (numrows >= 2) { -- hstartcol = (numrows + 1 - parity) >> 1; -- // ORIGINAL (WRONG): m = (parity) ? hstartcol : (numrows - hstartcol); -- m = numrows - hstartcol; -+ hstartrow = (numrows + 1 - parity) >> 1; -+ // ORIGINAL (WRONG): m = (parity) ? hstartrow : (numrows - hstartrow); -+ m = numrows - hstartrow; - - /* Save the samples destined for the highpass channel. */ - n = m; -@@ -485,7 +486,7 @@ void jpc_qmfb_split_colgrp(jpc_fix_t *a, int numrows, int stride, - srcptr += stride << 1; - } - /* Copy the saved samples into the highpass channel. */ -- dstptr = &a[hstartcol * stride]; -+ dstptr = &a[hstartrow * stride]; - srcptr = buf; - n = m; - while (n-- > 0) { -@@ -526,7 +527,7 @@ void jpc_qmfb_split_colres(jpc_fix_t *a, int numrows, int numcols, - - /* Get a buffer. */ - if (bufsize > QMFB_SPLITBUFSIZE) { -- if (!(buf = jas_alloc2(bufsize, sizeof(jpc_fix_t)))) { -+ if (!(buf = jas_alloc3(bufsize, numcols, sizeof(jpc_fix_t)))) { - /* We have no choice but to commit suicide in this case. */ - abort(); - } -@@ -721,7 +722,8 @@ void jpc_qmfb_join_colgrp(jpc_fix_t *a, int numrows, int stride, - - /* Allocate memory for the join buffer from the heap. */ - if (bufsize > QMFB_JOINBUFSIZE) { -- if (!(buf = jas_alloc3(bufsize, JPC_QMFB_COLGRPSIZE, sizeof(jpc_fix_t)))) { -+ if (!(buf = jas_alloc3(bufsize, JPC_QMFB_COLGRPSIZE, -+ sizeof(jpc_fix_t)))) { - /* We have no choice but to commit suicide. */ - abort(); - } diff --git a/graphics/jasper/patches/patch-configure b/graphics/jasper/patches/patch-configure deleted file mode 100644 index 979e9934dd2..00000000000 --- a/graphics/jasper/patches/patch-configure +++ /dev/null @@ -1,341 +0,0 @@ -$NetBSD: patch-configure,v 1.2 2016/12/16 09:44:44 he Exp $ - -Check for C99 conformance for stdbool.h, don't just test its presence. - ---- configure.orig 2007-01-19 21:54:48.000000000 +0000 -+++ configure 2007-08-12 20:56:30.000000000 +0000 -@@ -8286,6 +8286,163 @@ fi - - fi - -+echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 -+echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 -+if test "${ac_cv_header_stdbool_h+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+#include <stdbool.h> -+#ifndef bool -+# error bool is not defined -+#endif -+#ifndef false -+# error false is not defined -+#endif -+#if false -+# error false is not 0 -+#endif -+#ifndef true -+# error true is not defined -+#endif -+#if true != 1 -+# error true is not 1 -+#endif -+#ifndef __bool_true_false_are_defined -+# error __bool_true_false_are_defined is not defined -+#endif -+ -+ struct s { _Bool s: 1; _Bool t; } s; -+ -+ char a[true == 1 ? 1 : -1]; -+ char b[false == 0 ? 1 : -1]; -+ char c[__bool_true_false_are_defined == 1 ? 1 : -1]; -+ char d[(bool) -0.5 == true ? 1 : -1]; -+ bool e = &s; -+ char f[(_Bool) -0.0 == false ? 1 : -1]; -+ char g[true]; -+ char h[sizeof (_Bool)]; -+ char i[sizeof s.t]; -+ -+int -+main () -+{ -+ return !a + !b + !c + !d + !e + !f + !g + !h + !i; -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext -+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>conftest.er1 -+ ac_status=$? -+ grep -v '^ *+' conftest.er1 >conftest.err -+ rm -f conftest.er1 -+ cat conftest.err >&5 -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && -+ { ac_try='test -z "$ac_c_werror_flag" -+ || test ! -s conftest.err' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } && -+ { ac_try='test -s conftest.$ac_objext' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; }; then -+ ac_cv_header_stdbool_h=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_header_stdbool_h=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 -+echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 -+echo "$as_me:$LINENO: checking for _Bool" >&5 -+echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 -+if test "${ac_cv_type__Bool+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+$ac_includes_default -+int -+main () -+{ -+if ((_Bool *) 0) -+ return 0; -+if (sizeof (_Bool)) -+ return 0; -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext -+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>conftest.er1 -+ ac_status=$? -+ grep -v '^ *+' conftest.er1 >conftest.err -+ rm -f conftest.er1 -+ cat conftest.err >&5 -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && -+ { ac_try='test -z "$ac_c_werror_flag" -+ || test ! -s conftest.err' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } && -+ { ac_try='test -s conftest.$ac_objext' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; }; then -+ ac_cv_type__Bool=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_type__Bool=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 -+echo "${ECHO_T}$ac_cv_type__Bool" >&6 -+if test $ac_cv_type__Bool = yes; then -+ -+cat >>confdefs.h <<_ACEOF -+#define HAVE__BOOL 1 -+_ACEOF -+ -+ -+fi -+ -+if test $ac_cv_header_stdbool_h = yes; then -+ -+cat >>confdefs.h <<\_ACEOF -+#define HAVE_STDBOOL_H 1 -+_ACEOF -+ -+fi - - - -@@ -13727,6 +13884,170 @@ _ACEOF - fi - - -+echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 -+echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 -+if test "${ac_cv_header_stdbool_h+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+#include <stdbool.h> -+#ifndef bool -+# error bool is not defined -+#endif -+#ifndef false -+# error false is not defined -+#endif -+#if false -+# error false is not 0 -+#endif -+#ifndef true -+# error true is not defined -+#endif -+#if true != 1 -+# error true is not 1 -+#endif -+#ifndef __bool_true_false_are_defined -+# error __bool_true_false_are_defined is not defined -+#endif -+ -+ struct s { _Bool s: 1; _Bool t; } s; -+ -+ char a[true == 1 ? 1 : -1]; -+ char b[false == 0 ? 1 : -1]; -+ char c[__bool_true_false_are_defined == 1 ? 1 : -1]; -+ char d[(bool) -0.5 == true ? 1 : -1]; -+ bool e = &s; -+ char f[(_Bool) -0.0 == false ? 1 : -1]; -+ char g[true]; -+ char h[sizeof (_Bool)]; -+ char i[sizeof s.t]; -+ -+int -+main () -+{ -+ return !a + !b + !c + !d + !e + !f + !g + !h + !i; -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext -+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>conftest.er1 -+ ac_status=$? -+ grep -v '^ *+' conftest.er1 >conftest.err -+ rm -f conftest.er1 -+ cat conftest.err >&5 -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && -+ { ac_try='test -z "$ac_c_werror_flag" -+ || test ! -s conftest.err' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } && -+ { ac_try='test -s conftest.$ac_objext' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; }; then -+ ac_cv_header_stdbool_h=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_header_stdbool_h=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 -+echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 -+echo "$as_me:$LINENO: checking for _Bool" >&5 -+echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 -+if test "${ac_cv_type__Bool+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+$ac_includes_default -+int -+main () -+{ -+if ((_Bool *) 0) -+ return 0; -+if (sizeof (_Bool)) -+ return 0; -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext -+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>conftest.er1 -+ ac_status=$? -+ grep -v '^ *+' conftest.er1 >conftest.err -+ rm -f conftest.er1 -+ cat conftest.err >&5 -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && -+ { ac_try='test -z "$ac_c_werror_flag" -+ || test ! -s conftest.err' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } && -+ { ac_try='test -s conftest.$ac_objext' -+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; }; then -+ ac_cv_type__Bool=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_type__Bool=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 -+echo "${ECHO_T}$ac_cv_type__Bool" >&6 -+if test $ac_cv_type__Bool = yes; then -+ -+cat >>confdefs.h <<_ACEOF -+#define HAVE__BOOL 1 -+_ACEOF -+ -+ -+fi -+ -+if test $ac_cv_header_stdbool_h = yes; then -+ -+cat >>confdefs.h <<\_ACEOF -+#define HAVE_STDBOOL_H 1 -+_ACEOF -+ -+fi -+ -+ -+ -+ -+ -+ -+ - ############################################################ - # Check for header files. - ############################################################ |