/[winpt]/trunk/configure.ac
ViewVC logotype

Diff of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 106 by twoaday, Wed Nov 30 10:38:53 2005 UTC revision 470 by twoaday, Sun Jan 13 14:53:25 2013 UTC
# Line 1  Line 1 
1  # configure.ac - for WinPT  # configure.ac - for WinPT
2  # Copyright (C) 2005 g10 Code GmbH  # Copyright (C) 2005, 2006 g10 Code GmbH
3    # Copyright (C) 2006, 2007 Timo Schulz
4  #  #
5  # This file is free software; as a special exception the author gives  # This file is free software; as a special exception the author gives
6  # unlimited permission to copy and/or distribute it, with or without  # unlimited permission to copy and/or distribute it, with or without
# Line 11  Line 12 
12    
13  # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
14  AC_PREREQ(2.59)  AC_PREREQ(2.59)
15  min_automake_version="1.9.4"  min_automake_version="1.9.2"
16    
17  # Version number: Remember to change it immediately *after* a release.  # Version number: Remember to change it immediately *after* a release.
18  #                 Add a "-cvs" prefix for non-released code.  #                 Add a "-cvs" prefix for non-released code.
19  AC_INIT(WinPT, 0.11.2-cvs2, http://www.winpt.org)  AC_INIT(WinPT, 1.5.4-svn, http://wald.intevation.org/projects/winpt)
20    
21    # We always force to use the minimal GPG version which is
22    # known to be free of reported security issues
23    NEED_GPG_VERSION=1.4.12
24    
25  NEED_GPGME_API=1  NEED_GPGME_API=1
26    #there is a WinPT problem with recent gpgme versions
27    #NEED_GPGME_VERSION=1.3.1
28  NEED_GPGME_VERSION=1.1.0  NEED_GPGME_VERSION=1.1.0
29  NEED_GPG_ERROR_VERSION=1.2  #NEED_GPG_ERROR_VERSION=1.10
30    NEED_GPG_ERROR_VERSION=1.6
31    
32  PACKAGE=$PACKAGE_NAME  PACKAGE=$PACKAGE_NAME
33  PACKAGE_GT=${PACKAGE_NAME}  PACKAGE_GT=${PACKAGE_NAME}
# Line 29  AC_CONFIG_SRCDIR(Src/WinPT.cpp) Line 37  AC_CONFIG_SRCDIR(Src/WinPT.cpp)
37  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
38  AC_CANONICAL_TARGET()  AC_CANONICAL_TARGET()
39  AM_INIT_AUTOMAKE  AM_INIT_AUTOMAKE
40    #AM_MKINSTALLDIRS
41    
42  AC_GNU_SOURCE  AC_GNU_SOURCE
43    
# Line 43  AC_DEFINE_UNQUOTED(PACKAGE_BUGREPORT, "$ Line 52  AC_DEFINE_UNQUOTED(PACKAGE_BUGREPORT, "$
52                                          [Bug report address])                                          [Bug report address])
53  AC_DEFINE_UNQUOTED(NEED_GPGME_VERSION, "$NEED_GPGME_VERSION",  AC_DEFINE_UNQUOTED(NEED_GPGME_VERSION, "$NEED_GPGME_VERSION",
54                                         [Required version of GPGME])                                         [Required version of GPGME])
55    AC_DEFINE_UNQUOTED(NEED_GPG_VERSION, "$NEED_GPG_VERSION",
56                                         [Required version of GnuPG])
57    
58  BUILD_TIMESTAMP=`date --iso-8601=minutes`  BUILD_TIMESTAMP=`date --iso-8601=minutes`
59  AC_SUBST(BUILD_TIMESTAMP)  AC_SUBST(BUILD_TIMESTAMP)
# Line 66  AC_SUBST(W32ROOT) Line 77  AC_SUBST(W32ROOT)
77  AH_BOTTOM([  AH_BOTTOM([
78  /* Some global constants. */  /* Some global constants. */
79    
 /* 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  
   
80  /* We need to include this header to be able to include specific parts  /* We need to include this header to be able to include specific parts
81     of the header files.  For now we require at least Internet Exploder     of the common controls header file. */
    4.01 to be installed. */  
82  #include <w32api.h>  #include <w32api.h>
83  #define _WIN32_IE IE401  #define _WIN32_IE IE55
   
84  ])  ])
85    
86  AM_MAINTAINER_MODE  AM_MAINTAINER_MODE
# Line 103  AC_CHECK_TOOL(AR, ar, :) Line 106  AC_CHECK_TOOL(AR, ar, :)
106  AC_CHECK_TOOL(DLLTOOL, dlltool, :)  AC_CHECK_TOOL(DLLTOOL, dlltool, :)
107  AC_CHECK_TOOL(WINDRES, windres, :)  AC_CHECK_TOOL(WINDRES, windres, :)
108    
   
