configure fail on OpenBSD
I recently started trying to build this on OpenBSD(because that was the BSD distro i happened to have a VM of).
And i noticed that during the run of autogen.sh checking for getmntinfo function...
fails, which causes it to be unable to check mounts.
This is strange, because running grep getmntinfo /usr/include/sys/mount.h
returns int getmntinfo(struct statfs **, int);
.
This seems to be because f_type is never set.
Replacing AC_EGREP_HEADER(f_type;, sys/mount.h, ok=yes)
with AC_EGREP_HEADER(getmntinfo, sys/mount.h, ok=yes)
does solve this, however this does not seem like a good solution.
I unfortunately do not have the autoconf/automake knowledge to find a real fix for this.