aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-08-19 15:48:56 +0000
committerWerner Koch <[email protected]>2005-08-19 15:48:56 +0000
commit90c483f1f4a11d63f192e8f983e48123be2e2fdc (patch)
treecce95b01217a0b458b3b860f212044ec0844be10 /configure.ac
parentDoes now allow to build a W32 DLL. (diff)
downloadlibgpg-error-90c483f1f4a11d63f192e8f983e48123be2e2fdc.tar.gz
libgpg-error-90c483f1f4a11d63f192e8f983e48123be2e2fdc.zip
Final changes for building a DLL.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 8d17351..e76f6ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,7 +53,6 @@ AC_PROG_AWK
AC_CHECK_TOOL(AR, ar, :)
AC_CHECK_TOOL(DLLTOOL, dlltool, :)
AC_CHECK_TOOL(WINDRES, windres, :)
-AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
# We need to compile and run a program on the build machine.
@@ -115,15 +114,18 @@ AC_CONFIG_FILES([src/gpg-error-config], [chmod +x src/gpg-error-config])
# Special defines for certain platforms
if test "$have_w32_system" = yes; then
- W32LDFLAGS="-no-undefined"
AC_DEFINE(HAVE_W32_SYSTEM,1,[Defined if we run on a W32 API based system])
BUILD_TIMESTAMP=`date --iso-8601=minutes`
AC_SUBST(BUILD_TIMESTAMP)
changequote(,)dnl
- BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1.0/;s/\./,/g'`
+ BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
changequote([,])dnl
+ case "$VERSION" in
+ *-cvs) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
+ *-rc*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,1" ;;
+ *) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,2" ;;
+ esac
fi
-AC_SUBST(W32LDFLAGS)
AC_SUBST(BUILD_TIMESTAMP)
AC_SUBST(BUILD_FILEVERSION)
AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)