Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-k.one.com (mx-k.one.com [91.198.169.58])
	by mail6.local (Postfix) with ESMTP id 5F1DC80105368
	for <filtered@awaresystems.be>; Fri, 29 Mar 2013 02:40:54 +0100 (CET)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-k: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.215.52 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52])
	by mx-k.one.com (Postfix) with ESMTP id 204811333C30
	for <filtered@awaresystems.be>; Fri, 29 Mar 2013 01:40:54 +0000 (UTC)
Received: by mail-la0-f52.google.com with SMTP id fs12so195977lab.39
        for <filtered@awaresystems.be>; Thu, 28 Mar 2013 18:40:53 -0700 (PDT)
X-Received: by 10.112.145.35 with SMTP id sr3mr590411lbb.51.1364521253627;
        Thu, 28 Mar 2013 18:40:53 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.114.16.135 with SMTP id g7csp41034ldd;
        Thu, 28 Mar 2013 18:40:53 -0700 (PDT)
X-Received: by 10.112.79.1 with SMTP id f1mr559857lbx.114.1364521251853;
        Thu, 28 Mar 2013 18:40:51 -0700 (PDT)
DomainKey-Status: bad format
Received-SPF: neutral (google.com: 195.47.247.76 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=195.47.247.76;
Received: by 10.152.99.84 with POP3 id eo20mf354207lab.9;
        Thu, 28 Mar 2013 18:40:51 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx05.one.com (mx05.one.com [195.47.247.76])
	by mail6.local (Postfix) with ESMTP id C43AD8014E871
	for <info@awaresystems.be>; Fri, 29 Mar 2013 02:28:49 +0100 (CET)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (ks365428.kimsufi.com [94.23.4.142])
	by mx05.one.com (Postfix) with ESMTP id 9A57B48769
	for <info@awaresystems.be>; Fri, 29 Mar 2013 01:28:49 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 8D4FC35C028;
	Thu, 28 Mar 2013 20:15:40 -0500 (EST)
Received: from mail.comstyle.com (speedy.comstyle.com [206.51.28.2])
	by lists.maptools.org (Postfix) with ESMTPS id 5669735C028
	for <tiff@lists.maptools.org>; Thu, 28 Mar 2013 19:40:55 -0500 (EST)
Received: from rox.home.comstyle.com (unknown
	[IPv6:2001:470:b01e:3:8842:f4d1:78cd:2635])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested) (Authenticated sender: brad)
	by mail.comstyle.com (Postfix) with ESMTPSA id 1F9693E99F
	for <tiff@lists.maptools.org>; Thu, 28 Mar 2013 20:40:37 -0400 (EDT)
Date: Thu, 28 Mar 2013 20:40:34 -0400
From: Brad Smith <brad@comstyle.com>
To: tiff@lists.maptools.org
Message-ID: <20130329004033.GC18089@rox.home.comstyle.com>
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-comstyle-MailScanner-Information: Please contact the ISP for more information
X-comstyle-MailScanner-ID: 1F9693E99F.A78C4
X-comstyle-MailScanner: Found to be clean
X-comstyle-MailScanner-SpamCheck: not spam (whitelisted),
	SpamAssassin (not cached, score=-2.9, required 6, autolearn=not spam,
	ALL_TRUSTED -1.00, BAYES_00 -1.90)
X-comstyle-MailScanner-From: brad@comstyle.com
Subject: [Tiff] [PATCH] Fix pkg-config file for static linking
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

The following patch corrects the generated pkg-config file for
static linking.


Index: configure.ac
===================================================================
RCS file: /cvs/maptools/cvsroot/libtiff/configure.ac,v
retrieving revision 1.98
diff -u -p -r1.98 configure.ac
--- configure.ac	22 Sep 2012 16:12:44 -0000	1.98
+++ configure.ac	29 Mar 2013 00:28:26 -0000
@@ -154,18 +154,22 @@ LT_LANG([C++])
 # Enable support for silent build rules
 AM_SILENT_RULES
 
+tiff_libs_private=
+AC_SUBST(tiff_libs_private)
+
 dnl We don't need to add math library to all targets
 case "${host_os}" in
     cygwin* | mingw32* | beos* | darwin*)
         ;;
     *)
-	AC_CHECK_LIB(m,sin,,,)
+	AC_CHECK_LIB(m,sin,[libm_lib=yes], [libm_lib=no],)
+	if test "x$libm_lib" = "xyes" ; then
+	  LIBS="-lm $LIBS"
+	  tiff_libs_private="-lm ${tiff_libs_private}"
+	fi
         ;;
 esac
 
-tiff_libs_private=
-AC_SUBST(tiff_libs_private)
-
 dnl Checks for header files.
 AC_CHECK_HEADERS([assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h])
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
