view src/freetds-2-fixes.patch @ 1134:3bbf91cb006a

package freetds: fixed generation of configure script (by Tony Theodore) The ./configure script produced by autoreconf has a dangling dot on line 5 that causes the script to stop. This is caused by a quirk in OSX sh. From man echo: Most notably, the builtin echo in sh(1) does not accept the -n option. Applications aiming for maximum portability are strongly encouraged to use printf(1) to suppress the newline character. Tested on FreeBSD, openSUSE, OSX, and Ubuntu.
author Mark Brand <mabrand@mabrand.nl>
date Mon, 13 Sep 2010 17:38:10 +0200
parents
children
line wrap: on
line source

This file is part of mingw-cross-env.
See doc/index.html for further information.

This patch has been taken from:
http://lists.ibiblio.org/pipermail/freetds/2010q3/026273.html

diff -ur orig/configure.ac new/configure.ac
--- orig/configure.ac	2010-09-13 22:54:42.000000000 +1000
+++ new/configure.ac	2010-09-13 22:56:35.000000000 +1000
@@ -12,7 +12,7 @@
 # ------------------------------------------------------------
 # Initialization
 # ------------------------------------------------------------
-AC_INIT(FreeTDS, 0.83.dev.esyscmd(echo -n $(date +"%Y%m%d")))
+AC_INIT(FreeTDS, 0.83.dev.esyscmd(printf $(date +"%Y%m%d")))
 AC_CONFIG_SRCDIR(src/dblib/dblib.c)
 AC_PREREQ(2.53)
 AC_REVISION($Revision: 1.55 $)