Commit Graph

67 Commits

Author SHA1 Message Date
Vadim Zeitlin
a7ae3de703 Don't accept nonsensical --without-<toolkit> options in configure
Only --with-<toolkit> options make sense, something like --without-x11
couldn't possibly be useful and was actually actively harmful as it set
wxUSE_UNIVERSAL to 1 as a side effect.

Closes #2306.
2017-05-27 19:03:32 +02:00
ARATA Mizuki
32666e8d4f Remove feature test for HAVE_EXPLICIT 2016-09-14 18:45:12 +09:00
Vadim Zeitlin
81d7f56986 Don't show checks for command line options to make configure less verbose
The results of the checks for the command line options are not useful to show
as presumably the user already knows which options were used for invoking
configure, and so the results of these checks are known as well (with the only
exception of --with-xxx options when configure detects whether to use the
system or the built-in version of the library on its own, but we already
summarize the results of these checks at the end anyhow).

Just don't flood the user with all the messages about checking this and do our
job silently.
2016-02-06 00:16:10 +01:00
Vadim Zeitlin
bdc5c6e628 Add --disable-sys-libs configure option.
This allows to disable the use of all system libraries with a single option
instead of having to use --with-{lib{png,jpeg,tiff},regex,zlib,expat}=builtin
or similar.

This is especially useful under OS X where we want to avoid the dependencies
on any locally installed homebrew or similar libraries.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-07-24 11:34:14 +00:00
Vadim Zeitlin
78de4fe291 Remove configure test for override keyword.
Detect its support in the code by testing __cplusplus value and using specific
checks for MSVC and Clang as configure detects it as being available when
using recent g++ versions in non-C++11 mode, which do support this keyword but
warn when it is used without -std={gnu,c}++11 option, which makes actually
using it a bad idea in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-20 15:49:07 +00:00
Vadim Zeitlin
33ad33d447 Add wxOVERRIDE and use it in common and wxOSX code.
Make overriding virtual methods more explicit and enable additional checks
provided by C++11 compilers when "override" is used.

Closes #16100.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-20 13:26:28 +00:00
Vadim Zeitlin
3f66f6a5b3 Remove all lines containing cvs/svn "$Id$" keyword.
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.

If nothing else, this will make an eventual transition to Git simpler.

Closes #14487.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Vadim Zeitlin
76ff3d06f5 No changes, just simplifications to configure code.
Implicitly use SEARCH_LIB in WX_PATH_FIND_LIBRARIES() and WX_FIND_LIB() macros
to avoid having to pass it to them explicitly every time.

Closes #13601.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-27 22:48:50 +00:00
Vadim Zeitlin
d0260bd894 Add WX_FIND_LIB() function to simplify testing for libraries in configure.
No real changes in behaviour but the new WX_FIND_LIB() function can now be
used to test for any library.

Closes #13375.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-26 23:20:19 +00:00
Vadim Zeitlin
218116bd0a No changes, just fix some typos in acinclude.m4 comments.
See #13375.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-26 23:20:13 +00:00
Dimitri Schoolwerth
4c51a665c6 Fixed various typos.
Applied patch by snowleopard2 fixing a bunch of typos such as misspellings and double words in the documentation. Combined the patch with some local queued typos waiting to be committed as well as adding new typo fixes inspired by the patch.

Function names with American spelling were not changed nor was third-party code touched. The only code changes involve some changes in strings that are translated ("Can not" -> "Cannot").

