Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: devel
[PATCH libgpg-error] Add OS/2 supports
 

Index | Next | Previous | View Flat


komh78 at gmail

Mar 9, 2012, 5:51 AM


Views: 186
Permalink
[PATCH libgpg-error] Add OS/2 supports

---
configure.ac | 8 ++++++++
src/Makefile.am | 8 ++++++--
2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index ee42f9e..bd0c351 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,6 +89,7 @@ AC_ARG_VAR(CC_FOR_BUILD,[build system C compiler])
have_w32_system=no
have_w64_system=no
have_w32ce_system=no
+have_os2_system=no
case "${host}" in
x86_64-*mingw32*)
have_w32_system=yes
@@ -101,6 +102,9 @@ case "${host}" in
*-mingw32*)
have_w32_system=yes
;;
+ *-os2*)
+ have_os2_system=yes
+ ;;
*)
;;
esac
@@ -179,6 +183,10 @@ AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)
AM_CONDITIONAL(HAVE_W64_SYSTEM, test "$have_w64_system" = yes)
AM_CONDITIONAL(HAVE_W32CE_SYSTEM, test "$have_w32ce_system" = yes)

+if test "$have_os2_system" = yes; then
+ AC_DEFINE(HAVE_OS2_SYSTEM,1,[Defined if we run on an OS/2 API based system])
+fi
+AM_CONDITIONAL(HAVE_OS2_SYSTEM, test "$have_os2_system" = yes)

AC_ARG_ENABLE(languages,
[. --disable-languages do not build support for other languages than C])
diff --git a/src/Makefile.am b/src/Makefile.am
index 518a4c0..5a1b49d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -84,7 +84,11 @@ intllibs =
else
arch_sources =
gpg_error_res =
+if HAVE_OS2_SYSTEM
+no_undefined = -no-undefined
+else
no_undefined =
+endif
export_symbols =
install-def-file:
uninstall-def-file:
@@ -167,7 +171,7 @@ gpg-error.def: Makefile gpg-error.def.in

# It is correct to use $(CC_FOR_BUILD) here. We want to run the
# program at build time.
-mkerrcodes: mkerrcodes.c mkerrcodes.h Makefile
+mkerrcodes$(EXEEXT): mkerrcodes.c mkerrcodes.h Makefile
$(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkerrcodes.c

if HAVE_W32CE_SYSTEM
@@ -177,7 +181,7 @@ mkw32errmap: mkw32errmap.c mkw32errmap.tab.h Makefile
$(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkw32errmap.c
endif

-code-from-errno.h: mkerrcodes Makefile
+code-from-errno.h: mkerrcodes$(EXEEXT) Makefile
./mkerrcodes | $(AWK) -f $(srcdir)/mkerrcodes2.awk >$@

errnos-sym.h: Makefile mkstrtable.awk errnos.in
--
1.7.3.2


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

Subject User Time
[PATCH libgpg-error] Add OS/2 supports komh78 at gmail Mar 9, 2012, 5:51 AM
    Re: [PATCH libgpg-error] Add OS/2 supports komh78 at gmail Mar 31, 2012, 4:21 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.