From cd3971ca7d4b8d383ea80d2354c71802e9078512 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 16 Dec 2016 03:28:42 +0000 Subject: Set dummy names for PNGLIB, PNGHDR_DIR when libpng-config exists git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2849 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- buildtools/configure.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'buildtools') diff --git a/buildtools/configure.pl b/buildtools/configure.pl index 6bedf189..332113d5 100755 --- a/buildtools/configure.pl +++ b/buildtools/configure.pl @@ -1168,6 +1168,12 @@ sub getPngLibrary($@) { # We don't need to ask where Libpng is; there's a 'libpng-config' # That tells exactly how to access it, and the make files will use # that. + # + # To limit the confusion when someone tries to use our result in + # spite of the fact that 'libpng-config' exists, we assign suggestive + # dummy values. + $pnglib = 'USE_LIBPNG-CONFIG.a'; + $pnghdr_dir = 'USE_LIBPNG-CONFIG.a'; } else { { my $default = "libpng" . libSuffix($platform); -- cgit 1.4.1