~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_optimize.m4

  • Committer: Brian Aker
  • Date: 2009-07-16 19:30:03 UTC
  • mfrom: (1093.1.17 captain)
  • Revision ID: brian@gaz-20090716193003-gwt4i1le2g02ay0j
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
AC_DEFUN([PANDORA_OPTIMIZE],[
7
7
  dnl Build optimized or debug version ?
8
8
  dnl First check for gcc and g++
9
 
  AS_IF([test "$GCC" = "yes"],[
10
 
 
11
 
    AC_DEFINE([_GNU_SOURCE],[1],[Fix problem with S_ISLNK() on Linux])
 
9
  AS_IF([test "$GCC" = "yes" -a "$INTELCC" = "no"],[
12
10
 
13
11
    dnl The following is required for portable results of floating point 
14
12
    dnl calculations on PowerPC. The same must also be done for IA-64, but 
32
30
    OPTIMIZE_CFLAGS="-O3"
33
31
    OPTIMIZE_CXXFLAGS="-O3"
34
32
  ])
 
33
  AS_IF([test "$INTELCC" = "yes"],[
 
34
    dnl Once we can use a modern autoconf, we can replace the std=gnu99 here
 
35
    dnl with using AC_CC_STD_C99 above
 
36
    CC="${CC} -std=c99"
 
37
 
 
38
    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
 
39
 
 
40
    DEBUG_CFLAGS="-O0"
 
41
    DEBUG_CXXFLAGS="-O0"
 
42
 
 
43
    OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static"
 
44
    OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}"
 
45
 
 
46
  ])
35
47
  AS_IF([test "$SUNCC" = "yes"],[
36
48
    dnl Once we can use a modern autoconf, we can replace the -xc99=all here
37
49
    dnl with using AC_CC_STD_C99 above