bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lock module: change default settings for OSF/1


From: Bruno Haible
Subject: lock module: change default settings for OSF/1
Date: Wed, 23 Aug 2006 14:07:20 +0200
User-agent: KMail/1.9.1

This turns off multithreading support for OSF/1 by default. Needed because
the mere _linking_ with -lpthread causes programs using fork/exec to
go into an endless SIGSEGV loop inside execvp().

2006-08-18  Bruno Haible  <address@hidden>

        * lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads on
        OSF/1 to no.
        Reported by Stephen Cartwright <address@hidden>.

*** lock.m4     23 Aug 2006 12:04:46 -0000      1.5
--- lock.m4     23 Aug 2006 12:07:28 -0000
***************
*** 1,4 ****
! # lock.m4 serial 3 (gettext-0.15.1)
  dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # lock.m4 serial 4 (gettext-0.15.1)
  dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
***************
*** 40,46 ****
    AC_ARG_ENABLE(threads,
  AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify 
multithreading API])
  AC_HELP_STRING([--disable-threads], [build without multithread safety]),
!     gl_use_threads=$enableval, gl_use_threads=yes)
    gl_threads_api=none
    LIBTHREAD=
    LTLIBTHREAD=
--- 40,54 ----
    AC_ARG_ENABLE(threads,
  AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify 
multithreading API])
  AC_HELP_STRING([--disable-threads], [build without multithread safety]),
!     [gl_use_threads=$enableval],
!     [case "$host_os" in
!        dnl Disable multithreading by default on OSF/1, because it interferes
!        dnl with fork()/exec(): When msgexec is linked with -lpthread, its 
child
!        dnl process gets an endless segmentation fault inside execvp().
!        osf*) gl_use_threads=no ;;
!        *)    gl_use_threads=yes ;;
!      esac
!     ])
    gl_threads_api=none
    LIBTHREAD=
    LTLIBTHREAD=




reply via email to

[Prev in Thread] Current Thread [Next in Thread]