comparison configure.in @ 3415:1756b9569141

Adam Strzelecki to SDL Actually after my patch commited in r4928 MinGW configure seems to generate broken Makefile due MSYS bash bug. (Attaching cure/patch below) The problem is that: TEST=`echo 'one\\ two\\ three\\'` echo "$TEST" Should echo: one\ two\ three\ Does it on Linux, Mac.. all UNIX but not on MSYS (MinGW) which outputs: one\two\three\ (new lines removed, probably it doesn't like backslashes) Probably this bug should be submitted to MSYS team, but not waiting till MSYS gets it fixed (they have very slow release cycles) here goes simple cure... My patch simply replaces single quoted SED rules where we needed newlien injection with double quoted ones. Tested on Mac, Linux & MinGW. Please review it ASAP coz this may be showstopper for everybody compiling with MinGW.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 28 Oct 2009 04:27:50 +0000
parents d5f2dd33f4eb
children ee0178f1c507
comparison
equal deleted inserted replaced
3414:1e45c3012a4f 3415:1756b9569141
2756 2756
2757 OBJECTS=`echo $SOURCES` 2757 OBJECTS=`echo $SOURCES`
2758 DEPENDS=`echo $SOURCES` 2758 DEPENDS=`echo $SOURCES`
2759 for EXT in asm cc m c S; do 2759 for EXT in asm cc m c S; do
2760 OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'` 2760 OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'`
2761 DEPENDS=`echo "$DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.'$EXT',\\ 2761 DEPENDS=`echo "$DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT,\\\\
2762 $(objects)/\2.lo: \1/\2.'$EXT'\\ 2762 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
2763 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c $< -o $@,g'` 2763 \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
2764 done 2764 done
2765 2765
2766 VERSION_OBJECTS=`echo $VERSION_SOURCES` 2766 VERSION_OBJECTS=`echo $VERSION_SOURCES`
2767 VERSION_DEPENDS=`echo $VERSION_SOURCES` 2767 VERSION_DEPENDS=`echo $VERSION_SOURCES`
2768 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'` 2768 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
2769 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.rc,\\ 2769 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
2770 $(objects)/\2.o: \1/\2.rc\\ 2770 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
2771 \$(WINDRES) \$< \$@,g'` 2771 \\$(WINDRES) \\$< \\$@,g"`
2772 2772
2773 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` 2773 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
2774 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` 2774 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
2775 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` 2775 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
2776 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.c,\\ 2776 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
2777 $(objects)/\2.o: \1/\2.c\\ 2777 \\$(objects)/\\2.o: \\1/\\2.c\\\\
2778 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c $< -o $@,g'` 2778 \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
2779 2779
2780 # Set runtime shared library paths as needed 2780 # Set runtime shared library paths as needed
2781 2781
2782 if test "x$enable_rpath" = "xyes"; then 2782 if test "x$enable_rpath" = "xyes"; then
2783 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then 2783 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then