109  try_gettext=yes  try_gettext=yes
110  have_dosish_system=no  have_dosish_system=no
111  have_w32_system=no  have_w32_system=no
112  case "${host}" in  case "${host}" in
113      *-mingw32*)      *-mingw32*)
114          # special stuff for Windoze NT          # special stuff for Windoze NT/XP
115          ac_cv_have_dev_random=no          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])  
116          AC_DEFINE(USE_SIMPLE_GETTEXT,1,          AC_DEFINE(USE_SIMPLE_GETTEXT,1,
117                    [because the Unix gettext has too much overhead on                    [Use a lightweight gettext version for cross-compiling])
                    MingW32 systems and these systems lack Posix functions,  
                    we use a simplified version of gettext])  
118          have_dosish_system=yes          have_dosish_system=yes
119          have_w32_system=yes          have_w32_system=yes
120          try_gettext="no"          try_gettext="no"
# Line 133  case "${host}" in Line 129  case "${host}" in
129         ;;         ;;
130  esac  esac
131    
132    
133    AH_BOTTOM([
134    /* Force using of NLS for W32 even if no libintl has been found.  This is
135       okay because we have our own gettext implementation for W32.  */
136    #if defined(HAVE_W32_SYSTEM) && !defined(ENABLE_NLS)
137    #define ENABLE_NLS 1
138    #endif
139    ])
140      
141    # Note, that autogen.sh greps for the next line.
142    #AM_GNU_GETTEXT_VERSION(0.12.1)
143    #AM_GNU_GETTEXT([external])
144    # There is something wrong with the NLS checking here.  We force using it.
145    USE_NLS=yes
146    
147  if test "$have_dosish_system" = yes; then  if test "$have_dosish_system" = yes; then
148     AC_DEFINE(HAVE_DOSISH_SYSTEM,1,     AC_DEFINE(HAVE_DOSISH_SYSTEM,1,
149               [Defined if we run on some of the PCDOS like systems               [Define this to indicate the binary is build for a system
150                (DOS, Windoze. OS/2) with special properties like                with special properties like no posix file modes])
               no file modes])  
151  fi  fi
152  AM_CONDITIONAL(HAVE_DOSISH_SYSTEM, test "$have_dosish_system" = yes)  AM_CONDITIONAL(HAVE_DOSISH_SYSTEM, test "$have_dosish_system" = yes)
153    
# Line 147  fi Line 157  fi
157  AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)  AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)
158    
159    
   
160  #  #
161  # Checks for libraries.  # Checks for libraries.
162  #  #
163    
   
164  AM_PATH_GPGME("$NEED_GPGME_API:$NEED_GPGME_VERSION",  AM_PATH_GPGME("$NEED_GPGME_API:$NEED_GPGME_VERSION",
165                 have_gpgme=yes,have_gpgme=no)                 have_gpgme=yes,have_gpgme=no)
166  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
# Line 160  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSI Line 168  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSI
168    
169  # Checks for header files.  # Checks for header files.
170  AC_HEADER_STDC  AC_HEADER_STDC
171  AC_CHECK_HEADERS(string.h unistd.h langinfo.h termio.h locale.h)  AC_CHECK_HEADERS(string.h unistd.h)
172    
173  AC_CHECK_FUNCS(stpcpy)  AC_CHECK_FUNCS(stpcpy)
174    
# Line 168  AC_CHECK_FUNCS(stpcpy) Line 176  AC_CHECK_FUNCS(stpcpy)
176  AC_C_CONST  AC_C_CONST
177  AC_C_INLINE  AC_C_INLINE
178  AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
 AC_TYPE_SIGNAL  
179    
180  AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)  AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
181    
182  # Add some extra libs here so that previous tests don't fail for  # Add some extra libs here so that previous tests don't fail for
183  # mysterious reasons - the final link step should bail out.  # mysterious reasons - the final link step should bail out.
184  if test "$have_w32_system" = yes; then  if test "$have_w32_system" = yes; then
185     W32LIBS="-lwsock32"     W32LIBS="-lws2_32"
186  fi  fi
187    
188  if test "$GCC" = yes; then  if test "$GCC" = yes; then
# Line 192  fi Line 199  fi
199  AC_SUBST(W32LIBS)  AC_SUBST(W32LIBS)
200    
201    
   
202  #  #
203  # Print errors here so that they are visible all  # Print errors here so that they are visible all
204  # together and the user can acquire them all together.  # together and the user can acquire them all together.
# Line 227  if test "$die" = "yes"; then Line 233  if test "$die" = "yes"; then
233  fi  fi
234    
235    
236  AC_CONFIG_FILES([ Makefile  AC_CONFIG_FILES([
237    Makefile
238  PTD/Makefile  PTD/Makefile
239  PTD/versioninfo.rc          PTD/versioninfo.rc
240  Src/Makefile  Src/Makefile
241  Src/versioninfo.rc          Src/versioninfo.rc
242  Include/Makefile  Include/Makefile
 Ico/Makefile  
243  icons/Makefile  icons/Makefile
244  m4/Makefile  m4/Makefile
 w32gpgme/Makefile  
245  Gnupg/Makefile  Gnupg/Makefile
 Po/Makefile  
246  ])  ])
247    #Po/Makefile.in
248  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.106  
changed lines
  Added in v.470

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26