~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_optimize.m4

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems
2
 
dnl This file is free software; Sun Microsystems
 
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
 
2
dnl This file is free software; Sun Microsystems, Inc.
3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
22
22
    dnl with using AC_CC_STD_C99 above
23
23
    CC="${CC} -std=gnu99"
24
24
 
25
 
    AM_CPPFLAGS="-ggdb3 ${AM_CPPFLAGS}"
 
25
    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
26
26
 
27
27
    DEBUG_CFLAGS="-O0"
28
28
    DEBUG_CXXFLAGS="-O0"
29
29
 
30
 
    OPTIMIZE_CFLAGS="-O3"
31
 
    OPTIMIZE_CXXFLAGS="-O3"
 
30
    OPTIMIZE_CFLAGS="-O2"
 
31
    OPTIMIZE_CXXFLAGS="-O2"
32
32
  ])
33
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
34
    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
39
35
 
40
36
    DEBUG_CFLAGS="-O0"
41
37
    DEBUG_CXXFLAGS="-O0"
42
38
 
43
 
    OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static"
 
39
    OPTIMIZE_CFLAGS="-xHOST -O2 -no-prec-div -static"
44
40
    OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}"
45
41
 
46
42
  ])