unixware and --with-ldap

From: ohp(at)pyrenet(dot)fr
To: pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: unixware and --with-ldap
Date: 2006-12-11 14:38:59
Message-ID: Pine.UW2.4.53.0612111531450.3962@sun.pyrenet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

When I swithed to the newest version og pgbuildfarm, I noticed that
--with-ldap (now by defaut) didn't work on UnixWare.

This is because, on Unixware, ldap needs lber and resolv.

Not being a configure guru, I made the change bellow locally and that
works for me.
Surely, one of you hackers can come up with a better solution!

*** configure.orig lun déc 11 14:58:55 2006
--- configure lun déc 11 15:22:06 2006
***************
*** 17185,17191 ****
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
! LIBS="-lldap $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
--- 17185,17191 ----
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
! LIBS="-lldap -llber -lresolv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
***************
*** 17248,17254 ****
#define HAVE_LIBLDAP 1
_ACEOF

! LIBS="-lldap $LIBS"

else
{ { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
--- 17248,17254 ----
#define HAVE_LIBLDAP 1
_ACEOF

! LIBS="-lldap -llber -lresolv $LIBS"

else
{ { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
***************
*** 17256,17262 ****
{ (exit 1); exit 1; }; }
fi

! LDAP_LIBS_BE="-lldap"
if test "$enable_thread_safety" = yes; then
# on some platforms ldap_r fails to link without PTHREAD_LIBS

--- 17256,17262 ----
{ (exit 1); exit 1; }; }
fi

! LDAP_LIBS_BE="-lldap -llber -lresolv"
if test "$enable_thread_safety" = yes; then
# on some platforms ldap_r fails to link without PTHREAD_LIBS

***************
*** 17339,17345 ****

LDAP_LIBS_FE="-lldap_r"
else
! LDAP_LIBS_FE="-lldap"
fi
else

--- 17339,17345 ----

LDAP_LIBS_FE="-lldap_r"
else
! LDAP_LIBS_FE="-lldap -llber -lresolv"
fi
else

When I have time, I intend to update the SCO FAQ if someone can tell me
what should be in...

Many thanks for the great release!!!
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
15, Chemin des Monges +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-12-11 15:03:04 Re: unixware and --with-ldap
Previous Message Inaam Rana 2006-12-11 12:42:06 Re: Load distributed checkpoint