update version info to upcoming 08.01.0108
authorLudek Finstrle <luf@pzkagis.cz>
Thu, 26 Jan 2006 19:50:02 +0000 (19:50 +0000)
committerLudek Finstrle <luf@pzkagis.cz>
Thu, 26 Jan 2006 19:50:02 +0000 (19:50 +0000)
configure.ac
installer/Make.bat
psqlodbc.rc
version.h

index 19f9e7537ca56492791c5fd60f6433e3655d174b..6e6e41dbf5ec0e1dd9cc2f5d68a5b6cd4935f8eb 100644 (file)
-# Process this file with autoconf to produce a configure script.\r
-AC_INIT(psqlodbc, 08.01.0105, [pgsql-odbc@postgresql.org])\r
-AC_PREREQ(2.52)\r
-AM_INIT_AUTOMAKE\r
-AC_CONFIG_SRCDIR([bind.c])\r
-AM_CONFIG_HEADER([config.h])\r
-AM_MAINTAINER_MODE\r
-\r
-\r
-AC_DEFINE(DRIVER_CURSOR_IMPLEMENT, 1,\r
-          [Define to 1 to build with driver cursors option.])\r
-\r
-#\r
-# Decide which ODBC driver manager to use\r
-#\r
-PGAC_ARG_BOOL(with, unixodbc, no,\r
-              [  --with-unixodbc         build ODBC driver for unixODBC (default)],\r
-              [AC_CHECK_LIB(odbcinst, SQLGetPrivateProfileString, [],\r
-                            [AC_MSG_ERROR([unixODBC driver manager not found])])])\r
-\r
-PGAC_ARG_BOOL(with, iodbc, no,\r
-              [  --with-iodbc            build ODBC driver for iODBC],\r
-              [AC_CHECK_LIB(iodbcinst, SQLGetPrivateProfileString, [],\r
-                            [AC_MSG_ERROR([iODBC driver manager not found])])])\r
-\r
-if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then\r
-  AC_MSG_ERROR([ODBC driver cannot be built for both unixODBC and iODBC])\r
-fi\r
-\r
-if test "$with_unixodbc" != yes && test "$with_iodbc" != yes; then\r
-  AC_CHECK_LIB(odbcinst, SQLGetPrivateProfileString,\r
-               [with_unixodbc=yes],\r
-               [AC_CHECK_LIB(iodbcinst, SQLGetPrivateProfileString,\r
-                             [with_iodbc=yes],\r
-                             [AC_MSG_ERROR([no suitable ODBC driver manager found])])])\r
-fi\r
-\r
-if test "$with_unixodbc" = yes; then\r
-  AC_DEFINE(WITH_UNIXODBC, 1, [Define to 1 to build with unixODBC support])\r
-  AC_DEFINE(SQL_WCHART_CONVERT, [], [Define to use wchar_t as SQLWCHAR in unixODBC])\r
-fi\r
-\r
-if test "$with_iodbc" = yes; then\r
-  AC_DEFINE(WITH_IODBC, 1, [Define to 1 to build with iODBC support])\r
-fi\r
-\r
-#\r
-# Default odbc version number (--with-odbcver), default 0x0300\r
-#\r
-AC_MSG_CHECKING([for ODBC version number])\r
-PGAC_ARG_REQ(with, odbcver, [  --with-odbcver=VERSION  change default ODBC version number [[0x0300]]],\r
-             [],\r
-             [with_odbcver=0x0300])\r
-AC_MSG_RESULT([$with_odbcver])\r
-AC_DEFINE_UNQUOTED(ODBCVER, [$with_odbcver], [Define to ODBC version (--with-odbcver)])\r
-\r
-# to implement the Unicode driver   \r
-PGAC_ARG_BOOL(enable, unicode, yes,     \r
-   [  --disable-unicode       build non-Unicode driver],    \r
-   [AC_DEFINE(UNICODE_SUPPORT, 1,   \r
-       [Define to 1 to build with Unicode support (--enable-unicode)])      \r
-    AC_DEFINE(UNICODE, [],      \r
-       [Define to use wide APIs])   \r
-    AC_DEFINE(SQL_NOUNICODEMAP, [],     \r
-       [Define to disable mapping SQL* to SQL*W])   \r
-    AC_CHECK_FUNCS(iswascii)])      \r
-    \r
-AM_CONDITIONAL(enable_unicode, [test x"$enable_unicode" = xyes])\r
-\r
-AC_CHECK_FUNCS(strtoul strtoll)\r
-\r
-# to implement the thread-safe driver\r
-PGAC_ARG_BOOL(enable, pthreads, no,\r
-    [  --enable-pthreads       build pthread implementation if possible],\r
-    [AC_DEFINE(POSIX_MULTITHREAD_SUPPORT, 1,\r
-   [Define to 1 to build with pthreads support (--enable-pthreads)])\r
-     AC_DEFINE(_REENTRANT, 1,\r
-   [Define _REENTRANT for several plaforms])\r
-     AC_CHECK_LIB(c_r, gethostbyname)\r
-     AC_CHECK_LIB(pthreads, pthread_create, [],\r
-       [AC_CHECK_LIB(pthread, pthread_create)])\r
-     AC_CHECK_LIB(nsl, gethostbyname_r, [AC_DEFINE(HAVE_GETHOSTBYNAME_R, 1, [])],\r
-   [AC_CHECK_FUNCS(getipnodebyname gethostbyname_r, break)])\r
-     if test x"$ac_cv_func_gethostbyname_r" = xyes || test x"$ac_cv_lib_nsl_gethostbyname_r" = xyes; then\r
-   AC_TRY_COMPILE([#include <netdb.h>],\r
-   [ gethostbyname_r((char *) 0, (struct hostent *) 0, (char *) 0, 0, (int *) 0);],\r
-        [AC_DEFINE(PGS_REENTRANT_API_1, 1, [Define if you have 5 parameter gethostbyname_r])],\r
-        [AC_DEFINE(PGS_REENTRANT_API_2, 1, [Define if you have 6 parameter gethostbyname_r])])\r
-     fi\r
-     AC_CHECK_FUNCS(localtime_r strtok_r pthread_mutexattr_settype)\r
-     if test x"$ac_cv_func_pthread_mutexattr_settype" = xyes; then\r
-   AC_TRY_COMPILE([#include <pthread.h>],\r
-   [ int i = PTHREAD_MUTEX_RECURSIVE;],\r
-        [AC_DEFINE(PG_RECURSIVE_MUTEXATTR, PTHREAD_MUTEX_RECURSIVE, [Define if you have PTHREAD_MUTEX_RECURSIVE])], [\r
-   AC_TRY_COMPILE([#include <pthread.h>],\r
-   [ int i = PTHREAD_MUTEX_RECURSIVE_NP;],\r
-        [AC_DEFINE(PG_RECURSIVE_MUTEXATTR, PTHREAD_MUTEX_RECURSIVE_NP, [Define if you have PTHREAD_MUTEX_RECURSIVE_NP])])])\r
-     fi\r
-    ])\r
-\r
-AC_PROG_CC\r
-\r
-AC_LIBTOOL_WIN32_DLL\r
-AC_DISABLE_STATIC\r
-AC_LIBTOOL_DLOPEN\r
-AC_PROG_LIBTOOL\r
-\r
-AC_CHECK_HEADERS([locale.h])\r
-AC_CHECK_HEADERS([sys/un.h])\r
-AC_CHECK_TYPES(uint8)\r
-PGAC_VAR_INT_TIMEZONE\r
-\r
-# unixODBC wants the following to get sane behavior for ODBCINT64\r
-AC_CHECK_SIZEOF(long)\r
-AC_CHECK_TYPES(long long)\r
-\r
-AC_C_CONST\r
-AC_TYPE_SIZE_T\r
-AC_STRUCT_TM\r
-\r
-\r
-#\r
-# Find libpq headers and libraries\r
-#\r
-AC_PATH_PROGS(PG_CONFIG, pg_config)\r
-AC_ARG_VAR(PG_CONFIG, [path to pg_config program])\r
-if test -z "$PG_CONFIG" ; then\r
-  AC_MSG_ERROR([pg_config not found])\r
-fi\r
-pg_includedir=`$PG_CONFIG --includedir`\r
-pg_libdir=`$PG_CONFIG --libdir`\r
-CPPFLAGS="$CPPFLAGS -I$pg_includedir"\r
-LDFLAGS="$LDFLAGS -L$pg_libdir"\r
-\r
-\r
-AC_CONFIG_FILES([Makefile])\r
-AC_OUTPUT\r
+# Process this file with autoconf to produce a configure script.
+
+AC_INIT(psqlodbc, 08.01.0108, [pgsql-odbc@postgresql.org])
+
+AC_PREREQ(2.52)
+
+AM_INIT_AUTOMAKE
+
+AC_CONFIG_SRCDIR([bind.c])
+
+AM_CONFIG_HEADER([config.h])
+
+AM_MAINTAINER_MODE
+
+
+
+AC_DEFINE(DRIVER_CURSOR_IMPLEMENT, 1,
+
+          [Define to 1 to build with driver cursors option.])
+
+
+#
+
+# Decide which ODBC driver manager to use
+
+#
+
+PGAC_ARG_BOOL(with, unixodbc, no,
+
+              [  --with-unixodbc         build ODBC driver for unixODBC (default)],
+
+              [AC_CHECK_LIB(odbcinst, SQLGetPrivateProfileString, [],
+
+                            [AC_MSG_ERROR([unixODBC driver manager not found])])])
+
+
+PGAC_ARG_BOOL(with, iodbc, no,
+
+              [  --with-iodbc            build ODBC driver for iODBC],
+
+              [AC_CHECK_LIB(iodbcinst, SQLGetPrivateProfileString, [],
+
+                            [AC_MSG_ERROR([iODBC driver manager not found])])])
+
+
+if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
+
+  AC_MSG_ERROR([ODBC driver cannot be built for both unixODBC and iODBC])
+
+fi
+
+
+if test "$with_unixodbc" != yes && test "$with_iodbc" != yes; then
+
+  AC_CHECK_LIB(odbcinst, SQLGetPrivateProfileString,
+
+               [with_unixodbc=yes],
+
+               [AC_CHECK_LIB(iodbcinst, SQLGetPrivateProfileString,
+
+                             [with_iodbc=yes],
+
+                             [AC_MSG_ERROR([no suitable ODBC driver manager found])])])
+
+fi
+
+
+if test "$with_unixodbc" = yes; then
+
+  AC_DEFINE(WITH_UNIXODBC, 1, [Define to 1 to build with unixODBC support])
+
+  AC_DEFINE(SQL_WCHART_CONVERT, [], [Define to use wchar_t as SQLWCHAR in unixODBC])
+
+fi
+
+
+if test "$with_iodbc" = yes; then
+
+  AC_DEFINE(WITH_IODBC, 1, [Define to 1 to build with iODBC support])
+
+fi
+
+
+#
+
+# Default odbc version number (--with-odbcver), default 0x0300
+
+#
+
+AC_MSG_CHECKING([for ODBC version number])
+
+PGAC_ARG_REQ(with, odbcver, [  --with-odbcver=VERSION  change default ODBC version number [[0x0300]]],
+
+             [],
+
+             [with_odbcver=0x0300])
+
+AC_MSG_RESULT([$with_odbcver])
+
+AC_DEFINE_UNQUOTED(ODBCVER, [$with_odbcver], [Define to ODBC version (--with-odbcver)])
+
+
+# to implement the Unicode driver   
+
+PGAC_ARG_BOOL(enable, unicode, yes,     
+
+   [  --disable-unicode       build non-Unicode driver],    
+
+   [AC_DEFINE(UNICODE_SUPPORT, 1,   
+
+       [Define to 1 to build with Unicode support (--enable-unicode)])      
+
+    AC_DEFINE(UNICODE, [],      
+
+       [Define to use wide APIs])   
+
+    AC_DEFINE(SQL_NOUNICODEMAP, [],     
+
+       [Define to disable mapping SQL* to SQL*W])   
+
+    AC_CHECK_FUNCS(iswascii)])      
+
+    
+
+AM_CONDITIONAL(enable_unicode, [test x"$enable_unicode" = xyes])
+
+
+AC_CHECK_FUNCS(strtoul strtoll)
+
+
+# to implement the thread-safe driver
+
+PGAC_ARG_BOOL(enable, pthreads, no,
+
+    [  --enable-pthreads       build pthread implementation if possible],
+
+    [AC_DEFINE(POSIX_MULTITHREAD_SUPPORT, 1,
+
+   [Define to 1 to build with pthreads support (--enable-pthreads)])
+
+     AC_DEFINE(_REENTRANT, 1,
+
+   [Define _REENTRANT for several plaforms])
+
+     AC_CHECK_LIB(c_r, gethostbyname)
+
+     AC_CHECK_LIB(pthreads, pthread_create, [],
+
+       [AC_CHECK_LIB(pthread, pthread_create)])
+
+     AC_CHECK_LIB(nsl, gethostbyname_r, [AC_DEFINE(HAVE_GETHOSTBYNAME_R, 1, [])],
+
+   [AC_CHECK_FUNCS(getipnodebyname gethostbyname_r, break)])
+
+     if test x"$ac_cv_func_gethostbyname_r" = xyes || test x"$ac_cv_lib_nsl_gethostbyname_r" = xyes; then
+
+   AC_TRY_COMPILE([#include <netdb.h>],
+
+   [ gethostbyname_r((char *) 0, (struct hostent *) 0, (char *) 0, 0, (int *) 0);],
+
+        [AC_DEFINE(PGS_REENTRANT_API_1, 1, [Define if you have 5 parameter gethostbyname_r])],
+
+        [AC_DEFINE(PGS_REENTRANT_API_2, 1, [Define if you have 6 parameter gethostbyname_r])])
+
+     fi
+
+     AC_CHECK_FUNCS(localtime_r strtok_r pthread_mutexattr_settype)
+
+     if test x"$ac_cv_func_pthread_mutexattr_settype" = xyes; then
+
+   AC_TRY_COMPILE([#include <pthread.h>],
+
+   [ int i = PTHREAD_MUTEX_RECURSIVE;],
+
+        [AC_DEFINE(PG_RECURSIVE_MUTEXATTR, PTHREAD_MUTEX_RECURSIVE, [Define if you have PTHREAD_MUTEX_RECURSIVE])], [
+
+   AC_TRY_COMPILE([#include <pthread.h>],
+
+   [ int i = PTHREAD_MUTEX_RECURSIVE_NP;],
+
+        [AC_DEFINE(PG_RECURSIVE_MUTEXATTR, PTHREAD_MUTEX_RECURSIVE_NP, [Define if you have PTHREAD_MUTEX_RECURSIVE_NP])])])
+
+     fi
+
+    ])
+
+
+AC_PROG_CC
+
+
+AC_LIBTOOL_WIN32_DLL
+
+AC_DISABLE_STATIC
+
+AC_LIBTOOL_DLOPEN
+
+AC_PROG_LIBTOOL
+
+
+AC_CHECK_HEADERS([locale.h])
+
+AC_CHECK_HEADERS([sys/un.h])
+
+AC_CHECK_TYPES(uint8)
+
+PGAC_VAR_INT_TIMEZONE
+
+
+# unixODBC wants the following to get sane behavior for ODBCINT64
+
+AC_CHECK_SIZEOF(long)
+
+AC_CHECK_TYPES(long long)
+
+
+AC_C_CONST
+
+AC_TYPE_SIZE_T
+
+AC_STRUCT_TM
+
+
+
+#
+
+# Find libpq headers and libraries
+
+#
+
+AC_PATH_PROGS(PG_CONFIG, pg_config)
+
+AC_ARG_VAR(PG_CONFIG, [path to pg_config program])
+
+if test -z "$PG_CONFIG" ; then
+
+  AC_MSG_ERROR([pg_config not found])
+
+fi
+
+pg_includedir=`$PG_CONFIG --includedir`
+
+pg_libdir=`$PG_CONFIG --libdir`
+
+CPPFLAGS="$CPPFLAGS -I$pg_includedir"
+
+LDFLAGS="$LDFLAGS -L$pg_libdir"
+
+
+
+AC_CONFIG_FILES([Makefile])
+
+AC_OUTPUT
+
index bf0f1958192662d478255e7add281465631c964f..9e7f8e10374309d22e553613e8cf5f37787e70a0 100644 (file)
@@ -1,40 +1,67 @@
-@echo off\r
-\r
-if NOT "%1"=="" SET VERSION="%1"\r
-if NOT "%1"=="" GOTO GOT_VERSION\r
-\r
-SET VERSION="08.01.0105"\r
-echo.\r
-echo Version not specified - defaulting to %VERSION%\r
-echo.\r
-\r
-:GOT_VERSION\r
-\r
-echo.\r
-echo Building psqlODBC merge module...\r
-\r
-candle -nologo -dVERSION=%VERSION% -dPROGRAMFILES="%ProgramFiles%" psqlodbcm.wxs\r
-IF ERRORLEVEL 1 GOTO ERR_HANDLER\r
-\r
-light -nologo -out psqlodbc.msm psqlodbcm.wixobj\r
-IF ERRORLEVEL 1 GOTO ERR_HANDLER\r
-\r
-echo.\r
-echo Building psqlODBC installer database...\r
-\r
-candle -nologo -dVERSION=%VERSION% -dPROGRAMFILES="%ProgramFiles%" psqlodbc.wxs\r
-IF ERRORLEVEL 1 GOTO ERR_HANDLER\r
-\r
-light -nologo psqlodbc.wixobj\r
-IF ERRORLEVEL 1 GOTO ERR_HANDLER\r
-\r
-echo.\r
-echo Done!\r
-GOTO EXIT\r
-\r
-:ERR_HANDLER\r
-echo.\r
-echo Aborting build!\r
-GOTO EXIT\r
-\r
-:EXIT
\ No newline at end of file
+@echo off
+
+
+if NOT "%1"=="" SET VERSION="%1"
+
+if NOT "%1"=="" GOTO GOT_VERSION
+
+
+SET VERSION="08.01.0108"
+
+echo.
+
+echo Version not specified - defaulting to %VERSION%
+
+echo.
+
+
+:GOT_VERSION
+
+
+echo.
+
+echo Building psqlODBC merge module...
+
+
+candle -nologo -dVERSION=%VERSION% -dPROGRAMFILES="%ProgramFiles%" psqlodbcm.wxs
+
+IF ERRORLEVEL 1 GOTO ERR_HANDLER
+
+
+light -nologo -out psqlodbc.msm psqlodbcm.wixobj
+
+IF ERRORLEVEL 1 GOTO ERR_HANDLER
+
+
+echo.
+
+echo Building psqlODBC installer database...
+
+
+candle -nologo -dVERSION=%VERSION% -dPROGRAMFILES="%ProgramFiles%" psqlodbc.wxs
+
+IF ERRORLEVEL 1 GOTO ERR_HANDLER
+
+
+light -nologo psqlodbc.wixobj
+
+IF ERRORLEVEL 1 GOTO ERR_HANDLER
+
+
+echo.
+
+echo Done!
+
+GOTO EXIT
+
+
+:ERR_HANDLER
+
+echo.
+
+echo Aborting build!
+
+GOTO EXIT
+
+
+:EXIT
index 1d026748b22b626d200a968d600b2ec3e6f3d838..31d0760bd3e66a2a896c5ec49c82f9a991c019bd 100644 (file)
@@ -318,12 +318,12 @@ BEGIN
 #endif
             VALUE "CompanyName", "PostgreSQL Global Development Group"
             VALUE "FileDescription", "PostgreSQL Driver"
-            VALUE "FileVersion", "08.01.0105"
+            VALUE "FileVersion", "08.01.0108"
             VALUE "InternalName", "psqlodbc"
             VALUE "LegalTrademarks", "ODBC(TM) is a trademark of Microsoft Corporation.  Microsoft® is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation."
             VALUE "OriginalFilename", "psqlodbc.dll"
             VALUE "ProductName", "Microsoft Open Database Connectivity"
-            VALUE "ProductVersion", "08.01.0105"
+            VALUE "ProductVersion", "08.01.0108"
         END
     END
     BLOCK "VarFileInfo"
@@ -625,12 +625,12 @@ BEGIN
 #endif
             VALUE "CompanyName", "PostgreSQL Global Development Group"
             VALUE "FileDescription", "PostgreSQL Driver"
-            VALUE "FileVersion", "08.01.0105"
+            VALUE "FileVersion", "08.01.0108"
             VALUE "InternalName", "psqlodbc"
             VALUE "LegalTrademarks", "ODBC(TM) is a trademark of Microsoft Corporation.  Microsoft® is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation."
             VALUE "OriginalFilename", "psqlodbc.dll"
             VALUE "ProductName", "Microsoft Open Database Connectivity"
-            VALUE "ProductVersion", "08.01.0105"
+            VALUE "ProductVersion", "08.01.0108"
         END
     END
     BLOCK "VarFileInfo"
index a2cd9b47f44e638bc33f86fb6ce00faf198bea91..79dc50aabd82b6213526785008d7fa626438847f 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1,18 +1,18 @@
-/* File:           version.h\r
- *\r
- * Description:        This file defines the driver version.\r
- *\r
- * Comments:       See "notice.txt" for copyright and license information.\r
- *\r
- * Note:            The version number should also be updated in :\r
- *                  psqlodbc.rc, configure.ac and installer/make.bat\r
- */\r
-\r
-#ifndef __VERSION_H__\r
-#define __VERSION_H__\r
-\r
-#define POSTGRESDRIVERVERSION      "08.01.0105"\r
-#define POSTGRES_RESOURCE_VERSION  "08.01.0105\0"\r
-#define PG_DRVFILE_VERSION     8,1,1,5\r
-\r
-#endif\r
+/* File:           version.h
+ *
+ * Description:        This file defines the driver version.
+ *
+ * Comments:       See "notice.txt" for copyright and license information.
+ *
+ * Note:            The version number should also be updated in :
+ *                  psqlodbc.rc, configure.ac and installer/make.bat
+ */
+
+#ifndef __VERSION_H__
+#define __VERSION_H__
+
+#define POSTGRESDRIVERVERSION      "08.01.0108"
+#define POSTGRES_RESOURCE_VERSION  "08.01.0108\0"
+#define PG_DRVFILE_VERSION     8,1,1,8
+
+#endif