On Thu, Mar 12, 2020 at 05:03:23AM +0200, Lev Stipakov wrote:
> This option can be used in FreedBSD with devel/libinotify
> installed.
> Detect presence of libinotify and link with its _LIBS variable.
> Trac #1256
> Signed-off-by: Lev Stipakov <lstipa...@gmail.com>

Doesn't want to work for me...

FreeBSD 11.3 here, with "libinotify-20180201_1" installed, which
brings in /usr/local/include/sys/inotify.h

Running configure like this (out of tree):

../openvpn/configure LZO_CFLAGS=-I/usr/local/include LZO_LIBS="-L/usr/local/lib 
-llzo2" --enable-async-push

ends in...

checking whether the compiler accepts -Wno-unused-parameter... yes
checking whether the compiler accepts -Wall... yes
checking sys/inotify.h usability... no
checking sys/inotify.h presence... no
checking for sys/inotify.h... no
configure: error: inotify.h not found.

which is not exactly surprising, given that it wants to find this
header *before* pkg_config tells it where to look...

if test "${enable_async_push}" = "yes"; then
                AC_DEFINE([ENABLE_ASYNC_PUSH], [1], [Enable async push]),
                AC_MSG_ERROR([inotify.h not found.])
        case "$host" in

so unless you happen to have "-I/usr/local/include" in your CFLAGS
at this point, it will still fail.

"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             g...@greenie.muc.de

Attachment: signature.asc
Description: PGP signature

Openvpn-devel mailing list

Reply via email to