[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problem configuring from CVS



"Alejandro Aguilar Sierra" <asierra@servidor.unam.mx> writes:

> Hello:
>
> I downwloaded an compiled 91-pre1 without much problems (I just had to
> update some packages).
>
> But when I try to configure dia from CVS, I got this error message:
>
> [...]
> checking for gzread in -lz... yes
> checking math.h usability... yes
> checking math.h presence... yes
> checking for math.h... yes
> checking for isinf in -lm... yes
> ./configure: line 12253: syntax error near unexpected token `fi'
> ./configure: line 12253: `fi'
>
> Any hint?

Somehow I think I am to blame. It seems like some versions of autoconf
generate bad scripts from the templates in configure.in to find
isinf. A patch for configure.in that fixes this (for me at least) is attached.

-- 
                - Mårten
 
mail: msv@kth.se *** ICQ: 4356928 *** mobile: +46 (0)707390385
--- configure.in~	Sun Jan 19 09:23:09 2003
+++ configure.in	Fri Jan 24 04:51:25 2003
@@ -285,13 +285,13 @@
 
 if test "$have_isinf" = "no"; then
         AC_CHECK_HEADERS(ieeefp.h,
-                AC_CHECK_FUNC(finite, 
-		        AC_DEFINE([HAVE_IEEEFP_H], 1,
+                [AC_CHECK_FUNC(finite, 
+		        [AC_DEFINE([HAVE_IEEEFP_H], 1,
 			          [Define if finite() is defined in ieeefp.h])
                         AC_MSG_ERROR(Can't find a definition of neither 
-                                     finite nor isinf)),
-                AC_MSG_ERROR(Can't find a definition of neither finite 
-                             nor isinf))
+                                     finite nor isinf)])],
+                [AC_MSG_ERROR(Can't find a definition of neither finite 
+                             nor isinf)])
 else
         AC_DEFINE([HAVE_ISINF], 1, 
                   [Define if the isinf() function is available])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK