2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
2001-02-21 Tor Lillqvist <tml@iki.fi>
- * gutils.c (g_path_is_absolute): Match also UNC paths on Win32.
+ * gutils.c (g_find_program_in_path): Implement on Win32.
+
+ Cygwin support contributed by Stefan Ondrejicka
+ <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
+ adding support for auto*/libtool for mingw.
+
+ * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
+ still distribute the hand-written makefiles and *.win32.in files,
+ though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
+ Use -no-undefined. Pass -export-symbols glib.def to libtool.
+
+ * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
+ and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
+ calls for Cygwin and mingw support. Check for %I64u guint64
+ format (in MS C library). Set G_MODULE_IMPL on mingw and
+ Cygwin. Use ac_object and ac_exeext. Set GIO, GSPAWN, PLATFORMDEP
+ and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
+ automake conditional on Win32.
+
+ * glib.h: Include gwin32.h also on Cygwin.
+
+ * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
+ Unix) for Cygwin's sake.
+
+ * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
+
+ * gconvert.c
+ * gthread.c
+ * gutf8.c
+ * gutils.c: For code needed both on Cygwin and native Win32,
+ test for G_PLATFORM_WIN32.
+
+ * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
+ in case compiling a static library on Win32 or Cygwin.
+
+ * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
+ dirent emulation on Cygwin.
+ (get_package_directory_from_module) Convert return value from
+ GetModuleFileName() to POSIX path on Cygwin.
+
+ * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
+ and libgmodule as appropriate. Use -no-undefined.
+
+ * gbacktrace.c: Move #ifdefs around a bit on Win32.
+
+2001-02-21 Tor Lillqvist <tml@iki.fi>
+
+ * gshell.c (unquote_string_inplace): Make static.
* gthread.h: Include gtypes.h to be sure to get GLIB_VAR
definition, remove definition from here.
* Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
* makefile.mingw.in: Remove install target, Windows isn't Unix.
+ (DEFINES): Add -DDLL_EXPORT.
* testgdate.c
* testgdateparser.c
* testglib.c: Undefine GLIB_COMPILATION.
+ * testglib.c: Make some vars static. Add Cygwin path tests.
+
* glib.def: Updates.
* .cvsignore
glib.def \
makefile.msc.in \
makefile.mingw.in \
- giowin32.c \
glibconfig.h.win32.in \
- gwin32.c \
- gspawn-win32.c \
- gspawn-win32-helper.c \
config.h.win32.in \
build-dll \
glib.rc.in \
ghash.c \
ghook.c \
giochannel.c \
- giounix.c \
glibintl.h \
glist.c \
gmain.c \
gscanner.c \
gshell.c \
gslist.c \
- gspawn.c \
gstrfuncs.c \
gstring.c \
gthread.c \
gunidecomp.c \
gutils.c
-## If we decide to link in 'alloca.c', this is how to do it
-#libglib_1_3_la_LIBADD = @ALLOCA@
+EXTRA_libglib_1_3_la_SOURCES = \
+ giounix.c \
+ giowin32.c \
+ gspawn.c \
+ gspawn-win32.c \
+ gwin32.c
glibincludedir=$(includedir)/glib-2.0
glibinclude_HEADERS = \
CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
echo timestamp > stamp-gc-h
-libglib_1_3_la_LIBADD = @ICONV_LIBS@
+libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
+libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@
+
+
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+if OS_WIN32
+# This requires a very new libtool
+export_symbols = -export-symbols glib.def
+endif
libglib_1_3_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -export-dynamic
-
-noinst_PROGRAMS = testglib testgdate testgdateparser timeloop
+ -export-dynamic $(no_undefined) $(export_symbols)
+
+if OS_WIN32
+bin_PROGRAMS = gspawn-win32-helper
+gspawn_win32_helper_LDADD = libglib-1.3.la
+endif
+if ENABLE_TIMELOOP
+timeloop = timeloop
+endif
+noinst_PROGRAMS = testglib testgdate testgdateparser $(timeloop)
testglib_LDADD = libglib-1.3.la
testgdate_LDADD = libglib-1.3.la
testgdateparser_LDADD = libglib-1.3.la
+if ENABLE_TIMELOOP
timeloop_LDADD = libglib-1.3.la
-
+endif
m4datadir = $(datadir)/aclocal
m4data_DATA = glib-2.0.m4
fi
fi
+AC_CYGWIN
+AC_EXEEXT
+
# define a MAINT-like variable REBUILD which is set if Perl
# and awk are found, so autogenerated sources can be rebuilt
AC_PROG_AWK
GLIB_LOCALE_DIR="${prefix}/${DATADIRNAME}/locale"
AC_DEFINE_UNQUOTED(GLIB_LOCALE_DIR,"$GLIB_LOCALE_DIR")
-
dnl Initialize libtool
+AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
if test "x$GCC" = "xyes"; then
# long long is a 64 bit integer.
AC_MSG_CHECKING(for format to printf and scanf a gint64)
AC_CACHE_VAL(glib_cv_long_long_format,[
- for format in ll q; do
+ for format in ll q I64; do
AC_TRY_RUN([#include <stdio.h>
int main()
{
break)
done])
if test -n "$glib_cv_long_long_format"; then
- AC_MSG_RESULT(%${glib_cv_long_long_format}i)
+ AC_MSG_RESULT(%${glib_cv_long_long_format}u)
else
AC_MSG_RESULT(none)
fi
G_MODULE_NEED_USCORE=0
G_MODULE_BROKEN_RTLD_GLOBAL=0
G_MODULE_HAVE_DLERROR=0
+dnl *** force native WIN32 shared lib loader
+if test -z "$G_MODULE_IMPL"; then
+ case "$host" in
+ *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
+ esac
+fi
dnl *** dlopen() and dlsym() in system libraries
if test -z "$G_MODULE_IMPL"; then
AC_CHECK_FUNC(dlopen,
[glib_cv_uscore=yes],
[glib_cv_uscore=no],
[])
- rm -f plugin.c plugin.o plugin.lo
+ rm -f plugin.c plugin.$ac_objext plugin.lo
])
if test "x$glib_cv_uscore" = "xyes"; then
G_MODULE_NEED_USCORE=1
AC_SUBST(G_MODULE_NEED_USCORE)
AC_SUBST(GLIB_DEBUG_FLAGS)
+dnl **********************
+dnl *** g_spawn checks ***
+dnl **********************
+
+AC_MSG_CHECKING(for gspawn implementation)
+case "$host" in
+ *-*-mingw*)
+ GSPAWN=gspawn-win32.lo
+ ;;
+ *)
+ GSPAWN=gspawn.lo
+ ;;
+esac
+AC_MSG_RESULT($GSPAWN)
+AC_SUBST(GSPAWN)
+
+dnl *************************
+dnl *** GIOChannel checks ***
+dnl *************************
+
+AC_MSG_CHECKING(for GIOChannel implementation)
+case "$host" in
+ *-*-mingw*)
+ GIO=giowin32.lo
+ ;;
+ *)
+ GIO=giounix.lo
+ ;;
+esac
+AC_MSG_RESULT($GIO)
+AC_SUBST(GIO)
+
+dnl ****************************************
+dnl *** platform dependent source checks ***
+dnl ****************************************
+
+AC_MSG_CHECKING(for platform-dependent source)
+case "$host" in
+ *-*-cygwin*|*-*-mingw*)
+ PLATFORMDEP=gwin32.lo
+ ;;
+ *)
+ PLATFORMDEP=
+ ;;
+esac
+AC_MSG_RESULT($PLATFORMDEP)
+AC_SUBST(PLATFORMDEP)
+
+AC_MSG_CHECKING([whether to compile timeloop])
+case "$host" in
+ *-*-cygwin*|*-*-mingw*)
+ enable_timeloop=no
+ ;;
+ *)
+ enable_timeloop=yes
+ ;;
+esac
+AC_MSG_RESULT($enable_timeloop)
+AM_CONDITIONAL(ENABLE_TIMELOOP, test x$enable_timeloop = xyes)
+
+AC_MSG_CHECKING([if building for some Win32 platform])
+case "$host" in
+ *-*-mingw*|*-*-cygwin*)
+ platform_win32=yes
+ ;;
+ *)
+ platform_win32=no
+ ;;
+esac
+AC_MSG_RESULT($platform_win32)
+AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
+
+AC_MSG_CHECKING([if building for pure Win32])
+case "$host" in
+ *-*-mingw*)
+ os_win32=yes
+ ;;
+ *)
+ os_win32=no
+ ;;
+esac
+AC_MSG_RESULT($os_win32)
+AM_CONDITIONAL(OS_WIN32, test x$os_win32 = xyes)
dnl ***********************
dnl *** g_thread checks ***
fi
;;
*)
- for thread_lib in "" pthread pthreads c_r thread dce; do
+ for thread_lib in "" pthread pthread32 pthreads c_r thread dce; do
if test x"$thread_lib" = x; then
add_thread_lib=""
IN=""
glibconfig-sysdefs.h,
=)
+dnl **********************
+dnl *** Win32 API libs ***
+dnl **********************
+
+case $host in
+ *-*-cygwin*)
+ G_LIBS_EXTRA="-luser32 -lwsock32 -lkernel32"
+ ;;
+ *-*-mingw*)
+ G_LIBS_EXTRA="-lwsock32"
+ ;;
+ *)
+ G_LIBS_EXTRA=""
+ ;;
+esac
+AC_SUBST(G_LIBS_EXTRA)
+
dnl ***********************
dnl *** Tests for iconv ***
dnl ***********************
;;
*-*-cygwin*)
glib_os="#define G_OS_UNIX
+#define G_PLATFORM_WIN32
#define G_WITH_CYGWIN"
;;
*-*-mingw*)
- glib_os="#define G_OS_WIN32"
+ glib_os="#define G_OS_WIN32
+#define G_PLATFORM_WIN32"
;;
*)
glib_os="#define G_OS_UNIX"
#ifdef G_OS_WIN32
# define STRICT /* Strict typing, please */
# include <windows.h>
+# undef STRICT
#endif
#ifndef NO_FD_SET
#endif
+#ifndef G_OS_WIN32
static void stack_trace (char **args);
+#endif
extern volatile gboolean glib_on_error_halt;
volatile gboolean glib_on_error_halt = TRUE;
#endif
}
+#ifndef G_OS_WIN32
+
static gboolean stack_trace_done = FALSE;
static void
static void
stack_trace (char **args)
{
-#ifdef G_OS_UNIX
pid_t pid;
int in_fd[2];
int out_fd[2];
close (out_fd[0]);
close (out_fd[1]);
_exit (0);
-#else
- abort ();
-#endif
}
+
+#endif /* !G_OS_WIN32 */
#include "glib.h"
#include "config.h"
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
+#define STRICT
#include <windows.h>
+#undef STRICT
#endif
#include "glibintl.h"
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
gint i, clen, total_len, wclen, first;
wchar_t *wcs, wc;
return result;
-#else
+#else /* !G_PLATFORM_WIN32 */
char *charset, *str;
"UTF-8", charset, bytes_read, bytes_written, error);
return str;
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
/**
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
gint i, mask, clen, mblen;
wchar_t *wcs, *wcp;
return result;
-#else
+#else /* !G_PLATFORM_WIN32 */
gchar *charset, *str;
return str;
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
/**
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
return g_locale_to_utf8 (opsysstring, len,
bytes_read, bytes_written,
error);
-#else
+#else /* !G_PLATFORM_WIN32 */
if (getenv ("G_BROKEN_FILENAMES"))
return g_locale_to_utf8 (opsysstring, len,
bytes_read, bytes_written,
return g_strdup (opsysstring);
else
return g_strndup (opsysstring, len);
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
/**
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
return g_locale_from_utf8 (utf8string, len,
bytes_read, bytes_written,
error);
-#else
+#else /* !G_PLATFORM_WIN32 */
if (getenv ("G_BROKEN_FILENAMES"))
return g_locale_from_utf8 (utf8string, len,
bytes_read, bytes_written,
return g_strdup (utf8string);
else
return g_strndup (utf8string, len);
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
-
-
struct stat stat_buf;
gint fd;
- fd = open (filename, O_RDONLY);
+ /* O_BINARY useful on Cygwin */
+ fd = open (filename, O_RDONLY|O_BINARY);
if (fd < 0)
{
glib.def \
makefile.msc.in \
makefile.mingw.in \
- giowin32.c \
glibconfig.h.win32.in \
- gwin32.c \
- gspawn-win32.c \
- gspawn-win32-helper.c \
config.h.win32.in \
build-dll \
glib.rc.in \
ghash.c \
ghook.c \
giochannel.c \
- giounix.c \
glibintl.h \
glist.c \
gmain.c \
gscanner.c \
gshell.c \
gslist.c \
- gspawn.c \
gstrfuncs.c \
gstring.c \
gthread.c \
gunidecomp.c \
gutils.c
-## If we decide to link in 'alloca.c', this is how to do it
-#libglib_1_3_la_LIBADD = @ALLOCA@
+EXTRA_libglib_1_3_la_SOURCES = \
+ giounix.c \
+ giowin32.c \
+ gspawn.c \
+ gspawn-win32.c \
+ gwin32.c
glibincludedir=$(includedir)/glib-2.0
glibinclude_HEADERS = \
CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
echo timestamp > stamp-gc-h
-libglib_1_3_la_LIBADD = @ICONV_LIBS@
+libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
+libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@
+
+
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+if OS_WIN32
+# This requires a very new libtool
+export_symbols = -export-symbols glib.def
+endif
libglib_1_3_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -export-dynamic
-
-noinst_PROGRAMS = testglib testgdate testgdateparser timeloop
+ -export-dynamic $(no_undefined) $(export_symbols)
+
+if OS_WIN32
+bin_PROGRAMS = gspawn-win32-helper
+gspawn_win32_helper_LDADD = libglib-1.3.la
+endif
+if ENABLE_TIMELOOP
+timeloop = timeloop
+endif
+noinst_PROGRAMS = testglib testgdate testgdateparser $(timeloop)
testglib_LDADD = libglib-1.3.la
testgdate_LDADD = libglib-1.3.la
testgdateparser_LDADD = libglib-1.3.la
+if ENABLE_TIMELOOP
timeloop_LDADD = libglib-1.3.la
-
+endif
m4datadir = $(datadir)/aclocal
m4data_DATA = glib-2.0.m4
#ifdef G_OS_WIN32
# define STRICT /* Strict typing, please */
# include <windows.h>
+# undef STRICT
#endif
#ifndef NO_FD_SET
#endif
+#ifndef G_OS_WIN32
static void stack_trace (char **args);
+#endif
extern volatile gboolean glib_on_error_halt;
volatile gboolean glib_on_error_halt = TRUE;
#endif
}
+#ifndef G_OS_WIN32
+
static gboolean stack_trace_done = FALSE;
static void
static void
stack_trace (char **args)
{
-#ifdef G_OS_UNIX
pid_t pid;
int in_fd[2];
int out_fd[2];
close (out_fd[0]);
close (out_fd[1]);
_exit (0);
-#else
- abort ();
-#endif
}
+
+#endif /* !G_OS_WIN32 */
#include "glib.h"
#include "config.h"
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
+#define STRICT
#include <windows.h>
+#undef STRICT
#endif
#include "glibintl.h"
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
gint i, clen, total_len, wclen, first;
wchar_t *wcs, wc;
return result;
-#else
+#else /* !G_PLATFORM_WIN32 */
char *charset, *str;
"UTF-8", charset, bytes_read, bytes_written, error);
return str;
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
/**
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
gint i, mask, clen, mblen;
wchar_t *wcs, *wcp;
return result;
-#else
+#else /* !G_PLATFORM_WIN32 */
gchar *charset, *str;
return str;
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
/**
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
return g_locale_to_utf8 (opsysstring, len,
bytes_read, bytes_written,
error);
-#else
+#else /* !G_PLATFORM_WIN32 */
if (getenv ("G_BROKEN_FILENAMES"))
return g_locale_to_utf8 (opsysstring, len,
bytes_read, bytes_written,
return g_strdup (opsysstring);
else
return g_strndup (opsysstring, len);
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
/**
gint *bytes_written,
GError **error)
{
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
return g_locale_from_utf8 (utf8string, len,
bytes_read, bytes_written,
error);
-#else
+#else /* !G_PLATFORM_WIN32 */
if (getenv ("G_BROKEN_FILENAMES"))
return g_locale_from_utf8 (utf8string, len,
bytes_read, bytes_written,
return g_strdup (utf8string);
else
return g_strndup (utf8string, len);
-#endif
+#endif /* !G_PLATFORM_WIN32 */
}
-
-
struct stat stat_buf;
gint fd;
- fd = open (filename, O_RDONLY);
+ /* O_BINARY useful on Cygwin */
+ fd = open (filename, O_RDONLY|O_BINARY);
if (fd < 0)
{