From owner-freebsd-questions Sat Jul 13 4:52:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 912B937B400 for ; Sat, 13 Jul 2002 04:52:48 -0700 (PDT) Received: from tninet.se (sheridan.tninet.se [195.100.94.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 034FB43E8A for ; Sat, 13 Jul 2002 04:51:18 -0700 (PDT) (envelope-from tdv94ped@cs.umu.se) Received: from cs.umu.se (h30n1c1o1023.bredband.skanova.com [213.64.164.30]) by sheridan.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 14964.561013.1026.0s10678565sheridan for ; Sat, 13 Jul 2002 13:50:13 +0200 Message-ID: <3D3013EA.C0904498@cs.umu.se> Date: Sat, 13 Jul 2002 13:50:02 +0200 From: Paul Everlund X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: sv,en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Include files in /usr/local/include not found Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I got an error while making ./configure for a program. It said it did not find png.h, but it's there as I have png-1.2.4 installed on my system. Wrote the following test program: ---test.c #include int main() { return 0; } Did then compile it with: cc test.c Got the following error: test.c:1: png.h: No such file or directory Did then try to compile it as this: cc -I/usr/local/include test.c This worked! My question is: How do one fix so /usr/local/include is searched automatically? If that can be done, the ./configure should work for the program I'm trying to build. Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message