Subject: Re: finding libs/includes in /usr/pkg
To: None <current-users@netbsd.org>
From: Mario Kemper <magick@zhadum.de>
List: current-users
Date: 06/16/2001 09:25:30
john heasley <heas@shrubbery.net> writes:
> could anyone suggest a mechanism for finding libs and includes
> that are not installed in /usr/lib via autoconf, such as pthread.h.
> xmms does this
>
> AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed
> - please install first ***]))
>
> guelah [964] grep thread config.*
> config.log:configure:1980: checking for pthread.h
> config.log:configure:1986: pthread.h: No such file or directory
> config.log:#include <pthread.h>
>
> which doesnt work outside of the pkg system. i'm guessing there is
> something hidden in the pkgsrc goo that primes LDFLAGS.
>
> i assume i am missing some subtle knob in autoconf.
>
This is what i use for third party programms:
alias configure env "CFLAGS=-I/usr/pkg/include -I/usr/X11R6/include -I/usr/local/include" "CPPFLAGS=-I/usr/pkg/include -I/usr/X11R6/include -I/usr/local/include" "LDFLAGS=-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/local/lib -L/usr/local/lib" ./configure
--
Mario Kemper
magick@bundy.zhadum.de