~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2009-03-03 03:47:06 UTC
  • mto: This revision was merged to the branch mainline in revision 910.
  • Revision ID: mordred@inaugust.com-20090303034706-6k1u0h6t6hhhuymi
Fixed 64-bit flags for Solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
# The port should be constant for a LONG time
83
83
DRIZZLE_TCP_PORT_DEFAULT=4427
84
84
 
85
 
# We need to hack in some of the non-standard locations that solaris sticks
86
 
# stuff in. This makes me very sad.
87
 
case "$host_os" in
88
 
  solaris*)
89
 
    CPPFLAGS="${CPPFLAGS} -I/opt/csw/include -I/opt/local/include"
90
 
    LDFLAGS="${LDFLAGS} -L/opt/csw/lib -L/opt/csw/lib"
91
 
    ;;
92
 
esac
93
 
 
94
85
m4_include(m4/dtrace.m4)
95
86
 
96
87
m4_include(m4/character_sets.m4)
256
247
fi
257
248
if test "$SUNCC" = "yes"
258
249
then
 
250
  isainfo_k=`isainfo -k`
259
251
  if test "$target_cpu" = "sparc"
260
252
  then
261
253
    MEMALIGN_FLAGS="-xmemalign=8s"
262
254
    IS_64="-m64"
 
255
    LDFLAGS="${LDFLAGS} -L/usr/lib/${isainfo_k} -L/usr/local/lib/${isainfo_k}"
263
256
  else
264
 
    isainfo_k=`isainfo -k`
265
257
    if test "$isainfo_k" = "amd64"
266
258
    then
267
259
      IS_64="-m64"
268
260
      LDFLAGS="${LDFLAGS} -L/usr/lib/${isainfo_k} -L/usr/local/lib/${isainfo_k}"
269
261
    fi
270
262
  fi
 
263
  case "$host_os" in
 
264
    solaris*)
 
265
      CPPFLAGS="${CPPFLAGS} -I/opt/csw/include"
 
266
      LDFLAGS="${LDFLAGS} -L/opt/csw/lib"
 
267
      ;;
 
268
  esac
 
269
 
271
270
  CXXFLAGS="${CXXFLAGS} -xlang=c99 -g -mt -compat=5 -library=stlport4 -template=no%extdef ${IS_64} ${MEMALIGN_FLAGS}"
272
271
  CFLAGS="${CFLAGS} -g -mt -xc99=all ${IS_64} ${MEMALIGN_FLAGS}"
273
272
  DEBUG_CFLAGS="-xO0"