From cc6a7d008b402e5e019237e2576e3d98e815bf91 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 4 Apr 2022 21:10:25 +0200 Subject: Remove obsolete config variable 'HAVE_LIBPNG_PNG_H' This variable has never been used in the code. Configure and CMake look for a *working* libpng (HAVE_PNG) and set variable HAVE_PNG_H if the header can be included. The alternative to include is always used in the #else clause and doesn't need its own config variable. Configure and CMake log what they find, hence this extra variable is not necessary. --- configure.ac | 2 -- 1 file changed, 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2f9d83126..ca2a7bcc2 100644 --- a/configure.ac +++ b/configure.ac @@ -738,7 +738,6 @@ AS_IF([test x$enable_localpng != xyes], [ syspnginc_ok=yes ]) AC_CHECK_HEADER([libpng/png.h], [ - AC_DEFINE([HAVE_LIBPNG_PNG_H]) syspnginc_ok=yes ]) AS_IF([test x$syspnginc_ok = xyes], [ @@ -815,7 +814,6 @@ AC_SUBST([JPEGINC]) AC_SUBST([PNG]) AC_SUBST([PNGINC]) AC_SUBST([HAVE_PNG_H]) -AC_SUBST([HAVE_LIBPNG_H]) AC_SUBST([ZLIB]) AC_SUBST([ZLIBINC]) -- cgit v1.2.3