configure.in
changeset 5345 0202f62906ca
parent 5314 ead9bbbdcaf3
child 5389 24903690f48a
     1.1 --- a/configure.in	Fri Feb 18 09:30:09 2011 -0800
     1.2 +++ b/configure.in	Fri Feb 18 11:19:34 2011 -0800
     1.3 @@ -2354,7 +2354,6 @@
     1.4  \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
     1.5  	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     1.6  done
     1.7 -DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'`
     1.8  
     1.9  VERSION_OBJECTS=`echo $VERSION_SOURCES`
    1.10  VERSION_DEPENDS=`echo $VERSION_SOURCES`
    1.11 @@ -2362,7 +2361,6 @@
    1.12  VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
    1.13  \\$(objects)/\\2.o: \\1/\\2.rc\\\\
    1.14  	\\$(WINDRES) \\$< \\$@,g"`
    1.15 -VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\\$,\\\\$,g'`
    1.16  
    1.17  SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
    1.18  SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
    1.19 @@ -2370,7 +2368,6 @@
    1.20  SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
    1.21  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    1.22  	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    1.23 -SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed 's,\\$,\\\\$,g'`
    1.24  
    1.25  # Set runtime shared library paths as needed
    1.26  
    1.27 @@ -2431,21 +2428,19 @@
    1.28  AC_SUBST(EXTRA_LDFLAGS)
    1.29  AC_SUBST(WINDRES)
    1.30  
    1.31 -AC_CONFIG_FILES([
    1.32 -    Makefile sdl-config SDL.spec sdl.pc
    1.33 -])
    1.34 -AC_CONFIG_COMMANDS([default],
    1.35 -                   [cat >>Makefile <<__EOF__
    1.36 +cat >Makefile.rules <<__EOF__
    1.37  
    1.38  # Build rules for objects
    1.39  -include \$(OBJECTS:.lo=.d)
    1.40 +
    1.41 +# Special dependency for SDL.c, since it depends on SDL_revision.h
    1.42 +$srcdir/src/SDL.c: update-revision
    1.43  $DEPENDS
    1.44  $VERSION_DEPENDS
    1.45  $SDLMAIN_DEPENDS
    1.46 -__EOF__ 
    1.47 -], [
    1.48 -DEPENDS="$DEPENDS"
    1.49 -VERSION_DEPENDS="$VERSION_DEPENDS"
    1.50 -SDLMAIN_DEPENDS="$SDLMAIN_DEPENDS"
    1.51 +__EOF__
    1.52 +
    1.53 +AC_CONFIG_FILES([
    1.54 +    Makefile:Makefile.in:Makefile.rules sdl-config SDL.spec sdl.pc
    1.55  ])
    1.56  AC_OUTPUT