3 # Prefer unnamed POSIX semaphores if available, unless user overrides choice
4 if test x"$PREFERRED_SEMAPHORES" = x"" ; then
5 PREFERRED_SEMAPHORES=UNNAMED_POSIX
8 # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
9 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
11 # If --enable-profiling is specified, we need -DLINUX_PROFILE
12 PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
14 if test "$SUN_STUDIO_CC" = "yes" ; then
15 CC="$CC -Xa" # relaxed ISO C mode
16 CFLAGS="-v" # -v is like gcc -Wall
17 if test "$enable_debug" != yes; then
18 CFLAGS="$CFLAGS -O" # any optimization breaks debug
21 # Pick the right test-and-set (TAS) code for the Sun compiler.
22 # We would like to use in-line assembler, but the compiler
23 # requires *.il files to be on every compile line, making
24 # the build system too fragile.
28 tas_file=sunstudio_sparc.s
32 tas_file=sunstudio_x86.s