patch-configure 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --- bogofilter-1.2.2.orig/configure 2010-07-08 05:30:26.000000000 +0200
  2. +++ bogofilter-1.2.2/configure 2010-11-09 23:29:25.894996376 +0100
  3. @@ -10284,93 +10284,7 @@ $as_echo "$LIBDB" >&6; }
  4. saveLIBS="$LIBS"
  5. LIBS="$LIBS $LIBDB"
  6. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a program can be linked against Berkeley DB and run" >&5
  7. -$as_echo_n "checking if a program can be linked against Berkeley DB and run... " >&6; }
  8. - if test "$cross_compiling" = yes; then :
  9. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11. -as_fn_error "cannot run test program while cross compiling
  12. -See \`config.log' for more details." "$LINENO" 5; }
  13. -else
  14. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15. -/* end confdefs.h. */
  16. -
  17. -#ifdef HAVE_INTTYPES_H
  18. -#include <inttypes.h>
  19. -#endif
  20. -#include <db.h>
  21. -
  22. -int
  23. -main ()
  24. -{
  25. -
  26. -return 0;
  27. -
  28. - ;
  29. - return 0;
  30. -}
  31. -_ACEOF
  32. -if ac_fn_c_try_run "$LINENO"; then :
  33. -
  34. -else
  35. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36. -$as_echo "no" >&6; }
  37. - as_fn_error "Cannot run a program linked against libdb.
  38. -Did you adjust your library search path to include your libdb?" "$LINENO" 5
  39. -fi
  40. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  41. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  42. -fi
  43. -
  44. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  45. -$as_echo "yes" >&6; }
  46. -
  47. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB header and library versions match" >&5
  48. -$as_echo_n "checking if Berkeley DB header and library versions match... " >&6; }
  49. - rm -r -f bfadtestdir
  50. - mkdir bfadtestdir
  51. - if test "$cross_compiling" = yes; then :
  52. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  53. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  54. -as_fn_error "cannot run test program while cross compiling
  55. -See \`config.log' for more details." "$LINENO" 5; }
  56. -else
  57. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58. -/* end confdefs.h. */
  59. -
  60. - #include <stdlib.h>
  61. - #include <stdio.h>
  62. -#ifdef HAVE_INTTYPES_H
  63. -#include <inttypes.h>
  64. -#endif
  65. - #include <db.h>
  66. -int
  67. -main ()
  68. -{
  69. -
  70. - int maj, min;
  71. - (void)db_version(&maj, &min, 0);
  72. - (void)fprintf(stderr, "headers: %d.%d, library: %d.%d\n",
  73. - DB_VERSION_MAJOR, DB_VERSION_MINOR, maj, min);
  74. - if (maj != DB_VERSION_MAJOR) exit(1);
  75. - if (min != DB_VERSION_MINOR) exit(1);
  76. - exit(0);
  77. -
  78. - ;
  79. - return 0;
  80. -}
  81. -_ACEOF
  82. -if ac_fn_c_try_run "$LINENO"; then :
  83. -
  84. -else
  85. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  86. -$as_echo "no" >&6; }
  87. - as_fn_error "db.h header file and db library version do not match." "$LINENO" 5
  88. -fi
  89. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  90. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  91. -fi
  92. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  93. $as_echo "yes" >&6; }