configure.in 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_PREREQ(2.59)
  3. AC_INIT([libsample],[1.2.5],[vslavik@fastmail.fm])
  4. AC_CONFIG_SRCDIR([libsample.cpp])
  5. dnl ---------------------------------------------------------------------------
  6. dnl DEFINE CONFIGURE OPTIONS
  7. dnl ---------------------------------------------------------------------------
  8. dnl define all the wx-config related options
  9. dnl (i.e. --with-wxdir, --with-wx-config, --with-wx-prefix, --with-wx-exec-prefix)
  10. WX_CONFIG_OPTIONS
  11. dnl define all the wxpresets related options
  12. WX_STANDARD_OPTIONS([debug,unicode,shared,toolkit,wxshared])
  13. dnl ---------------------------------------------------------------------------
  14. dnl CONFIGURE CHECKS
  15. dnl ---------------------------------------------------------------------------
  16. dnl these checks are required by bakefile:
  17. AC_CANONICAL_SYSTEM
  18. AC_PROG_AWK
  19. AC_PROG_INSTALL
  20. AC_PROG_LN_S
  21. AC_PROG_RANLIB
  22. AC_PROG_CC
  23. AC_PROG_CXX
  24. AC_PROG_CXXCPP
  25. dnl we want to always have DEBUG==WX_DEBUG and UNICODE==WX_UNICODE
  26. WX_DEBUG=$DEBUG
  27. WX_UNICODE=$UNICODE
  28. dnl the following macros will search for the best matching wxWidgets build
  29. dnl (taking in count the values of the --enable-debug|unicode|shared and of
  30. dnl the --with-toolkit|wxshared options) and then set appropriately all the
  31. dnl WX_* options
  32. WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS
  33. WX_CONFIG_CHECK([2.8.0], [wxWin=1],,[core,base],[$WXCONFIG_FLAGS])
  34. WX_DETECT_STANDARD_OPTION_VALUES
  35. dnl here all WX_* option values are available for your own processing...
  36. dnl ---------------------------------------------------------------------------
  37. dnl CONFIGURE END
  38. dnl ---------------------------------------------------------------------------
  39. AC_BAKEFILE([m4_include(autoconf_inc.m4)])
  40. AC_CONFIG_FILES([Makefile])
  41. AC_OUTPUT
  42. dnl show a nice summary of the chosen build settings to the user
  43. WX_STANDARD_OPTIONS_SUMMARY_MSG_BEGIN
  44. WX_STANDARD_OPTIONS_SUMMARY_MSG_END