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

Diff of /trunk/configure.ac

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

revision 46 by werner, Fri Oct 28 12:57:05 2005 UTC revision 287 by twoaday, Sat Mar 10 10:24:36 2007 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.0-cvs, http://www.winpt.org)  AC_INIT(WinPT, 1.2.1-cvs, 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.6
24    
25  NEED_GPGME_API=1  NEED_GPGME_API=1
26  NEED_GPGME_VERSION=1.1.0  NEED_GPGME_VERSION=1.1.4
27  NEED_GPG_ERROR_VERSION=1.2  NEED_GPG_ERROR_VERSION=1.2
28    
29  PACKAGE=$PACKAGE_NAME  PACKAGE=$PACKAGE_NAME
30  PACKAGE_GT=${PACKAGE_NAME}  PACKAGE_GT=${PACKAGE_NAME}
31  VERSION=$PACKAGE_VERSION  VERSION=$PACKAGE_VERSION
32    
33  AC_CONFIG_SRCDIR(src/WinPT.cpp)  AC_CONFIG_SRCDIR(Src/WinPT.cpp)
34  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
35  AC_CANONICAL_TARGET()  AC_CANONICAL_TARGET()
36  AM_INIT_AUTOMAKE($PACKAGE, $VERSION)  AM_INIT_AUTOMAKE
37    AM_MKINSTALLDIRS
38    
39  AC_GNU_SOURCE  AC_GNU_SOURCE
40    
# Line 43  AC_DEFINE_UNQUOTED(PACKAGE_BUGREPORT, "$ Line 49  AC_DEFINE_UNQUOTED(PACKAGE_BUGREPORT, "$
49                                          [Bug report address])                                          [Bug report address])
50  AC_DEFINE_UNQUOTED(NEED_GPGME_VERSION, "$NEED_GPGME_VERSION",  AC_DEFINE_UNQUOTED(NEED_GPGME_VERSION, "$NEED_GPGME_VERSION",
51                                         [Required version of GPGME])                                         [Required version of GPGME])
52    AC_DEFINE_UNQUOTED(NEED_GPG_VERSION, "$NEED_GPG_VERSION",
53                                         [Required version of GnuPG])
54    
55  BUILD_TIMESTAMP=`date --iso-8601=minutes`  BUILD_TIMESTAMP=`date --iso-8601=minutes`
56  AC_SUBST(BUILD_TIMESTAMP)  AC_SUBST(BUILD_TIMESTAMP)
# Line 51  BUILD_FILEVERSION=`echo "$VERSION" | sed Line 59  BUILD_FILEVERSION=`echo "$VERSION" | sed
59  changequote([,])dnl  changequote([,])dnl
60  AC_SUBST(BUILD_FILEVERSION)  AC_SUBST(BUILD_FILEVERSION)
61    
62    # For the distcheck target of make we need to set a few options for
63    # the cross compiling environment.  We assume the same conevtion as
64    # used in autogen.sh; i.e. we take the root from the $w32root variable
65    # or default to ~/w32root.
66    if test -n "$w32root"; then
67      W32ROOT="$w32root"
68    else
69      W32ROOT="$HOME/w32root"
70    fi
71    AC_SUBST(W32ROOT)
72    
73    
74  AH_BOTTOM([  AH_BOTTOM([
75  /* Some global constants. */  /* Some global constants. */
76    
77  /* Set to distinguish between the old custom Makefile based build  /* We need to include this header to be able to include specific parts
78     system and our new automake based one. */     of the common controls header file. */
79  #define WINPT_MODERN_BUILD 1  #include <w32api.h>
80    #define _WIN32_IE IE55
81  ])  ])
82    
83  AM_MAINTAINER_MODE  AM_MAINTAINER_MODE
# Line 84  AC_CHECK_TOOL(AR, ar, :) Line 103  AC_CHECK_TOOL(AR, ar, :)
103  AC_CHECK_TOOL(DLLTOOL, dlltool, :)  AC_CHECK_TOOL(DLLTOOL, dlltool, :)
104  AC_CHECK_TOOL(WINDRES, windres, :)  AC_CHECK_TOOL(WINDRES, windres, :)
105    
   
