configure.in
changeset 378 41cda991e23a
parent 353 7adb20841f11
child 381 b65d27fdc8a9
--- a/configure.in	Tue Jul 23 22:56:39 2002 +0000
+++ b/configure.in	Tue Jul 23 23:10:50 2002 +0000
@@ -251,6 +251,18 @@
   AC_MSG_RESULT([$this_is_freebsd])
 fi
 
+this_is_openbsd=no
+if test x$we_have_sed = xyes; then
+  AC_MSG_CHECKING([if this is OpenBSD])
+  x=`echo $build_os |tr A-Z a-z |sed "s/.*openbsd.*/openbsd/"`
+  if test x$x = xopenbsd; then
+    this_is_openbsd=yes
+    LDFLAGS="$LDFLAGS -pthread"
+  fi
+
+  AC_MSG_RESULT([$this_is_openbsd])
+fi
+
 # Checks for header files.
 AC_HEADER_STDC
 AC_CHECK_HEADERS([stdlib.h string.h])