https://github.com/wojdyr/xylib/issues/4
https://github.com/wojdyr/xylib/commit/eb40b1cd39c2d2bcac255bafba1f848975cb0bb0
--- configure.orig 2013-08-01 18:54:08.000000000 -0500
+++ configure 2013-11-14 05:26:16.000000000 -0600
# in this header would cause problems in programs using xylib.
uses_tr1_memory=`grep '#define XYLIB_USE_TR1_MEMORY ' $srcdir/xylib/cache.h | sed 's/.*\([01]\)/\1/g'`
if test "$ac_cv_header_tr1_memory" = "yes" && test $uses_tr1_memory != "1"; then
- sed -i 's/\(#define XYLIB_USE_TR1_MEMORY\) 0/\1 1/' $srcdir/xylib/cache.h
+ sed -i.bak 's/\(#define XYLIB_USE_TR1_MEMORY\) 0/\1 1/' $srcdir/xylib/cache.h
elif test "$ac_cv_header_tr1_memory" != "yes" && test $uses_tr1_memory = "1"; then
- sed -i 's/\(#define XYLIB_USE_TR1_MEMORY\) 1/\1 0/' $srcdir/xylib/cache.h
+ sed -i.bak 's/\(#define XYLIB_USE_TR1_MEMORY\) 1/\1 0/' $srcdir/xylib/cache.h
# this is used in Makefile.am to define XYLIB_DLL when building xyconv