106  try_gettext=yes  try_gettext=yes
107  have_dosish_system=no  have_dosish_system=no
108  have_w32_system=no  have_w32_system=no
109  case "${host}" in  case "${host}" in
110      *-mingw32*)      *-mingw32*)
111          # special stuff for Windoze NT          # special stuff for Windoze NT/XP
112          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])  
113          AC_DEFINE(USE_SIMPLE_GETTEXT,1,          AC_DEFINE(USE_SIMPLE_GETTEXT,1,
114                    [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])  
115          have_dosish_system=yes          have_dosish_system=yes
116          have_w32_system=yes          have_w32_system=yes
117          try_gettext="no"          try_gettext="no"
# Line 114  case "${host}" in Line 126  case "${host}" in
126         ;;         ;;
127  esac  esac
128    
129    
130    AH_BOTTOM([
131    /* Force using of NLS for W32 even if no libintl has been found.  This is
132       okay because we have our own gettext implementation for W32.  */
133    #if defined(HAVE_W32_SYSTEM) && !defined(ENABLE_NLS)
134    #define ENABLE_NLS 1
135    #endif
136    ])
137      
138    # Note, that autogen.sh greps for the next line.
139    AM_GNU_GETTEXT_VERSION(0.12.1)
140    AM_GNU_GETTEXT([external])
141    # There is something wrong with the NLS checking here.  We force using it.
142    USE_NLS=yes
143    
144  if test "$have_dosish_system" = yes; then  if test "$have_dosish_system" = yes; then
145     AC_DEFINE(HAVE_DOSISH_SYSTEM,1,     AC_DEFINE(HAVE_DOSISH_SYSTEM,1,
146               [Defined if we run on some of the PCDOS like systems               [Define this to indicate the binary is build for a system
147                (DOS, Windoze. OS/2) with special properties like                with special properties like no posix file modes])
               no file modes])  
148  fi  fi
149  AM_CONDITIONAL(HAVE_DOSISH_SYSTEM, test "$have_dosish_system" = yes)  AM_CONDITIONAL(HAVE_DOSISH_SYSTEM, test "$have_dosish_system" = yes)
150    
# Line 128  fi Line 154  fi
154  AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)  AM_CONDITIONAL(HAVE_W32_SYSTEM, test "$have_w32_system" = yes)
155    
156    
   
157  #  #
158  # Checks for libraries.  # Checks for libraries.
159  #  #
160    
   
161  AM_PATH_GPGME("$NEED_GPGME_API:$NEED_GPGME_VERSION",  AM_PATH_GPGME("$NEED_GPGME_API:$NEED_GPGME_VERSION",
162                 have_gpgme=yes,have_gpgme=no)                 have_gpgme=yes,have_gpgme=no)
163  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
# Line 141  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSI Line 165  AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSI
165    
166  # Checks for header files.  # Checks for header files.
167  AC_HEADER_STDC  AC_HEADER_STDC
168  AC_CHECK_HEADERS(string.h unistd.h langinfo.h termio.h locale.h)  AC_CHECK_HEADERS(string.h unistd.h)
169    
170  AC_CHECK_FUNCS(stpcpy)  AC_CHECK_FUNCS(stpcpy)
171    
# Line 149  AC_CHECK_FUNCS(stpcpy) Line 173  AC_CHECK_FUNCS(stpcpy)
173  AC_C_CONST  AC_C_CONST
174  AC_C_INLINE  AC_C_INLINE
175  AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
 AC_TYPE_SIGNAL  
176    
177  AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)  AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
178    
179  # 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
180  # mysterious reasons - the final link step should bail out.  # mysterious reasons - the final link step should bail out.
181  if test "$have_w32_system" = yes; then  if test "$have_w32_system" = yes; then
182     W32LIBS="-lwsock32"     W32LIBS="-lws2_32"
183  fi  fi
184    
185  if test "$GCC" = yes; then  if test "$GCC" = yes; then
# Line 173  fi Line 196  fi
196  AC_SUBST(W32LIBS)  AC_SUBST(W32LIBS)
197    
198    
   
199  #  #
200  # Print errors here so that they are visible all  # Print errors here so that they are visible all
201  # together and the user can acquire them all together.  # together and the user can acquire them all together.
# Line 210  fi Line 232  fi
232    
233  AC_CONFIG_FILES([ Makefile  AC_CONFIG_FILES([ Makefile
234  PTD/Makefile  PTD/Makefile
235  PTD/versioninfo.rc          PTD/versioninfo.rc
236  Src/Makefile  Src/Makefile
237  Src/versioninfo.rc          Src/versioninfo.rc
238  Include/Makefile  Include/Makefile
239  Ico/Makefile  icons/Makefile
240  m4/Makefile  m4/Makefile
 w32gpgme/Makefile  
241  Gnupg/Makefile  Gnupg/Makefile
242    Generic/Makefile
243    Po/Makefile.in
244  ])  ])
245  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.46  
changed lines
  Added in v.287

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26