options.m4
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:4k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. dnl $Id: options.m4,v 11.10 2000/07/07 15:50:39 bostic Exp $
  2. dnl Process user-specified options.
  3. AC_DEFUN(AM_OPTIONS_SET, [
  4. AC_MSG_CHECKING(if --disable-bigfile option specified)
  5. AC_ARG_ENABLE(bigfile,
  6. [  --disable-bigfile       Disable AIX, HP/UX, Solaris big files.],
  7. [db_cv_bigfile="yes"], [db_cv_bigfile="no"])
  8. AC_MSG_RESULT($db_cv_bigfile)
  9. AC_MSG_CHECKING(if --enable-compat185 option specified)
  10. AC_ARG_ENABLE(compat185,
  11. [  --enable-compat185      Build DB 1.85 compatibility API.],
  12. [db_cv_compat185="$enable_compat185"], [db_cv_compat185="no"])
  13. AC_MSG_RESULT($db_cv_compat185)
  14. AC_MSG_CHECKING(if --enable-cxx option specified)
  15. AC_ARG_ENABLE(cxx,
  16. [  --enable-cxx            Build C++ API.],
  17. [db_cv_cxx="$enable_cxx"], [db_cv_cxx="no"])
  18. AC_MSG_RESULT($db_cv_cxx)
  19. AC_MSG_CHECKING(if --enable-debug option specified)
  20. AC_ARG_ENABLE(debug,
  21. [  --enable-debug          Build a debugging version.],
  22. [db_cv_debug="$enable_debug"], [db_cv_debug="no"])
  23. AC_MSG_RESULT($db_cv_debug)
  24. AC_MSG_CHECKING(if --enable-debug_rop option specified)
  25. AC_ARG_ENABLE(debug_rop,
  26. [  --enable-debug_rop      Build a version that logs read operations.],
  27. [db_cv_debug_rop="$enable_debug_rop"], [db_cv_debug_rop="no"])
  28. AC_MSG_RESULT($db_cv_debug_rop)
  29. AC_MSG_CHECKING(if --enable-debug_wop option specified)
  30. AC_ARG_ENABLE(debug_wop,
  31. [  --enable-debug_wop      Build a version that logs write operations.],
  32. [db_cv_debug_wop="$enable_debug_wop"], [db_cv_debug_wop="no"])
  33. AC_MSG_RESULT($db_cv_debug_wop)
  34. AC_MSG_CHECKING(if --enable-diagnostic option specified)
  35. AC_ARG_ENABLE(diagnostic,
  36. [  --enable-diagnostic     Build a version with run-time diagnostics.],
  37. [db_cv_diagnostic="$enable_diagnostic"], [db_cv_diagnostic="no"])
  38. AC_MSG_RESULT($db_cv_diagnostic)
  39. AC_MSG_CHECKING(if --enable-dump185 option specified)
  40. AC_ARG_ENABLE(dump185,
  41. [  --enable-dump185        Build db_dump185(1) to dump 1.85 databases.],
  42. [db_cv_dump185="$enable_dump185"], [db_cv_dump185="no"])
  43. AC_MSG_RESULT($db_cv_dump185)
  44. AC_MSG_CHECKING(if --enable-dynamic option specified)
  45. AC_ARG_ENABLE(dynamic,
  46. [  --enable-dynamic        Build with dynamic libraries.],
  47. [db_cv_dynamic="$enable_dynamic"], [db_cv_dynamic="no"])
  48. AC_MSG_RESULT($db_cv_dynamic)
  49. AC_MSG_CHECKING(if --enable-java option specified)
  50. AC_ARG_ENABLE(java,
  51. [  --enable-java           Build Java API.],
  52. [db_cv_java="$enable_java"], [db_cv_java="no"])
  53. AC_MSG_RESULT($db_cv_java)
  54. AC_MSG_CHECKING(if --enable-posixmutexes option specified)
  55. AC_ARG_ENABLE(posixmutexes,
  56. [  --enable-posixmutexes   Force use of POSIX standard mutexes.],
  57. [db_cv_posixmutexes="$enable_posixmutexes"], [db_cv_posixmutexes="no"])
  58. AC_MSG_RESULT($db_cv_posixmutexes)
  59. AC_MSG_CHECKING(if --enable-rpc option specified)
  60. AC_ARG_ENABLE(rpc,
  61. [  --enable-rpc            Build RPC client/server.],
  62. [db_cv_rpc="$enable_rpc"], [db_cv_rpc="no"])
  63. AC_MSG_RESULT($db_cv_rpc)
  64. dnl --enable-shared is an alias for --enable-dynamic. We support it for
  65. dnl compatibility with other applications, e.g., Tcl.
  66. AC_MSG_CHECKING(if --enable-shared option specified)
  67. AC_ARG_ENABLE(shared,
  68. [  --enable-shared         Build with dynamic libraries.],
  69. [db_cv_shared="$enable_shared"], [db_cv_shared="no"])
  70. AC_MSG_RESULT($db_cv_shared)
  71. if test "$db_cv_shared" != "no"; then
  72. db_cv_dynamic="yes"
  73. fi
  74. AC_MSG_CHECKING(if --enable-tcl option specified)
  75. AC_ARG_ENABLE(tcl,
  76. [  --enable-tcl            Build Tcl API.],
  77. [db_cv_tcl="$enable_tcl"], [db_cv_tcl="no"])
  78. AC_MSG_RESULT($db_cv_tcl)
  79. AC_MSG_CHECKING(if --enable-test option specified)
  80. AC_ARG_ENABLE(test,
  81. [  --enable-test           Configure to run the test suite.],
  82. [db_cv_test="$enable_test"], [db_cv_test="no"])
  83. AC_MSG_RESULT($db_cv_test)
  84. AC_MSG_CHECKING(if --enable-uimutexes option specified)
  85. AC_ARG_ENABLE(uimutexes,
  86. [  --enable-uimutexes      Force use of Unix International mutexes.],
  87. [db_cv_uimutexes="$enable_uimutexes"], [db_cv_uimutexes="no"])
  88. AC_MSG_RESULT($db_cv_uimutexes)
  89. AC_MSG_CHECKING(if --enable-umrw option specified)
  90. AC_ARG_ENABLE(umrw,
  91. [  --enable-umrw           Mask harmless unitialized memory read/writes.],
  92. [db_cv_umrw="$enable_umrw"], [db_cv_umrw="no"])
  93. AC_MSG_RESULT($db_cv_umrw)
  94. AC_MSG_CHECKING([if --with-tcl option specified])
  95. AC_ARG_WITH(tcl,
  96. [  --with-tcl=DIR          Directory location of tclConfig.sh.],
  97. with_tclconfig=${withval}, with_tclconfig="no")
  98. AC_MSG_RESULT($with_tclconfig)
  99. if test "$with_tclconfig" != "no"; then
  100. db_cv_tcl="yes"
  101. fi
  102. ])dnl