Index: giflib-4.1.6-r2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-libs/giflib/giflib-4.1.6-r2.ebuild,v retrieving revision 1.3 diff -u -B -r1.3 giflib-4.1.6-r2.ebuild --- giflib-4.1.6-r2.ebuild 6 Jul 2013 04:28:59 -0000 1.3 +++ giflib-4.1.6-r2.ebuild 21 Sep 2013 14:48:18 -0000 @@ -41,6 +41,11 @@ myconf="${myconf} --disable-rle" fi + if use X; then + myconf="${myconf} --x-includes=${EPREFIX}/usr/include \ + --x-libraries=${EPREFIX}/usr/$(get_libdir)" + fi + econf \ --disable-gl \ $(use_enable static-libs static) \