1
dnl Process this file with autoconf to produce a configure script.
4
AC_CONFIG_HEADER(config.h)
6
dnl Checks for programs.
17
dnl Checks for header files.
20
AC_CHECK_HEADERS(unistd.h)
22
dnl Checks for typedefs, structures, and compiler characteristics.
26
[ --enable-motif build with the Motif widget set])
28
if test "$enable_motif" != "no"; then
29
saved_cflags="$CFLAGS"
31
CFLAGS="$CFLAGS $X_CFLAGS"
32
LIBS="$LIBS $X_LIBS $X_PRE_LIBS"
33
AC_CHECK_LIB(Xm, XmGetPixmap, motif=yes, , -lXt -lX11)
35
if test "X$motif" = X"yes"; then
37
WIDGET_LIBS="$WIDGET_LIBS -lXm"
38
if test "X$libxp" = X"yes"; then
39
WIDGET_LIBS="$WIDGET_LIBS -lXp -lXext"
41
WIDGET_OBJS="$WIDGET_OBJS x11-motif.o"
49
[ --enable-athena build with the Athena widget set])
51
if test "$enable_athena" != "no"; then
52
saved_cflags="$CFLAGS"
54
CFLAGS="$CFLAGS $X_CFLAGS"
55
LIBS="$LIBS $X_LIBS $X_PRE_LIBS"
56
AC_CHECK_LIB(Xaw3d, XawInitializeWidgetSet,
57
[athena=yes athena3d=yes], ,
60
if test "X$athena" != X"yes"; then
61
AC_CHECK_LIB(Xaw, XawInitializeWidgetSet, athena=yes, ,
65
if test "X$athena" = X"yes"; then
67
if test "X$athena3d" = X"yes"; then
72
WIDGET_LIBS="$WIDGET_LIBS $xawlib -lXmu"
73
WIDGET_OBJS="$WIDGET_OBJS x11-athena.o"
80
if test "X$motif" = X"yes" -o "X$athena" = X"yes"; then
81
WIDGET_LIBS="$WIDGET_LIBS -lXt -lXpm -lX11"
82
WIDGET_OBJS="$WIDGET_OBJS x11.o"
88
[ --enable-gtk build with the GTK widget set])
90
if test "$enable_gtk" != "no"; then
91
AC_CHECK_PROG(GTKCONFIG, gtk-config, yes, no)
93
if test "X$GTKCONFIG" = X"yes"; then
95
GTK_CFLAGS="`gtk-config --cflags`"
96
WIDGET_LIBS="$WIDGET_LIBS `gtk-config --libs`"
97
WIDGET_OBJS="$WIDGET_OBJS gtk.o"