Closes #13063 (again).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-22 14:17:38 +00:00
Paul Cornett
e4e265ebf6 remove some extraneous semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 17:20:31 +00:00
Vadim Zeitlin
ee4f5418ff Don't use excessive quoting with AC_DEFINE_UNQUOTED in WX_CHECK_FUNCS.
This provokes warnings from autoconf 2.65 and seems to be unnecessary even
with the previous versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-17 22:30:22 +00:00
Vadim Zeitlin
7ac0e38e96 fix output of WX_ARG_DISABLE() for options which can have values other than yes/no (e.g. auto, as for wxUSE_COMPILER_TLS)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 23:51:57 +00:00
Vadim Zeitlin
4c1d5d5ae2 remove tests for bool and {const,static,reinterpret}_cast in configure and wx/defs.h, all supported compilers have them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:16:09 +00:00
Vadim Zeitlin
8d7a7fe2b1 remove support for configarg.cache, use config.status or extract the last used configure command line from config.log instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-20 22:39:54 +00:00
Paul Cornett
1ad9ba1462 fix HAVE_ macros not being converted to uppercase on Solaris
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-20 02:06:04 +00:00
Vadim Zeitlin
8630a814ce preserve the arguments read from configarg.cache in it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 23:48:30 +00:00
Vadim Zeitlin
1c2aa6f237 fix caching of configure arguments broken by one of the previous commits (all options got saved in the cache file, not just the ones explicitly specified)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-23 21:59:56 +00:00
Vadim Zeitlin
8743ec79b7 corrected (and simplified) configarg.cache updating broken by last changes to WX_ARG_WITH/ENABLE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-21 11:15:38 +00:00
David Elliott
1f7e12cc26 Restore AC_CHECK_HEADERS in preference to AC_CHECK_HEADER so that the HAVE_*
defines will be generated when needed.  This fixes breakage caused by 44703.
Only usage where HAVE_* macro is in setup.h.in or was used by configure
itself (e.g. HAVE_X11_XLIB_H) is changed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-20 17:59:45 +00:00
Vadim Zeitlin
47124ca667 fix WX_ARG_WITH behaviour when it's used before wxUSE_ALL_FEATURES is defined, as for --without-subdirs option
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-16 16:18:41 +00:00
Vadim Zeitlin
d970f7d5cb allow using dashes in the names of --enable/with options used with WX_ARG_XXX macros and renamed --disable-all_features to --disable-all-features
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-14 18:12:32 +00:00
Vadim Zeitlin
b7ed9e10d3 fixed a bug in a test (there should be a space after -z)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-11 21:14:32 +00:00
Vadim Zeitlin
6e198e97ec Rewrote configure --enable/with options handling:
1. There is no more need to set DEFAULT_wxUSE_XXX for all options (although
   it's still taken into account if it is set), use WX_ARG_DISABLE/WITHOUT for
   the options which are enabled by default instead (and WX_ARG_ENABLE/WITH
   for those which are disabled): this makes configure messages more
   understandable (this closes bug 1038676)
2. Added --disable-all-features option which allows to disable everything
   which can be disabled at once in order to build the absolutely minimal
   wx library
3. General cleanup 



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-11 20:03:11 +00:00
Václav Slavík
dc6923a52c fixed configarg.cache code to correctly handle multiple options with the same prefix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 14:42:46 +00:00
Václav Slavík
ca4c9b7e56 enable UTF8 build for wxGTK2 and wxDFB by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 08:15:20 +00:00
Paul Cornett
6e7b8bcbd7 add 4th parameter to AC_CHECK_HEADER to skip preprocessor check
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-09 17:57:21 +00:00
Vadim Zeitlin
2dbd07cb7a don't create version-script file if it's not used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 12:08:51 +00:00
Vadim Zeitlin
077c78808f don't use version script under cygwin/mingw32, it's useless and breaks the link after latest autoconf-2.60-related bakefile 0.2.1 changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 12:03:54 +00:00
Michael Wetherell
040b34976e Add WX_CHECK_FUNCS (instead of WX_CHECK_DECLS). It checks for functions in
both headers and libs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-28 07:48:26 +00:00
Michael Wetherell
0f5ba0fb0c Revert last commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-22 21:47:09 +00:00
Michael Wetherell
5acfd58da0 Add WX_CHECK_DECLS macro and try it out on strtok_r. Otherwise the test for
strtok_r succeeds on Minix though the function is not available.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-22 21:15:21 +00:00
Michael Wetherell
9576853579 Add parameter to the --enable-universal_binary option for the path to the SDK.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-10 13:38:23 +00:00
Vadim Zeitlin
1c14217db4 added --without-subdirs option to speed up configure when you only need to build the main library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-03 18:19:10 +00:00
Michael Wetherell
c5b6251927 Revert previous commit for fear that 'test -h' may not work everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-19 20:16:19 +00:00
Michael Wetherell
0feb044436 Allow WX_PATH_FIND_INCLUDES and WX_PATH_FIND_LIBRARIES to accept symlinks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-19 19:57:41 +00:00
Michael Wetherell
c5044ee808 Change so that WX_PATH_FIND_LIBRARIES doesn't always check /usr/lib, /usr/lib32, /usr/lib/64 and /usr/lib64
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-19 19:50:01 +00:00
Vadim Zeitlin
e7272c0856 finally really fixes IRIX build:
- determine the name of the standard libraries directory (lib, lib32, lib64
   or lib/64) and use it to find other standard libraries
 - look in default libraries locations after checking the other ones, not
   before


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 00:44:06 +00:00
Vadim Zeitlin
2296fe5018 check default library directories in WX_PATH_FIND_LIBRARIES; do *not* add default library paths to LDFLAGS (fixes IRIX build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-17 22:10:33 +00:00
Michael Wetherell
db35cc2cc3 Add dll.a to the extensions search for by WX_PATH_FIND_LIBRARIES, for the
benefit of Cygwin


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-08 20:44:14 +00:00
Michael Wetherell
e5d4b470c9 Test for --version-script bug, known to be in at least ld 2.11.2 on netbsd and openbsd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-22 12:30:38 +00:00
David Elliott
6dcfc2898e Moved compiler detection macros to Bakefile.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-26 03:49:38 +00:00
David Elliott
0e6fa1d908 Fixed MW and XLC tests when using -C (cache) option with configure.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 17:47:33 +00:00
David Elliott
1d1af5eaf0 Make wxCocoa compile on Tiger.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 04:47:28 +00:00
Vadim Zeitlin
d1150ea70f added AC_CXX_DYNAMIC_CAST
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-03 10:39:46 +00:00
David Elliott
9273ffba9b Check for xlC and add -qunique to CXXFLAGS if we're using it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 08:16:00 +00:00
David Elliott
480ccd2194 Check to see if -ext o option is required to get compiler to write
foo.o instead of foo.c.o or foo.cc.o.  (MetroWerks)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 07:14:14 +00:00
Vadim Zeitlin
4eeb39ab7c added AC_CXX_REINTERPRET_CAST
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-28 21:44:59 +00:00
David Elliott
f497359506 Revert my id10t error.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 01:41:00 +00:00