Mercurial > dwindows
annotate configure.in @ 1162:52e3aa735bdb
Attempt to fix parsing errors with the double : separated
version notation sometimes returned by svnversion.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 16 Sep 2011 07:27:56 +0000 |
parents | 924c8087a755 |
children | f1cb493f97fd |
rev | line source |
---|---|
3 | 1 AC_INIT(winmain.c) |
2 AC_CONFIG_HEADER(config.h) | |
3 | |
1033
c4dae8a3cf9a
Up the version number to 2.0, removed some obsolete mac files from distribution...
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
880
diff
changeset
|
4 DW_MAJOR_VERSION=2 |
1109
1c24949cf853
Fixed a configure warning about datarootdir. (Just ignoring it for now)
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1095
diff
changeset
|
5 DW_MINOR_VERSION=1 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
6 DW_SUB_VERSION=0 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
7 |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
8 TARGET="dwindows" |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
9 TARGET2="dwcompat" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
10 AC_SUBST(TARGET) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
11 AC_SUBST(TARGET2) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
12 |
1109
1c24949cf853
Fixed a configure warning about datarootdir. (Just ignoring it for now)
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1095
diff
changeset
|
13 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
|
14 |
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
|
15 DW_DIR=gtk |
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
|
16 DW_SRC=dw.c |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
17 DW_DEFINE=__UNIX__ |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
412
diff
changeset
|
18 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
|
19 SOSUFFIX=so |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
20 LIBSUFFIX=a |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
21 LIBPREFIX=lib |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
22 AC_SUBST(DW_MAJOR_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
23 AC_SUBST(DW_MINOR_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
24 AC_SUBST(DW_SUB_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
25 |
3 | 26 INCLUDES="-I." |
27 | |
28 AC_PROG_CC | |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
29 AC_PROG_CXX |
3 | 30 |
31 AC_CHECK_PROG(MAKE, gmake, gmake) | |
32 if test x"$MAKE" = x; then | |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
33 AC_CHECK_PROG(MAKE, make, make) |
3 | 34 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
|
35 AC_CHECK_PROG(SVNVERSION, svnversion, svnversion) |
924c8087a755
Attempt to use the subversion revision number as the sub version number.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1151
diff
changeset
|
36 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
|
37 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
|
38 else |
1162
52e3aa735bdb
Attempt to fix parsing errors with the double : separated
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1160
diff
changeset
|
39 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
|
40 fi |
3 | 41 |
42 AC_PROG_INSTALL | |
43 | |
44 AC_SUBST(MAKE) | |
45 | |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
46 dnl Checks for system |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
47 AC_CANONICAL_SYSTEM |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
48 |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
49 dnl ---------------------- check for '--with-compat' switch ----------------- |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
50 AC_ARG_WITH(compat, |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
51 [ --with-compat specify this to build the optional dwcompat library], |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
52 [with_compat=$withval], |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
53 [with_compat=no], |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
54 ) |
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
|
55 |
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 dnl ---------------------- check for '--with-gtk3' switch ----------------- |
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 AC_ARG_WITH(gtk3, |
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
|
58 [ --with-gtk3 specify this to build with GTK+ 3.x if available], |
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
|
59 [with_gtk3=$withval], |
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
|
60 [with_gtk3=no], |
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
|
61 ) |
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
|
62 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
63 dnl ---------------------- default targets to build ----------------- |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
64 if test $with_compat = yes; then |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
65 COMPAT_OBJECT="compat.o" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
66 INSTALL_COMPAT="installcompat" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
67 SYSCONF_LINK_TARGET_SHARED2="lib$TARGET2.$SOSUFFIX.$DW_MAJOR_VERSION.$DW_MINOR_VERSION" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
68 else |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
69 COMPAT_OBJECT="" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
70 INSTALL_COMPAT="" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
71 SYSCONF_LINK_TARGET_SHARED2="" |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
72 fi |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
73 SYSCONF_LINK_TARGET_SHARED="lib$TARGET.$SOSUFFIX.$DW_MAJOR_VERSION.$DW_MINOR_VERSION" |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
74 SYSCONF_LINK_TARGET_STATIC="lib$TARGET.a" |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
75 |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
76 dnl ---------------------- check for '--with-gtk+' switch ----------------- |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
77 AC_ARG_WITH(gtk, |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
78 [ --with-gtk specify this to build dwindows with GTK+ (only relevant for OSX)], |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
79 [with_gtk=$withval], |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
80 [with_gtk=no], |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
81 ) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
82 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
83 dnl ---------------------- check for '--with-gtkframework' switch ----------------- |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
84 AC_ARG_WITH(gtkframework, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
85 [ --with-gtkframework specify this to build dwindows with GTK+ Framework (only relevant for OSX)], |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
86 [with_gtkframework=$withval], |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
87 [with_gtkframework=no], |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
88 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
89 |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
90 dnl ---------------------- check for '--with-gtkhtml' switch ----------------- |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
91 AC_ARG_WITH(gtkhtml, |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
92 [ --with-gtkhtml specify this to build dwindows with libgtkhtml-2], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
93 [with_gtkhtml=$withval], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
94 [with_gtkhtml=no], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
95 ) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
96 |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
97 dnl ---------------------- check for '--with-gtkmozembed' switch ----------------- |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
98 AC_ARG_WITH(gtkmozembed, |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
99 [ --with-gtkmozembed specify this to build dwindows with Mozilla gtkmozembed], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
100 [with_gtkmozembed=$withval], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
101 [with_gtkmozembed=no], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
102 ) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
103 |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
104 dnl ---------------------- check for '--with-arch' switch ----------------- |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
105 AC_ARG_WITH(arch, |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
106 [ --with-arch specify architecture: one of all, 32bit, 64bit, ppc, ppc64, x86_64, i386], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
107 [with_arch=$withval], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
108 [with_arch=no], |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
109 ) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
110 |
3 | 111 AC_HEADER_STDC |
112 AC_HEADER_DIRENT | |
113 AC_CHECK_HEADERS(unistd.h) | |
114 AC_CHECK_HEADERS(sys/stat.h) | |
115 | |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
116 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
|
117 AC_CHECK_FUNCS(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,1,Determine whether we have the vsnprintf function)) |
3 | 118 |
119 AC_CHECK_FUNCS(connect) | |
120 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
|
121 if test -z "$libsocket"; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
122 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
|
123 fi |
3 | 124 |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
125 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
|
126 if test -z "$libinet"; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
127 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
|
128 fi |
3 | 129 |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
130 if test -z "$libnsl"; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
131 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
|
132 fi |
3 | 133 fi |
134 | |
135 AC_CHECK_LIB(sun, getpwnam, LIBS="$LIBS -lsun",) | |
136 AC_CHECK_LIB(dgc, inet_addr, LIBS="$LIBS -ldgc",) | |
137 AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",) | |
138 | |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
139 build_gtk="yes" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
140 check_pthreads="yes" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
141 TARGETS="$SYSCONF_LINK_TARGET_SHARED $SYSCONF_LINK_TARGET_SHARED2" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
142 PLATLIBS="" |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
143 SONAME="" |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
144 PLATCCFLAGS="-g -O2 -fPIC -Wall" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
145 ARFLAGS="cqs" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
146 |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
147 case "$target" in |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
148 *cygwin*) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
149 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
150 *mingw32) |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
151 AC_DEFINE(DW_USE_GTK) |
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
152 ;; |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
153 *linux*) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
154 SONAME="-Wl,-soname,lib$TARGET.so.$DW_MAJOR_VERSION" |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
155 ;; |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
156 *nto-qnx*) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
157 DW_DIR="photon" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
158 DW_DEFINE=__PHOTON__ |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
159 build_gtk="no" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
160 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
161 *qnx*) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
162 DW_DIR="photon" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
163 DW_DEFINE=__PHOTON__ |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
164 build_gtk="no" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
165 check_pthreads="no" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
166 LIBSUFFIX="lib" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
167 LIBPREFIX="" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
168 SYSCONF_LINK_TARGET_STATIC="$TARGET.lib" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
169 TARGETS="$TARGET.lib" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
170 PLATCCFLAGS="" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
171 PLATLIBS="-lphoton_s -lphexlib3r" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
172 ARFLAGS="r" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
173 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
174 *apple-darwin*) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
175 case "$with_arch" in |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
176 no) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
177 ARCH="" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
178 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
179 all) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
180 ARCH="-arch ppc -arch ppc64 -arch x86_64 -arch i386" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
181 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
182 32bit) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
183 ARCH="-arch ppc -arch i386" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
184 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
185 64bit) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
186 ARCH="-arch ppc64 -arch x86_64" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
187 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
188 *) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
189 ARCH="-arch $with_arch" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
190 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
191 esac |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
192 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
193 SOSUFFIX=dylib |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
194 if test $with_gtkframework = yes; then |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
195 DW_DIR=gtk |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
196 LIBS="$LIBS -framework Gtk -framework Glib -framework Cairo" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
197 GTK_CFLAGS="-I/Library/Frameworks/Gtk.framework/Headers -I/Library/Frameworks/Glib.framework/Headers -I/Library/Frameworks/Cairo.framework/Headers" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
198 build_gtk="no" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
199 elif test $with_gtk = yes; then |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
200 build_gtk="yes" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
201 else |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
202 DW_DIR=mac |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
203 DW_SRC=dw.m |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
204 DW_DEFINE=__MAC__ |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
205 LIBS="$LIBS -framework Cocoa -framework WebKit" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
206 build_gtk="no" |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
207 fi |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
208 ;; |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
209 *) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
210 ;; |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
211 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
|
212 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
213 if test $build_gtk = "yes"; then |
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 |
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
|
216 GTK_LIBS="" |
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
|
217 if test $with_gtk3 = "yes"; then |
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_PACKAGES="gtk+-3.0" |
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
|
219 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` |
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
|
220 fi |
1094
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
221 WEBKIT_PKG="webkit-1.1" |
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
|
222 if test x"$GTK_LIBS" = x; then |
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
|
223 GTK_PACKAGES="gtk+-2.0 gthread-2.0" |
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
|
224 GTK_LIBS=`$PKG_CFG --silence-errors --libs $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
|
225 else |
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
|
226 DW_DIR=gtk3 |
1094
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
227 WEBKIT_PKG="webkitgtk-3.0" |
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
|
228 fi |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
229 if test $with_gtkmozembed = yes; then |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
230 MOZEMBED_LIBS=`$PKG_CFG --silence-errors --libs firefox-gtkmozembed` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
231 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags firefox-gtkmozembed` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
232 RPATH=`$PKG_CFG --silence-errors --libs-only-L firefox-gtkmozembed | cut -b 3-` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
233 if test x"$MOZEMBED_LIBS" = x; then |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
234 MOZEMBED_LIBS=`$PKG_CFG --silence-errors --libs mozilla-gtkmozembed` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
235 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags mozilla-gtkmozembed` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
236 RPATH=`$PKG_CFG --silence-errors --libs-only-L mozilla-gtkmozembed | cut -b 3-` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
237 fi |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
238 elif test $with_gtkhtml = yes; then |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
239 MOZEMBED_LIBS=`$PKG_CFG --silence-errors --libs libgtkhtml-2.0` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
240 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags libgtkhtml-2.0` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
241 RPATH=`$PKG_CFG --silence-errors --libs-only-L libgtkhtml-2.0 | cut -b 3-` |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
242 else |
1094
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
243 # test for webkit-1.1 or webkitgtk-3.0 packages |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
244 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags $WEBKIT_PKG` |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
245 RPATH=`$PKG_CFG --silence-errors --libs-only-L $WEBKIT_PKG | cut -b 3-` |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
246 if test x"$MOZEMBED_CFLAGS" = x; then |
1094
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
247 # no webkit-1.1 or webkitgtk-3.0, look for webkit-1.0 |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
248 WEBKIT_PKG="webkit-1.0" |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
249 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags $WEBKIT_PKG` |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
250 RPATH=`$PKG_CFG --silence-errors --libs-only-L $WEBKIT_PKG | cut -b 3-` |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
251 if test x"$MOZEMBED_CFLAGS" = x; then |
1094
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
252 WEBKIT_PKG="WebKitGtk" |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
253 # MOZEMBED_LIBS=`$PKG_CFG --silence-errors --libs $WEBKIT_PKG` |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
254 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags $WEBKIT_PKG` |
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
255 RPATH=`$PKG_CFG --silence-errors --libs-only-L $WEBKIT_PKG | cut -b 3-` |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
256 else |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
257 AC_DEFINE(USE_WEBKIT10) |
1094
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
258 AC_SEARCH_LIBS(webkit_web_view_new,webkit-1.0 webkitgtk-1.0,WEBKIT_LIB=`echo $ac_res | cut -b 3-`,WEBKIT_LIB="") |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
259 fi |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
260 else |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
261 AC_DEFINE(USE_WEBKIT11) |
1094
b2a4cfc3cb87
Enable use of WebKit 1.0 under ubuntu Natty; package name:
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1033
diff
changeset
|
262 WEBKIT_LIB=$WEBKIT_PKG |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
263 fi |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
264 AC_DEFINE_UNQUOTED(WEBKIT_LIB, "$WEBKIT_LIB") |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
265 fi |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
266 if test x"$RPATH" != x; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
267 RPATH="-Wl,-R$RPATH" |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
268 fi |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
269 fi |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
270 |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
271 if test x"$GTK_LIBS" = x; then |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
272 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
|
273 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
|
274 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.)) |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
275 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
|
276 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
|
277 GTK_LIBS=`$PKG_CFG --libs $GTK_PACKAGES` |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
278 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
|
279 fi |
3 | 280 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
281 if test $check_pthreads = "yes"; then |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
282 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
|
283 AC_CHECK_LIB(pthread, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
284 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
285 PTHREAD_LIBS="-lpthread", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
286 AC_CHECK_LIB(pthreads, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
287 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
288 PTHREAD_LIBS="-lpthreads", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
289 AC_CHECK_LIB(c_r, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
290 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
291 PTHREAD_LIBS="-lc_r", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
292 AC_CHECK_LIB(c, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
293 pthread_attr_init, |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
294 PTHREAD_LIBS="-lc", |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
295 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
|
296 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
297 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
298 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
299 ) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
300 fi |
3 | 301 |
588
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
302 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS $MOZEMBED_CFLAGS" |
3 | 303 |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
304 BROWSER_OBJECT="" |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
305 if test x"$MOZEMBED_CFLAGS" != x; then |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
306 SAVE_LIBS="$LIBS" |
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
307 LIBS="$RPATH $LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $MOZEMBED_LIBS" |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
308 BROWSER_OBJECT="browser.o" |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
309 if test $with_gtkmozembed = yes; then |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
310 AC_CHECK_LIB(gtkembedmoz,gtk_moz_embed_new,AC_DEFINE(USE_GTKMOZEMBED),BROWSER_OBJECT="") |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
311 elif test $with_gtkhtml = yes; then |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
312 AC_CHECK_LIB(gtkhtml-2,html_document_new,AC_DEFINE(USE_LIBGTKHTML2),BROWSER_OBJECT="") |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
313 else |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
314 AC_CHECK_LIB($WEBKIT_LIB,webkit_web_view_new,AC_DEFINE(USE_WEBKIT),BROWSER_OBJECT="") |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
315 BROWSER_OBJECT="" |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
316 fi |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
595
diff
changeset
|
317 LIBS="$SAVE_LIBS" |
588
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
318 fi |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
319 |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
320 LIBS="$RPATH $LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $MOZEMBED_LIBS $PLATLIBS" |
587
9e81f23b57ae
If available try to use GtkMozEmbed from Mozilla.or.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
434
diff
changeset
|
321 |
3 | 322 RM="rm -f" |
323 LN="ln -s" | |
324 CP="cp" | |
325 MV="mv" | |
326 MKDIR="mkdir" | |
327 | |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
328 AC_SUBST(SYSCONF_LINK_TARGET_SHARED) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
329 AC_SUBST(SYSCONF_LINK_TARGET_SHARED2) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
330 AC_SUBST(SYSCONF_LINK_TARGET_STATIC) |
3 | 331 |
332 AC_SUBST(INCLUDES) | |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
333 AC_SUBST(PLATCCFLAGS) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
334 AC_SUBST(ARFLAGS) |
3 | 335 AC_SUBST(RM) |
336 AC_SUBST(LN) | |
337 AC_SUBST(CP) | |
338 AC_SUBST(MV) | |
339 AC_SUBST(MKDIR) | |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
412
diff
changeset
|
340 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
|
341 AC_SUBST(SOSUFFIX) |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
342 AC_SUBST(LIBSUFFIX) |
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
343 AC_SUBST(LIBPREFIX) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
344 AC_SUBST(SONAME) |
761
39d848c20c05
Support for building on QNX platforms
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
662
diff
changeset
|
345 AC_SUBST(TARGETS) |
3 | 346 |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
347 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
|
348 AC_SUBST(DW_DIR) |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
349 AC_SUBST(DW_DEFINE) |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
624
diff
changeset
|
350 AC_SUBST(BROWSER_OBJECT) |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
351 AC_SUBST(COMPAT_OBJECT) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
352 AC_SUBST(INSTALL_COMPAT) |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
353 |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
354 AC_SUBST(ARCH) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
355 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
356 AC_CONFIG_FILES([ |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
357 Makefile |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
639
diff
changeset
|
358 dwindows-config ]) |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
359 AC_OUTPUT |