sdl-0001-use-correct-directfb-config.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [PATCH] configure.in: use correct directfb-config in version check
  2. The configure script has just checked for the correct directfb-config
  3. script, so also use it for the version check instead of whatever
  4. might be in the path.
  5. Also patch the generated configure, as it doesn't cleanly autoreconf.
  6. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  7. ---
  8. configure | 2 +-
  9. configure.in | 2 +-
  10. 2 files changed, 2 insertions(+), 2 deletions(-)
  11. Index: SDL-1.2.15/configure.in
  12. ===================================================================
  13. --- SDL-1.2.15.orig/configure.in
  14. +++ SDL-1.2.15/configure.in
  15. @@ -1276,7 +1276,7 @@
  16. else
  17. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  19. - set -- `directfb-config --version | sed 's/\./ /g'`
  20. + set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  21. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  22. if test $HAVE_VERSION -ge $NEED_VERSION; then
  23. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  24. Index: SDL-1.2.15/configure
  25. ===================================================================
  26. --- SDL-1.2.15.orig/configure
  27. +++ SDL-1.2.15/configure
  28. @@ -24958,7 +24958,7 @@
  29. else
  30. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  31. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  32. - set -- `directfb-config --version | sed 's/\./ /g'`
  33. + set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  34. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  35. if test $HAVE_VERSION -ge $NEED_VERSION; then
  36. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`