configure.in now includes OL_DECL_STRDUP, configure and portable.h.in

rebuilt to reflect it.
This commit is contained in:
Ben Collins 1999-03-15 00:18:49 +00:00
parent da5444cee5
commit e732e12279
3 changed files with 45 additions and 1 deletions

37
configure vendored
View file

@ -10089,6 +10089,43 @@ fi
echo $ac_n "checking strdup decleration""... $ac_c" 1>&6
echo "configure:10094: checking strdup decleration" >&5
if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 10100 "configure"
#include "confdefs.h"
#include <string.h>
int main() {
extern char *strdup()
; return 0; }
EOF
if { (eval echo configure:10108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ol_cv_dcl_strdup=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ol_cv_dcl_strdup=no
fi
rm -f conftest*
fi
echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
if test $ol_cv_dcl_strdup = yes ; then
cat >> confdefs.h <<\EOF
#define DECL_STRDUP 1
EOF
fi
if test "$ol_enable_debug" != no ; then
cat >> confdefs.h <<\EOF
#define LDAP_DEBUG 1

View file

@ -1671,6 +1671,10 @@ dnl ----------------------------------------------------------------
# Check Configuration
OL_SYS_ERRLIST
dnl ----------------------------------------------------------------
dnl Check our declaration of strdup()
OL_DECL_STRDUP
dnl ----------------------------------------------------------------
dnl Sort out defines

View file

@ -663,12 +663,15 @@
/* define if cross compiling */
#undef CROSS_COMPILING
/* define if sys_errlist is declared in stdio.h or errno.h */
/* define if sys_errlist is not declared in stdio.h or errno.h */
#undef DECL_SYS_ERRLIST
/* define if you actually have sys_errlist in your libs */
#undef HAVE_SYS_ERRLIST
/* define if you have strdup() but it's not declared */
#undef DECL_STRDUP
/* begin of postamble */
#ifdef HAVE_STDDEF_H