Commit Graph

337 Commits

Author SHA1 Message Date
Albrecht Schlosser
00dd296ff2 Bump version numbers for next minor release: FLTK 1.4.0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-30 00:56:42 +00:00
Albrecht Schlosser
7728bf91e6 Prepare build configuration variables in Makefiles.
Introduce new Makefile variables BUILD_xxx in makeinclude file, generated
by configure. These variables may be used to select files to be compiled,
dependent on the build configuration.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-28 23:57:50 +00:00
Albrecht Schlosser
17c4817592 Add configure and CMake checks for X11/Xregion.h.
Configure and CMake now both check if X11/Xregion.h exists on the
build system and set HAVE_X11_XREGION_H in config.h accordingly.

src/Fl_Pixmap.cxx: modified to use the configure test as proposed by Manolo
in fltk.coredev on Dec 13 2015 in thread "Using X11 backend on OS X".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-30 12:10:15 +00:00
Manolo Gouy
ca491166b9 Better description of --enable-x11 by configure --help
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-15 17:43:50 +00:00
Manolo Gouy
872d20ca61 Allow use of ./configure -enable-x11 on the Mac OS platform
to create an X11-using version of FLTK.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-15 16:53:52 +00:00
Albrecht Schlosser
fb172ecd3c Fix fltk-config for CMake build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-12 22:32:30 +00:00
Albrecht Schlosser
9adb181156 Make FL_ABI_VERSION configurable (STR #3161).
This commit adds the configure option --with-abiversion and the CMake option
OPTION_ABI_VERSION. Both options can be set e.g. to 10304 to build with
FL_ABI_VERSION = 10304 (FLTK 1.3.4).

For IDE builds there are new files ide/<IDE-NAME>/FL/abi-version.h that
can be edited to change the ABI version before the FLTK lib is built.
Note that this file MUST be copied to the include/FL directory if the
IDE-built library is to be installed.

The default is FL_ABI_VERSION = FL_MAJOR*10000 + FL_MINOR*100 + 0, i.e.
10300 for all FLTK 1.3.x versions to keep binary compatibility (ABI).

Todo: more tests and more documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-12 19:23:55 +00:00
Manolo Gouy
ca85f4a21e No longer use "-framework AGL" link arguments on the mac with OpenGL apps.
This change in configure.in affects also fltk-config.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10745 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-09 07:51:55 +00:00
Albrecht Schlosser
f41be78153 Rename confusing configure and Makefile (makeinclude) variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-25 20:06:54 +00:00
Lauri Kasanen
a6c4b29a18 Detect XRender support
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 11:07:00 +00:00
Albrecht Schlosser
0f45a7adf5 [Version 1.3.4] Update version numbers - hopefully complete.
Note to devs: if I missed something, please mark follow-up commits with
[Version 1.3.4] so we can find the necessary commits for version updates.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10 01:41:55 +00:00
Albrecht Schlosser
1a69ba5ae9 Update configure and makeinclude.in to get rid of version numbers in Makefiles.
configure is used to set all needed version numbers in makeinclude.
makeinclude is included in Makefile's and the version numbers are used
to build the correct shared libs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-07 18:37:56 +00:00
Albrecht Schlosser
3fe71d118c Add linker option -Wl,-no-undefined if supported (with configure check).
Experimental. Thanks to Greg for finding this option.

If this option is supported by the linker, it is used when linking shared
libraries like libfltk_gl.so. With this option linking of the shared library
fails instead of postponing failure to linking programs with this library,
if any undefined references exist in this library. See STR #3191.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-17 12:47:07 +00:00
Albrecht Schlosser
5772a1987c Cosmetic changes only in configure.in.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10418 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30 14:07:58 +00:00
Albrecht Schlosser
be19d2c3d6 Fix a regression introduced in svn r10344 in autoconf/configure builds.
Shared library sizes were about 4x the usual size, because makeinclude
and fltk-config always used "-g -O2", i.e. debugging compiler options.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-28 18:12:47 +00:00
Albrecht Schlosser
c2ede5bb26 Missing version number update
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-05 01:23:51 +00:00
Albrecht Schlosser
8a3c43da55 Remove unused htmldoc from autoconf configure options.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-04 22:32:34 +00:00
Albrecht Schlosser
529aaf08f7 Configure enhancements for Cygwin (STR #2974).
Remove obsolete -mno-cygwin option for Cygwin -> MinGW/WIN32 compilation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-28 20:48:00 +00:00
Lauri Kasanen
95ba2900f3 Use the -fvisibility checks properly; needed to move ac_prog_cc and _cxx up in the file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 19:44:27 +00:00
Lauri Kasanen
7944cc9a57 Revert 10243, it broke the build for others.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 17:26:28 +00:00
Lauri Kasanen
1af2035e91 Check for compiler support of -fvisibility and -fvisibility-inlines-hidden
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 11:33:36 +00:00
Lauri Kasanen
5613941a28 Include Xft results in fltk-config CFLAGS. STR #2893
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10238 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 13:25:55 +00:00
Lauri Kasanen
64dd5df141 Enable symbol visibility on Linux, bringing a shared libfltk on par with Windows.
Also drops the size of libfltk.so nicely.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10236 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:29:48 +00:00
Lauri Kasanen
3113727cc9 Use symbolic and sectioned builds if supported by the toolchain.
These help both shared lib size, as well as app size when statically linking. STR #3097


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:08:02 +00:00
Pierre Ossman
332dc1b7ac Add method to set any custom cursor, based on a Fl_RGB_Image object.
Also change our fallback cursors to use this method, so that fallback
cursors are handled in a platform independent manner. STR #2660.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:17:57 +00:00
Pierre Ossman
e1df29b852 Stop relying on uname and instead ask autoconf what platform
we are building for. This makes cross compiling things a lot
easier.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 09:10:04 +00:00
Pierre Ossman
1d6cc80d59 STR 2636. Add ability to get notifications whenever the
clipboard changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 12:54:40 +00:00
Albrecht Schlosser
e9767cce34 Removed autoconf/configure and CMake tests and defines for
unused function strtoll() [resolves one part of STR #2965].


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9923 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-22 10:40:58 +00:00
Ian MacArthur
f37c9a1b6f Doh! Forgot to bump the copyright year...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 12:50:29 +00:00
Ian MacArthur
f40aece7ee I just noticed that when 1.3.2 was released, the FL_PATCH_VERSION in configure.in was left at 1 rather than being bumped to 2.
Though the FL_PATCH_VERSION in Enumerations.H seems to be fine, I think.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9796 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 12:48:29 +00:00
Matthias Melcher
8701434312 Upgrade version number to 1.3.1
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-06 21:13:54 +00:00
Fabien Costantini
822bc272fc Fixed linux 64 gcc 4.6.1 compilation problems
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 02:45:09 +00:00
Albrecht Schlosser
91ce609fc7 simplify MinGW install directory check.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-07 11:56:09 +00:00
Manolo Gouy
f309c395fc STR#2600 again: under X11, dynamically load the libXrandr shared library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-04 09:21:47 +00:00
Manolo Gouy
9bdc310346 Fix STR#2600 : screens configuration changes are now detected under all platforms.
Requires the RandR X extension.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 14:46:08 +00:00
Greg Ercolano
4f4a8fc3c7 Modifications to all LGPL headers for STR #2685.
(to clarify static exception LGPL by changing license references)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 04:49:30 +00:00
Manolo Gouy
937ddb60c1 Fix STR #2582 (Mac OS): The problem: under Mac OS, file config.h can be used with distinct
architectures when using configure --with-archflags option, thus file config.h should not contain
architecture-dependent definitions.
The fix: 1) don't use autoconf's endianness determination procedure because it can't give a result
that fits both big and little endian architectures.
2) have config.h include a mac-specific file under Mac OS.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-06 16:54:58 +00:00
Manolo Gouy
60bb67ba0e Fix the #define U64 part of STR #2582: don't define it for Mac OS because its value
varies with architecture.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-03 12:10:43 +00:00
Manolo Gouy
b693eac483 Fix STR #2516: under MSys, the FLTK_DOCDIR config.h variable did not allow
fluid to find its help files even if they are correctly installed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-25 22:19:09 +00:00
Manolo Gouy
8d9f90e416 Mac OS only: Added the architecture flags to the dynamic library-creating command
in configure.in. Also, applied suggestion in "Fixing configure.in for OSX universal builds"
from the fltk.development forum that architecture flags are not transmitted from
configure to the fltk-config script. This brings 2 benefits:
- A universal library can be prepared, and then used to build applications of any sort
of architectures.
- Makefiles using non-Apple compilers that don't know the -arch option can call fltk-config.
This new behavior in now made clear in file README.OSX.txt.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-24 10:27:33 +00:00
Albrecht Schlosser
eb0b154ffd Fix for STR #2313 (SunOS scandir exception) and avoid double check of
scandir() if the POSIX compatible header was found.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-16 12:33:56 +00:00
Albrecht Schlosser
884aba6086 Fix threads configuration on Windows (Cygwin/MinGW), so that we don't
try to find libpthread, unless we use Cygwin with the Cygwin dll,
since Windows always uses native threads.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-14 18:11:15 +00:00
Albrecht Schlosser
97bafa2e04 More cross-compiling features in configure: using AC_PATH_TOOL instead of
AC_PATH_PROG for ar and windres to get the cross-tools' paths.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07 14:30:30 +00:00
Albrecht Schlosser
84d0db1318 Removed superfluous -mno-cygwin from MinGW builds and corrected spelling
of "MinGW" and "Cygwin", where appropriate.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:46:40 +00:00
yuri
1b146a4837 wix find windress when using crosscompiler
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-23 11:14:21 +00:00
Manolo Gouy
bc509d32eb Fix STR #2504 (first part). Replaced HAVE _CAIRO by FLTK_HAVE_CAIRO and USE_CAIRO
by FLTK_USE_CAIRO everywhere.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 10:24:58 +00:00
Manolo Gouy
874bca74f5 Mac OS X: removed all uses of Carbon (except for older OS versions) and re-organized
text input around the NSTextInput protocol.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-03 16:50:34 +00:00
Albrecht Schlosser
c4be7d9cd7 Changed default for configure option --with-links for common misspellings
on case sensitive file systems like Unix/Linux, as discussed some time ago.
The new default is --without-links.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-30 15:05:53 +00:00
Manolo Gouy
dbb7be0fee Mac OS X: removed dependency from AudioToolbox.framework by calling NSBeep() from Cocoa.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-29 11:33:42 +00:00
Manolo Gouy
f3c7efc8d2 The 3 objective-c++ files used for the Mac OS X support are no longer included
by other files but added to the list of source files to be compiled
for Mac OS X only. Support files for autoconf/configure/make, CMake and Xcode
are also modified accordingly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-17 10:43:41 +00:00