… | |
… | |
51 | |
51 | |
52 | dnl# system hacks |
52 | dnl# system hacks |
53 | AC_AIX |
53 | AC_AIX |
54 | AC_ISC_POSIX |
54 | AC_ISC_POSIX |
55 | |
55 | |
|
|
56 | dnl# FreeBSD needs to link libxpg4 |
|
|
57 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
|
|
58 | |
|
|
59 | dnl solaris needs to link libnsl and socket |
|
|
60 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
|
|
61 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
|
|
62 | |
56 | AC_ENABLE_SHARED(no)dnl# libtool |
63 | AC_ENABLE_SHARED(no)dnl# libtool |
57 | AC_ENABLE_STATIC(yes)dnl# libtool |
64 | AC_ENABLE_STATIC(yes)dnl# libtool |
58 | AC_PROG_LIBTOOL()dnl# libtool |
65 | AC_PROG_LIBTOOL()dnl# libtool |
59 | |
66 | |
60 | MALLOC_TYPE=S |
67 | MALLOC_TYPE=S |
61 | support_addstrings=no |
68 | support_addstrings=no |
62 | support_frills=no |
69 | support_frills=no |
63 | support_linespace=no |
70 | support_linespace=no |
64 | support_inheritpixmap=no |
71 | support_inheritpixmap=no |
|
|
72 | support_tinting=no |
65 | support_keepscrolling=no |
73 | support_keepscrolling=no |
66 | support_selectionscrolling=no |
74 | support_selectionscrolling=no |
67 | support_menubar=no |
75 | support_menubar=no |
68 | support_mousewheel=no |
76 | support_mousewheel=no |
69 | support_mouseslipwheel=no |
77 | support_mouseslipwheel=no |
… | |
… | |
101 | [if test x$enableval = xyes; then |
109 | [if test x$enableval = xyes; then |
102 | support_24bit=yes |
110 | support_24bit=yes |
103 | support_frills=yes |
111 | support_frills=yes |
104 | support_linespace=yes |
112 | support_linespace=yes |
105 | support_inheritpixmap=yes |
113 | support_inheritpixmap=yes |
|
|
114 | support_tinting=yes |
106 | support_keepscrolling=yes |
115 | support_keepscrolling=yes |
107 | support_selectionscrolling=yes |
116 | support_selectionscrolling=yes |
108 | support_lastlog=yes |
117 | support_lastlog=yes |
109 | support_menubar=yes |
118 | support_menubar=yes |
110 | support_mousewheel=yes |
119 | support_mousewheel=yes |
… | |
… | |
170 | |
179 | |
171 | AC_ARG_ENABLE(transparency, |
180 | AC_ARG_ENABLE(transparency, |
172 | [ --enable-transparency enable transparent backgrounds], |
181 | [ --enable-transparency enable transparent backgrounds], |
173 | [if test x$enableval = xyes -o x$enableval = xno; then |
182 | [if test x$enableval = xyes -o x$enableval = xno; then |
174 | support_inheritpixmap=$enableval |
183 | support_inheritpixmap=$enableval |
|
|
184 | fi]) |
|
|
185 | |
|
|
186 | AC_ARG_ENABLE(tinting, |
|
|
187 | [ --enable-tinting enable tinting of transparent bg], |
|
|
188 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
189 | support_tinting=$enableval |
175 | fi]) |
190 | fi]) |
176 | |
191 | |
177 | AC_ARG_ENABLE(menubar, |
192 | AC_ARG_ENABLE(menubar, |
178 | [ --enable-menubar enable menubar], |
193 | [ --enable-menubar enable menubar], |
179 | [if test x$enableval = xyes -o x$enableval = xno; then |
194 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
1144 | fi |
1159 | fi |
1145 | if test x$pch2 != x; then |
1160 | if test x$pch2 != x; then |
1146 | AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX) |
1161 | AC_DEFINE_UNQUOTED(PTYCHAR2, "$pch2", Define for second char in devptyXX) |
1147 | fi |
1162 | fi |
1148 | |
1163 | |
1149 | dnl# FreeBSD needs to link libxpg4 |
|
|
1150 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
|
|
1151 | |
|
|
1152 | dnl# -------------------------------------------------------------------------- |
1164 | dnl# -------------------------------------------------------------------------- |
1153 | dnl# now add and remove other stuff |
1165 | dnl# now add and remove other stuff |
1154 | dnl# -------------------------------------------------------------------------- |
1166 | dnl# -------------------------------------------------------------------------- |
|
|
1167 | if test x$support_tinting = xyes; then |
|
|
1168 | AC_DEFINE(TINTING, 1, Define if you want your background to be tinted) |
|
|
1169 | fi |
1155 | if test x$support_inheritpixmap = xyes; then |
1170 | if test x$support_inheritpixmap = xyes; then |
1156 | AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) |
1171 | AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) |
1157 | fi |
1172 | fi |
1158 | if test x$support_keepscrolling = xno; then |
1173 | if test x$support_keepscrolling = xno; then |
1159 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |
1174 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |