[PATCH] fix configure for libparted

Dan Nicholson dbn.lists at gmail.com
Tue Dec 11 06:07:08 PST 2007


On Dec 11, 2007 2:26 AM, Danny Kukawka <danny.kukawka at web.de> wrote:
>
> since there is again a new libparted (v1.8.8), I would change the configure
> patch to the attached one:
>
> - reduce checks to check for libparted 1.7.1 || >= 1.8.0 (was there any
> version since 1.8.0 which didn't work?)
> - try first 'pkg-config --atleast-version 1.8.0 libparted' since there is
> AFAIK since 1.8.3 a working pc file for the lib

It would be nice if you also used the pkg-config file if it exists
since then you get any necessary -L's in the PARTED_LIBS variable.
Something like

if $PKG_CONFIG --atleast-version 1.8.0; then
    PKG_CHECK_MODULES(PARTED, parted)
else
    ...header check...
    PARTED_LIBS=-lparted
fi
AC_SUBST(PARTED_LIBS)

Looks, nice, though.

--
Dan


More information about the hal mailing list