1999-01-30 20:23:09 +00:00
|
|
|
--- configure.in.orig Thu Jan 28 09:59:01 1999
|
|
|
|
+++ configure.in Thu Jan 28 23:13:01 1999
|
1999-03-09 01:13:40 +00:00
|
|
|
@@ -268,7 +268,7 @@
|
1999-01-20 18:31:00 +00:00
|
|
|
AC_CHECK_HEADERS(values.h, AC_DEFINE(HAVE_VALUES_H))
|
1998-12-30 07:49:17 +00:00
|
|
|
|
|
|
|
# Check for some functions
|
1999-01-30 20:23:09 +00:00
|
|
|
-AC_CHECK_FUNCS(lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll)
|
|
|
|
+AC_CHECK_FUNCS(lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp)
|
1998-12-30 07:49:17 +00:00
|
|
|
|
|
|
|
# Check for sys_errlist
|
|
|
|
AC_MSG_CHECKING(for sys_errlist)
|
1999-03-09 01:13:40 +00:00
|
|
|
@@ -507,6 +507,9 @@
|
|
|
|
linux*)
|
|
|
|
G_MODULE_LDFLAGS='-rdynamic'
|
|
|
|
;;
|
|
|
|
+ freebsd*)
|
|
|
|
+ G_MODULE_LDFLAGS='-Wl,-E'
|
|
|
|
+ ;;
|
|
|
|
esac
|
|
|
|
LIBS_orig="$LIBS"
|
|
|
|
LDFLAGS_orig="$LDFLAGS"
|
|
|
|
@@ -716,11 +719,13 @@
|
1999-01-20 18:31:00 +00:00
|
|
|
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -mthreads"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
- *-freebsd2.2*)
|
|
|
|
- G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
|
|
|
|
-
|
|
|
|
- # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
|
|
|
|
- # -mthreads flag.
|
1999-03-09 01:13:40 +00:00
|
|
|
+ *-*-freebsd*)
|
1999-01-21 19:18:21 +00:00
|
|
|
+ if test x"$G_THREAD_LIBS" = x"-lc_r"; then
|
|
|
|
+ G_THREAD_CFLAGS="-D_THREAD_SAFE -pthread"
|
|
|
|
+ have_poll=no
|
|
|
|
+ else
|
1999-03-09 01:13:40 +00:00
|
|
|
+ G_THREAD_CFLAGS="-D_THREAD_SAFE -DLINUXTHREADS"
|
1999-01-21 19:18:21 +00:00
|
|
|
+ fi
|
1999-01-20 18:31:00 +00:00
|
|
|
;;
|
|
|
|
esac
|
1999-01-05 00:56:07 +00:00
|
|
|
|
1999-03-09 01:13:40 +00:00
|
|
|
@@ -834,6 +839,9 @@
|
1999-01-05 00:56:07 +00:00
|
|
|
dnl ****************************************
|
|
|
|
dnl *** GLib POLL* compatibility defines ***
|
|
|
|
dnl ****************************************
|
|
|
|
+if test x"$have_poll" != xno; then
|
|
|
|
+ AC_CHECK_FUNCS(poll)
|
|
|
|
+fi
|
1999-01-20 18:31:00 +00:00
|
|
|
GLIB_SYSDEFS(
|
|
|
|
[#include <sys/types.h>
|
|
|
|
#include <sys/poll.h>],
|