Fix if/else scope in yow.c from Rudi
[sxemacs] / m4 / sxe-gui.m4
1 dnl sxe-gui.m4 -- GUI stuff
2
3 dnl X cruft
4 dnl =======
5
6 ## Oki, now that we really need a more exhaustive way to autodetect
7 ## athena and other widgets we construct a chain.  The elements of
8 ## that chain are simple atomic tests (provided by AC_DEFUNs).
9 ## The chain is defined to be:
10 ##
11 ## neXtaw -> Xaw3d -> XawXpm -> Xaw95  ->  Xaw  ->  Motif  ->  Nirvana
12 ## ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^      ^^^      ^^^^^
13 ##         3d sets                       non-3d   non-athena
14 ##
15 ## Now if the user passes a --with-athena=foo option, we jump
16 ## directly to the according test-suite and in case this fails we jump
17 ## off the cliff.
18 ##
19 ## Attention:
20 ## We shall perform every test-suite twice, once the correct way, and
21 ## once with #include'ing the Xfuncproto header.
22 ## Thanks to the many, many distributions which treat their users
23 ## like braindead zombies!
24 ## Especially, I would like to thank Fedora/RedHat for bringing
25 ## this up. Go on guys, you rock!
26
27 define([SXE_XAW_INCLUDES_XFUNCPROTO], [dnl
28 # if HAVE_XFUNCPROTO_H
29 # include <X11/Xfuncproto.h>
30 # endif
31 ])dnl SXE_XAW_INCLUDES_XFUNCPROTO
32
33 dnl Check for Xfuncproto first
34 AC_DEFUN([SXE_XAW_FUNCPROTO], [dnl
35         SXE_DUMP_LIBS
36         CPPFLAGS="$CPPFLAGS $X_CFLAGS"
37         LDFLAGS="$LDFLAGS $X_LIBS"
38         if test -n "$athena_lib" -a -z "$athena_h_path"; then
39                 AC_CHECK_HEADER([X11/Xfuncproto.h], [$1])
40         fi
41         SXE_RESTORE_LIBS
42 ])dnl SXE_XAW_FUNCPROTO
43
44 AC_DEFUN([SXE_TEST_THREED_XAW_LIB], [dnl generic 3d library checker
45         SXE_DUMP_LIBS
46         CPPFLAGS="$CPPFLAGS $X_CFLAGS"
47         LDFLAGS="$LDFLAGS $X_PRE_LIBS $X_LIBS $libs_x"
48         if test -z "$athena_lib"; then
49                 AC_CHECK_LIB([$1], [threeDClassRec], [athena_lib=$1])
50         fi
51         SXE_RESTORE_LIBS
52 ])dnl SXE_TEST_THREED_XAW_LIB
53
54 define([SXE_XAW_INCLUDES_INTRINSIC], [dnl
55 # if HAVE_X11_INTRINSIC_H
56 # include <X11/Intrinsic.h>
57 # include <X11/IntrinsicP.h>
58 # endif
59 ])dnl SXE_XAW_INCLUDES_INTRINSIC
60
61 AC_DEFUN([SXE_TEST_THREED_XAW_INC_INTERNAL], [dnl generic 3d library checker
62         ## arg1 is the path to the Xaw headers relative to its prefix
63         ## arg2 is some INCs
64         ## arg3 is some prefix to the Xaw headers
65         pushdef([XAW_PATH], [$1])
66         pushdef([XAW_PATH_TL], translit([$1], [/], [_]))
67         pushdef([XAW_INCS], [$2])
68         pushdef([XAW_PREFIX], [$3])
69         pushdef([XAW_PREFIX_TL], translit([$3], [/], [_]))
70
71         if test -n "$athena_lib" -a -z "$athena_h_path"; then
72                 ## The three-d Athena headers are so much more slippery.
73                 ## Curse this `Lets replace standard libraries' thing that they did. :/
74                 ## unset the values before we get our dirty hands on them
75                 unset "ac_cv_header_[]XAW_PREFIX_TL[]XAW_PATH_TL[]_XawInit_h"
76                 unset "ac_cv_header_[]XAW_PREFIX_TL[]XAW_PATH_TL[]_ThreeD_h"
77
78                 SXE_DUMP_LIBS
79                 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
80                 LDFLAGS="$LDFLAGS $X_LIBS"
81                 SXE_CHECK_HEADERS(XAW_PREFIX[]XAW_PATH[/XawInit.h],
82                         [], [], XAW_INCS SXE_XAW_INCLUDES_INTRINSIC)
83                 SXE_CHECK_HEADERS(XAW_PREFIX[]XAW_PATH[/ThreeD.h],
84                         [], [], XAW_INCS)
85                 if test "$ac_cv_header_[]XAW_PREFIX_TL[]XAW_PATH_TL[]_XawInit_h" -a \
86                         "$ac_cv_header_[]XAW_PREFIX_TL[]XAW_PATH_TL[]_ThreeD_h"; then
87                         athena_h_path="XAW_PREFIX[]XAW_PATH"
88                 fi
89                 SXE_RESTORE_LIBS
90         fi
91
92         popdef([XAW_PATH])
93         popdef([XAW_PATH_TL])
94         popdef([XAW_INCS])
95         popdef([XAW_PREFIX])
96         popdef([XAW_PREFIX_TL])
97 ])dnl SXE_TEST_THREED_XAW_INC_INTERNAL
98
99 AC_DEFUN([SXE_TEST_THREED_XAW_INC], [dnl generic 3d library checker
100         ## arg1 is <dunno>
101         ## arg2 are some INCs
102         pushdef([XAW_INCS], [$2])
103
104         SXE_TEST_THREED_XAW_INC_INTERNAL([$1], XAW_INCS, [X11/])
105         SXE_TEST_THREED_XAW_INC_INTERNAL([$1], XAW_INCS)
106         SXE_TEST_THREED_XAW_INC_INTERNAL([$1], XAW_INCS, [X11/Xaw/])
107
108         popdef([XAW_INCS])
109 ])dnl SXE_TEST_THREED_XAW_INC
110
111 AC_DEFUN([SXE_TEST_THREED_XAW_GENERIC], [dnl
112         SXE_TEST_THREED_XAW_LIB([$1], [$2])
113         SXE_TEST_THREED_XAW_INC([$1])
114         SXE_XAW_FUNCPROTO()
115         SXE_TEST_THREED_XAW_INC([$1], [SXE_XAW_INCLUDES_XFUNCPROTO])
116 ])dnl SXE_TEST_THREED_XAW_GENERIC
117
118 AC_DEFUN([SXE_TEST_XAW_LIB], [dnl
119         SXE_DUMP_LIBS
120         CPPFLAGS="$CPPFLAGS $X_CFLAGS"
121         LDFLAGS="$LDFLAGS $X_PRE_LIBS $X_LIBS $libs_x"
122         if test -z "$athena_lib"; then
123                 AC_CHECK_LIB([Xaw], [XawScrollbarSetThumb], [athena_lib="Xaw"])
124         fi
125         SXE_RESTORE_LIBS
126 ])dnl SXE_TEST_XAW_LIB
127
128 AC_DEFUN([SXE_TEST_XAW_INC], [dnl
129         ## arg1 are some additional INCLUDES 
130
131         ## unset the values before we get our dirty hands on them
132         unset "ac_cv_header_X11_Xaw_XawInit_h"
133
134         SXE_DUMP_LIBS
135         CPPFLAGS="$CPPFLAGS $X_CFLAGS"
136         if test -n "$athena_lib" -a -z "$athena_h_path"; then
137                 AC_CHECK_HEADERS([X11/Xaw/XawInit.h],
138                         [athena_h_path="X11/Xaw"], [],
139                         [$1 SXE_XAW_INCLUDES_INTRINSIC])
140         fi
141         SXE_RESTORE_LIBS
142 ])dnl SXE_TEST_XAW_INC
143
144 dnl Worker macros:
145 AC_DEFUN([SXE_TEST_NEXTAW], [SXE_TEST_THREED_XAW_GENERIC([neXtaw], [$1])])
146 AC_DEFUN([SXE_TEST_XAW3D], [SXE_TEST_THREED_XAW_GENERIC([Xaw3d], [$1])])
147 AC_DEFUN([SXE_TEST_XAWXPM], [SXE_TEST_THREED_XAW_GENERIC([XawXpm], [$1])])
148 AC_DEFUN([SXE_TEST_XAW95], [SXE_TEST_THREED_XAW_GENERIC([Xaw95], [$1])])
149 AC_DEFUN([SXE_TEST_XAW], [dnl
150         ## check if libXaw is a 3d set actually
151         ## no, we don't ... it's bullshit
152         ## if some distro handles it this way, i simply shrug it off.
153         ##
154         ## SXE_TEST_THREED_XAW_GENERIC(Xaw, $1)
155
156         ## the Xaw chain
157         SXE_TEST_XAW_LIB
158         SXE_TEST_XAW_INC()
159         SXE_XAW_FUNCPROTO()
160         SXE_TEST_XAW_INC([SXE_XAW_INCLUDES_XFUNCPROTO])
161 ])dnl SXE_TEST_XAW
162
163 AC_DEFUN([SXE_TEST_MOTIF], [dnl
164         ## autodetect Motif - but only add to libs_x later (if necessary)
165         ## Use a different function to the earlier test to avoid problems with the
166         ## internal cache.
167         SXE_DUMP_LIBS
168         CPPFLAGS="$CPPFLAGS $X_CFLAGS"
169         LDFLAGS="$LDFLAGS $X_PRE_LIBS $X_LIBS $libs_x"
170         SXE_CHECK_HEADERS([Xm/Xm.h])
171
172         if test "$ac_cv_header_Xm_Xm_h" = "yes"; then
173                 AC_CHECK_LIB([Xm], [XmStringCreate],
174                         [have_motif=yes], [have_motif=no])
175         else
176                 have_motif=no
177         fi
178         SXE_RESTORE_LIBS
179
180         if test "$have_motif" = "yes"; then
181                 dnl autodetect lesstif
182                 AC_MSG_CHECKING([for Lesstif])
183                 AC_EGREP_CPP([yes],
184 [#include <Xm/Xm.h>
185 #ifdef LESSTIF_VERSION
186 yes
187 #endif
188 ], [have_lesstif=yes], [have_lesstif=no])
189                 AC_MSG_RESULT([$have_lesstif])
190         fi
191 ])dnl SXE_TEST_MOTIF
192
193
194 AC_DEFUN([SXE_CHECK_XTOOLKITS], [
195         AC_MSG_CHECKING([for X11 graphics libraries])
196         AC_MSG_RESULT([])
197
198         ## firstly, check for the Xlib header
199         SXE_DUMP_LIBS
200         CPPFLAGS="$CPPFLAGS $X_CFLAGS"
201         LDFLAGS="$LDFLAGS $X_PRE_LIBS $X_LIBS $libs_x"
202         AC_CHECK_HEADERS([X11/Xlib.h])
203         SXE_RESTORE_LIBS
204
205         ## assume 3d first
206         athena_3d=yes
207         athena_lib=
208         athena_h_path=
209         ## initialise our have-vars
210         have_athena=no
211         have_motif=no
212           
213         case "$with_athena" in
214         ## autodetect, that is walk through the chain given above
215         "auto" | "")
216                 AC_MSG_CHECKING([for the Athena widgets])
217                 AC_MSG_RESULT([])
218
219                 ## ignite the chain :)
220                 SXE_TEST_NEXTAW
221                 SXE_TEST_XAW3D
222                 SXE_TEST_XAWXPM
223                 SXE_TEST_XAW95
224                 SXE_TEST_XAW
225                 SXE_TEST_MOTIF
226                 ;;
227
228         "3d")
229                 SXE_TEST_XAW3D
230                 ;;
231         "next")
232                 SXE_TEST_NEXTAW
233                 ;;
234         "95")
235                 SXE_TEST_XAW95
236                 ;;
237         "xpm")
238                 SXE_TEST_XAWXPM
239                 ;;
240
241         ## This is the default, old fashioned flat Athena.
242         "xaw")
243                 SXE_TEST_XAW
244                 ;;
245           
246         ## force the motif chain
247         "no")
248                 SXE_TEST_MOTIF
249                 ;;
250         *)
251                 SXE_DIE(["Unknown Athena widget set \`$with_athena'. This should not happen."])
252                 ;;
253         esac
254           
255         ## Do we actually have a usable Athena widget set? Please?
256         if test -n "$athena_lib" -a -n "$athena_h_path"; then
257                 if test "athena_lib" = "Xaw"; then
258                         athena_3d=no
259                 fi
260                 have_xaw=yes
261         else
262                 have_xaw=no
263                 athena_3d=no
264         fi
265
266         ## Finish ensuring that we have values for the various toolkit items.
267         ## Not all toolkits support all widgets
268         ## We gotta rewrite several defaults, now that we know that we either
269         ## have athena or motif
270         if test "$have_xaw" = "yes" -a "$have_motif" = "yes"; then
271                 ## nothing's wrong in this case, we use the lucid menubar anyway
272                 if test "$with_menubars" = "athena"; then
273                         with_menubars="lucid"
274                 fi
275
276         elif test "$have_xaw" = "yes" -a "$have_motif" = "no"; then
277                 with_dialogs="athena"
278                 with_widgets="athena"
279                 with_menubars="lucid"
280
281         elif test "$have_xaw" = "no" -a "$have_motif" = "yes"; then
282                 with_dialogs="motif"
283                 with_widgets="motif"
284                 with_menubars="lucid"
285                 with_scrollbars="lucid"
286
287         elif test "$have_xaw" = "no" -a "$have_motif" = "no"; then
288                 AC_MSG_ERROR([You seem to have no usable X toolkits!
289 However, SXEmacs runs fine even without X, but this may not be what
290 you want.  If you explicitly want this, rerun configure with --without-x])
291
292         else
293                 SXE_DIE("Now I feel dizzy! I know where the error happened but I won't tell!")
294         fi
295
296 ])dnl SXE_CHECK_XTOOLKITS
297
298 AC_DEFUN([SXE_SUFFICIENT_ATHENA_P], [dnl
299         ## arg #1 is the symbol with all the tk widgets
300         pushdef([tmpwidgets], ifelse($1,,[all_widgets],$1))
301
302         all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
303         case "$[]tmpwidgets[]" in
304         *athena* )
305                 if test "$have_xaw" != "yes"; then
306                         SXE_DIE(["Could not find a suitable Athena library to build with."])
307                 fi
308         
309                 dnl Add the Lucid widget Athena code
310                 SXE_APPEND([lwlib-Xaw.o], [lwlib_objs])
311         
312                 dnl Add the Athena widget library we located earlier
313                 SXE_PREPEND([-l$athena_lib], [libs_x])
314         
315                 dnl Tell lwlib where to find the Athena header files.
316                 dnl Many people have tried to create a `smart' way of doing this,
317                 dnl but all have failed.  Before changing the following ugly definitions,
318                 dnl consult the veterans of many a battle.
319                 AC_DEFINE_UNQUOTED([ATHENA_Scrollbar_h_], ["$athena_h_path/Scrollbar.h"],
320                         [Description here!])
321                 AC_DEFINE_UNQUOTED([ATHENA_Dialog_h_], ["$athena_h_path/Dialog.h"],
322                         [Description here!])
323                 AC_DEFINE_UNQUOTED([ATHENA_Form_h_], ["$athena_h_path/Form.h"],
324                         [Description here!])
325                 AC_DEFINE_UNQUOTED([ATHENA_Command_h_], ["$athena_h_path/Command.h"],
326                         [Description here!])
327                 AC_DEFINE_UNQUOTED([ATHENA_Label_h_], ["$athena_h_path/Label.h"],
328                         [Description here!])
329                 AC_DEFINE_UNQUOTED([ATHENA_LabelP_h_], ["$athena_h_path/LabelP.h"],
330                         [Description here!])
331                 AC_DEFINE_UNQUOTED([ATHENA_Toggle_h_], ["$athena_h_path/Toggle.h"],
332                         [Description here!])
333                 AC_DEFINE_UNQUOTED([ATHENA_ToggleP_h_], ["$athena_h_path/ToggleP.h"],
334                         [Description here!])
335                 AC_DEFINE_UNQUOTED([ATHENA_AsciiText_h_], ["$athena_h_path/AsciiText.h"],
336                         [Description here!])
337                 AC_DEFINE_UNQUOTED([ATHENA_XawInit_h_], ["$athena_h_path/XawInit.h"],
338                         [Description here!])
339         
340                 AC_DEFINE([LWLIB_USES_ATHENA], [1], [Description here!])
341                 AC_DEFINE([NEED_ATHENA], [1], [Description here!])
342                 need_athena="yes"
343         
344                 if test "$athena_3d" = "yes"; then
345                         AC_DEFINE([HAVE_ATHENA_3D], [1], [Description here!])
346                 fi
347                 ;;
348         esac
349
350         ## objects to add?
351         case "$with_widgets" in
352         athena* )
353                 SXE_APPEND([xlwradio.o xlwcheckbox.o xlwgauge.o], [lwlib_objs])
354                 ;;
355         esac
356
357         ## final declarations for our config header
358         if test "$with_scrollbars" = "athena"; then
359                 AC_DEFINE([LWLIB_SCROLLBARS_ATHENA], [1], [Description here!])
360         fi
361         if test "$with_dialogs" = "athena"; then
362                 AC_DEFINE([LWLIB_DIALOGS_ATHENA], [1], [Description here!])
363         fi
364         
365         if test "$athena_3d" = "yes" -a \
366                 "$with_scrollbars" = "athena"; then
367                 AC_DEFINE([LWLIB_SCROLLBARS_ATHENA3D], [1], [Description here!])
368         fi
369         if test "$athena_3d" = "yes" -a \
370                 "$with_dialogs" = "athena"; then
371                 AC_DEFINE([LWLIB_DIALOGS_ATHENA3D], [1], [Description here!])
372         fi
373         case "$with_widgets" in
374         athena* )
375                 AC_DEFINE([LWLIB_WIDGETS_ATHENA], [1], [Description here!])
376                 ;;
377         esac
378
379         popdef([tmpwidgets])
380 ])dnl SXE_SUFFICIENT_ATHENA_P
381
382 AC_DEFUN([SXE_SUFFICIENT_MOTIF_P], [dnl
383         ## arg #1 is the symbol with all the tk widgets
384         pushdef([tmpwidgets], ifelse($1,,[all_widgets],$1))
385
386         all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
387         case "$[]tmpwidgets[]" in
388         *motif* )
389                 AC_DEFINE([LWLIB_USES_MOTIF], [1], [Description here!])
390                 AC_DEFINE([NEED_MOTIF], [1], [Description here!])
391                 SXE_APPEND([lwlib-Xm.o], [lwlib_objs])
392                 need_motif=yes
393                 ;;
394         esac
395
396         ## objects to add?
397         if test "$with_menubars" = "motif"; then
398                 SXE_APPEND([xlwmenu.o], [lwlib_objs])
399         fi
400
401         ## final declarations for our config header
402         if test "$with_menubars" = "motif"; then
403                 AC_DEFINE([LWLIB_MENUBARS_MOTIF], [1], [Description here!])
404         fi
405         if test "$with_scrollbars" = "motif"; then
406                 AC_DEFINE([LWLIB_SCROLLBARS_MOTIF], [1], [Description here!])
407         fi
408         if test "$with_dialogs" = "motif"; then
409                 AC_DEFINE([LWLIB_DIALOGS_MOTIF], [1], [Description here!])
410         fi
411         if test "$with_widgets" = "motif"; then
412                 AC_DEFINE([LWLIB_WIDGETS_MOTIF], [1], [Description here!])
413         fi
414
415         popdef([tmpwidgets])
416 ])dnl SXE_SUFFICIENT_MOTIF_P
417
418 AC_DEFUN([SXE_SUFFICIENT_LUCID_P], [dnl
419         ## arg #1 is the symbol with all the tk widgets
420         pushdef([tmpwidgets], ifelse($1,,[all_widgets],$1))
421
422         all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
423         case "$[]tmpwidgets[]" in
424         *lucid* )
425                 AC_DEFINE([NEED_LUCID], [1], [Description here!])
426                 SXE_APPEND([lwlib-Xlw.o], [lwlib_objs])
427                 ;;
428         esac
429
430         ## objects to add?
431         if test "$with_menubars" = "lucid"; then
432                 SXE_APPEND([xlwmenu.o], [lwlib_objs])
433         fi
434         if test "$with_scrollbars" = "lucid"; then
435                 SXE_APPEND([xlwscrollbar.o], [lwlib_objs])
436         fi
437
438         ## final declarations for our config header
439         if test "$with_menubars" = "lucid"; then
440                 AC_DEFINE([LWLIB_MENUBARS_LUCID], [1], [Description here!])
441         fi
442         if test "$with_scrollbars" = "lucid"; then
443                 AC_DEFINE([LWLIB_SCROLLBARS_LUCID], [1], [Description here!])
444         fi
445
446         popdef([tmpwidgets])
447 ])dnl SXE_SUFFICIENT_LUCID_P
448
449 AC_DEFUN([SXE_CHECK_XT_DEPENDENCIES], [dnl
450
451         SXE_SUFFICIENT_ATHENA_P
452         SXE_SUFFICIENT_MOTIF_P
453         SXE_SUFFICIENT_LUCID_P
454
455         all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
456         if test "$with_x11" = "yes" -a \
457                 "$with_gtk" != "yes" -a \
458                 "$with_gnome" != "yes"; then
459
460                 if test "$with_menubars" != "no"; then
461                         SXE_ADD_SXEUIX11_OBJS([menubar-x.o])
462                 fi
463                 if test "$with_scrollbars" != "no"; then
464                         SXE_ADD_SXEUIX11_OBJS([scrollbar-x.o])
465                 fi
466                 if test "$with_dialogs" != "no"; then
467                         SXE_ADD_SXEUIX11_OBJS([dialog-x.o])
468                 fi
469                 if test "$with_toolbars" != "no"; then
470                         SXE_ADD_SXEUIX11_OBJS([toolbar-x.o])
471                 fi
472                 if test "$all_widgets" != "no no no no no"; then
473                         SXE_ADD_SXEUIX11_OBJS([gui-x.o])
474                 fi
475         fi
476
477 ])dnl SXE_CHECK_XT_DEPENDENCIES
478
479 AC_DEFUN([SXE_CHECK_GTK_DEPENDENCIES], [dnl
480
481         all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
482         if test "$with_menubars" != "no"; then
483                 SXE_ADD_SXEUIGTK_OBJS([menubar-gtk.o])
484         fi
485         if test "$with_scrollbars" != "no"; then
486                 SXE_ADD_SXEUIGTK_OBJS([scrollbar-gtk.o])
487         fi
488         if test "$with_dialogs" != "no"; then
489                 SXE_ADD_SXEUIGTK_OBJS([dialog-gtk.o])
490         fi
491         if test "$with_toolbars" != "no"; then
492                 SXE_ADD_SXEUIGTK_OBJS([toolbar-gtk.o])
493         fi
494         if test "$all_widgets" != "no no no no no"; then
495                 SXE_ADD_SXEUIGTK_OBJS([gui-gtk.o])
496         fi
497
498         AS_MESSAGE([
499
500 Congratulations!!!  You've won already!!!
501
502 You have been chosen to implement a GTK user interface for us!
503 Finish all your work IMMEDIATELY and contact us to obtain detailed orders.
504
505 ])
506         sleep 30
507 ])dnl SXE_CHECK_GTK_DEPENDENCIES
508
509
510 AC_DEFUN([SXE_CHECK_UI_SUFFICIENCY], [dnl
511         ## common-to-all stuff
512         if test "$with_menubars" != "no"; then
513                 AC_DEFINE([HAVE_MENUBARS], [1], [Description here!])
514                 AC_DEFINE([HAVE_POPUPS], [1], [Description here!])
515                 SXE_ADD_SXEUI_OBJS([menubar.o])
516         fi
517         if test "$with_scrollbars" != "no"; then
518                 AC_DEFINE([HAVE_SCROLLBARS], [1], [Description here!])
519                 SXE_ADD_SXEUI_OBJS([scrollbar.o])
520         fi
521         if test "$with_dialogs" != "no"; then
522                 AC_DEFINE([HAVE_DIALOGS], [1], [Description here!])
523                 AC_DEFINE([HAVE_POPUPS], [1], [Description here!])
524                 SXE_ADD_SXEUI_OBJS([dialog.o])
525         fi
526         if test "$with_toolbars" != "no"; then
527                 AC_DEFINE([HAVE_TOOLBARS], [1], [Description here!])
528                 SXE_ADD_SXEUI_OBJS([toolbar.o])
529         fi
530         if test "$with_widgets" != "no"; then
531                 AC_DEFINE([HAVE_WIDGETS], [1], [Description here!])
532                 AC_DEFINE([LWLIB_TABS_LUCID], [1], [Description here!])
533                 SXE_APPEND([xlwtabs.o xlwgcs.o], [lwlib_objs])
534         fi
535         AC_SUBST([lwlib_objs])
536         SXE_SUBST_SXEUI_OBJS
537         SXE_SUBST_SXEUITTY_OBJS
538         SXE_SUBST_SXEUIX11_OBJS
539         SXE_SUBST_SXEUIGTK_OBJS
540
541 ])dnl SXE_CHECK_UI_SUFFICIENCY
542
543 dnl sxe-gui.m4 ends here