On 2007-03-30, David Fishburn <[EMAIL PROTECTED]> wrote: > > > -----Original Message----- > > From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 30, 2007 6:42 PM
> > To compile a Unix-like "Vim for Cygwin" you must use the > > top-level Makefile or the src/Makefile which will invoke a > > configure step. If configure finds the necessary headers and > > libraries it may compile a GUI version of Vim, which will > > need Cygwin to run, and X11 to display a GUI. > > Hmm, based on your response and Gary's (libncurses-devel) and this post: > http://www.cygwin.com/ml/cygwin/2003-06/msg00886.html > > I ran the following: > cd /c/OpenSrc/vim7/src > ./configure \ > --prefix=/usr \ > --sysconfdir=/etc \ > --libexecdir='$(sbindir)' \ > --localstatedir=/var \ > --datadir='$(prefix)/share' \ > --enable-multibyte \ > --without-x \ > --enable-gui=no > > This results in: > ./configure: line 3: $'\r': command not found > auto/configure: line 11: $'\r': command not found > auto/configure: line 19: syntax error near unexpected token `elif' > auto/configure: line 19: `elif test -n "${BASH_VERSION+set}" && (set -o > posix) >'dev/null 2>&1; then > ./configure: line 6: $'\r': command not found > ./configure: line 11: syntax error: unexpected end of file > > > I have never tried this before, I am wondering if it is related to dos line > endings? > > I pulled the source from a win32 SVN client. It is the same directory I > compile for win32 from. > > Any suggestions? I haven't had this problem myself, but from what I've seen posted to the cygwin list, this looks like a line-ending problem. You can be pretty sure it didn't come from any file installed with setup.exe unless you edited some file with WordPad, for example, that changes LF endings to CR-LF. Something else that can mess you up is using WinZip to unzip a package. While the option can be changed, WizZip's default behavior is to change all text file line endings to CR-LF. The 'file' command will show you the type of line endings that each file has, and 'd2u' will convert CR-LF endings to LF. Regards, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA
