~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2009-03-02 11:58:03 UTC
  • mto: (908.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 910.
  • Revision ID: mordred@inaugust.com-20090302115803-uzc4khmcut2sy3yf
Added tests for 64-bit solaris. Look in /usr/lib/amd64 and /usr/local/lib/amd64 if we are 64-bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
    [SYSTEM_TYPE="$host_vendor-$host_os"])
120
120
AC_ARG_WITH([machine-type],
121
121
    [AS_HELP_STRING([--with-machine-type],
122
 
       [Set the machine type, like "powerpc"])],
 
122
       [Set the machine type, like "sparc"])],
123
123
    [MACHINE_TYPE="$withval"],
124
124
    [MACHINE_TYPE="$host_cpu"])
125
125
AC_SUBST(SYSTEM_TYPE)
257
257
  if test "$target_cpu" = "sparc"
258
258
  then
259
259
    MEMALIGN_FLAGS="-xmemalign=8s"
 
260
    IS_64="-m64"
 
261
  else
 
262
    isainfo_k=`isainfo -k`
 
263
    if test "$isainfo_k" = "amd64"
 
264
    then
 
265
      IS_64="-m64 -L/usr/lib/amd64 -L/usr/local/lib/amd64"
 
266
    fi
260
267
  fi
261
 
  AM_CXXFLAGS="${AM_CXXFLAGS} -xlang=c99 -g -compat=5 -library=stlport4 -template=no%extdef ${MEMALIGN_FLAGS}"
262
 
  AM_CFLAGS="${AM_CFLAGS} -g ${MEMALIGN_FLAGS}"
 
268
  AM_CXXFLAGS="${AM_CXXFLAGS} -xc99=all -g -mt -compat=5 -library=stlport4 -template=no%extdef ${IS_64} ${MEMALIGN_FLAGS}"
 
269
  AM_CFLAGS="${AM_CFLAGS} -g -mt -xlang=c99 ${IS_64} ${MEMALIGN_FLAGS}"
263
270
  DEBUG_CFLAGS="-xO0"
264
271
  DEBUG_CXXFLAGS="-xO0" 
265
272
 
266
273
  OPTIMIZE_FLAGS="-xO4 -xlibmil -xdepend"
267
274
  OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS} -Xa -xstrconst"
268
275
  OPTIMIZE_CXXFLAGS="${OPTIMIZE_FLAGS}"
 
276
 
 
277
  dnl We need these next two so that configure lib tests make sure we've got
 
278
  dnl libs for the appropriate bit-width - but they need to double up in AM_*
 
279
  dnl so that they don't get overridden by make-time cflags.
 
280
  CFLAGS="${CFLAGS} ${IS_64}"
 
281
  CXXFLAGS="${CXXFLAGS} ${IS_64}"
269
282
fi
270
283
 
271
284
# We use libtool
1353
1366
    W_FAIL="-errwarn=%all"
1354
1367
  fi
1355
1368
 
1356
 
  CC_WARNINGS="-v -xc99=all -errtags=yes -erroff=E_ATTRIBUTE_NOT_VAR"
1357
 
  CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -erroff=attrskipunsup,doubunder,reftotemp,inllargeuse -compat=5"
1358
 
  #CC_WARNINGS="-v -xc99=all -errtags=yes -erroff=E_ATTRIBUTE_NOT_VAR"
1359
 
  #CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -erroff=attrskipunsup,doubunder -compat=5"
 
1369
  CC_WARNINGS="-v -errtags=yes -erroff=E_ATTRIBUTE_NOT_VAR ${W_FAIL}"
 
1370
  CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -erroff=attrskipunsup,doubunder,reftotemp,inllargeuse -compat=5 ${W_FAIL}" 
1360
1371
  PROTOSKIP_WARNINGS="-erroff=attrskipunsup,doubunder,reftotemp,wbadinitl,identexpected,inllargeuse"
1361
1372
  NO_UNREACHED="-erroff=E_STATEMENT_NOT_REACHED"
1362
1373
  if test "$ac_exceptions" = "no"