On Fri, 2010-07-16 at 14:23 -0400, Adam Stokes wrote: > ok, it compiles if i change to 'unsigned int'.. however an even bigger > problem with mingw32 (or not a problem really) is that there is no > form of glob provided. so augeas would need its own implementation of > globbing in order to compile under mingw32.
The attached patch gets you a little farther, though complains about argz functions; that's being pulled in from gnulib, so I am not quite sure what's happening - I'd appreciate it if you could take a stab at it and see if that can be fixed. David
>From 8c02df9ad1e07c06b8fad71a2395596c7f846c4a Mon Sep 17 00:00:00 2001 From: David Lutterkort <[email protected]> Date: Mon, 14 Sep 2009 11:17:14 -0700 Subject: [PATCH] Beginnings of mingw port Still needs some love --- README | 9 +++++++++ bootstrap | 1 + configure.ac | 2 +- src/internal.h | 4 ++++ 4 files changed, 15 insertions(+), 1 deletions(-) diff --git a/README b/README index 92d9e87..2cf6810 100644 --- a/README +++ b/README @@ -70,6 +70,15 @@ Building You need to have readline-devel installed. On systems that support SELinux, you should also install libselinux-devel. +Building under MinGW +-------------------- + +* yum install mingw32-gcc mingw32-binutils mingw32-readline +* cd $augeas_src_dir +* make distclean +* mkdir -p build/mingw +* ../../configure --host=i686-pc-mingw32 + Documentation ------------- diff --git a/bootstrap b/bootstrap index 62f4b9f..1bcb308 100755 --- a/bootstrap +++ b/bootstrap @@ -62,6 +62,7 @@ argz fnmatch getline gitlog-to-changelog +glob canonicalize-lgpl isblank regex diff --git a/configure.ac b/configure.ac index a7d3c1b..b434fdc 100644 --- a/configure.ac +++ b/configure.ac @@ -92,7 +92,7 @@ AUGEAS_CFLAGS=-std=gnu99 AC_SUBST(AUGEAS_CFLAGS) AUGEAS_CHECK_READLINE -AC_CHECK_FUNCS([open_memstream uselocale]) +AC_CHECK_FUNCS([open_memstream uselocale uint]) VERSION_SCRIPT_FLAGS= $(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) && \ diff --git a/src/internal.h b/src/internal.h index 7513d47..856bce5 100644 --- a/src/internal.h +++ b/src/internal.h @@ -155,6 +155,10 @@ #define ATTRIBUTE_RETURN_CHECK #endif /* __GNUC__ */ +#ifndef HAVE_UINT +typedef unsigned int uint; +#endif + #define ARRAY_CARDINALITY(array) (sizeof (array) / sizeof *(array)) /* String equality tests, suggested by Jim Meyering. */ -- 1.7.1
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
