> >> > I'm toying with lzo on Windows 7 32-bit (mingwbuilds 4.8.0 and rubenvb > >> > 4.7.2) and want to create a solid patch for configure.ac, but my autoconf > >> > fu hovers around the nano-fu level. While the failure is not a mingw-w64 > >> > bug, you guys likely have a better battle-tested solution than my > >> > throw-sed-at-it impulse. > >> > > >> > This section of configure.ac > >> > > >> > http://paste.ubuntu.com/5657059/ > >> > > >> > generates this false conftest failure > >> > > >> > configure:12982: gcc -g -O2 -c conftest.S 1>&5 > >> > conftest.S:1:80: fatal error: > >> > /c/Users/Jon/Downloads/temp/lzo/lzo-2.06/asm/i386/src_gas/lzo1x_f1.S: No > >> > such file or directory > >> > #include > >> > "/c/Users/Jon/Downloads/temp/lzo/lzo-2.06/asm/i386/src_gas/lzo1x_f1.S" > >> > > >> > do to line 12 of configure.ac expanding into a MSYS style path style. > >> > Changing from "/c/Users/..." to "c:/Users/..." fixes the issue. > >> > > >> > Any solid mingw/mingw-w64 friendly tweaks you're just sure the upstream > >> > maintainer would be happy with? > >> > > >> > > >> Try to use $srcdir instead $ac_abs_top_srcdir > > > > On my system while running configure from the top level dir, $srcdir, > > $top_srcdir, and $ac_abs_top_srcdir all expand to an absolute MSYS style > > path. > > > > I've never seen a problem with paths like this. If you execute > configure in a separate build directory, using relative paths to the > source, does it help? Some packages are designed to not configure > properly in the source directory.
Good idea, I'll try it. This quickie http://paste.ubuntu.com/5659791/ showed that _AC_SRCDIRS([.]) on line 8 causes mingw gcc's heartburn. Looks like some sort of internal ac/m4 macro, but I haven't swung back to spelunk why one would use it. Without it the `bogustest.c` contains #include "/fake-dir/fake.h" and with it `bogustest.c` contains #include "/c/Users/Jon/Documents/Linux/sandbox/fake-dir/fake.h" so it looks like it's needed to correct for some sort of pathing feature of autotools. My patience with autotools has just about reached the end, and our good friend sed is calling with something like this wrapped in a case check: sed "s|^/\([A-Za-z]\)|\1:|" That said, ac's got to have something mingw-friendly that's cleaner than the sed hammer. ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
