~pblokus/drizzle/unittests-plugin-interfaces

« back to all changes in this revision

Viewing changes to m4/pandora_platform.m4

  • Committer: Paweł Blokus
  • Date: 2010-08-15 23:29:35 UTC
  • mfrom: (1377.239.36 drizzle)
  • Revision ID: pawel@pawel-desktop-20100815232935-pag8366e9ya5n8n6
merged latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    *solaris*)
60
60
      TARGET_SOLARIS="true"
61
61
      PANDORA_OPTIMIZE_BITFIELD=0
 
62
      LIBS="${LIBS} -lintl"
62
63
      AC_SUBST(TARGET_SOLARIS)
63
64
      AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
64
65
      ;;
68
69
      AC_DEFINE([TARGET_OS_FREEBSD], [1], [Whether we are building for FreeBSD])
69
70
      AC_DEFINE([__APPLE_CC__],[1],[Workaround for bug in FreeBSD headers])
70
71
      ;;
71
 
    *)
 
72
    *mingw32*)
 
73
      TARGET_WINDOWS="true"
 
74
      AC_SUBST(TARGET_WINDOWS)
 
75
      AC_DEFINE([TARGET_OS_WINDOWS], [1], [Whether we are building for Windows])
 
76
      AC_DEFINE([WINVER], [WindowsXP], [Version of Windows])
 
77
      AC_DEFINE([_WIN32_WINNT], [0x0501], [Magical number to make things work])
 
78
      LIBS="$LIBS -lwsock32 -lws2_32"
 
79
      AM_CFLAGS="${AM_CFLAGS} -I\${top_srcdir}/win32 -I\${top_builddir}/win32"
72
80
      ;;
73
81
  esac
 
82
  AM_CONDITIONAL(BUILD_WIN32, [test "x${TARGET_WINDOWS}" = "xtrue"])
74
83
 
75
84
  AC_SUBST(PANDORA_OPTIMIZE_BITFIELD)
76
85