[prev in list] [next in list] [prev in thread] [next in thread] 

List:       silc-devel
Subject:    Re: Compile Error on OpenBSD 2.8
From:       Carsten Ilchmann <c.ilchmann () fh-wolfenbuettel ! de>
Date:       2001-08-18 9:09:43
Message-ID: 20010818110943.A20454 () zeus ! fh-wolfenbuettel ! de
[Download RAW message or body]

I got a server 0.5.3 building and running on an OpenBSD system yesterday with
modifying lib/contrib/Makefile.

I tried to trace this error back to configure.in.pre in cvs and now come up with
a patch to fix it.
There are other reasons why i can't completely build from the cvs repository but
i checked that at least lib/contrib/Makefile is now correct.

Maybe someone else could check and comment on this patch.

As i stated earlier i'm no configure expert but it seems to me that configure has
problems recognizing the automake conditional in this case.

> in Makefile.in becomes
> [...]
> @SILC_WIN32_FALSE@libcontrib_a_OBJECTS =  getopt.o getopt1.o regex.o
> @SILC_WIN32_TRUE@libcontrib_a_OBJECTS =
> [...]
 
> and then in Makefile created by configure
> [...]
> libcontrib_a_OBJECTS =  getopt.o getopt1.o regex.o
> libcontrib_a_OBJECTS =
> [...]

With the patched configure.in the second line is now commented out so everything works fine.

By the way: same thing with libcontrib_a_SOURCES but there it's the other way round and so
it works by chance even without the patch.

Carsten
 


--- configure.in.pre.orig	Sat Aug 18 01:28:07 2001
+++ configure.in.pre	Sat Aug 18 01:29:45 2001
@@ -564,9 +564,11 @@ AC_ARG_WITH(silcd-config-file,
 AC_ARG_WITH(win32,
 [  --with-win32            Compile native WIN32 code (-mno-cygwin)],
 [ AC_DEFINE(SILC_WIN32)
-  AM_CONDITIONAL(SILC_WIN32, test xtrue = xtrue)
+  win32-support = true
   CFLAGS="-mno-cygwin $CFLAGS" 
   LIBS="$LIBS -lwsock32" ])
+
+AM_CONDITIONAL(SILC_WIN32, test x$win32-support = xtrue)
 
 #
 # Debug checking


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic