configure.in
changeset 5345 0202f62906ca
parent 5314 ead9bbbdcaf3
child 5389 24903690f48a
equal deleted inserted replaced
5344:94189aa89b54 5345:0202f62906ca
  2352     OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'`
  2352     OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'`
  2353     DEPENDS=`echo "$DEPENDS" | sed "s,^\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT\\$,\\\\
  2353     DEPENDS=`echo "$DEPENDS" | sed "s,^\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT\\$,\\\\
  2354 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  2354 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  2355 	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  2355 	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  2356 done
  2356 done
  2357 DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'`
       
  2358 
  2357 
  2359 VERSION_OBJECTS=`echo $VERSION_SOURCES`
  2358 VERSION_OBJECTS=`echo $VERSION_SOURCES`
  2360 VERSION_DEPENDS=`echo $VERSION_SOURCES`
  2359 VERSION_DEPENDS=`echo $VERSION_SOURCES`
  2361 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
  2360 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
  2362 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
  2361 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
  2363 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  2362 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  2364 	\\$(WINDRES) \\$< \\$@,g"`
  2363 	\\$(WINDRES) \\$< \\$@,g"`
  2365 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\\$,\\\\$,g'`
       
  2366 
  2364 
  2367 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  2365 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  2368 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  2366 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  2369 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
  2367 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
  2370 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
  2368 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
  2371 \\$(objects)/\\2.o: \\1/\\2.c\\\\
  2369 \\$(objects)/\\2.o: \\1/\\2.c\\\\
  2372 	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  2370 	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  2373 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed 's,\\$,\\\\$,g'`
       
  2374 
  2371 
  2375 # Set runtime shared library paths as needed
  2372 # Set runtime shared library paths as needed
  2376 
  2373 
  2377 if test "x$enable_rpath" = "xyes"; then
  2374 if test "x$enable_rpath" = "xyes"; then
  2378   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
  2375   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
  2429 AC_SUBST(EXTRA_CFLAGS)
  2426 AC_SUBST(EXTRA_CFLAGS)
  2430 AC_SUBST(BUILD_LDFLAGS)
  2427 AC_SUBST(BUILD_LDFLAGS)
  2431 AC_SUBST(EXTRA_LDFLAGS)
  2428 AC_SUBST(EXTRA_LDFLAGS)
  2432 AC_SUBST(WINDRES)
  2429 AC_SUBST(WINDRES)
  2433 
  2430 
  2434 AC_CONFIG_FILES([
  2431 cat >Makefile.rules <<__EOF__
  2435     Makefile sdl-config SDL.spec sdl.pc
       
  2436 ])
       
  2437 AC_CONFIG_COMMANDS([default],
       
  2438                    [cat >>Makefile <<__EOF__
       
  2439 
  2432 
  2440 # Build rules for objects
  2433 # Build rules for objects
  2441 -include \$(OBJECTS:.lo=.d)
  2434 -include \$(OBJECTS:.lo=.d)
       
  2435 
       
  2436 # Special dependency for SDL.c, since it depends on SDL_revision.h
       
  2437 $srcdir/src/SDL.c: update-revision
  2442 $DEPENDS
  2438 $DEPENDS
  2443 $VERSION_DEPENDS
  2439 $VERSION_DEPENDS
  2444 $SDLMAIN_DEPENDS
  2440 $SDLMAIN_DEPENDS
  2445 __EOF__ 
  2441 __EOF__
  2446 ], [
  2442 
  2447 DEPENDS="$DEPENDS"
  2443 AC_CONFIG_FILES([
  2448 VERSION_DEPENDS="$VERSION_DEPENDS"
  2444     Makefile:Makefile.in:Makefile.rules sdl-config SDL.spec sdl.pc
  2449 SDLMAIN_DEPENDS="$SDLMAIN_DEPENDS"
       
  2450 ])
  2445 ])
  2451 AC_OUTPUT
  2446 AC_OUTPUT