mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bugzilla bug 142677: made --disable-ipv6 work on AIX. Removed the obsolete
file _aix32in6.cfg. Modified files: configure.in configure _aix32.cfg Removed file: _aix32in6.cfg
This commit is contained in:
parent
039011de8b
commit
521b18afe1
56
nsprpub/configure
vendored
56
nsprpub/configure
vendored
@ -2976,11 +2976,7 @@ EOF
|
|||||||
MDCPUCFG_H=_aix64.cfg
|
MDCPUCFG_H=_aix64.cfg
|
||||||
OBJECT_MODE=64
|
OBJECT_MODE=64
|
||||||
else
|
else
|
||||||
if test -n "$USE_IPV6"; then
|
MDCPUCFG_H=_aix32.cfg
|
||||||
MDCPUCFG_H=_aix32in6.cfg
|
|
||||||
else
|
|
||||||
MDCPUCFG_H=_aix32.cfg
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
PR_MD_CSRCS=aix.c
|
PR_MD_CSRCS=aix.c
|
||||||
RESOLVE_LINK_SYMBOLS=1
|
RESOLVE_LINK_SYMBOLS=1
|
||||||
@ -3014,7 +3010,7 @@ EOF
|
|||||||
_DEBUG_FLAGS='-gdwarf-2 -O0'
|
_DEBUG_FLAGS='-gdwarf-2 -O0'
|
||||||
MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
|
MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
|
||||||
echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
|
echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
|
||||||
echo "configure:3018: checking for gethostbyaddr in -lbind" >&5
|
echo "configure:3014: checking for gethostbyaddr in -lbind" >&5
|
||||||
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
|
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
@ -3022,7 +3018,7 @@ else
|
|||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-lbind $LIBS"
|
LIBS="-lbind $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 3026 "configure"
|
#line 3022 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
/* We use char because int might match the return type of a gcc2
|
/* We use char because int might match the return type of a gcc2
|
||||||
@ -3033,7 +3029,7 @@ int main() {
|
|||||||
gethostbyaddr()
|
gethostbyaddr()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
@ -4159,17 +4155,17 @@ EOF
|
|||||||
|
|
||||||
ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
|
ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
|
||||||
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
|
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
|
||||||
echo "configure:4163: checking for machine/builtins.h" >&5
|
echo "configure:4159: checking for machine/builtins.h" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 4168 "configure"
|
#line 4164 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <machine/builtins.h>
|
#include <machine/builtins.h>
|
||||||
EOF
|
EOF
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
{ (eval echo configure:4173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
{ (eval echo configure:4169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
@ -4684,12 +4680,12 @@ esac
|
|||||||
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
||||||
|
|
||||||
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
|
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
|
||||||
echo "configure:4688: checking for dlopen" >&5
|
echo "configure:4684: checking for dlopen" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 4693 "configure"
|
#line 4689 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char dlopen(); below. */
|
which can conflict with char dlopen(); below. */
|
||||||
@ -4712,7 +4708,7 @@ dlopen();
|
|||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_dlopen=yes"
|
eval "ac_cv_func_dlopen=yes"
|
||||||
else
|
else
|
||||||
@ -4731,7 +4727,7 @@ else
|
|||||||
echo "$ac_t""no" 1>&6
|
echo "$ac_t""no" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
||||||
echo "configure:4735: checking for dlopen in -ldl" >&5
|
echo "configure:4731: checking for dlopen in -ldl" >&5
|
||||||
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
@ -4739,7 +4735,7 @@ else
|
|||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-ldl $LIBS"
|
LIBS="-ldl $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 4743 "configure"
|
#line 4739 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
/* We use char because int might match the return type of a gcc2
|
/* We use char because int might match the return type of a gcc2
|
||||||
@ -4750,7 +4746,7 @@ int main() {
|
|||||||
dlopen()
|
dlopen()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
@ -4778,13 +4774,13 @@ fi
|
|||||||
|
|
||||||
if test $ac_cv_prog_gcc = yes; then
|
if test $ac_cv_prog_gcc = yes; then
|
||||||
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
||||||
echo "configure:4782: checking whether ${CC-cc} needs -traditional" >&5
|
echo "configure:4778: checking whether ${CC-cc} needs -traditional" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
ac_pattern="Autoconf.*'x'"
|
ac_pattern="Autoconf.*'x'"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 4788 "configure"
|
#line 4784 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <sgtty.h>
|
#include <sgtty.h>
|
||||||
Autoconf TIOCGETP
|
Autoconf TIOCGETP
|
||||||
@ -4802,7 +4798,7 @@ rm -f conftest*
|
|||||||
|
|
||||||
if test $ac_cv_prog_gcc_traditional = no; then
|
if test $ac_cv_prog_gcc_traditional = no; then
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 4806 "configure"
|
#line 4802 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <termio.h>
|
#include <termio.h>
|
||||||
Autoconf TCGETA
|
Autoconf TCGETA
|
||||||
@ -4826,12 +4822,12 @@ fi
|
|||||||
for ac_func in lchown strerror
|
for ac_func in lchown strerror
|
||||||
do
|
do
|
||||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
echo "configure:4830: checking for $ac_func" >&5
|
echo "configure:4826: checking for $ac_func" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 4835 "configure"
|
#line 4831 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func(); below. */
|
which can conflict with char $ac_func(); below. */
|
||||||
@ -4854,7 +4850,7 @@ $ac_func();
|
|||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_$ac_func=yes"
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
else
|
else
|
||||||
@ -4892,7 +4888,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
|
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
|
||||||
echo "configure:4896: checking for pthread_create in -lpthreads" >&5
|
echo "configure:4892: checking for pthread_create in -lpthreads" >&5
|
||||||
echo "
|
echo "
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
void *foo(void *v) { return v; }
|
void *foo(void *v) { return v; }
|
||||||
@ -4914,7 +4910,7 @@ echo "
|
|||||||
echo "$ac_t""no" 1>&6
|
echo "$ac_t""no" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
||||||
echo "configure:4918: checking for pthread_create in -lpthread" >&5
|
echo "configure:4914: checking for pthread_create in -lpthread" >&5
|
||||||
echo "
|
echo "
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
void *foo(void *v) { return v; }
|
void *foo(void *v) { return v; }
|
||||||
@ -4936,7 +4932,7 @@ echo "
|
|||||||
echo "$ac_t""no" 1>&6
|
echo "$ac_t""no" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
|
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
|
||||||
echo "configure:4940: checking for pthread_create in -lc_r" >&5
|
echo "configure:4936: checking for pthread_create in -lc_r" >&5
|
||||||
echo "
|
echo "
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
void *foo(void *v) { return v; }
|
void *foo(void *v) { return v; }
|
||||||
@ -4958,7 +4954,7 @@ echo "
|
|||||||
echo "$ac_t""no" 1>&6
|
echo "$ac_t""no" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
|
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
|
||||||
echo "configure:4962: checking for pthread_create in -lc" >&5
|
echo "configure:4958: checking for pthread_create in -lc" >&5
|
||||||
echo "
|
echo "
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
void *foo(void *v) { return v; }
|
void *foo(void *v) { return v; }
|
||||||
@ -5086,6 +5082,8 @@ if test "${enable_ipv6+set}" = set; then
|
|||||||
enableval="$enable_ipv6"
|
enableval="$enable_ipv6"
|
||||||
if test "$enableval" = "yes"; then
|
if test "$enableval" = "yes"; then
|
||||||
USE_IPV6=1
|
USE_IPV6=1
|
||||||
|
else
|
||||||
|
USE_IPV6=
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -5108,7 +5106,7 @@ if test -n "$USE_PTHREADS"; then
|
|||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
ac_cv_have_dash_pthread=no
|
ac_cv_have_dash_pthread=no
|
||||||
echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
|
echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
|
||||||
echo "configure:5112: checking whether ${CC-cc} accepts -pthread" >&5
|
echo "configure:5110: checking whether ${CC-cc} accepts -pthread" >&5
|
||||||
echo 'int main() { return 0; }' | cat > conftest.c
|
echo 'int main() { return 0; }' | cat > conftest.c
|
||||||
${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
|
${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
|
||||||
if test $? -eq 0; then
|
if test $? -eq 0; then
|
||||||
@ -5131,7 +5129,7 @@ echo "configure:5112: checking whether ${CC-cc} accepts -pthread" >&5
|
|||||||
ac_cv_have_dash_pthreads=no
|
ac_cv_have_dash_pthreads=no
|
||||||
if test "$ac_cv_have_dash_pthread" = "no"; then
|
if test "$ac_cv_have_dash_pthread" = "no"; then
|
||||||
echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
|
echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
|
||||||
echo "configure:5135: checking whether ${CC-cc} accepts -pthreads" >&5
|
echo "configure:5133: checking whether ${CC-cc} accepts -pthreads" >&5
|
||||||
echo 'int main() { return 0; }' | cat > conftest.c
|
echo 'int main() { return 0; }' | cat > conftest.c
|
||||||
${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
|
${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
|
||||||
if test $? -eq 0; then
|
if test $? -eq 0; then
|
||||||
|
@ -729,11 +729,7 @@ case "$target" in
|
|||||||
MDCPUCFG_H=_aix64.cfg
|
MDCPUCFG_H=_aix64.cfg
|
||||||
OBJECT_MODE=64
|
OBJECT_MODE=64
|
||||||
else
|
else
|
||||||
if test -n "$USE_IPV6"; then
|
MDCPUCFG_H=_aix32.cfg
|
||||||
MDCPUCFG_H=_aix32in6.cfg
|
|
||||||
else
|
|
||||||
MDCPUCFG_H=_aix32.cfg
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
PR_MD_CSRCS=aix.c
|
PR_MD_CSRCS=aix.c
|
||||||
RESOLVE_LINK_SYMBOLS=1
|
RESOLVE_LINK_SYMBOLS=1
|
||||||
@ -1992,6 +1988,8 @@ AC_ARG_ENABLE(ipv6,
|
|||||||
[ --enable-ipv6 Compile ipv6 support],
|
[ --enable-ipv6 Compile ipv6 support],
|
||||||
[ if test "$enableval" = "yes"; then
|
[ if test "$enableval" = "yes"; then
|
||||||
USE_IPV6=1
|
USE_IPV6=1
|
||||||
|
else
|
||||||
|
USE_IPV6=
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,6 +134,9 @@
|
|||||||
#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
|
#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
|
||||||
#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
|
#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
|
||||||
|
|
||||||
|
/* used by protypes.h only */
|
||||||
|
#define _PR_AIX_HAVE_BSD_INT_TYPES
|
||||||
|
|
||||||
#endif /* NO_NSPR_10_SUPPORT */
|
#endif /* NO_NSPR_10_SUPPORT */
|
||||||
|
|
||||||
#endif /* nspr_cpucfg___ */
|
#endif /* nspr_cpucfg___ */
|
||||||
|
@ -1,142 +0,0 @@
|
|||||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
||||||
/*
|
|
||||||
* The contents of this file are subject to the Mozilla Public
|
|
||||||
* License Version 1.1 (the "License"); you may not use this file
|
|
||||||
* except in compliance with the License. You may obtain a copy of
|
|
||||||
* the License at http://www.mozilla.org/MPL/
|
|
||||||
*
|
|
||||||
* Software distributed under the License is distributed on an "AS
|
|
||||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
||||||
* implied. See the License for the specific language governing
|
|
||||||
* rights and limitations under the License.
|
|
||||||
*
|
|
||||||
* The Original Code is the Netscape Portable Runtime (NSPR).
|
|
||||||
*
|
|
||||||
* The Initial Developer of the Original Code is Netscape
|
|
||||||
* Communications Corporation. Portions created by Netscape are
|
|
||||||
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
|
|
||||||
* Rights Reserved.
|
|
||||||
*
|
|
||||||
* Contributor(s):
|
|
||||||
*
|
|
||||||
* Alternatively, the contents of this file may be used under the
|
|
||||||
* terms of the GNU General Public License Version 2 or later (the
|
|
||||||
* "GPL"), in which case the provisions of the GPL are applicable
|
|
||||||
* instead of those above. If you wish to allow use of your
|
|
||||||
* version of this file only under the terms of the GPL and not to
|
|
||||||
* allow others to use your version of this file under the MPL,
|
|
||||||
* indicate your decision by deleting the provisions above and
|
|
||||||
* replace them with the notice and other provisions required by
|
|
||||||
* the GPL. If you do not delete the provisions above, a recipient
|
|
||||||
* may use your version of this file under either the MPL or the
|
|
||||||
* GPL.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef nspr_cpucfg___
|
|
||||||
#define nspr_cpucfg___
|
|
||||||
|
|
||||||
#ifndef XP_UNIX
|
|
||||||
#define XP_UNIX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef AIX
|
|
||||||
#define AIX
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef IS_LITTLE_ENDIAN
|
|
||||||
#define IS_BIG_ENDIAN 1
|
|
||||||
|
|
||||||
#define PR_BYTES_PER_BYTE 1
|
|
||||||
#define PR_BYTES_PER_SHORT 2
|
|
||||||
#define PR_BYTES_PER_INT 4
|
|
||||||
#define PR_BYTES_PER_INT64 8
|
|
||||||
#define PR_BYTES_PER_LONG 4
|
|
||||||
#define PR_BYTES_PER_FLOAT 4
|
|
||||||
#define PR_BYTES_PER_DOUBLE 8
|
|
||||||
#define PR_BYTES_PER_WORD 4
|
|
||||||
#define PR_BYTES_PER_DWORD 8
|
|
||||||
|
|
||||||
#define PR_BYTES_PER_WORD_LOG2 2
|
|
||||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
|
||||||
|
|
||||||
#define PR_BITS_PER_BYTE 8
|
|
||||||
#define PR_BITS_PER_SHORT 16
|
|
||||||
#define PR_BITS_PER_INT 32
|
|
||||||
#define PR_BITS_PER_INT64 64
|
|
||||||
#define PR_BITS_PER_LONG 32
|
|
||||||
#define PR_BITS_PER_FLOAT 32
|
|
||||||
#define PR_BITS_PER_DOUBLE 64
|
|
||||||
#define PR_BITS_PER_WORD 32
|
|
||||||
|
|
||||||
#define PR_BITS_PER_BYTE_LOG2 3
|
|
||||||
#define PR_BITS_PER_SHORT_LOG2 4
|
|
||||||
#define PR_BITS_PER_INT_LOG2 5
|
|
||||||
#define PR_BITS_PER_INT64_LOG2 6
|
|
||||||
#define PR_BITS_PER_LONG_LOG2 5
|
|
||||||
#define PR_BITS_PER_FLOAT_LOG2 5
|
|
||||||
#define PR_BITS_PER_DOUBLE_LOG2 6
|
|
||||||
#define PR_BITS_PER_WORD_LOG2 5
|
|
||||||
|
|
||||||
#define PR_ALIGN_OF_SHORT 2
|
|
||||||
#define PR_ALIGN_OF_INT 4
|
|
||||||
#define PR_ALIGN_OF_LONG 4
|
|
||||||
#define PR_ALIGN_OF_INT64 8
|
|
||||||
#define PR_ALIGN_OF_FLOAT 4
|
|
||||||
#define PR_ALIGN_OF_DOUBLE 4
|
|
||||||
#define PR_ALIGN_OF_POINTER 4
|
|
||||||
|
|
||||||
#define HAVE_LONG_LONG
|
|
||||||
#undef HAVE_ALIGNED_DOUBLES
|
|
||||||
#undef HAVE_ALIGNED_LONGLONGS
|
|
||||||
|
|
||||||
#define PR_AF_INET6 24 /* same as AF_INET6 */
|
|
||||||
|
|
||||||
#ifndef NO_NSPR_10_SUPPORT
|
|
||||||
|
|
||||||
#define BYTES_PER_BYTE PR_BYTES_PER_BYTE
|
|
||||||
#define BYTES_PER_SHORT PR_BYTES_PER_SHORT
|
|
||||||
#define BYTES_PER_INT PR_BYTES_PER_INT
|
|
||||||
#define BYTES_PER_INT64 PR_BYTES_PER_INT64
|
|
||||||
#define BYTES_PER_LONG PR_BYTES_PER_LONG
|
|
||||||
#define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT
|
|
||||||
#define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE
|
|
||||||
#define BYTES_PER_WORD PR_BYTES_PER_WORD
|
|
||||||
#define BYTES_PER_DWORD PR_BYTES_PER_DWORD
|
|
||||||
|
|
||||||
#define BITS_PER_BYTE PR_BITS_PER_BYTE
|
|
||||||
#define BITS_PER_SHORT PR_BITS_PER_SHORT
|
|
||||||
#define BITS_PER_INT PR_BITS_PER_INT
|
|
||||||
#define BITS_PER_INT64 PR_BITS_PER_INT64
|
|
||||||
#define BITS_PER_LONG PR_BITS_PER_LONG
|
|
||||||
#define BITS_PER_FLOAT PR_BITS_PER_FLOAT
|
|
||||||
#define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE
|
|
||||||
#define BITS_PER_WORD PR_BITS_PER_WORD
|
|
||||||
|
|
||||||
#define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2
|
|
||||||
#define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2
|
|
||||||
#define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2
|
|
||||||
#define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2
|
|
||||||
#define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2
|
|
||||||
#define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2
|
|
||||||
#define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2
|
|
||||||
#define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2
|
|
||||||
|
|
||||||
#define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT
|
|
||||||
#define ALIGN_OF_INT PR_ALIGN_OF_INT
|
|
||||||
#define ALIGN_OF_LONG PR_ALIGN_OF_LONG
|
|
||||||
#define ALIGN_OF_INT64 PR_ALIGN_OF_INT64
|
|
||||||
#define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT
|
|
||||||
#define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE
|
|
||||||
#define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
|
|
||||||
#define ALIGN_OF_WORD PR_ALIGN_OF_WORD
|
|
||||||
|
|
||||||
#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
|
|
||||||
#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
|
|
||||||
#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
|
|
||||||
|
|
||||||
/* used by protypes.h only */
|
|
||||||
#define _PR_AIX_HAVE_BSD_INT_TYPES
|
|
||||||
|
|
||||||
#endif /* NO_NSPR_10_SUPPORT */
|
|
||||||
|
|
||||||
#endif /* nspr_cpucfg___ */
|
|
Loading…
Reference in New Issue
Block a user