autoreconf.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Description: fix autotools input for compatibility with recent autoconf
  2. It is not possible to regenerate the blt configure script using current
  3. versions of autoconf. Update for recent syntax so that we can get a modern
  4. (and cross-build-friendly) configure script at build.
  5. Author: Helmut Grohne <helmut@subdivi.de>
  6. Bug-Debian: http://bugs.debian.org/772590
  7. --- a/aclocal.m4
  8. +++ b/aclocal.m4
  9. @@ -12,7 +12,7 @@
  10. cat > conftest.$ac_ext <<EOF
  11. [#]line __oline__ "configure"
  12. #include "confdefs.h"
  13. -ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
  14. +AC_LANG_CASE([C++], [#ifdef __cplusplus
  15. extern "C" void exit(int);
  16. #endif
  17. ])dnl
  18. --- a/configure.in
  19. +++ b/configure.in
  20. @@ -127,9 +127,9 @@
  21. AC_CACHE_VAL(blt_cv_prog_cc, blt_cv_prog_cc=$CC)
  22. AC_SUBST(CC)
  23. AC_PROG_CPP
  24. -if test "x${GCC}" != "x" ; then
  25. +AS_IF([test "x${GCC}" != "x"],[
  26. blt_have_gcc="yes"
  27. -else
  28. +],[
  29. AC_MSG_CHECKING([if C compiler is really gcc])
  30. AC_EGREP_CPP(_cc_is_gcc_, [
  31. #ifdef __GNUC__
  32. @@ -137,7 +137,7 @@
  33. #endif
  34. ], [blt_have_gcc=yes], [blt_have_gcc=no])
  35. AC_MSG_RESULT([$blt_have_gcc])
  36. -fi
  37. +])
  38. #
  39. # CFLAGS search order