Bugs on Configure script?

Emmanuel Celiz ec_celiz at yahoo.com
Thu Jun 7 06:47:51 CEST 2007

I'm not quite sure if the bugs are in your code, my
system, or I'm just incompetent. You see, I'm an
amateur programmer who has never sat before any other
OS but DOS and Windows. I have several C++ compilers
on my machine but apparently none could as yet be of
much help on my desire to use GMP. So I installed
Cygwin, read some UNIX tutorials, and when I typed
'./configure' on GMP directory, this is what I got:

EC at acer-b35562f4ab /cygdrive/d/GMP/gmp-4.2.1
$ ./configure
./configure: line 37: $'\r': command not found
./configure: line 45: syntax error near unexpected
token `elif'
./configure: line 45: `elif test -n
"${BASH_VERSION+set}" && (set -o posix) >/de
'/null 2>&1; then

EC at acer-b35562f4ab /cygdrive/d/GMP/gmp-4.2.1
Lines 31 to 48 of the file 'configure' in this
directory look like this: (with line numbers added)

  31 # Copyright (C) 2003 Free Software Foundation,
  32 # This configure script is free software; the
Free Software Foundation
  33 # gives unlimited permission to copy, distribute
and modify it.
  34 ## --------------------- ##
  35 ## M4sh Initialization.  ##
  36 ## --------------------- ##
  38 # Be Bourne compatible
  39 if test -n "${ZSH_VERSION+set}" && (emulate sh)
>/dev/null 2>&1; then
  40   emulate sh
  41   NULLCMD=:
  42   # Zsh 3.x and 4.x performs word splitting on
${1+"$@"}, which
  43   # is contrary to our usage.  Disable this
  44   alias -g '${1+"$@"}'='"$@"'
  45 elif test -n "${BASH_VERSION+set}" && (set -o
posix) >/dev/null 2>&1; then
  46   set -o posix
  47 fi
  48 DUALCASE=1; export DUALCASE # for MKS sh

I don't know any script language yet much less UNIX
scripts so may I ask what's wrong?

Thanks a lot.
Emmanuel Celiz

Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.

More information about the gmp-bugs mailing list