Mercurial > dwindows
annotate configure.in @ 2819:a2fc275fa9bb
iOS: Fix major memory leaks when destroying widgets and windows.
More surely needs to be done regardig this, iOS doesn't destroy subviews as
expected when the parent is removed. I was expecting it to bring the
reference counts to 0 and starts destroying subviews... so I had to do this
manually. Boxes, ScrollBoxes, Spinbuttons and Comboboxes all now destroy
their subviews. Probably will need to do the same for splitbar, notebooks
and possibly others. However this stops the memory leak in Interface
Builder when recreating the interface. Also need to figure out why the
reference count is lower for DWButtons.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 02 Aug 2022 06:17:09 +0000 |
parents | d8db838d5616 |
children | 7479ab54e014 |
rev | line source |
---|---|
2403
20f05d3a9c64
Set the package name and version for autoconf. Remove reference to winmain.c.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2320
diff
changeset
|
1 AC_INIT(dwindows, 3.2) |
2160
07f1366a724c
Rename config.h(.in) to dwconfig.h and install it with dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2130
diff
changeset
|
2 AC_CONFIG_HEADER(dwconfig.h) |
3 | 3 |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
4 TARGET="dwindows" |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
5 TARGET2="dwcompat" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
6 AC_SUBST(TARGET) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
7 AC_SUBST(TARGET2) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
8 |
1109
1c24949cf853
Fixed a configure warning about datarootdir. (Just ignoring it for now)
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1095
diff
changeset
|
9 AC_DEFUN([AC_DATAROOTDIR_CHECKED]) |
1c24949cf853
Fixed a configure warning about datarootdir. (Just ignoring it for now)
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1095
diff
changeset
|
10 |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
11 DW_DIR=gtk3 |
662
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
644
diff
changeset
|
12 DW_SRC=dw.c |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
13 DW_DEFINE=__UNIX__ |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
412
diff
changeset
|
14 SHAREDFLAG=-shared |
434
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
430
diff
changeset
|
15 SOSUFFIX=so |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
16 LIBSUFFIX=a |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
17 LIBPREFIX=lib |
2111
37ce3e22ee1a
GTK: Split installdwtest into a separate make rule and don't enable it when
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2109
diff
changeset
|
18 INSTALL_TEST="installdwtest" |
3 | 19 INCLUDES="-I." |
20 | |
21 AC_PROG_CC | |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
22 AC_PROG_CXX |
3 | 23 |
24 AC_CHECK_PROG(MAKE, gmake, gmake) | |
25 if test x"$MAKE" = x; then | |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
26 AC_CHECK_PROG(MAKE, make, make) |
3 | 27 fi |
1174
f1cb493f97fd
Updated configure to check the presence of a .svn directory
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1162
diff
changeset
|
28 if test -d .svn; then |
f1cb493f97fd
Updated configure to check the presence of a .svn directory
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1162
diff
changeset
|
29 AC_CHECK_PROG(SVNVERSION, svnversion, svnversion) |
f1cb493f97fd
Updated configure to check the presence of a .svn directory
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1162
diff
changeset
|
30 fi |
1160
924c8087a755
Attempt to use the subversion revision number as the sub version number.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1151
diff
changeset
|
31 if test x"$SVNVERSION" = x; then |
924c8087a755
Attempt to use the subversion revision number as the sub version number.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1151
diff
changeset
|
32 SVNVERSION=0 |
924c8087a755
Attempt to use the subversion revision number as the sub version number.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1151
diff
changeset
|
33 else |
1162
52e3aa735bdb
Attempt to fix parsing errors with the double : separated
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1160
diff
changeset
|
34 SVNVERSION="\` $SVNVERSION -n . | cut -d \":\" -f 1 | tr -d MS \`" |
1160
924c8087a755
Attempt to use the subversion revision number as the sub version number.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1151
diff
changeset
|
35 fi |
3 | 36 |
37 AC_PROG_INSTALL | |
38 | |
39 AC_SUBST(MAKE) | |
40 | |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
41 dnl Checks for system |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
42 AC_CANONICAL_SYSTEM |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
43 |
1594
6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1351
diff
changeset
|
44 dnl ---------------------- check for '--with-dwcompat' switch ----------------- |
6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1351
diff
changeset
|
45 AC_ARG_WITH(dwcompat, |
1595
080b764e8982
Up version number to 2.3.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1594
diff
changeset
|
46 [ --with-dwcompat specify this to build the optional dwcompat library], |
1594
6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1351
diff
changeset
|
47 [with_dwcompat=$withval], |
6baf177f335c
Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1351
diff
changeset
|
48 [with_dwcompat=no], |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
49 ) |
1095
1ab93c92d3ea
Add --with-gtk3 switch to enable building with GTK+ 3.x on systems where
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1094
diff
changeset
|
50 |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
51 dnl ---------------------- check for '--with-gtk2' switch ----------------- |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
52 AC_ARG_WITH(gtk2, |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
53 [ --with-gtk2 specify this to build with GTK+ 2.x if available], |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
54 [with_gtk2=$withval], |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
55 [with_gtk2=no], |
1095
1ab93c92d3ea
Add --with-gtk3 switch to enable building with GTK+ 3.x on systems where
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1094
diff
changeset
|
56 ) |
1ab93c92d3ea
Add --with-gtk3 switch to enable building with GTK+ 3.x on systems where
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1094
diff
changeset
|
57 |
2264
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
58 dnl ---------------------- check for '--with-gtk4' switch ----------------- |
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
59 AC_ARG_WITH(gtk4, |
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
60 [ --with-gtk4 specify this to build with GTK+ 4.x if available], |
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
61 [with_gtk4=$withval], |
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
62 [with_gtk4=no], |
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
63 ) |
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
64 |
1913
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
65 dnl ---------------------- check for '--with-deprecated' switch ----------------- |
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
66 AC_ARG_WITH(deprecated, |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
67 [ --with-deprecated specify this to build with deprecated functions], |
1913
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
68 [with_deprecated=$withval], |
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
69 [with_deprecated=no], |
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
70 ) |
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
71 |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
72 dnl ---------------------- check for '--with-arch' switch ----------------- |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
73 AC_ARG_WITH(arch, |
2217
6cdb907755cb
Mac: Add "classic" as an optional architecure for 10.5-10.6 era fat binaries
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2204
diff
changeset
|
74 [ --with-arch specify MacOS architecture: one of modern, classic, 32bit, intel, arm, powerpc], |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
75 [with_arch=$withval], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
76 [with_arch=no], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
77 ) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
78 |
2130
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
79 dnl ---------------------- check for '--with-sdk' switch ----------------- |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
80 AC_ARG_WITH(sdk, |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
81 [ --with-sdk specify this to build with an alternate MacOS SDK location], |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
82 [with_sdk=$withval], |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
83 [with_sdk=no], |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
84 ) |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
85 |
2220
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
86 dnl ---------------------- check for '--with-minver' switch ----------------- |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
87 AC_ARG_WITH(minver, |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
88 [ --with-minver specify this to build with a minimum MacOS version], |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
89 [with_minver=$withval], |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
90 [with_minver=no], |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
91 ) |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
92 |
3 | 93 AC_HEADER_STDC |
94 AC_HEADER_DIRENT | |
95 AC_CHECK_HEADERS(unistd.h) | |
96 AC_CHECK_HEADERS(sys/stat.h) | |
97 | |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
98 AC_CHECK_FUNCS(pipe, AC_DEFINE(HAVE_PIPE,1,Determine whether we have the pipe function)) |
1151
641aa6941b2a
Test for vsnprintf seemed to be missing... readding it.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1109
diff
changeset
|
99 AC_CHECK_FUNCS(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,1,Determine whether we have the vsnprintf function)) |
3 | 100 |
101 AC_CHECK_FUNCS(connect) | |
102 if test x"$ac_cv_func_connect" = x"no"; then | |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
103 if test -z "$libsocket"; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
104 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket",) |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
105 fi |
3 | 106 |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
107 dnl this is for isc. need the nsl_s library as well. |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
108 if test -z "$libinet"; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
109 AC_CHECK_LIB(inet, socket, libnsl=1; LIBS="$LIBS -linet -lnsl_s",) |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
110 fi |
3 | 111 |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
112 if test -z "$libnsl"; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
113 AC_CHECK_LIB(nsl, gethostname, LIBS="$LIBS -lnsl",) |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
114 fi |
3 | 115 fi |
116 | |
117 AC_CHECK_LIB(sun, getpwnam, LIBS="$LIBS -lsun",) | |
118 AC_CHECK_LIB(dgc, inet_addr, LIBS="$LIBS -ldgc",) | |
119 AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",) | |
2061
966ef0eeed4f
GTK: Fix building on FreeBSD 12. Needs -lm and -lX11 added to LIBS.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2005
diff
changeset
|
120 AC_CHECK_LIB(m, atan2, LIBS="$LIBS -lm",) |
3 | 121 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
122 build_gtk="yes" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
123 check_pthreads="yes" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
124 PLATLIBS="" |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
125 SONAME="" |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
126 PLATCCFLAGS="-g -O2 -fPIC -Wall" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
127 ARFLAGS="cqs" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
128 |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
129 case "$target" in |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
130 *cygwin*) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
131 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
132 *mingw32) |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
133 AC_DEFINE(DW_USE_GTK) |
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
134 ;; |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
135 *linux*) |
1351
751f127439f7
Changes to the build system to no longer use the version during configure.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1333
diff
changeset
|
136 SONAME="-Wl,-soname,lib$TARGET.so.\$(DW_MAJOR_VERSION)" |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
137 ;; |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
138 *apple-darwin*) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
139 case "$with_arch" in |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
140 no) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
141 ARCH="" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
142 ;; |
2217
6cdb907755cb
Mac: Add "classic" as an optional architecure for 10.5-10.6 era fat binaries
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2204
diff
changeset
|
143 classic) |
6cdb907755cb
Mac: Add "classic" as an optional architecure for 10.5-10.6 era fat binaries
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2204
diff
changeset
|
144 ARCH="-arch ppc -arch x86_64 -arch i386" |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
145 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
146 32bit) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
147 ARCH="-arch ppc -arch i386" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
148 ;; |
1333
c993df7ffdd8
Add -headerpad_max_install_names to compiler switches for MacOS X.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1188
diff
changeset
|
149 intel) |
c993df7ffdd8
Add -headerpad_max_install_names to compiler switches for MacOS X.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1188
diff
changeset
|
150 ARCH="-arch i386 -arch x86_64" |
c993df7ffdd8
Add -headerpad_max_install_names to compiler switches for MacOS X.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1188
diff
changeset
|
151 ;; |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
152 powerpc) |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
153 ARCH="-arch ppc -arch ppc64" |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
154 ;; |
2129
2fb132a1d1fa
Mac: Add configure support for the new Apple ARM64 architecture by adding
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2128
diff
changeset
|
155 arm) |
2fb132a1d1fa
Mac: Add configure support for the new Apple ARM64 architecture by adding
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2128
diff
changeset
|
156 ARCH="-arch arm64" |
2fb132a1d1fa
Mac: Add configure support for the new Apple ARM64 architecture by adding
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2128
diff
changeset
|
157 ;; |
2185
2a52d9fc2de4
Mac: Added configure option --with-arch=modern that builds 64bit Intel and ARM.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2160
diff
changeset
|
158 modern) |
2a52d9fc2de4
Mac: Added configure option --with-arch=modern that builds 64bit Intel and ARM.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2160
diff
changeset
|
159 ARCH="-arch x86_64 -arch arm64" |
2a52d9fc2de4
Mac: Added configure option --with-arch=modern that builds 64bit Intel and ARM.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2160
diff
changeset
|
160 ;; |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
161 *) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
162 ARCH="-arch $with_arch" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
163 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
164 esac |
2130
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
165 case "$with_sdk" in |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
166 no) |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
167 ;; |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
168 *) |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
169 CC="$CC -isysroot$with_sdk" |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
170 ;; |
55c6587f269c
Mac: Add --with-sdk option to configure to specify an alternate MacOS SDK location.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2129
diff
changeset
|
171 esac |
2220
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
172 case "$with_minver" in |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
173 no) |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
174 ;; |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
175 *) |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
176 CFLAGS="$CFLAGS -mmacosx-version-min=$with_minver" |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
177 LIBS="$LIBS -mmacosx-version-min=$with_minver" |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
178 ;; |
4020bdb806dc
Mac: Add --with-minver option for specifying the minimum MacOS version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2217
diff
changeset
|
179 esac |
1333
c993df7ffdd8
Add -headerpad_max_install_names to compiler switches for MacOS X.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1188
diff
changeset
|
180 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
181 SOSUFFIX=dylib |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
182 DW_DIR=mac |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
183 DW_SRC=dw.m |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
184 DW_DEFINE=__MAC__ |
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
185 LIBS="$LIBS -framework Cocoa -framework WebKit" |
2087
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
186 save_libs="$LIBS" |
2128
17f5c1c199b4
Mac: Switch to using -weak_framework UserNotifications so binaries will work
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2111
diff
changeset
|
187 LIBS="$LIBS -weak_framework UserNotifications" |
2111
37ce3e22ee1a
GTK: Split installdwtest into a separate make rule and don't enable it when
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2109
diff
changeset
|
188 INSTALL_TEST="" |
2087
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
189 AC_CHECK_FUNC(exit, , [LIBS="$save_libs"]) |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
190 build_gtk="no" |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
191 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
192 *) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
193 ;; |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
194 esac |
251
18ecaae9cc3b
Changed configure to make sure we find gtk 2.0, and not just pkg-config,
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
186
diff
changeset
|
195 |
2087
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
196 dnl ---------------------- default targets to build ----------------- |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
197 if test $with_dwcompat = yes; then |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
198 COMPAT_OBJECT="dwcompat.o" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
199 INSTALL_COMPAT="installdwcompat" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
200 SYSCONF_LINK_TARGET_SHARED2="lib$TARGET2.$SOSUFFIX.\$(DW_MAJOR_VERSION).\$(DW_MINOR_VERSION)" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
201 else |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
202 COMPAT_OBJECT="" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
203 INSTALL_COMPAT="" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
204 SYSCONF_LINK_TARGET_SHARED2="" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
205 fi |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
206 SYSCONF_LINK_TARGET_SHARED="lib$TARGET.$SOSUFFIX.\$(DW_MAJOR_VERSION).\$(DW_MINOR_VERSION)" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
207 SYSCONF_LINK_TARGET_STATIC="lib$TARGET.a" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
208 |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
209 TARGETS="$SYSCONF_LINK_TARGET_SHARED $SYSCONF_LINK_TARGET_SHARED2" |
082d743f3214
Reorder configure so SOSUFFIX is only used after it is set per platform.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2086
diff
changeset
|
210 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
211 if test $build_gtk = "yes"; then |
2061
966ef0eeed4f
GTK: Fix building on FreeBSD 12. Needs -lm and -lX11 added to LIBS.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2005
diff
changeset
|
212 AC_PATH_XTRA |
966ef0eeed4f
GTK: Fix building on FreeBSD 12. Needs -lm and -lX11 added to LIBS.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2005
diff
changeset
|
213 LIBS="$LIBS $X_LIBS -lX11" |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
214 AC_CHECK_PROG(PKG_CFG, pkg-config, pkg-config) |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
215 if test x"$PKG_CFG" != x; then |
2748
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
216 # Figure out the best available GTK packages... |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
217 # Preference order GTK3>GTK4>GTK2, WebKit2>WebKit1.1>WebKit1.0>WebKit |
1095
1ab93c92d3ea
Add --with-gtk3 switch to enable building with GTK+ 3.x on systems where
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1094
diff
changeset
|
218 GTK_LIBS="" |
2748
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
219 GTK_PACKAGES="" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
220 WEBKIT_PKG="" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
221 WEBKIT_ALT_PKG="" |
2264
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
222 if test $with_gtk4 = "yes"; then |
2747
c83d6261ce3e
GTK4: Change configure tests, and try to support webkit.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2746
diff
changeset
|
223 # First try the X11 version so we can call Xlib directly |
c83d6261ce3e
GTK4: Change configure tests, and try to support webkit.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2746
diff
changeset
|
224 # to fill in the holes not available with Wayland |
c83d6261ce3e
GTK4: Change configure tests, and try to support webkit.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2746
diff
changeset
|
225 GTK_PACKAGES="gtk4-x11" |
2264
5c981407b0f3
GTK4: Add experimental support for GTK4... This is in progress and doesn't
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2220
diff
changeset
|
226 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` |
2747
c83d6261ce3e
GTK4: Change configure tests, and try to support webkit.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2746
diff
changeset
|
227 if test x"$GTK_LIBS" = x; then |
c83d6261ce3e
GTK4: Change configure tests, and try to support webkit.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2746
diff
changeset
|
228 GTK_PACKAGES="gtk4" |
c83d6261ce3e
GTK4: Change configure tests, and try to support webkit.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2746
diff
changeset
|
229 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` |
c83d6261ce3e
GTK4: Change configure tests, and try to support webkit.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2746
diff
changeset
|
230 fi |
2748
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
231 if test x"$GTK_LIBS" != x; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
232 DW_DIR=gtk4 |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
233 # WebKit2GTK built for GTK4 becomes 5.0 |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
234 WEBKIT_PKG="webkit2gtk-5.0" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
235 fi |
775
5ec50e403a8a
Added initial support for GTK 3.0. Split it off into its own directory.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
761
diff
changeset
|
236 else |
2748
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
237 # Put the GTK2 test here since --with-gtk2 is mutually |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
238 # exclusive with --with-gtk4 |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
239 if test $with_gtk2 = "yes"; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
240 GTK_PACKAGES="gtk+-2.0 gthread-2.0" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
241 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
242 if test x"$GTK_LIBS" != x; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
243 DW_DIR=gtk |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
244 WEBKIT_PKG="webkit-1.1" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
245 WEBKIT_ALT_PKG="webkit-1.0" |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
246 fi |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
247 fi |
2748
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
248 fi |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
249 # We did not successfully find a GTK installation after |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
250 # handling --with-gtk2 and --with-gtk4 so try GTK3 |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
251 if test x"$GTK_LIBS" = x; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
252 # GTK3 Defaults section |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
253 GTK_PACKAGES="gtk+-3.0" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
254 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
255 WEBKIT_PKG="webkit2gtk-4.0" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
256 WEBKIT_ALT_PKG="webkitgtk-3.0" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
257 fi |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
258 echo "checking for GTK version: $DW_DIR" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
259 # Test for the preferred WebKit package |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
260 WEBKIT_LIBS=`$PKG_CFG --silence-errors --libs $WEBKIT_PKG` |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
261 if test x"$WEBKIT_LIBS" = x; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
262 # Preferred package is not available, try the alternate if defined |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
263 if test x"$WEBKIT_ALT_PKG" != x; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
264 WEBKIT_LIBS=`$PKG_CFG --silence-errors --libs $WEBKIT_ALT_PKG` |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
265 if test x"$WEBKIT_LIBS" != x; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
266 WEBKIT_PKG=$WEBKIT_ALT_PKG |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
267 fi |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
268 fi |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
269 fi |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
270 echo "checking for WebKit package: $WEBKIT_PKG" |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
271 WEBKIT_CFLAGS=`$PKG_CFG --silence-errors --cflags $WEBKIT_PKG` |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
272 # If we got a WebKit package that might work... |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
273 # Add defintitions necessary for the correct code paths |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
274 if test x"$WEBKIT_LIBS" != x; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
275 if test "$WEBKIT_PKG" = "webkit-1.0"; then |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
276 AC_DEFINE(USE_WEBKIT10) |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
277 fi |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
278 if test "$WEBKIT_PKG" = "webkit-1.1"; then |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
279 AC_DEFINE(USE_WEBKIT11) |
2748
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
280 fi |
d8db838d5616
Rewrite the configure GTK and WebKitGTK test section.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2747
diff
changeset
|
281 if test "$WEBKIT_PKG" = "webkit2gtk-4.0"; then |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
282 AC_DEFINE(USE_WEBKIT2) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
283 fi |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
284 fi |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
285 if test x"$RPATH" != x; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
286 RPATH="-Wl,-R$RPATH" |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
287 fi |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
288 fi |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
289 |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
290 if test x"$GTK_LIBS" = x; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
291 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?))) |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
292 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread) |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
293 AM_PATH_GDK_IMLIB(1.9.4, AC_DEFINE(USE_IMLIB), AC_MSG_ERROR(IMLIB not found or too old. Dynamic Windows cannot build without it.)) |
2204
b86ae2abb3b3
GTK: Added GTK2 support for GResource embedded images.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2203
diff
changeset
|
294 CFLAGS="$CFLAGS -DDW_INCLUDE_DEPRECATED_RESOURCES=1" |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
295 else |
775
5ec50e403a8a
Added initial support for GTK 3.0. Split it off into its own directory.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
761
diff
changeset
|
296 GTK_CFLAGS=`$PKG_CFG --cflags $GTK_PACKAGES` |
5ec50e403a8a
Added initial support for GTK 3.0. Split it off into its own directory.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
761
diff
changeset
|
297 GTK_LIBS=`$PKG_CFG --libs $GTK_PACKAGES` |
2204
b86ae2abb3b3
GTK: Added GTK2 support for GResource embedded images.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2203
diff
changeset
|
298 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.32.0], [DW_GRESOURCE="enabled"], [CFLAGS="$CFLAGS -DDW_INCLUDE_DEPRECATED_RESOURCES=1"]) |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
299 fi |
120
7d2108cbcd3e
Porting DW to GTK 2.0... and changed the percent value from into to a float
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
80
diff
changeset
|
300 fi |
3 | 301 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
302 if test $check_pthreads = "yes"; then |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
303 AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([pthread header not found. Dynamic Windows cannot build without it.])) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
304 AC_CHECK_LIB(pthread, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
305 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
306 PTHREAD_LIBS="-lpthread", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
307 AC_CHECK_LIB(pthreads, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
308 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
309 PTHREAD_LIBS="-lpthreads", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
310 AC_CHECK_LIB(c_r, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
311 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
312 PTHREAD_LIBS="-lc_r", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
313 AC_CHECK_LIB(c, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
314 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
315 PTHREAD_LIBS="-lc", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
316 AC_MSG_ERROR(pthread library not found. dwindows cannot build without it.) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
317 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
318 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
319 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
320 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
321 fi |
3 | 322 |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
323 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS $WEBKIT_CFLAGS" |
3 | 324 |
1913
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
325 if test $with_deprecated = yes; then |
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
326 CFLAGS="$CFLAGS -DDW_INCLUDE_DEPRECATED" |
5d32be499016
The GTK MDI code is filling up with deprecated calls
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1850
diff
changeset
|
327 fi |
2005
a17cc1958369
GTK: Added WebKit2 support for GTK3. Remove dead code from GTK2.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2003
diff
changeset
|
328 if test x"$WEBKIT_LIBS" != x; then |
2062
1a93c508bb51
GTK: Fix check for webkit when pkg-config returns a library path first.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2061
diff
changeset
|
329 WEBKIT_LIB=`$PKG_CFG --silence-errors --libs-only-l $WEBKIT_PKG | cut -b 3-` |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
330 AC_CHECK_LIB($WEBKIT_LIB,webkit_web_view_new,AC_DEFINE(USE_WEBKIT),) |
588
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
331 fi |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
332 |
2003
dee122916f3c
GTK: Switch GTK3 to be the default. GTK2 requires --with-gtk2
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1913
diff
changeset
|
333 LIBS="$RPATH $LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $WEBKIT_LIBS $PLATLIBS" |
587
9e81f23b57ae
If available try to use GtkMozEmbed from Mozilla.or.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
434
diff
changeset
|
334 |
1793
2cfbfccbbafe
Added code to disable Ubuntu overlay scrollbars
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1611
diff
changeset
|
335 AC_CHECK_FUNCS(ubuntu_overlay_scrollbar_set_enabled, AC_DEFINE(HAVE_OVERLAY_SCROLLBARS,1,Define if we have Ubuntu overlay scrollbars)) |
1794
97b1edb41d44
Added code to disable Ubuntu overlay scrollbars for
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1793
diff
changeset
|
336 AC_CHECK_FUNCS(ubuntu_gtk_set_use_overlay_scrollbar, AC_DEFINE(HAVE_OVERLAY_SCROLLBARS2,1,Define if we have Ubuntu overlay scrollbars)) |
1793
2cfbfccbbafe
Added code to disable Ubuntu overlay scrollbars
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1611
diff
changeset
|
337 |
3 | 338 RM="rm -f" |
339 LN="ln -s" | |
340 CP="cp" | |
341 MV="mv" | |
342 MKDIR="mkdir" | |
343 | |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
344 AC_SUBST(SYSCONF_LINK_TARGET_SHARED) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
345 AC_SUBST(SYSCONF_LINK_TARGET_SHARED2) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
346 AC_SUBST(SYSCONF_LINK_TARGET_STATIC) |
3 | 347 |
348 AC_SUBST(INCLUDES) | |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
349 AC_SUBST(PLATCCFLAGS) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
350 AC_SUBST(ARFLAGS) |
3 | 351 AC_SUBST(RM) |
352 AC_SUBST(LN) | |
353 AC_SUBST(CP) | |
354 AC_SUBST(MV) | |
355 AC_SUBST(MKDIR) | |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
412
diff
changeset
|
356 AC_SUBST(SHAREDFLAG) |
434
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
430
diff
changeset
|
357 AC_SUBST(SOSUFFIX) |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
358 AC_SUBST(LIBSUFFIX) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
359 AC_SUBST(LIBPREFIX) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
360 AC_SUBST(SONAME) |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
361 AC_SUBST(TARGETS) |
3 | 362 |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
363 AC_SUBST(DW_SRC) |
662
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
644
diff
changeset
|
364 AC_SUBST(DW_DIR) |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
365 AC_SUBST(DW_DEFINE) |
2202
c677d728e143
GTK3: Switch to using GResource for compiled in image resources.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2185
diff
changeset
|
366 AC_SUBST(DW_GRESOURCE) |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
367 AC_SUBST(BROWSER_OBJECT) |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
368 AC_SUBST(COMPAT_OBJECT) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
369 AC_SUBST(INSTALL_COMPAT) |
2111
37ce3e22ee1a
GTK: Split installdwtest into a separate make rule and don't enable it when
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2109
diff
changeset
|
370 AC_SUBST(INSTALL_TEST) |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
371 |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
372 AC_SUBST(ARCH) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
373 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
374 AC_CONFIG_FILES([ |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
375 Makefile |
1850
495793f9b503
Create a dwindows.pc during install to support pkg-config in
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1794
diff
changeset
|
376 dwindows1.pc |
2109
068681933258
GTK: Add dwtest to install rules and a desktop link required for
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2087
diff
changeset
|
377 dwindows-config1 |
068681933258
GTK: Add dwtest to install rules and a desktop link required for
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
2087
diff
changeset
|
378 org.dbsoft.dwindows.dwtest.desktop ]) |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
379 AC_OUTPUT |