POV-Ray : Newsgroups : povray.programming : [patch] configure.in tirival patch Server Time
5 Jul 2024 15:18:04 EDT (-0400)
  [patch] configure.in tirival patch (Message 1 to 2 of 2)  
From: Wolfgang Wieser
Subject: [patch] configure.in tirival patch
Date: 28 Mar 2003 16:44:49
Message: <3e84c243@news.povray.org>
Hi all...

Just compiled povray-3.50c on my debian linux box and notized 
the following: 

----------<snip>---------
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working memcmp... no
checking return type of signal handlers... void
checking for strftime... no
checking for strftime in -lintl... no
checking for vprintf... no
checking for getcwd... no
checking for gettimeofday... no
------------------------

The last line definitively made me suspicious. 

The problem begins when detecting -lX11: For X11 detection 
the linker path -L/usr/X11R6/lib is passed but it is omitted for 
all future calls to gcc. The following patch fixes this problem:

-----------<diff>-----------
--- configure.in-orig   2003-03-28 22:35:05.000000000 +0100
+++ configure.in        2003-03-28 22:41:14.000000000 +0100
@@ -26,7 +26,8 @@
 dnl Checks for header files.
 AC_PATH_XTRA
 dnl Now we can check for libX11
-AC_CHECK_LIB(X11, XFlush, LIBS="$LIBS -lX11", true, -L$x_libraries -lX11)
+AC_CHECK_LIB(X11, XFlush, LIBS="$LIBS -lX11 -L$x_libraries", true, 
+       -L$x_libraries -lX11)
 AC_HEADER_STDC
 AC_CHECK_HEADERS(limits.h sys/time.h unistd.h, )
 
----------------------------

Wolfgang


Post a reply to this message

From: Nicolas Calimet
Subject: Re: [patch] configure.in tirival patch
Date: 30 Mar 2003 16:45:43
Message: <3E876587.3020801@free.fr>
> The problem begins when detecting -lX11: For X11 detection 
> the linker path -L/usr/X11R6/lib is passed but it is omitted for 
> all future calls to gcc. The following patch fixes this problem:
> 
> -----------<diff>-----------
> --- configure.in-orig   2003-03-28 22:35:05.000000000 +0100
> +++ configure.in        2003-03-28 22:41:14.000000000 +0100
> @@ -26,7 +26,8 @@
>  dnl Checks for header files.
>  AC_PATH_XTRA
>  dnl Now we can check for libX11
> -AC_CHECK_LIB(X11, XFlush, LIBS="$LIBS -lX11", true, -L$x_libraries -lX11)
> +AC_CHECK_LIB(X11, XFlush, LIBS="$LIBS -lX11 -L$x_libraries", true, 
> +       -L$x_libraries -lX11)
>  AC_HEADER_STDC
>  AC_CHECK_HEADERS(limits.h sys/time.h unistd.h, )
>  
> ----------------------------

	Wolfgang,

	Could you try the configure script I posted last februray in
p.unix ? -- actually a small package to be downloaded from:
	http://pov4grasp.free.fr/download/povray-3.50c-config.tar.gz

	Since the order of the checks have been changed, I don't have
this problem you mention (i.e. w/o adding the -L$x_libraries of your patch).
I'd like to know if my mods work for you. I didn't update this package since
I posted it {shame on me}, so it would be a good reason  :-)

	BTW, I guess this post and the other one about src/conf.h would
better fit in p.unix since this is only related to the UNIX/Linux version.
	Followup-to to p.unix.

	- NC


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.