[syslinux] mdiskchk: files for `./configure && make`
Geert Stappers
stappers at stappers.nl
Sun Nov 11 10:05:16 PST 2012
On Sun, Nov 11, 2012 at 12:04:28PM -0500, Shao Miller wrote:
> On 11/10/2012 07:04, Geert Stappers wrote:
> >On Fri, Nov 09, 2012, Shao Miller wrote more as:
> >>
> >>Does anyone know of a clever, Linux-distribution-independent way to find out
> >>where MinGW has its lib/ and include/ dirs? Right now, I've hard-coded the
> >>path for Fedora 17 in the Makefiles.
> >>
> >
> >+# Handcrafted configure script
> >+#
> >+function firstfounddirectory
> >+{
> >+ while read CHECKME COMMENT
> >+ do
> >+ if [ -d $CHECKME ] ; then
> >+ echo $CHECKME
> >+ return
> >+ fi
> >+ done
> >+ echo '/sorry/directory/not/in/supplied/list'
> >+}
> >+
> >+WININC=$( firstfounddirectory << HERE
> >+/possible/directory/without/white/space optional: extra information
> >+/usr/i686-w64-mingw32/sys-root/mingw/include fedora17 RPM version
> >+/usr/i686-w64-mingw32/include debian mingw-w64-i686-dev 2.0.3-1
> >+HERE
> >+)
> >+
> >+WINLIB=$( firstfounddirectory << HERE
> >+/usr/i686-w64-mingw32/sys-root/mingw/lib works for Sha0
> >+/usr/i686-w64-mingw32/lib debian mingw-w64-i686-dev 2.0.3-1
> >+HERE
> >+)
> >+
> >+# TODO: have a {exe,sys}/Makefile.in and generate {exe,sys}/Makefile
> >+# current workaround: modify the {exe,sys}/Makefile that is in SCM
> >+
> >+sed --in-place \
> >+ -e "s@^WININC.*:=.*@WININC := $WININC@" \
> >+ -e "s@^WINLIB.*:=.*@WINLIB := $WINLIB@" \
> >+ exe/Makefile
> >+
> >+sed --in-place \
> >+ -e "s@^WININC.*:=.*@WININC := $WININC@" \
> >+ -e "s@^WINLIB.*:=.*@WINLIB := $WINLIB@" \
> >+ sys/Makefile
> >+
> >+# l l
> >-- 1.7.10.4
> >
>
> Thanks a lot for all of this, Geert!
Thans for the compliment :-)
> I will try this patch out. - Shao
Applying my patch will only take effect after executing
./configure
For Shao Miller should it only be a white space change
in the {exe,sys}/Makefiles.
The real try-out of this patch when a third person uses the
./configure
Groeten
Geert Stappers
--
> And is there a policy on top-posting vs. bottom-posting?
Yes.
More information about the Syslinux
mailing list