/[svn]/linuxsampler/trunk/configure.in
ViewVC logotype

Diff of /linuxsampler/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1453 by schoenebeck, Mon Oct 15 12:14:13 2007 UTC revision 1454 by schoenebeck, Fri Oct 19 17:52:15 2007 UTC
# Line 114  fi Line 114  fi
114  # check for <features.h>  # check for <features.h>
115  AC_CHECK_HEADERS(features.h)  AC_CHECK_HEADERS(features.h)
116    
117    # test for POSIX thread library
118    m4_ifdef([m4_include(m4/pthread.m4)],,
119                 [sinclude([m4/pthread.m4])])
120    ACX_PTHREAD
121    LIBS="$PTHREAD_LIBS $LIBS"
122    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
123    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
124    CC="$PTHREAD_CC"
125    
126    # check for a bug in NPTL-enabled glibc
127    # (see Gentoo bug report #194076)
128    AC_ARG_ENABLE(nptl-bug-check,
129      [  --disable-nptl-bug-check
130                              Disable check for a bug in certain NPTL-enabled
131                              glibc versions that caused crashs.],
132      [config_check_nptl_bug="$enableval"],
133      [config_check_nptl_bug="yes"]
134    )
135    if test "$config_check_nptl_bug" = "yes"; then
136        m4_ifdef([m4_include(m4/nptl_bug.m4)],,
137                 [sinclude([m4/nptl_bug.m4])])
138        ACX_NPTL_GLIBC_BUG([
139            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
140            echo "You seem to have a buggy PTHREAD library! LinuxSampler would"
141            echo "probably crash due to this. Please report us the system you are"
142            echo "using and/or file a bug report to the bug tracking system of"
143            echo "your distribution."
144            echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as"
145            echo "well, you can try to circumvent this problem for now by setting"
146            echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which"
147            echo "should cause this test to pass."
148            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
149            AC_MSG_ERROR([possibly NPTL glibc bug detected])
150        ])
151    else
152        echo "NPTL glibc bug check disabled"
153    fi
154    
155    
156    
157  ###########################################################################  ###########################################################################
158  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers

Legend:
Removed from v.1453  
changed lines
  Added in v.1454

  ViewVC Help
Powered by ViewVC