dnl # check for functions #
dnl #######################
-WCHAR_LINK=
dnl check for wcslen
-AC_CHECK_LIB(c,wcslen,,
- AC_CHECK_LIB(w,wcslen,
- WCHAR_LINK="-lw" ,AC_MSG_ERROR("Cannot find wcslen function.")))
+AC_CHECK_LIB(c, wcslen, [
+ AC_DEFINE(HAVE_WCSLEN)
+ WCHAR_LINK=""
+ ], [
+ AC_CHECK_LIB(w, wcslen, [
+ AC_DEFINE(HAVE_WCSLEN)
+ WCHAR_LINK="-lw"
+ ])
+ ])
AC_SUBST(WCHAR_LINK)
dnl check for vprintf/vsprintf() which are GNU extensions
DEFAULT_wxUSE_CLIPBOARD=1
DEFAULT_wxUSE_TOOLTIPS=1
DEFAULT_wxUSE_DRAG_AND_DROP=1
+DEFAULT_wxUSE_SPLINE=1
DEFAULT_wxUSE_MDI_ARCHITECTURE=1
DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=1
**--with-dnd use Drag'n'Drop classes,
wxUSE_DRAG_AND_DROP)
+AC_OVERRIDES(spline,spline,
+**--with-spline use Spline drawing code,
+wxUSE_SPLINE)
+
dnl ----------------------------------------------------------------
dnl user options for architectures
dnl ----------------------------------------------------------------
MAKEINCLUDE=../gtk.inc
AM_PATH_GTK(1.2.0, [
WXGTK12=1
- ], AC_MSG_RESULT(no))
+ ])
fi
if test "$wxUSE_QT" = 1; then
AC_DEFINE(HAVE_PTHREAD_CANCEL),
AC_MSG_WARN(wxThread::Kill() will not work properly))
+ AC_MSG_CHECKING([for pthread_cleanup_push/pop])
+ AC_TRY_COMPILE([#include <pthread.h>],
+ [
+ pthread_cleanup_push(NULL, NULL);
+ pthread_cleanup_pop(0);
+ ],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_THREAD_CLEANUP_FUNCTIONS)
+ ],
+ [AC_MSG_RESULT(no)]
+ )
+
THREADS_LINK="-l$THREADS_LINK"
fi
fi
fi
+if test "$wxUSE_SPLINE" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_SPLINE,$wxUSE_SPLINE)
+fi
+
dnl ----------------------------------------------------------------
dnl No effect yet
dnl ----------------------------------------------------------------