dnl search path for includes and libraries
dnl ------------------------------------------------------------------------
+dnl VZ: added standard locations for Xm.h for Irix, HP-UX and SunOS (19.02.99)
SEARCH_INCLUDE="\
+ /usr/Motif-1.2/include \
+ /usr/Motif-2.1/include \
+ \
+ /usr/include/Motif1.2 \
+ /opt/xpm/include/X11 \
+ \
/usr/Motif1.2/include \
- /usr/dt/include/Xm \
- \
+ /usr/dt/include \
+ /usr/include/Xm \
+ \
/usr/X11R6/include \
/usr/X11R5/include \
/usr/X11R4/include \
/usr/lpp/Xamples/include \
\
/usr/local/include/gtk \
- /usr/local/include/Xm \
/usr/local/include/qt \
- /usr/X11R6/include/Xm \
- /usr/X11/include/Xm \
/usr/include/qt \
\
/usr/openwin/include \
/usr/openwin/share/include \
"
-SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \
- /usr/dt/lib \
- "
+SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
dnl ------------------------------------------------------------------------
dnl standard checks
dnl check for vprintf/vsprintf() which are GNU extensions
AC_FUNC_VPRINTF
dnl check for vsnprintf() which is another GNU extension
-AC_CHECK_FUNC(vsnprintf)
+AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF))
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_SIZEOF(int *)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
+AC_CHECK_SIZEOF(long long)
dnl defines the size of certain types of variables in SIZEOF_???
dnl ############################
DEFAULT_wxUSE_ZLIB=1
DEFAULT_wxUSE_LIBPNG=1
+DEFAULT_wxUSE_LIBJPEG=0
DEFAULT_wxUSE_ODBC=1
DEFAULT_wxUSE_TIMEDATE=1
DEFAULT_wxUSE_CONFIG=1
DEFAULT_wxUSE_STREAMS=1
DEFAULT_wxUSE_SERIAL=1
+DEFAULT_wxUSE_DYNLIB_CLASS=1
DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=1
DEFAULT_WX_NORMALIZED_PS_FONTS=1
DEFAULT_wxUSE_IPC=1
DEFAULT_wxUSE_RESOURCES=1
DEFAULT_wxUSE_CLIPBOARD=1
+DEFAULT_wxUSE_TOOLTIPS=1
DEFAULT_wxUSE_DRAG_AND_DROP=1
DEFAULT_wxUSE_MDI_ARCHITECTURE=1
**--with-threads for enabling threads,
wxUSE_THREADS)
+AC_OVERRIDES(dynlib,dynlib,
+**--with-dynlib to compile wxLibrary class,
+wxUSE_DYNLIB_CLASS)
+
dnl ----------------------------------------------------------------
dnl user options for libraries
dnl ----------------------------------------------------------------
**--with-libpng use libpng (PNG image format),
wxUSE_LIBPNG)
+AC_OVERRIDES(libjpeg,libjpeg,
+**--with-libjpeg use libjpeg (JPEG image format),
+wxUSE_LIBJPEG)
+
AC_OVERRIDES(odbc,odbc,
**--with-odbc use iODBC and wxODBC classes,
wxUSE_ODBC)
**--with-clipboard use wxClipboard classes,
wxUSE_CLIPBOARD)
+AC_OVERRIDES(tooltips,tooltips,
+**--with-tooltips use tooltips,
+wxUSE_TOOLTIPS)
+
AC_OVERRIDES(dnd,dnd,
**--with-dnd use Drag'n'Drop classes,
wxUSE_DRAG_AND_DROP)
if test "$wxUSE_MOTIF" = 1; then
AC_MSG_CHECKING(for Motif/Lesstif includes)
- AC_PATH_FIND_INCLUDES($SEARCH_INCLUDE,Xm.h)
+ AC_PATH_FIND_INCLUDES($SEARCH_INCLUDE,Xm/Xm.h)
if test "$ac_find_includes" != "" ; then
AC_MSG_RESULT(found $ac_find_includes)
AC_MSG_CHECKING(for Motif/Lesstif library)
fi
AC_SUBST(PNG_C_SRC)
+JPEG_LINK=""
+if test "$wxUSE_LIBJPEG" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_LIBJPEG,$wxUSE_LIBJPEG)
+ AC_CHECK_LIB(jpeg)
+ JPEG_LINK="-ljpeg"
+fi
+AC_SUBST(JPEG_LINK)
+
IODBC_C_SRC=""
if test "$wxUSE_ODBC" = 1 ; then
AC_DEFINE_UNQUOTED(wxUSE_ODBC,$wxUSE_ODBC)
AC_DEFINE_UNQUOTED(wxUSE_SERIAL,$wxUSE_SERIAL)
fi
+dnl ------------------------------------------------------------------------
+dnl wxLibrary class
+dnl ------------------------------------------------------------------------
+
+HAVE_DL_FUNCS=0
+if test "$wxUSE_DYNLIB_CLASS" = "1"; then
+ dnl the test is a bit complicated because we check for dlopen() both with
+ dnl and without -ldl
+ AC_CHECK_FUNCS(dlopen,
+ [AC_DEFINE(HAVE_DLOPEN) HAVE_DL_FUNCS=1],
+ [AC_CHECK_LIB(dl, dlopen,
+ [AC_DEFINE(HAVE_DLOPEN) HAVE_DL_FUNCS=1])])
+ AC_CHECK_FUNCS(shl_load, [AC_DEFINE(HAVE_SHL_LOAD) HAVE_DL_FUNCS=1])
+
+ if test "$HAVE_DL_FUNCS" = 0; then
+ AC_MSG_WARN("--with-dynlib will be disabled because no function was found to load a shared library on this platform")
+
+ wxUSE_DYNLIB_CLASS=0
+ fi
+fi
+
+if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_DYNLIB_CLASS,$wxUSE_DYNLIB_CLASS)
+fi
+
dnl ----------------------------------------------------------------
dnl Register Prolog and Resources options for makefiles and setup.h
dnl ----------------------------------------------------------------
AC_DEFINE_UNQUOTED(wxUSE_CLIPBOARD,$wxUSE_CLIPBOARD)
fi
+if test "$wxUSE_TOOLTIPS" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_TOOLTIPS,$wxUSE_TOOLTIPS)
+fi
+
if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
AC_DEFINE_UNQUOTED(wxUSE_DRAG_AND_DROP,$wxUSE_DRAG_AND_DROP)
fi