Re: [Fwd: Re: [GnomeMeeting-list] configure error with version 0.84]



Am Donnerstag, 14. März 2002 22:27 schrieb Denis Chalon:
> Thanks for the tip, Stephan,
>
> I still have the problem when compiling 0.85.1.
> In fact the basis of my distribution should be an old RedHat 5 or 6. And
> the value of OSTYPE is set to Linux. By looking in details in configure,
> it appears that tested values are linux or linux-gnu (insteqd of Linux).
>
> I had another issue with ldap presence: libldap was found but configure
> was unable to compile the test program, because -lresolv was not linked
> (res_query,...). -lresolv was only linked for linux-gnu...
>
> Again, thanks for your help,
>
> Denis

Hi Denis,

here is a patch that should fix this issues.

Stefan

-- 
Stefan Brüns  /  Kastanienweg 6 - Zimmer 1206  /  52074 Aachen     
mailto:lur_x gmx net  http://www.kawo1.rwth-aachen.de/~lurchi/
      fax: +49-89-1488204565   phone: +49-160-7532733 
--- ../gnomemeeting/configure.in_	Sun Mar  3 16:52:31 2002
+++ ../gnomemeeting/configure.in	Fri Mar 15 16:30:11 2002
@@ -36,16 +36,21 @@
 dnl Set up Operating System specific parameters
 dnl *******************************************
 
+AC_MSG_CHECKING(whether OS type is supported)
+
+ostype=""
 case $OSTYPE in
 
-  linux-gnu | linux)
+  linux-gnu | linux | Linux)
     H323_CFLAGS="-DP_LINUX -D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS -O3 -DNDEBUG -fPIC -g"
     H323_LIBS="-lopenh323 -ldl -lpt -lpthread -lssl -lcrypto"
     LIBPT_FILE="libpt.so"
     LIBOPENH323_FILE="libopenh323.so"
     GTK_CONFIG="gtk-config"
+    ostype="linux"
 dnl * if debug add this and link to -lh323_linux_x86_d -lpt_linux_x86_d
 dnl * -D_DEBUG -DPMEMORY_CHECK=1 -DPTRACING -g
+    AC_MSG_RESULT([yes])
     ;;
 
   FreeBSD)
@@ -53,6 +58,7 @@
     H323_LIBS="-lh323_FreeBSD_x86_r -lpt_FreeBSD_x86_r -pthread -lssl -lcrypto"
     LIBPT_FILE="libpt_FreeBSD_x86_r_s.a"
     LIBOPENH323_FILE="libh323_FreeBSD_x86_r_s.a"
+    AC_MSG_RESULT([yes])
     ;;
   *)
     AC_MSG_ERROR("Only Linux and FreeBSD are supported. Please contact the author")
@@ -216,7 +222,7 @@
 
 LDAP_INCLUDES=""
 
-if test "$OSTYPE" = "linux-gnu"; then
+if test "$ostype" = "linux" ; then
 	LDAP_LIBS="-lldap -llber -lresolv"
 else
 	LDAP_LIBS="-lldap -llber"
@@ -293,7 +299,7 @@
 dnl #########################################################################
 dnl  Check for LDAP if available.
 dnl ########################################################################
-if test "$OSTYPE" = "linux-gnu"; then
+if test "$ostype" = "linux" ; then
   AC_CHECK_LIB(resolv, res_gethostbyaddr, [LIBS="-lresolv $LIBS"], AC_MSG_ERROR([*** libresolv not found.]), -lresolv)
 fi
 


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