#! /bin/sh # libpng-config # provides configuration info for libpng. # Copyright (C) 2002, 2004, 2006, 2007 Glenn Randers-Pehrson # This code is released under the libpng license. # For conditions of distribution and use, see the disclaimer # and license in png.h # Modeled after libxml-config. version="@PNGLIB_VERSION@" prefix="@prefix@" exec_prefix="@exec_prefix@" # we disable that to make the -dev package Multi-Arch: same libdir= includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@" libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@" all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@" I_opts="-I${includedir}" L_opts= R_opts="" cppflags="" ccopts="" ldopts="" usage() { cat <&1 "$(basename $0): --libdir option is disabled in Debian/Ubuntu" exit 1 echo ${libdir} ;; --libs) echo ${libs} ;; --I_opts) echo ${I_opts} ;; --L_opts) echo ${L_opts} ;; --R_opts) echo ${R_opts} ;; --ldopts) echo ${ldopts} ;; --ldflags) echo ${ldopts} ${L_opts} ${R_opts} ${libs} ;; --static) R_opts="" libs=${all_libs} ;; *) usage exit 1 ;; esac shift done exit 0