mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
sync: Determine the appropriate type for resource limit, ISC_PLATFORM_RLIMITTYPE.
This commit is contained in:
89
configure
vendored
89
configure
vendored
@@ -15,7 +15,7 @@
|
||||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# From configure.in Revision: 1.218
|
||||
# From configure.in Revision: 1.219
|
||||
|
||||
## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
|
||||
## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
|
||||
@@ -4802,6 +4802,86 @@ else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
rm -f conftest*
|
||||
echo $ac_n "checking sizeof rlim_cur""... $ac_c" 1>&6
|
||||
echo "configure:4807: checking sizeof rlim_cur" >&5
|
||||
if test "$cross_compiling" = yes; then
|
||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4812 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
|
||||
EOF
|
||||
if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
echo "$ac_t""int" 1>&6
|
||||
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -fr conftest*
|
||||
|
||||
if test "$cross_compiling" = yes; then
|
||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4833 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
|
||||
EOF
|
||||
if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
echo "$ac_t""long int" 1>&6
|
||||
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -fr conftest*
|
||||
|
||||
if test "$cross_compiling" = yes; then
|
||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4854 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
|
||||
EOF
|
||||
if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
echo "$ac_t""long long int" 1>&6
|
||||
ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -fr conftest*
|
||||
{ echo "configure: error: unable to determine sizeof rlim_cur" 1>&2; exit 1; }
|
||||
|
||||
fi
|
||||
rm -fr conftest*
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
rm -fr conftest*
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
rm -fr conftest*
|
||||
fi
|
||||
|
||||
|
||||
#
|
||||
# Random remaining OS-specific issues involving compiler warnings.
|
||||
@@ -4881,7 +4961,7 @@ do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||
echo "configure:4885: checking for $ac_word" >&5
|
||||
echo "configure:4965: checking for $ac_word" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@@ -4927,7 +5007,7 @@ test -n "$JADE" || JADE="jade"
|
||||
SGMLDIR=""
|
||||
|
||||
echo $ac_n "checking for SGML files""... $ac_c" 1>&6
|
||||
echo "configure:4931: checking for SGML files" >&5
|
||||
echo "configure:5011: checking for SGML files" >&5
|
||||
for d in /usr/pkg/share/sgml /usr/local/share/sgml
|
||||
do
|
||||
if test -f $d/docbook/dsssl/modular/html/docbook.dsl
|
||||
@@ -4953,7 +5033,7 @@ fi
|
||||
XGMLDIR=""
|
||||
|
||||
echo $ac_n "checking for XML files""... $ac_c" 1>&6
|
||||
echo "configure:4957: checking for XML files" >&5
|
||||
echo "configure:5037: checking for XML files" >&5
|
||||
for d in /usr/pkg/share/xml /usr/local/share/xml
|
||||
do
|
||||
if test -f $d/dtd/docbook/docbookx.dtd
|
||||
@@ -5307,6 +5387,7 @@ s%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
|
||||
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
|
||||
s%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
|
||||
s%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
|
||||
s%@ISC_PLATFORM_RLIMITTYPE@%$ISC_PLATFORM_RLIMITTYPE%g
|
||||
s%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
|
||||
s%@JADE@%$JADE%g
|
||||
s%@SGMLDIR@%$SGMLDIR%g
|
||||
|
Reference in New Issue
Block a user