GRAPHVIZ_VERSION_BUILD=0
GRAPHVIZ_VERSION_REVISION=0
case "${host_os}" in
- *uwin* | *cygwin* | *mingw32* )
+ *uwin* | *cygwin* | *mingw32* | *mingw64* )
# Windows version numbers
# For the build number: months since Jan 2000, day of month from the timestamp
# For the revision number: hour, minute from the timestamp
UWIN=no
CYGWIN=no
MINGW32=no
+MINGW64=no
DARWIN9=no
case "${host_os}" in
*uwin* )
NO_POSTSCRIPT_ALIAS=1
BROWSER="xdg-open"
;;
+ *mingw64* )
+ MINGW64=yes
+ DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
+ PATHSEPARATOR=":"
+ NO_POSTSCRIPT_ALIAS=1
+ BROWSER="xdg-open"
+ ;;
*darwin9* )
DARWIN=yes
AC_DEFINE_UNQUOTED(DARWIN,1,[Define for any Darwin-based OS.])
esac
AC_SUBST([CYGWIN])
AC_SUBST([MINGW32])
+AC_SUBST([MINGW64])
AC_SUBST([DARWIN])
AC_SUBST([DARWIN9])
AC_SUBST([EXTRA_SMYRNA_LDFLAGS])
AC_DEFINE_UNQUOTED(DEFAULT_FONTPATH,"$DEFAULT_FONTPATH",[Path to TrueType fonts.])
AC_DEFINE_UNQUOTED(PATHSEPARATOR,"$PATHSEPARATOR",[Path separator character.])
AC_DEFINE_UNQUOTED(NO_POSTSCRIPT_ALIAS,$NO_POSTSCRIPT_ALIAS,[Postscript fontnames.])
-AM_CONDITIONAL(WITH_WIN32, [test "x$UWIN" = "xyes" -o "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes"])
+# FIXME - WITH_WIN32 also set for MINGW64 - may need to separate
+AM_CONDITIONAL(WITH_WIN32, [test "x$UWIN" = "xyes" -o "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes" -o "x$MINGW64" = "xyes"])
AM_CONDITIONAL(WITH_DARWIN9, [test "x$DARWIN9" = "xyes"])
DEFAULT_DPI=96
AC_ENABLE_SHARED
use_shared="Yes"
case "${host_os}" in
- *uwin* | *cygwin* | *mingw32* )
+ *uwin* | *cygwin* | *mingw32* | *mingw64* )
AC_DEFINE_UNQUOTED(GVDLL,1, [Define for DLLs on Windows.])
;;
esac
{
if (myfgets) AG.fgets = myfgets;
if (myfwrite) AG.fwrite = myfwrite;
-#if defined(__SUNPRO_C) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__FreeBSD__)
+#if defined(__SUNPRO_C) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__FreeBSD__)
#undef ferror
#endif
if (myferror) AG.ferror = myferror;
}
#ifdef ferror
-/* if ferror is a macro (__SUNPRO_C __CYGWIN__ __MINGW32__ __FreeBSD__ and poss others)
+/* if ferror is a macro (__SUNPRO_C __CYGWIN__ __MINGW32__ __MINGW64__ __FreeBSD__ and poss others)
* then wrap it in a function */
static int agferror(FILE *stream)
{
#if defined(DARWIN_DYLIB)
char *plugin_re_beg = "[^0-9]\\.";
char *plugin_re_end = "\\.dylib$";
-#elif defined(__MINGW32__)
+#elif defined(__MINGW32__) || defined(__MINGW64__)
char *plugin_glob = "libgvplugin_*";
char *plugin_re_beg = "[^0-9]-";
char *plugin_re_end = "\\.dll$";
config_re = gmalloc(strlen(plugin_re_beg) + 20 + strlen(plugin_re_end) + 1);
-#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
+#if defined(WIN32) && !defined(__MINGW32__) && !defined(__MINGW64__) && !defined(__CYGWIN__)
sprintf(config_re,"%s%s", plugin_re_beg, plugin_re_end);
#elif defined(GVPLUGIN_VERSION)
sprintf(config_re,"%s%d%s", plugin_re_beg, GVPLUGIN_VERSION, plugin_re_end);
s = strrchr(p, DIRSEP[0]);
len = strlen(s);
-#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
+#if defined(WIN32) && !defined(__MINGW32__) && !defined(__MINGW64__) && !defined(__CYGWIN__)
if (len < strlen("/gvplugin_x")) {
#else
if (len < strlen("/libgvplugin_x")) {
return NULL;
}
sym = gmalloc(len + strlen(suffix) + 1);
-#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
+#if defined(WIN32) && !defined(__MINGW32__)&& !defined(__MINGW64__) && !defined(__CYGWIN__)
strcpy(sym, s+1); /* strip leading "/" */
#else
strcpy(sym, s+4); /* strip leading "/lib" or "/cyg" */
#endif
-#if defined(__CYGWIN__) || defined(__MINGW32__)
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__)
s = strchr(sym, '-'); /* strip trailing "-1.dll" */
#else
s = strchr(sym, '.'); /* strip trailing ".so.0" or ".dll" or ".sl" */