From 65d2339da0f597612dfe04a6cd6d74a02b07fdfe Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga <kurt@openldap.org> Date: Fri, 22 Jun 2001 19:55:53 +0000 Subject: [PATCH] don't test for snprintf --- README | 2 +- configure | 25 ++++++++++++------------- configure.in | 1 - include/portable.h.in | 3 --- 4 files changed, 13 insertions(+), 18 deletions(-) diff --git a/README b/README index bf0f8d8572..1689a3f815 100644 --- a/README +++ b/README @@ -28,7 +28,7 @@ REQUIRED SOFTWARE SLURPD: LTHREAD compatible thread package - [POSIX threads, Mach Cthreads, Sun LWP, or GNU Pth] + [POSIX threads, Mach Cthreads, select others] CLIENTS/CONTRIB ware: Depends on package. See per package README. diff --git a/configure b/configure index 8a8d3267d8..fcf15e9cf5 100755 --- a/configure +++ b/configure @@ -15813,7 +15813,6 @@ for ac_func in \ sigaction \ signal \ sigset \ - snprintf \ strdup \ strerror \ strpbrk \ @@ -15832,12 +15831,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15836: checking for $ac_func" >&5 +echo "configure:15835: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 15841 "configure" +#line 15840 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -15861,7 +15860,7 @@ f = $ac_func; ; return 0; } EOF -if { (eval echo configure:15865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15889,12 +15888,12 @@ done for ac_func in getopt tempnam do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15893: checking for $ac_func" >&5 +echo "configure:15892: checking for $ac_func" >&5 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 15898 "configure" +#line 15897 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -15918,7 +15917,7 @@ f = $ac_func; ; return 0; } EOF -if { (eval echo configure:15922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15955,13 +15954,13 @@ fi # Check Configuration echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6 -echo "configure:15959: checking declaration of sys_errlist" >&5 +echo "configure:15958: checking declaration of sys_errlist" >&5 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 15965 "configure" +#line 15964 "configure" #include "confdefs.h" #include <stdio.h> @@ -15974,7 +15973,7 @@ int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:15978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ol_cv_dcl_sys_errlist=yes ol_cv_have_sys_errlist=yes @@ -15997,20 +15996,20 @@ EOF echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6 -echo "configure:16001: checking existence of sys_errlist" >&5 +echo "configure:16000: checking existence of sys_errlist" >&5 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 16007 "configure" +#line 16006 "configure" #include "confdefs.h" #include <errno.h> int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:16014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ol_cv_have_sys_errlist=yes else diff --git a/configure.in b/configure.in index ac6b160f3b..313f0bce0f 100644 --- a/configure.in +++ b/configure.in @@ -2044,7 +2044,6 @@ AC_CHECK_FUNCS( \ sigaction \ signal \ sigset \ - snprintf \ strdup \ strerror \ strpbrk \ diff --git a/include/portable.h.in b/include/portable.h.in index 0ab69a5545..7153cfb2b6 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -274,9 +274,6 @@ /* Define if you have the sigset function. */ #undef HAVE_SIGSET -/* Define if you have the snprintf function. */ -#undef HAVE_SNPRINTF - /* Define if you have the strdup function. */ #undef HAVE_STRDUP -- GitLab