Mercurial > dwindows
annotate configure.in @ 304:c28c0a804442
Added extra notebook page for a container example.
Added "correct" callbacks for events on trees and containers.
Added status lines to the tree and container pages to display results of
the callback events.
Changed the tab name to reflect the widgets in the notebook pages.
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 29 Mar 2003 03:26:50 +0000 |
parents | 18ecaae9cc3b |
children | a8015e02b590 |
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 |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
8 AC_SUBST(DW_MAJOR_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
9 AC_SUBST(DW_MINOR_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
10 AC_SUBST(DW_SUB_VERSION) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
11 |
3 | 12 INCLUDES="-I." |
13 | |
14 AC_PROG_CC | |
15 | |
16 AC_CHECK_PROG(MAKE, gmake, gmake) | |
17 if test x"$MAKE" = x; then | |
18 AC_CHECK_PROG(MAKE, make, make) | |
19 fi | |
20 | |
21 AC_PROG_INSTALL | |
22 | |
23 AC_SUBST(MAKE) | |
24 | |
25 AC_HEADER_STDC | |
26 AC_HEADER_DIRENT | |
27 AC_CHECK_HEADERS(unistd.h) | |
28 AC_CHECK_HEADERS(sys/stat.h) | |
29 | |
30 AC_CHECK_FUNCS(pipe, AC_DEFINE(HAVE_PIPE,1,Determine whether we have the pipe function)) | |
31 | |
32 AC_CHECK_FUNCS(connect) | |
33 if test x"$ac_cv_func_connect" = x"no"; then | |
34 if test -z "$libsocket"; then | |
35 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket",) | |
36 fi | |
37 | |
38 dnl this is for isc. need the nsl_s library as well. | |
39 if test -z "$libinet"; then | |
40 AC_CHECK_LIB(inet, socket, libnsl=1; LIBS="$LIBS -linet -lnsl_s",) | |
41 fi | |
42 | |
43 if test -z "$libnsl"; then | |
44 AC_CHECK_LIB(nsl, gethostname, LIBS="$LIBS -lnsl",) | |
45 fi | |
46 fi | |
47 | |
48 AC_CHECK_LIB(sun, getpwnam, LIBS="$LIBS -lsun",) | |
49 AC_CHECK_LIB(dgc, inet_addr, LIBS="$LIBS -ldgc",) | |
50 AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",) | |
51 | |
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
|
52 AC_CHECK_PROG(PKG_CFG, pkg-config, pkg-config) |
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
|
53 if test x"$PKG_CFG" != x; then |
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
|
54 GTK_LIBS=`$PKG_CFG --silence-errors --libs gtk+-2.0 gthread-2.0` |
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
|
55 fi |
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
|
56 |
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 if test x"$GTK_LIBS" = x; then |
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
|
58 AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?))) |
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
|
59 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread) |
121
d8af32b1b1cd
Switch back to using pixmaps and bitmaps, only use pixbufs for doing
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
120
diff
changeset
|
60 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.)) |
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
|
61 else |
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
|
62 GTK_CFLAGS=`$PKG_CFG --cflags gtk+-2.0 gthread-2.0` |
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
|
63 GTK_LIBS=`$PKG_CFG --libs gtk+-2.0 gthread-2.0` |
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 fi |
3 | 65 |
66 AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([pthread header not found. Dynamic Windows cannot build without it.])) | |
67 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread", | |
68 AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads", | |
69 AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r", | |
70 AC_MSG_ERROR(pthread library not found. HandyFTP cannot build without it. | |
71 ) | |
72 ) | |
73 ) | |
74 ) | |
75 | |
76 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS" | |
77 LIBS="$LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS" | |
78 | |
79 RM="rm -f" | |
80 LN="ln -s" | |
81 CP="cp" | |
82 MV="mv" | |
83 MKDIR="mkdir" | |
84 | |
85 | |
86 AC_SUBST(INCLUDES) | |
87 AC_SUBST(RM) | |
88 AC_SUBST(LN) | |
89 AC_SUBST(CP) | |
90 AC_SUBST(MV) | |
91 AC_SUBST(MKDIR) | |
92 | |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
93 AC_CONFIG_FILES([ |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
94 Makefile |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
95 dw-config ]) |
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
96 AC_OUTPUT |