Mercurial > dwindows
annotate configure.in @ 594:af25ea2dc5b3
Add dummy calendar widget. Need to simulate one.4?\002?\007
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 25 Sep 2006 22:16:42 +0000 |
parents | 1b398af1ec38 |
children | 8b152d268bd4 |
rev | line source |
---|---|
3 | 1 AC_INIT(winmain.c) |
2 AC_CONFIG_HEADER(config.h) | |
3 | |
186
4c4e94a63748
Change DW version to 1.0.0.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
121
diff
changeset
|
4 DW_MAJOR_VERSION=1 |
4c4e94a63748
Change DW version to 1.0.0.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
121
diff
changeset
|
5 DW_MINOR_VERSION=0 |
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 |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
8 DW_SRC=gtk |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
9 DW_DEFINE=__UNIX__ |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
412
diff
changeset
|
10 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
|
11 SOSUFFIX=so |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
12 AC_SUBST(DW_MAJOR_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
13 AC_SUBST(DW_MINOR_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
14 AC_SUBST(DW_SUB_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
15 |
3 | 16 INCLUDES="-I." |
17 | |
18 AC_PROG_CC | |
19 | |
20 AC_CHECK_PROG(MAKE, gmake, gmake) | |
21 if test x"$MAKE" = x; then | |
22 AC_CHECK_PROG(MAKE, make, make) | |
23 fi | |
24 | |
25 AC_PROG_INSTALL | |
26 | |
27 AC_SUBST(MAKE) | |
28 | |
29 AC_HEADER_STDC | |
30 AC_HEADER_DIRENT | |
31 AC_CHECK_HEADERS(unistd.h) | |
32 AC_CHECK_HEADERS(sys/stat.h) | |
33 | |
34 AC_CHECK_FUNCS(pipe, AC_DEFINE(HAVE_PIPE,1,Determine whether we have the pipe function)) | |
35 | |
36 AC_CHECK_FUNCS(connect) | |
37 if test x"$ac_cv_func_connect" = x"no"; then | |
38 if test -z "$libsocket"; then | |
39 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket",) | |
40 fi | |
41 | |
42 dnl this is for isc. need the nsl_s library as well. | |
43 if test -z "$libinet"; then | |
44 AC_CHECK_LIB(inet, socket, libnsl=1; LIBS="$LIBS -linet -lnsl_s",) | |
45 fi | |
46 | |
47 if test -z "$libnsl"; then | |
48 AC_CHECK_LIB(nsl, gethostname, LIBS="$LIBS -lnsl",) | |
49 fi | |
50 fi | |
51 | |
52 AC_CHECK_LIB(sun, getpwnam, LIBS="$LIBS -lsun",) | |
53 AC_CHECK_LIB(dgc, inet_addr, LIBS="$LIBS -ldgc",) | |
54 AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",) | |
55 | |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
56 OPSYSTEM=`uname -s` |
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
|
57 |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
58 if test $OPSYSTEM = "Darwin"; then |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
59 DW_SRC=mac |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
60 DW_DEFINE=__MAC__ |
434
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
430
diff
changeset
|
61 SHAREDFLAG=-dynamiclib |
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
430
diff
changeset
|
62 SOSUFFIX=dylib |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
412
diff
changeset
|
63 LIBS="$LIBS -framework Carbon" |
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
|
64 else |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
65 AC_CHECK_PROG(PKG_CFG, pkg-config, pkg-config) |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
66 if test x"$PKG_CFG" != x; then |
588
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
67 GTK_LIBS=`$PKG_CFG --silence-errors --libs gtk+-2.0 gthread-2.0` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
68 MOZEMBED_LIBS=`$PKG_CFG --silence-errors --libs firefox-gtkmozembed` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
69 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags firefox-gtkmozembed` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
70 RPATH=`$PKG_CFG --silence-errors --libs-only-L firefox-gtkmozembed | cut -b 3-` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
71 if test x"$MOZEMBED_LIBS" = x; then |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
72 MOZEMBED_LIBS=`$PKG_CFG --silence-errors --libs mozilla-gtkmozembed` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
73 MOZEMBED_CFLAGS=`$PKG_CFG --silence-errors --cflags mozilla-gtkmozembed` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
74 RPATH=`$PKG_CFG --silence-errors --libs-only-L mozilla-gtkmozembed | cut -b 3-` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
75 fi |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
76 if test x"$RPATH" != x; then |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
77 RPATH="-Wl,-R$RPATH" |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
78 fi |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
79 fi |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
80 |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
81 if test x"$GTK_LIBS" = x; then |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
82 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?))) |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
83 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread) |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
84 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.)) |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
85 else |
588
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
86 GTK_CFLAGS=`$PKG_CFG --cflags gtk+-2.0 gthread-2.0` |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
87 GTK_LIBS=`$PKG_CFG --libs gtk+-2.0 gthread-2.0` |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
88 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
|
89 fi |
3 | 90 |
91 AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([pthread header not found. Dynamic Windows cannot build without it.])) | |
92 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread", | |
93 AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads", | |
94 AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r", | |
95 AC_MSG_ERROR(pthread library not found. HandyFTP cannot build without it. | |
96 ) | |
97 ) | |
98 ) | |
99 ) | |
100 | |
588
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
101 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS $MOZEMBED_CFLAGS" |
3 | 102 |
588
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
103 if test x"$MOZEMBED_LIBS" != x; then |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
104 SAVE_LIBS="$LIBS" |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
105 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $MOZEMBED_LIBS" |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
106 AC_CHECK_LIB(gtkembedmoz,gtk_moz_embed_new,AC_DEFINE(USE_GTKMOZEMBED),) |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
107 LIBS="$SAVE_LIBS" |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
108 fi |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
109 |
1b398af1ec38
Implemented dynamic loading of the Mozilla renderer.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
587
diff
changeset
|
110 LIBS="$RPATH $LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS" |
587
9e81f23b57ae
If available try to use GtkMozEmbed from Mozilla.or.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
434
diff
changeset
|
111 |
3 | 112 RM="rm -f" |
113 LN="ln -s" | |
114 CP="cp" | |
115 MV="mv" | |
116 MKDIR="mkdir" | |
117 | |
118 | |
119 AC_SUBST(INCLUDES) | |
120 AC_SUBST(RM) | |
121 AC_SUBST(LN) | |
122 AC_SUBST(CP) | |
123 AC_SUBST(MV) | |
124 AC_SUBST(MKDIR) | |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
412
diff
changeset
|
125 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
|
126 AC_SUBST(SOSUFFIX) |
3 | 127 |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
128 AC_SUBST(DW_SRC) |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
129 AC_SUBST(DW_DEFINE) |
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
251
diff
changeset
|
130 |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
131 AC_CONFIG_FILES([ |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
132 Makefile |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
133 dw-config ]) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
134 AC_OUTPUT |