--- trunk/configure.ac 2005/12/16 13:12:40 127 +++ trunk/configure.ac 2012/01/29 12:28:19 401 @@ -1,5 +1,6 @@ # configure.ac - for WinPT -# Copyright (C) 2005 g10 Code GmbH +# Copyright (C) 2005, 2006 g10 Code GmbH +# Copyright (C) 2006, 2007 Timo Schulz # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without @@ -11,15 +12,19 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -min_automake_version="1.9.4" +min_automake_version="1.9.2" # Version number: Remember to change it immediately *after* a release. # Add a "-cvs" prefix for non-released code. -AC_INIT(WinPT, 0.11.4-cvs, http://www.winpt.org) +AC_INIT(WinPT, 1.5.0, http://wald.intevation.org/projects/winpt) + +# We always force to use the minimal GPG version which is +# known to be free of reported security issues +NEED_GPG_VERSION=1.4.11 NEED_GPGME_API=1 -NEED_GPGME_VERSION=1.1.0 -NEED_GPG_ERROR_VERSION=1.2 +NEED_GPGME_VERSION=1.3.1 +NEED_GPG_ERROR_VERSION=1.10 PACKAGE=$PACKAGE_NAME PACKAGE_GT=${PACKAGE_NAME} @@ -29,7 +34,7 @@ AM_CONFIG_HEADER(config.h) AC_CANONICAL_TARGET() AM_INIT_AUTOMAKE -AM_MKINSTALLDIRS +#AM_MKINSTALLDIRS AC_GNU_SOURCE @@ -44,6 +49,8 @@ [Bug report address]) AC_DEFINE_UNQUOTED(NEED_GPGME_VERSION, "$NEED_GPGME_VERSION", [Required version of GPGME]) +AC_DEFINE_UNQUOTED(NEED_GPG_VERSION, "$NEED_GPG_VERSION", + [Required version of GnuPG]) BUILD_TIMESTAMP=`date --iso-8601=minutes` AC_SUBST(BUILD_TIMESTAMP) @@ -67,18 +74,10 @@ AH_BOTTOM([ /* Some global constants. */ -/* Set to distinguish between the old custom Makefile based build - system and our new automake based one. This is only required in - Include/wptVersion.h. Fixme: See whether we may define the constants - there by means of command line apssed args or similar. */ -#define WINPT_MODERN_BUILD 1 - /* We need to include this header to be able to include specific parts - of the header files. For now we require at least Internet Exploder - 4.01 to be installed. */ + of the common controls header file. */ #include -#define _WIN32_IE IE401 - +#define _WIN32_IE IE55 ]) AM_MAINTAINER_MODE @@ -104,22 +103,15 @@ AC_CHECK_TOOL(DLLTOOL, dlltool, :) AC_CHECK_TOOL(WINDRES, windres, :) - try_gettext=yes have_dosish_system=no have_w32_system=no case "${host}" in *-mingw32*) - # special stuff for Windoze NT + # special stuff for Windoze NT/XP ac_cv_have_dev_random=no - AC_DEFINE(USE_ONLY_8DOT3,1, - [set this to limit filenames to the 8.3 format]) - AC_DEFINE(HAVE_DRIVE_LETTERS,1, - [defined if we must run on a stupid file system]) AC_DEFINE(USE_SIMPLE_GETTEXT,1, - [because the Unix gettext has too much overhead on - MingW32 systems and these systems lack Posix functions, - we use a simplified version of gettext]) + [Use a lightweight gettext version for cross-compiling]) have_dosish_system=yes have_w32_system=yes try_gettext="no" @@ -144,15 +136,15 @@ ]) # Note, that autogen.sh greps for the next line. -AM_GNU_GETTEXT_VERSION(0.12.1) -AM_GNU_GETTEXT([external]) - +#AM_GNU_GETTEXT_VERSION(0.12.1) +#AM_GNU_GETTEXT([external]) +# There is something wrong with the NLS checking here. We force using it. +USE_NLS=yes if test "$have_dosish_system" = yes; then AC_DEFINE(HAVE_DOSISH_SYSTEM,1, - [Defined if we run on some of the PCDOS like systems - (DOS, Windoze. OS/2) with special properties like - no file modes]) + [Define this to indicate the binary is build for a system + with special properties like no posix file modes]) fi AM_CONDITIONAL(HAVE_DOSISH_SYSTEM, test "$have_dosish_system" = yes) @@ -162,12 +154,10 @@ AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes) - # # Checks for libraries. # - AM_PATH_GPGME("$NEED_GPGME_API:$NEED_GPGME_VERSION", have_gpgme=yes,have_gpgme=no) AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION", @@ -175,7 +165,7 @@ # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(string.h unistd.h langinfo.h termio.h locale.h) +AC_CHECK_HEADERS(string.h unistd.h) AC_CHECK_FUNCS(stpcpy) @@ -183,14 +173,13 @@ AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T -AC_TYPE_SIGNAL AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes) # Add some extra libs here so that previous tests don't fail for # mysterious reasons - the final link step should bail out. if test "$have_w32_system" = yes; then - W32LIBS="-lwsock32" + W32LIBS="-lws2_32" fi if test "$GCC" = yes; then @@ -207,7 +196,6 @@ AC_SUBST(W32LIBS) - # # Print errors here so that they are visible all # together and the user can acquire them all together. @@ -242,16 +230,16 @@ fi -AC_CONFIG_FILES([ Makefile +AC_CONFIG_FILES([ +Makefile PTD/Makefile -PTD/versioninfo.rc +PTD/versioninfo.rc Src/Makefile -Src/versioninfo.rc +Src/versioninfo.rc Include/Makefile -Ico/Makefile icons/Makefile m4/Makefile Gnupg/Makefile -Po/Makefile.in ]) +#Po/Makefile.in AC_OUTPUT