Explorar el Código

Added build system support for OpenBSD.

Ryan C. Gordon hace 23 años
padre
commit
fa77075d7c
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      configure.in

+ 12 - 0
configure.in

@@ -251,6 +251,18 @@ if test x$we_have_sed = xyes; then
   AC_MSG_RESULT([$this_is_freebsd])
   AC_MSG_RESULT([$this_is_freebsd])
 fi
 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.
 # Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_STDC
 AC_CHECK_HEADERS([stdlib.h string.h])
 AC_CHECK_HEADERS([stdlib.h string.h])