]> granicus.if.org Git - postgresql/blob - src/template/linux
Make psql reject attempts to set special variables to invalid values.
[postgresql] / src / template / linux
1 # src/template/linux
2
3 # Prefer unnamed POSIX semaphores if available, unless user overrides choice
4 if test x"$PREFERRED_SEMAPHORES" = x"" ; then
5   PREFERRED_SEMAPHORES=UNNAMED_POSIX
6 fi
7
8 # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
9 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
10
11 # If --enable-profiling is specified, we need -DLINUX_PROFILE
12 PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
13
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
19   fi
20
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.
25   case $host_cpu in
26     sparc)
27         need_tas=yes
28         tas_file=sunstudio_sparc.s
29     ;;
30     i?86|x86_64)
31         need_tas=yes
32         tas_file=sunstudio_x86.s
33     ;;
34   esac
35 fi