# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
# Defaults:
# Any additions from configure.in:
--with-dist-prefix=DIST_PREFIX
place build files in DIST_PREFIX [dist]"
--with-dist-bindir=DIR build execuatables in DIR [DIST_PREFIX/bin]"
--with-dist-includedir=DIR
build include files in DIR [DIST_PREFIX/include/nspr]"
--with-dist-libdir=DIR build library files in DIR [DIST_PREFIX/lib]"
--with-mozilla Compile NSPR with Mozilla support"
--enable-optimize(=val) Enable code optimizations (val, ie. -O2) "
--disable-debug Do not compile in debugging symbols"
--enable-win32-target=\$t
Specify win32 flavor. (WIN95 or WINNT)"
--enable-debug-rtl Use the MSVC debug runtime library"
--enable-n32 Enable n32 ABI support (IRIX only)"
--enable-64bit Enable 64-bit support (on certain platforms)"
--enable-mdupdate Enable use of certain compilers' mdupdate feature"
--enable-macos-target=VER (default=10.1)
Set the minimum MacOS version needed at runtime"
--enable-strip Enable stripping of shared libs and programs"
--with-pthreads Use system pthreads library as thread subsystem"
--enable-user-pthreads Build using userland pthreads"
--enable-nspr-threads Build using classic nspr threads"
--with-bthreads Use system bthreads library as thread subsystem (BeOS only)"
--with-native-threads Use native system threads as thread subsystem (Solaris only)"
--enable-cplus Enable some c++ api routines"
--enable-ipv6 Compile ipv6 support"
--enable-boehm Enable the Boehm Garbage Collector"
# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
program_transform_name=s,x,x,
site=
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
# Initialize some other variables.
# Maximum number of lines to put in a shell here document.
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
continue
fi
case "$ac_option" in
*) ac_optarg= ;;
esac
# Accept the important Cygnus configure options, so we can diagnose typos.
case "$ac_option" in
bindir="$ac_optarg" ;;
build="$ac_optarg" ;;
cache_file="$ac_optarg" ;;
| --da=*)
datadir="$ac_optarg" ;;
# Reject names that are not valid shell variable names.
fi
eval "enable_${ac_feature}=no" ;;
# Reject names that are not valid shell variable names.
fi
case "$ac_option" in
*=*) ;;
esac
eval "enable_${ac_feature}='$ac_optarg'" ;;
exec_prefix="$ac_optarg" ;;
# Obsolete; use --with-gas.
# Omit some internal or obsolete options to make the list less imposing.
cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print \`checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
EOF
cat << EOF
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
--target=TARGET configure for TARGET [TARGET=HOST]
Features and packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
EOF
if test -n "$ac_help"; then
echo "--enable and --with options recognized:$ac_help"
fi
exit 0 ;;
host="$ac_optarg" ;;
includedir="$ac_optarg" ;;
infodir="$ac_optarg" ;;
libdir="$ac_optarg" ;;
libexecdir="$ac_optarg" ;;
localstatedir="$ac_optarg" ;;
mandir="$ac_optarg" ;;
# Obsolete; use --without-fp.
no_recursion=yes ;;
oldincludedir="$ac_optarg" ;;
prefix="$ac_optarg" ;;
program_prefix="$ac_optarg" ;;
program_suffix="$ac_optarg" ;;
sbindir="$ac_optarg" ;;
sharedstatedir="$ac_optarg" ;;
site="$ac_optarg" ;;
srcdir="$ac_optarg" ;;
sysconfdir="$ac_optarg" ;;
target="$ac_optarg" ;;
echo "configure generated by autoconf version 2.13"
exit 0 ;;
# Reject names that are not valid shell variable names.
fi
case "$ac_option" in
*=*) ;;
esac
eval "with_${ac_package}='$ac_optarg'" ;;
# Reject names that are not valid shell variable names.
fi
eval "with_${ac_package}=no" ;;
--x)
# Obsolete; use --with-x.
x_includes="$ac_optarg" ;;
x_libraries="$ac_optarg" ;;
;;
*)
fi
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
fi
;;
esac
done
if test -n "$ac_prev"; then
fi
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
else
exec 6>&1
fi
exec 5>./config.log
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
for ac_arg
do
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
esac
done
# NLS nuisances.
# Only set these to C if already set. These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
# confdefs.h avoids OS command line length limits that DEFS can exceed.
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
# Try the directory containing this script, then its parent.
ac_prog=$0
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
else
fi
fi
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
else
fi
fi
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
echo "loading cache $cache_file"
else
echo "creating cache $cache_file"
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
else
fi
else
fi
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f $ac_dir/install.sh; then
break
fi
done
if test -z "$ac_aux_dir"; then
{ echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; }
fi
# Do some error checking and defaulting for the host and target type.
# The inputs are:
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
#
# The rules are:
# 1. You are not allowed to specify --host, --target, and nonopt at the
# same time.
# 2. Host defaults to nonopt.
# 3. If nonopt is not specified, then host defaults to the current host,
# as determined by config.guess.
# 4. Target and build default to nonopt.
# 5. If nonopt is not specified, then target and build default to host.
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
esac
# Make sure we can run config.sub.
fi
echo "configure:621: checking host system type" >&5
case "$host_alias" in
NONE)
NONE)
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
fi ;;
*) host_alias=$nonopt ;;
esac ;;
esac
echo "configure:642: checking target system type" >&5
case "$target_alias" in
NONE)
*) target_alias=$nonopt ;;
esac ;;
esac
echo "configure:660: checking build system type" >&5
case "$build_alias" in
NONE)
*) build_alias=$nonopt ;;
esac ;;
esac
test "$host_alias" != "$target_alias" &&
NONENONEs,x,x, &&
_DEBUG_FLAGS=-g
OBJDIR=.
NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
CFLAGS="${CFLAGS=}"
CXXFLAGS="${CXXFLAGS=}"
LDFLAGS="${LDFLAGS=}"
HOST_CFLAGS="${HOST_CFLAGS=}"
HOST_LDFLAGS="${HOST_LDFLAGS=}"
# Check to see if we are really running in a msvc environemnt
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:727: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
break
fi
done
fi
fi
if test -n "$CC"; then
else
fi
test -n "$CC" && break
done
if test "$CC" = "cl"; then
echo 'main() { return 0; }' > dummy.c
if test $? = 0; then
else
fi
fi
;;
*-msvc*)
;;
*-mks*)
;;
esac
if test -n "$_WIN32_MSVC"; then
fi
dist_prefix='${MOD_DEPTH}/dist'
dist_bindir='${dist_prefix}/bin'
dist_includedir='${dist_prefix}/include/nspr'
dist_libdir='${dist_prefix}/lib'
if test "${includedir}" = '${prefix}/include'; then
includedir='${prefix}/include/nspr'
fi
# Check whether --with-dist-prefix or --without-dist-prefix was given.
if test "${with_dist_prefix+set}" = set; then
fi
# Check whether --with-dist-bindir or --without-dist-bindir was given.
if test "${with_dist_bindir+set}" = set; then
fi
# Check whether --with-dist-includedir or --without-dist-includedir was given.
if test "${with_dist_includedir+set}" = set; then
fi
# Check whether --with-dist-libdir or --without-dist-libdir was given.
if test "${with_dist_libdir+set}" = set; then
fi
# Check whether --with-mozilla or --without-mozilla was given.
if test "${with_mozilla+set}" = set; then
if test "$withval" = "yes"; then
#define MOZILLA_CLIENT 1
else
fi
else
if test -n "$MOZILLA_CLIENT"; then
#define MOZILLA_CLIENT 1
fi
fi
# Check whether --enable-optimize or --disable-optimize was given.
if test "${enable_optimize+set}" = set; then
if test "$enableval" != "no"; then
fi
else
fi
fi
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
if test "$enableval" = "no"; then
else
fi
fi
# Check whether --enable-win32-target or --disable-win32-target was given.
if test "${enable_win32_target+set}" = set; then
OS_TARGET=`echo $enableval | tr a-z A-Z`
else
fi
# Check whether --enable-debug-rtl or --disable-debug-rtl was given.
if test "${enable_debug_rtl+set}" = set; then
if test "$enableval" = "yes"; then
fi
fi
# Check whether --enable-n32 or --disable-n32 was given.
if test "${enable_n32+set}" = set; then
if test "$enableval" = "yes"; then
USE_N32=1
else if test "$enableval" = "no"; then
fi
fi
fi
# Check whether --enable-64bit or --disable-64bit was given.
if test "${enable_64bit+set}" = set; then
if test "$enableval" = "yes"; then
USE_64=1
fi
fi
# Check whether --enable-mdupdate or --disable-mdupdate was given.
if test "${enable_mdupdate+set}" = set; then
if test "$enableval" = "yes"; then
fi
fi
# Check whether --enable-macos-target or --disable-macos-target was given.
if test "${enable_macos_target+set}" = set; then
else
fi
*-aix*)
case "${target_os}" in
aix3.2*)
;;
*)
;;
esac
;;
esac
if test -z "$CC"; then
*-aix*)
if test -z "$USE_NSPR_THREADS"; then
else
fi
;;
*-hpux*)
;;
*-irix*)
;;
*-openvms*)
;;
*-osf*)
;;
*-solaris*)
;;
esac
fi
if test -z "$CXX"; then
*-aix*)
if test -z "$USE_NSPR_THREADS"; then
else
fi
;;
*-hpux*)
case "${target_os}" in
hpux10.30)
;;
hpux11.*)
;;
*)
;;
esac
;;
*-irix*)
;;
*-openvms*)
;;
*-osf*)
;;
*-solaris*)
;;
esac
fi
if test -z "$SKIP_PATH_CHECKS"; then
# Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
echo "configure:1025: checking for $ac_word" >&5
else
/*)
;;
?:/*)
;;
*)
break
fi
done
;;
esac
fi
if test -n "$WHOAMI"; then
else
fi
fi
if test -n "$MOZ_DEBUG"; then
#define DEBUG 1
case "${target_os}" in
beos*)
;;
;;
*)
;;
esac
else
#define NDEBUG 1
fi
if test -z "$SKIP_COMPILER_CHECKS"; then
echo "configure:1096: checking for $host compiler" >&5
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1102: checking for $ac_word" >&5
else
if test -n "$HOST_CC"; then
else
break
fi
done
fi
fi
if test -n "$HOST_CC"; then
else
fi
test -n "$HOST_CC" && break
done
if test -z "$HOST_CC"; then
{ echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
if test -z "$HOST_CFLAGS"; then
fi
if test -z "$HOST_LDFLAGS"; then
fi
echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1148: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
#line 1150 "configure"
#include "confdefs.h"
int main() {
return(0);
; return 0; }
EOF
else
echo "configure: failed program was:" >&5
{ echo "configure: error: installation or configuration problem: $host compiler $HOST_CC cannot create executables." 1>&2; exit 1; }
fi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1177: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
break
fi
done
fi
fi
if test -n "$CC"; then
else
fi
test -n "$CC" && break
done
unset ac_cv_prog_CC
# Extract the first word of "gcc", so it can be a program name with args.
echo "configure:1211: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
ac_cv_prog_CC="gcc"
break
fi
done
fi
fi
if test -n "$CC"; then
else
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
echo "configure:1241: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
continue
fi
ac_cv_prog_CC="cc"
break
fi
done
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# -gt 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
shift
ac_cv_prog_CC="$@"
fi
fi
fi
fi
if test -n "$CC"; then
else
fi
if test -z "$CC"; then
# Extract the first word of "cl", so it can be a program name with args.
echo "configure:1292: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
ac_cv_prog_CC="cl"
break
fi
done
fi
fi
if test -n "$CC"; then
else
fi
;;
esac
fi
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
#line 1335 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# If we can't run a trivial program, we are probably using a cross compiler.
else
fi
else
echo "configure: failed program was:" >&5
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1366: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:1371: checking whether we are using GNU C" >&5
else
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
else
fi
fi
if test $ac_cv_prog_gcc = yes; then
else
GCC=
fi
ac_test_CFLAGS="${CFLAGS+set}"
echo "configure:1399: checking whether ${CC-cc} accepts -g" >&5
else
echo 'void f(){}' > conftest.c
else
fi
fi
if test "$ac_test_CFLAGS" = set; then
elif test $ac_cv_prog_cc_g = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
CFLAGS="-O2"
else
fi
fi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1435: checking for $ac_word" >&5
else
if test -n "$CXX"; then
else
break
fi
done
fi
fi
if test -n "$CXX"; then
else
fi
test -n "$CXX" && break
done
unset ac_cv_prog_CXX
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1471: checking for $ac_word" >&5
else
if test -n "$CXX"; then
else
break
fi
done
fi
fi
if test -n "$CXX"; then
else
fi
test -n "$CXX" && break
done
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
#line 1514 "configure"
#include "confdefs.h"
int main(){return(0);}
EOF
if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# If we can't run a trivial program, we are probably using a cross compiler.
else
fi
else
echo "configure: failed program was:" >&5
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if test $ac_cv_prog_cxx_works = no; then
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1545: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:1550: checking whether we are using GNU C++" >&5
else
cat > conftest.C <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
else
fi
fi
if test $ac_cv_prog_gxx = yes; then
else
GXX=
fi
ac_test_CXXFLAGS="${CXXFLAGS+set}"
echo "configure:1578: checking whether ${CXX-g++} accepts -g" >&5
else
echo 'void f(){}' > conftest.cc
else
fi
fi
if test "$ac_test_CXXFLAGS" = set; then
elif test $ac_cv_prog_cxx_g = yes; then
CXXFLAGS="-g -O2"
else
CXXFLAGS="-g"
fi
else
CXXFLAGS="-O2"
else
fi
fi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1614: checking for $ac_word" >&5
else
if test -n "$RANLIB"; then
else
break
fi
done
fi
fi
if test -n "$RANLIB"; then
else
fi
test -n "$RANLIB" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1649: checking for $ac_word" >&5
else
if test -n "$AR"; then
else
break
fi
done
fi
fi
if test -n "$AR"; then
else
fi
test -n "$AR" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1684: checking for $ac_word" >&5
else
if test -n "$AS"; then
else
break
fi
done
fi
fi
if test -n "$AS"; then
else
fi
test -n "$AS" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1719: checking for $ac_word" >&5
else
if test -n "$LD"; then
else
break
fi
done
fi
fi
if test -n "$LD"; then
else
fi
test -n "$LD" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1754: checking for $ac_word" >&5
else
if test -n "$STRIP"; then
else
break
fi
done
fi
fi
if test -n "$STRIP"; then
else
fi
test -n "$STRIP" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1789: checking for $ac_word" >&5
else
if test -n "$WINDRES"; then
else
break
fi
done
fi
fi
if test -n "$WINDRES"; then
else
fi
test -n "$WINDRES" && break
done
else
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:1826: checking for $ac_word" >&5
else
if test -n "$CXX"; then
else
break
fi
done
fi
fi
if test -n "$CXX"; then
else
fi
test -n "$CXX" && break
done
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
#line 1869 "configure"
#include "confdefs.h"
int main(){return(0);}
EOF
if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# If we can't run a trivial program, we are probably using a cross compiler.
else
fi
else
echo "configure: failed program was:" >&5
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if test $ac_cv_prog_cxx_works = no; then
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1900: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:1905: checking whether we are using GNU C++" >&5
else
cat > conftest.C <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
else
fi
fi
if test $ac_cv_prog_gxx = yes; then
else
GXX=
fi
ac_test_CXXFLAGS="${CXXFLAGS+set}"
echo "configure:1933: checking whether ${CXX-g++} accepts -g" >&5
else
echo 'void f(){}' > conftest.cc
else
fi
fi
if test "$ac_test_CXXFLAGS" = set; then
elif test $ac_cv_prog_cxx_g = yes; then
CXXFLAGS="-g -O2"
else
CXXFLAGS="-g"
fi
else
CXXFLAGS="-O2"
else
fi
fi
else
# Extract the first word of "gcc", so it can be a program name with args.
echo "configure:1970: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
ac_cv_prog_CC="gcc"
break
fi
done
fi
fi
if test -n "$CC"; then
else
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
echo "configure:2000: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
continue
fi
ac_cv_prog_CC="cc"
break
fi
done
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# -gt 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
shift
ac_cv_prog_CC="$@"
fi
fi
fi
fi
if test -n "$CC"; then
else
fi
if test -z "$CC"; then
# Extract the first word of "cl", so it can be a program name with args.
echo "configure:2051: checking for $ac_word" >&5
else
if test -n "$CC"; then
else
ac_cv_prog_CC="cl"
break
fi
done
fi
fi
if test -n "$CC"; then
else
fi
;;
esac
fi
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
#line 2094 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# If we can't run a trivial program, we are probably using a cross compiler.
else
fi
else
echo "configure: failed program was:" >&5
fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:2125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:2130: checking whether we are using GNU C" >&5
else
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
else
fi
fi
if test $ac_cv_prog_gcc = yes; then
else
GCC=
fi
ac_test_CFLAGS="${CFLAGS+set}"
echo "configure:2158: checking whether ${CC-cc} accepts -g" >&5
else
echo 'void f(){}' > conftest.c
else
fi
fi
if test "$ac_test_CFLAGS" = set; then
elif test $ac_cv_prog_cc_g = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
CFLAGS="-O2"
else
fi
fi
fi
echo "configure:2191: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
CPP=
fi
if test -z "$CPP"; then
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
#line 2206 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
CPP="${CC-cc} -E -traditional-cpp"
#line 2223 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
CPP="${CC-cc} -nologo -E"
#line 2240 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
fi
fi
fi
fi
else
fi
# Extract the first word of "ranlib", so it can be a program name with args.
echo "configure:2273: checking for $ac_word" >&5
else
if test -n "$RANLIB"; then
else
ac_cv_prog_RANLIB="ranlib"
break
fi
done
fi
fi
if test -n "$RANLIB"; then
else
fi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:2305: checking for $ac_word" >&5
else
/*)
;;
?:/*)
;;
*)
break
fi
done
;;
esac
fi
if test -n "$AS"; then
else
fi
test -n "$AS" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:2346: checking for $ac_word" >&5
else
/*)
;;
?:/*)
;;
*)
break
fi
done
;;
esac
fi
if test -n "$AR"; then
else
fi
test -n "$AR" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:2387: checking for $ac_word" >&5
else
/*)
;;
?:/*)
;;
*)
break
fi
done
;;
esac
fi
if test -n "$LD"; then
else
fi
test -n "$LD" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:2428: checking for $ac_word" >&5
else
/*)
;;
?:/*)
;;
*)
break
fi
done
;;
esac
fi
if test -n "$STRIP"; then
else
fi
test -n "$STRIP" && break
done
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:2469: checking for $ac_word" >&5
else
/*)
;;
?:/*)
;;
*)
break
fi
done
;;
esac
fi
if test -n "$WINDRES"; then
else
fi
test -n "$WINDRES" && break
done
if test -z "$HOST_CC"; then
fi
if test -z "$HOST_CFLAGS"; then
fi
fi
if test "$GCC" = "yes"; then
GNU_CC=1
fi
if test "$GXX" = "yes"; then
GNU_CXX=1
fi
GNU_AS=1
fi
if test "$cross_compiling" = "yes"; then
else
fi
echo "configure:2531: checking for gcc -pipe support" >&5
echo '#include <stdio.h>' > dummy-hello.c
echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
if test $? = 0; then
_res_as_stdin="yes"
else
_res_as_stdin="no"
fi
if test "$_res_as_stdin" = "yes"; then
#line 2546 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
printf("Hello World\n");
; return 0; }
EOF
_res_gcc_pipe="yes"
else
echo "configure: failed program was:" >&5
_res_gcc_pipe="no"
fi
fi
_res="yes";
else
_res="no"
fi
else
fi
fi # SKIP_COMPILER_CHECKS
if test -z "$SKIP_PATH_CHECKS"; then
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
echo "configure:2586: checking for $ac_word" >&5
else
/*)
;;
?:/*)
;;
*)
break
fi
done
;;
esac
fi
if test -n "$PERL"; then
else
fi
test -n "$PERL" && break
done
elif test -z "$PERL"; then
fi
MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
AR_FLAGS='cr $@'
AS='$(CC)'
ASFLAGS='$(CFLAGS)'
if test -n "$CROSS_COMPILE"; then
OS_TEST="${target_cpu}"
case "${target_os}" in
esac
else
OS_RELEASE=`uname -r`
fi
if test "$OS_ARCH" = "IRIX64"; then
fi
if test "$OS_ARCH" = "AIX"; then
fi
if test "$OS_ARCH" = "FreeBSD"; then
fi
if test "$OS_ARCH" = "Linux"; then
fi
if test "$OS_ARCH" = "OpenVMS"; then
OS_RELEASE=`uname -v`
fi
#######################################################################
# Master "Core Components" macros for getting the OS target #
#######################################################################
#
# Note: OS_TARGET should be specified on the command line for gmake.
# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
# The difference between the Win95 target and the WinNT target is that
# the WinNT target uses Windows NT specific features not available
# in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
# at lesser performance (the Win95 target uses threads; the WinNT target
# uses fibers).
#
# When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target
# is built. See: win16_3.11.mk for lots more about the Win16 target.
#
# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
# cross-compilation.
#
#
# The following hack allows one to build on a WIN95 machine (as if
# It also accomodates for MKS's uname.exe. If you never intend
# to do development on a WIN95 machine, you don't need this hack.
#
if test "$OS_ARCH" = "WIN95"; then
elif test "$OS_ARCH" = 'Windows_95'; then
elif test "$OS_ARCH" = 'Windows_98'; then
OS_ARCH='CYGWIN_NT-4.0'
elif test "$OS_ARCH" = "OS_2"; then
fi
#
# On WIN32, we also define the variable CPU_ARCH.
#
if test "$OS_ARCH" = "WINNT"; then
if test "$CPU_ARCH" = "I386"; then
fi
elif test "$OS_ARCH" = "Windows_NT"; then
#
# If uname -s returns "Windows_NT", we assume that we are using
# the uname.exe in MKS toolkit.
#
# The -r option of MKS uname only returns the major version number.
# So we need to use its -v option to get the minor version number.
# Moreover, it doesn't have the -p option, so we need to use uname -m.
#
OS_MINOR_RELEASE=`uname -v`
if test "$OS_MINOR_RELEASE" = "00"; then
fi
OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}"
#
# MKS's uname -m returns "586" on a Pentium machine.
#
fi
#
# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
# the uname.exe in the Cygwin tools.
#
#
# Cygwin's uname -m returns "i686" on a Pentium Pro machine.
#
fi
elif test "$OS_ARCH" = "CYGWIN32_NT"; then
#
# Prior to the Beta 20 release, Cygwin was called GNU-Win32.
# the uname.exe in the GNU-Win32 tools.
#
#
# GNU-Win32's uname -m returns "i686" on a Pentium Pro machine.
#
fi
fi
if test -n "$MOZ_DEBUG"; then
fi
fi
if test -z "$OS_TARGET"; then
fi
if test "$OS_TARGET" = "WIN95"; then
OS_RELEASE="4.0"
fi
if test "$OS_TARGET" = "WIN16"; then
fi
OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
fi
;;
*-beos*)
HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE"
;;
*os2*)
;;
*)
HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
;;
esac
*-aix*)
#define XP_UNIX 1
#define AIX 1
#define SYSV 1
DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
echo "configure:2831: checking for sys/atomic_op.h" >&5
else
#line 2836 "configure"
#include "confdefs.h"
#include <sys/atomic_op.h>
EOF
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
eval "ac_cv_header_$ac_safe=no"
fi
fi
#define AIX_HAVE_ATOMIC_OP_H 1
else
fi
case "${target_os}" in
aix3.2*)
#define AIX_RENAME_SELECT 1
#define _PR_NO_LARGE_FILES 1
AIX_LINK_OPTS='-bnso -berok'
;;
aix4.1*)
#define AIX_TIMERS 1
#define _PR_NO_LARGE_FILES 1
#define AIX4_1 1
AIX_LINK_OPTS='-bnso -berok'
LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr'
LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr'
;;
aix4.2*)
#define AIX_TIMERS 1
#define _PR_HAVE_OFF64_T 1
AIX_LINK_OPTS='-brtl -bnso -berok'
;;
aix4.3*)
#define AIX_TIMERS 1
#define _PR_HAVE_OFF64_T 1
#define AIX4_3_PLUS 1
#define HAVE_SOCKLEN_T 1
#define HAVE_FCNTL_FILE_LOCKING 1
USE_IPV6=1
AIX_LINK_OPTS='-brtl -bnso -berok'
;;
*)
#define AIX_TIMERS 1
#define _PR_HAVE_OFF64_T 1
#define AIX4_3_PLUS 1
#define HAVE_SOCKLEN_T 1
#define HAVE_FCNTL_FILE_LOCKING 1
USE_IPV6=1
AIX_LINK_OPTS='-brtl -bnso -berok'
;;
esac
AIX_TMP='./_aix_tmp.o'
if test -n "$USE_64"; then
OBJECT_MODE=64
else
fi
;;
*-beos*)
#define XP_BEOS 1
#define BeOS 1
#define BEOS 1
#define _POSIX_SOURCE 1
case "${target_cpu}" in
i*86)
_DEBUG_FLAGS='-gdwarf-2 -O0'
MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
echo "configure:2998: checking for gethostbyaddr in -lbind" >&5
else
#line 3006 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gethostbyaddr();
int main() {
gethostbyaddr()
; return 0; }
EOF
if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
else
fi
;;
DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o'
_DEBUG_FLAGS='-g -O0'
;;
esac
;;
*-bsdi*)
#define XP_UNIX 1
#define BSDI 1
#define NEED_BSDREGEX 1
fi
DSO_LDOPTS=-r
case "$target_os" in
bsdi1.1*)
#define _PR_BSDI_JMPBUF_IS_ARRAY 1
#define _PR_STAT_HAS_ONLY_ST_ATIME 1
#define _PR_NEED_H_ERRNO 1
;;
bsdi2.1*)
#define _PR_TIMESPEC_HAS_TS_SEC 1
#define _PR_BSDI_JMPBUF_IS_ARRAY 1
#define HAVE_DLL 1
#define USE_DLFCN 1
#define _PR_STAT_HAS_ST_ATIMESPEC 1
;;
#define _PR_SELECT_CONST_TIMEVAL 1
#define _PR_BSDI_JMPBUF_IS_STRUCT 1
#define HAVE_DLL 1
#define USE_DLFCN 1
#define _PR_STAT_HAS_ST_ATIMESPEC 1
MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
case "$target_os" in
#define _PR_HAVE_GETPROTO_R 1
#define _PR_HAVE_GETPROTO_R_POINTER 1
;;
esac
;;
*)
#define _PR_SELECT_CONST_TIMEVAL 1
#define _PR_BSDI_JMPBUF_IS_STRUCT 1
#define HAVE_DLL 1
#define USE_DLFCN 1
#define _PR_STAT_HAS_ST_ATIMESPEC 1
;;
esac
;;
*-darwin*)
#define XP_UNIX 1
#define DARWIN 1
#define HAVE_BSD_FLOCK 1
#define i386 1
else
#define ppc 1
fi
DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
# Use the standard preprocessor (cpp)
MKSHLIB='$(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS) -o $@'
if test "$CPU_ARCH" = "ppc"; then
fi
# Add Mac OS X support for loading CFM & CFBundle plugins
#define XP_MACOSX 1
MACOS_VERSION_MAJOR=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 1`
MACOS_VERSION_MINOR=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 2`
MACOS_VERSION_MICRO=`echo $MACOS_DEPLOYMENT_TARGET_STR | cut -d . -f 3`
if test -z "$MACOS_VERSION_MINOR"; then
fi
if test -z "$MACOS_VERSION_MICRO"; then
fi
MACOS_DEPLOYMENT_TARGET=`printf "%02d%02d%02d" "$MACOS_VERSION_MAJOR" "$MACOS_VERSION_MINOR" "$MACOS_VERSION_MICRO"`
cat >> confdefs.h <<EOF
#define MACOS_DEPLOYMENT_TARGET $MACOS_DEPLOYMENT_TARGET
EOF
fi
# do the right thing for panther SDK support
if test "$NEXT_ROOT"; then
fi
;;
*-dgux*)
#define XP_UNIX 1
#define _PR_LOCAL_THREADS_ONLY 1
#define SVR4 1
#define SYSV 1
#define DGUX 1
#define _DGUX_SOURCE 1
#define _POSIX4A_DRAFT6_SOURCE 1
DSO_LDOPTS=-G
;;
*-freebsd*)
if test -z "$USE_NSPR_THREADS"; then
fi
#define XP_UNIX 1
#define FREEBSD 1
#define HAVE_BSD_FLOCK 1
#define HAVE_SOCKLEN_T 1
if test "$MOZ_OBJFORMAT" = "elf"; then
else
fi
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
;;
*-hpux*)
#define XP_UNIX 1
#define HPUX 1
#define _HPUX_SOURCE 1
#define hppa 1
# OSF1 and HPUX report the POLLHUP event for a socket when the
# shutdown(SHUT_WR) operation is called for the remote end, even though
# the socket is still writeable. Use select(), instead of poll(), to
# workaround this problem.
#define _PR_POLL_WITH_SELECT 1
#define _USE_BIG_FDS 1
DSO_LDOPTS='-b +h $(notdir $@)'
if test "$OS_TEST" != "ia64"; then
fi
if test -n "$USE_64"; then
else
fi
if test -z "$GNU_CC"; then
DSO_CFLAGS=+Z
else
fi
if test -n "$MOZILLA_CLIENT"; then
fi
#define _PR_NEED_H_ERRNO 1
#define HPUX9 1
fi
#define _PR_NO_LARGE_FILES 1
fi
#define _PR_NEED_H_ERRNO 1
fi
#define HAVE_INT_LOCALTIME_R 1
fi
#define HAVE_POINTER_LOCALTIME_R 1
fi
# HP-UX 11i (B.11.11) or higher
case "$OS_RELEASE" in
[C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[2-9]*|B.11.1[1-9]*)
USE_IPV6=1
;;
esac
if test "$OS_RELEASE" = "B.10.01"; then
#define HPUX10 1
fi
if test "$OS_RELEASE" = "B.10.10"; then
#define HPUX10 1
#define HPUX10_10 1
fi
if test "$OS_RELEASE" = "B.10.20"; then
#define HPUX10 1
#define HPUX10_20 1
if test -z "$GNU_CC"; then
fi
fi
if test "$OS_RELEASE" = "B.10.30"; then
#define HPUX10 1
#define HPUX10_30 1
if test -z "$GNU_CC"; then
fi
fi
#define HPUX10 1
#define HPUX11 1
#define _LARGEFILE64_SOURCE 1
#define _PR_HAVE_OFF64_T 1
#define HAVE_FCNTL_FILE_LOCKING 1
if test -z "$GNU_CC"; then
if test -z "$USE_64"; then
if test "$OS_TEST" = "ia64"; then
else
fi
else
if test "$OS_TEST" = "ia64"; then
else
fi
fi
fi
fi
if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then
elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then
if test "$USE_NSPR_THREADS"; then
fi
if test "$USE_USER_PTHREADS"; then
fi
fi
;;
*-irix*)
#define XP_UNIX 1
#define IRIX 1
#define SVR4 1
#define _SGI_MP_SOURCE 1
#define HAVE_FCNTL_FILE_LOCKING 1
MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@'
if test -n "$USE_64"; then
else
fi
case "${target_os}" in
irix6*)
#define IRIX6 1
USE_N32=1
;;
irix5*)
#define IRIX5 1
;;
*)
USE_N32=1
;;
esac
if test "$GNU_CC"; then
AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
_OPTIMIZE_FLAGS="-O6"
else
if test -n "$USE_N32"; then
AS='as -D_ASM $(INCLUDES) -n32'
else
AS='as -D_ASM $(INCLUDES)'
fi
if test "$USE_N32"; then
_OPTIMIZE_FLAGS="-O -OPT:Olimit=4000"
else
_OPTIMIZE_FLAGS="-O -Olimit 4000"
fi
if test "$USE_MDUPDATE"; then
fi
case "${target}" in
*-irix6.*)
DSO_LDOPTS="-no_unresolved"
if test "$USE_N32"; then
DSO_LDOPTS="$DSO_LDOPTS -n32"
else
if test "$USE_64"; then
else
fi
fi
;;
*)
;;
esac
fi
if test "${target_os}" = "irix5.3"; then
#define IRIX5_3 1
fi
case "${target_os}" in
irix6.5)
if test -z "$GNU_CC"; then
fi
#define _PR_HAVE_GETPROTO_R 1
#define _PR_HAVE_GETPROTO_R_POINTER 1
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
;;
irix5*)
;;
*)
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
;;
esac
;;
*-linux*)
if test -z "$USE_NSPR_THREADS"; then
fi
#define XP_UNIX 1
#define _POSIX_SOURCE 1
#define _BSD_SOURCE 1
#define _SVID_SOURCE 1
#define _LARGEFILE64_SOURCE 1
#define HAVE_FCNTL_FILE_LOCKING 1
#define LINUX 1
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
# combo is not yet good at debugging inlined
# functions (even when using DWARF2 as the
# debugging format)
else
fi
CPU_ARCH_TAG=_${CPU_ARCH}
case "${target_cpu}" in
#define _ALPHA_ 1
#define __alpha 1
;;
i*86)
#define i386 1
;;
ia64)
;;
;;
m68k)
;;
esac
;;
#define XP_PC 1
#define WIN32 1
if test -n "$GNU_CC"; then
MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
# Use temp file for windres (bug 213281)
RCFLAGS='-O coff --use-temp-file'
else
AR='lib -NOLOGO -OUT:"$@"'
RANLIB='echo not_ranlib'
STRIP='echo not_strip'
# Determine compiler version
DLLFLAGS='-OUT:"$@"'
if test -z "$MOZ_OPTIMIZE"; then
fi
if test -n "$USE_DEBUG_RTL"; then
else
fi
if test -n "$MOZ_DEBUG"; then
#define _DEBUG 1
else
fi
if test -n "$MOZ_OPTIMIZE"; then
if test -n "$MOZ_PROFILE"; then
fi
if test -n "$MOZ_DEBUG_SYMBOLS"; then
fi
if test -n "$MOZ_PROFILE" -o -n "$MOZ_DEBUG_SYMBOLS"; then
fi
fi
if test -n "$MOZ_DEBUG"; then
fi
if test "$OS_TARGET" = "WINNT"; then
if test "$CPU_ARCH" = "x86"; then
fi
LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
else
LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
fi
fi # GNU_CC
if test -n "$USE_STATIC_TLS"; then
#define _PR_USE_STATIC_TLS 1
fi
if test "$OS_TARGET" = "WINNT"; then
#define WINNT 1
else
#define WIN95 1
# undefine WINNT as some versions of mingw gcc define it by default
#define _PR_GLOBAL_THREADS_ONLY 1
fi
if test "$CPU_ARCH" = "x86"; then
else
fi
if test -n "$USE_DEBUG_RTL"; then
fi
OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS"
OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE"
fi
case "$OS_TARGET" in
;;
;;
;;
*)
{ echo "configure: error: Missing OS_TARGET for ${target}. Use --enable-win32-target to set." 1>&2; exit 1; }
;;
esac
case "$target_cpu" in
i*86)
#define _X86_ 1
;;
#define _ALPHA_ 1
;;
mips)
#define _MIPS_ 1
;;
*)
#define _CPU_ARCH_NOT_DEFINED 1
;;
esac
;;
#define XP_UNIX 1
#define SVR4 1
#define SYSV 1
#define NCR 1
if test "$OS_RELEASE" = "2.03"; then
#define _PR_STAT_HAS_ST_ATIM 1
else
#define _PR_STAT_HAS_ST_ATIM_UNION 1
fi
if test -z "$GNU_CC"; then
else
DSO_LDOPTS=-G
fi
;;
#define XP_UNIX 1
#define SVR4 1
#define __SVR4 1
#define NEC 1
#define nec_ews 1
if test -z "$GNU_CC"; then
CXX=g++
fi
DSO_LDOPTS=-G
;;
*-netbsd*)
#define XP_UNIX 1
#define NETBSD 1
#define HAVE_BSD_FLOCK 1
DSO_CFLAGS='-fPIC -DPIC'
MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
if test -z "$OBJECT_FMT"; then
DSO_LDOPTS='-shared'
else
DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
fi
fi
if test "$LIBRUNPATH"; then
DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
fi
;;
#define XP_UNIX 1
#define SONY 1
#define SYSV 1
#define SVR4 1
#define __svr4 1
#define __svr4__ 1
#define HAVE_SVID_GETTOD 1
DSO_LDOPTS=-G
;;
#define XP_UNIX 1
#define NEXTSTEP 1
#define HAVE_BSD_FLOCK 1
#define _POSIX_SOURCE 1
;;
*-nto*)
#define XP_UNIX 1
#define NTO 1
#define _QNX_SOURCE 1
#define HAVE_POINTER_LOCALTIME_R 1
MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
_OPTIMIZE_FLAGS="-O1"
_DEBUG_FLAGS="-gstabs"
;;
*-openbsd*)
#define XP_UNIX 1
#define OPENBSD 1
#define HAVE_BSD_FLOCK 1
#define HAVE_SOCKLEN_T 1
DSO_LDOPTS='-shared -fPIC'
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
;;
*-openvms*)
#define XP_UNIX 1
#define VMS 1
#define PR_GETIPNODE_NOT_THREADSAFE 1
AR_FLAGS='c $@'
DSO_LDOPTS='-shared -auto_symvec $(LDFLAGS)'
if test -n "$MOZ_DEBUG"; then
else
fi
;;
*-osf*)
SHELL_OVERRIDE="SHELL = /usr/bin/ksh"
#define XP_UNIX 1
#define OSF1 1
#define _REENTRANT 1
# OSF1 and HPUX report the POLLHUP event for a socket when the
# shutdown(SHUT_WR) operation is called for the remote end, even though
# the socket is still writeable. Use select(), instead of poll(), to
# workaround this problem.
#define _PR_POLL_WITH_SELECT 1
fi
if test -z "$GNU_CC"; then
if test "$OS_RELEASE" != "V2.0"; then
fi
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
echo "configure:4220: checking for machine/builtins.h" >&5
else
#line 4225 "configure"
#include "confdefs.h"
#include <machine/builtins.h>
EOF
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
eval "ac_cv_header_$ac_safe=no"
fi
fi
#define OSF1_HAVE_MACHINE_BUILTINS_H 1
else
fi
else
fi
#define HAVE_INT_LOCALTIME_R 1
else
#define HAVE_FCNTL_FILE_LOCKING 1
#define HAVE_POINTER_LOCALTIME_R 1
fi
#define OSF1V4_MAP_PRIVATE_BUG 1
fi
DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)'
;;
*-qnx*)
#define XP_UNIX 1
#define QNX 1
#define _PR_NEED_H_ERRNO 1
;;
*-*-sco*)
#define XP_UNIX 1
#define SCO 1
#define sco 1
#define SYSV 1
#define _SVID3 1
#define _PR_NEED_H_ERRNO 1
CC='cc -b elf -KPIC'
DSO_LDOPTS='-b elf -G'
;;
*-sinix*)
#define XP_UNIX 1
#define SVR4 1
#define SNI 1
#define RELIANTUNIX 1
#define sinix 1
#define HAVE_SVID_GETTOD 1
#define i386 1
else
fi
if test "$GNU_CC"; then
AS='$(CC) -x assembler-with-cpp'
if test "$CPU_ARCH" = "mips"; then
fi
else
_OPTIMIZE_FLAGS='-O -F Olimit,4000'
fi
DSO_LDOPTS='-G -z defs -h $(@:$(OBJDIR)/%.so=%.so)'
if test "$OS_RELEASE" = "5.43"; then
#define IP_MULTICAST 1
fi
if test "${OS_ARCH}" = "mips"; then
fi
;;
*-sunos*)
#define XP_UNIX 1
#define SUNOS4 1
if test "$USE_MDUPDATE"; then
fi
if test "$OS_RELEASE" = "4.1.3_U1"; then
fi
;;
*-solaris*)
if test -z "$USE_USER_THREADS" && test -z "$USE_NATIVE_THREADS"; then
fi
#define XP_UNIX 1
#define SVR4 1
#define SYSV 1
#define __svr4 1
#define __svr4__ 1
#define SOLARIS 1
#define HAVE_FCNTL_FILE_LOCKING 1
if test -n "$USE_64"; then
else
fi
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
if test -n "$GNU_CC"; then
fi
DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs'
else
DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs'
fi
if test -z "$GNU_AS"; then
fi
if test -n "$GNU_CC"; then
if test -n "$USE_MDUPDATE"; then
fi
else
if test -z "$MOZ_OPTIMIZE"; then
fi
fi
if test -n "$USE_64"; then
if test -n "$GNU_CC"; then
else
fi
fi
if test "$OS_TEST" = "i86pc"; then
#define i386 1
# The default debug format, DWARF (-g), is not supported by gcc
# on i386-ANY-sysv4/solaris, but the stabs format is. It is
# If your gcc uses GNU as, you do not need the -Wa,-s option.
if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
if test -z "$GNU_AS"; then
_DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s"
fi
fi
fi
case "${target_os}" in
solaris2.3*)
#define _PR_NO_LARGE_FILES 1
;;
solaris2.4*)
#define _PR_NO_LARGE_FILES 1
;;
solaris2.5*)
#define SOLARIS2_5 1
;;
*)
#define _PR_HAVE_OFF64_T 1
# The lfcompile64(5) man page on Solaris 2.6 says:
# For applications that do not wish to conform to the POSIX or
# are available by default. No compile-time flags need to be
# set.
# But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
# The native compiler, gcc 2.8.x, and egcs don't have this problem.
if test -n "$GNU_CC"; then
#define _LARGEFILE64_SOURCE 1
fi
;;
esac
case "${target_os}" in
solaris2.3*)
;;
solaris2.4*)
;;
solaris2.5*)
;;
solaris2.6*)
;;
solaris2.7*)
;;
*)
# Solaris 8 or higher has IPv6.
#define _PR_INET6 1
;;
esac
if test "$OS_TEST" = "sun4u"; then
# 64-bit Solaris requires SPARC V9 architecture, so the following
# is not needed.
if test -z "$USE_64"; then
fi
fi
# Purify requires that binaries linked against nspr also
# be linked against -lrt (or -lposix4) so add it to OS_LIBS
;;
#define XP_UNIX 1
#define UNIXWARE 1
#define SVR4 1
#define SYSV 1
#define _PR_NO_LARGE_FILES 1
else
#define _LARGEFILE64_SOURCE 1
#define _PR_HAVE_OFF64_T 1
#define _PR_HAVE_SOCKADDR_LEN 1
fi
DSO_LDOPTS=-G
;;
*-os2*)
#define XP_OS2 1
#define XP_PC 1
#define BSD_SELECT 1
#define TCPV40HDRS 1
if test -n "$GNU_CC"; then
#define XP_OS2_EMX 1
#define OS2 1
AR_FLAGS='r $@'
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
DSO_LDOPTS='-Zomf -Zdll -Zmap'
LDFLAGS='-Zmap'
_OPTIMIZE_FLAGS="-O2 -s"
_DEBUG_FLAGS="-g -fno-inline"
if test -n "$MOZ_OPTIMIZE"; then
DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
fi
OS_LIBS="-lsocket"
IMPLIB='emximp -o'
FILTER='emxexp -o'
# GCC for OS/2 currently predefines these, but we don't want them
# Visual Age C++ build
elif test "$VACPP" = "yes"; then
#define XP_OS2_VACPP 1
#define OS2 4
#define _X86_ 1
ASFLAGS='-Mb'
AR_FLAGS='/NOL /NOI /O:$(subst /,\\,$@)'
CFLAGS='/Q /qlibansi /Gd+ /Gm+ /Su4 /Mp /Tl9'
OS_CFLAGS='/Q /qlibansi /Gd+ /Gm+ /Su4 /Mp /Tl9'
OS_EXE_CFLAGS='/Q /qlibansi /Gd+ /Gm+ /Su4 /Mp /Tl9'
CXXFLAGS='/Q /qlibansi /Gd+ /Gm+ /Su4 /Mp /Tl9'
LD='-ilink'
MKSHLIB='$(LD) $(DSO_LDOPTS)'
IMPLIB='implib -nologo -noignorecase'
FILTER='cppfilt -q -B -P'
_OPTIMIZE_FLAGS='/O+ /Gl+ /qtune=pentium /qarch=pentium'
_DEBUG_FLAGS='/Ti+ '
LDFLAGS='/NOL /M /L'
DLLFLAGS='/O:$@ /DLL /INC:_dllentry /MAP:$(@:.dll=.map) /L /NOL'
EXEFLAGS='/OUT:$@ /PMTYPE:VIO /MAP:$(@:.exe=.map) /L /NOL'
if test -n "$MOZ_DEBUG"; then
fi
if test -n "$MOZ_OPTIMIZE"; then
fi
LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
fi
;;
*)
#define XP_UNIX 1
;;
esac
if test -z "$SKIP_LIBRARY_CHECKS"; then
*-darwin*)
;;
*)
echo "configure:4765: checking for dlopen in -ldl" >&5
else
#line 4773 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dlopen();
int main() {
dlopen()
; return 0; }
EOF
if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
eval "ac_cv_lib_$ac_lib_var=no"
fi
fi
echo "configure:4801: checking for dlfcn.h" >&5
else
#line 4806 "configure"
#include "confdefs.h"
#include <dlfcn.h>
EOF
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
eval "ac_cv_header_$ac_safe=no"
fi
fi
else
fi
else
fi
;;
esac
if test $ac_cv_prog_gcc = yes; then
echo "configure:4844: checking whether ${CC-cc} needs -traditional" >&5
else
ac_pattern="Autoconf.*'x'"
#line 4850 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
EOF
else
fi
if test $ac_cv_prog_gcc_traditional = no; then
#line 4868 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
EOF
fi
fi
fi
if test $ac_cv_prog_gcc_traditional = yes; then
fi
fi
do
echo "configure:4892: checking for $ac_func" >&5
else
#line 4897 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif
; return 0; }
EOF
if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_func_$ac_func=yes"
else
echo "configure: failed program was:" >&5
eval "ac_cv_func_$ac_func=no"
fi
fi
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
fi
done
# Check whether --enable-strip or --disable-strip was given.
if test "${enable_strip+set}" = set; then
if test "$enableval" = "yes"; then
fi
fi
case "${target_os}" in
hpux*)
if test -z "$GNU_CC"; then
echo "configure:4961: checking for +Olit support" >&5
else
if test $? -eq 0; then
fi
fi
fi
if test "$ac_cv_hpux_usable_olit_option" = "yes"; then
else
fi
fi
;;
esac
echo "configure:4995: checking for pthread_create in -lpthreads" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
int main() {
pthread_t t;
if (!pthread_create(&t, 0, &foo, 0)) {
pthread_join(t, 0);
}
return 0;
}" > dummy.c ;
_res=$? ;
if test "$_res" = "0"; then
else
echo "configure:5017: checking for pthread_create in -lpthread" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
int main() {
pthread_t t;
if (!pthread_create(&t, 0, &foo, 0)) {
pthread_join(t, 0);
}
return 0;
}" > dummy.c ;
_res=$? ;
if test "$_res" = "0"; then
else
echo "configure:5039: checking for pthread_create in -lc_r" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
int main() {
pthread_t t;
if (!pthread_create(&t, 0, &foo, 0)) {
pthread_join(t, 0);
}
return 0;
}" > dummy.c ;
_res=$? ;
if test "$_res" = "0"; then
else
echo "configure:5061: checking for pthread_create in -lc" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
int main() {
pthread_t t;
if (!pthread_create(&t, 0, &foo, 0)) {
pthread_join(t, 0);
}
return 0;
}" > dummy.c ;
_res=$? ;
if test "$_res" = "0"; then
else
fi
fi
fi
fi
# Check whether --with-pthreads or --without-pthreads was given.
if test "${with_pthreads+set}" = set; then
if test "$withval" = "yes"; then
if test -n "$_HAVE_PTHREADS"; then
else
{ echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&2; exit 1; };
fi
else
fi
else
fi
fi
# Check whether --enable-user-pthreads or --disable-user-pthreads was given.
if test "${enable_user_pthreads+set}" = set; then
if test "$enableval" = "yes"; then
if test -n "$_HAVE_PTHREADS"; then
else
{ echo "configure: error: --enable-user-pthreads specified for a system without pthread support " 1>&2; exit 1; };
fi
fi
fi
# Check whether --enable-nspr-threads or --disable-nspr-threads was given.
if test "${enable_nspr_threads+set}" = set; then
if test "$enableval" = "yes"; then
fi
fi
*-beos*)
# Check whether --with-bthreads or --without-bthreads was given.
if test "${with_bthreads+set}" = set; then
if test "$withval" = "yes"; then
fi
fi
;;
*-solaris*)
# Check whether --with-native-threads or --without-native-threads was given.
if test "${with_native_threads+set}" = set; then
if test "$withval" = "yes"; then
fi
fi
;;
esac
fi # SKIP_LIBRARY_CHECKS
# Check whether --enable-cplus or --disable-cplus was given.
if test "${enable_cplus+set}" = set; then
if test "$enableval" = "yes"; then
fi
fi
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
if test "$enableval" = "yes"; then
USE_IPV6=1
else
fi
fi
# Check whether --enable-boehm or --disable-boehm was given.
if test "${enable_boehm+set}" = set; then
if test "$enableval" = "yes"; then
#define GC_LEAK_DETECTOR 1
fi
fi
if test -n "$USE_PTHREADS"; then
echo "configure:5213: checking whether ${CC-cc} accepts -pthread" >&5
if test $? -eq 0; then
if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
case "$target_os" in
freebsd*)
# Freebsd doesn't use -pthread for compiles, it uses them for linking
;;
*)
;;
esac
fi
fi
if test "$ac_cv_have_dash_pthread" = "no"; then
echo "configure:5236: checking whether ${CC-cc} accepts -pthreads" >&5
if test $? -eq 0; then
if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
fi
fi
fi
*-solaris*)
if test "$ac_cv_have_dash_pthreads" = "yes"; then
fi
;;
*-freebsd*)
#define _REENTRANT 1
#define _THREAD_SAFE 1
if test "$ac_cv_have_dash_pthread" = "yes"; then
_PTHREAD_LDFLAGS="-pthread"
else
_PTHREAD_LDFLAGS="-lc_r"
fi
;;
*-netbsd*)
if test "$ac_cv_have_dash_pthread" = "yes"; then
_PTHREAD_LDFLAGS="-pthread"
fi
;;
*-bsdi*)
#define _THREAD_SAFE 1
if test "$ac_cv_have_dash_pthread" = "yes"; then
fi
;;
*-openbsd*)
if test "$ac_cv_have_dash_pthread" = "yes"; then
fi
;;
*-linux*)
#define _REENTRANT 1
;;
esac
else
if test -n "$USE_USER_PTHREADS"; then
else
fi
fi
*-aix*)
if test -n "$USE_NSPR_THREADS"; then
#define _PR_LOCAL_THREADS_ONLY 1
fi
case "$target_os" in
aix4.1*)
if test -z "$USE_PTHREADS"; then
#define AIX_RENAME_SELECT 1
fi
;;
aix4.2*)
if test -z "$USE_NSPR_THREADS"; then
#define HAVE_POINTER_LOCALTIME_R 1
fi
;;
aix4.3*)
if test -z "$USE_NSPR_THREADS"; then
#define HAVE_POINTER_LOCALTIME_R 1
fi
if test -n "$USE_PTHREADS"; then
#define _PR_HAVE_THREADSAFE_GETHOST 1
fi
;;
*)
if test -z "$USE_NSPR_THREADS"; then
#define HAVE_POINTER_LOCALTIME_R 1
fi
if test -n "$USE_PTHREADS"; then
#define _PR_HAVE_THREADSAFE_GETHOST 1
fi
;;
esac
;;
*-bsdi*)
if test -n "$USE_PTHREADS"; then
#define _PR_NEED_PTHREAD_INIT 1
fi
;;
*-freebsd*)
if test -n "$USE_NSPR_THREADS"; then
#define _PR_LOCAL_THREADS_ONLY 1
fi
;;
*-hpux*)
if test -n "$USE_NSPR_THREADS"; then
#define _PR_LOCAL_THREADS_ONLY 1
fi
if test "$USE_PTHREADS"; then
#define _REENTRANT 1
#define _PR_DCETHREADS 1
else
cat >> confdefs.h <<EOF
#define _POSIX_C_SOURCE 199506L
EOF
#define _PR_HAVE_THREADSAFE_GETHOST 1
fi
fi
if test "$USE_USER_PTHREADS"; then
cat >> confdefs.h <<EOF
#define _POSIX_C_SOURCE 199506L
EOF
fi
;;
*-irix*)
if test "${target_os}" = "irix6.5"; then
if test -n "$USE_PTHREADS"; then
#define _PR_HAVE_GETHOST_R 1
#define _PR_HAVE_GETHOST_R_POINTER 1
fi
fi
;;
*-linux*)
if test -n "$USE_NSPR_THREADS"; then
#define _PR_LOCAL_THREADS_ONLY 1
fi
;;
;;
if test -n "$USE_NSPR_THREADS"; then
#define _PR_LOCAL_THREADS_ONLY 1
fi
;;
*-osf*)
if test -n "$USE_NSPR_THREADS"; then
#define _PR_LOCAL_THREADS_ONLY 1
fi
if test -n "$USE_PTHREADS"; then
:
else
#define _PR_HAVE_THREADSAFE_GETHOST 1
fi
fi
;;
*-solaris*)
if test -n "$USE_NATIVE_THREADS"; then
#define _PR_GLOBAL_THREADS_ONLY 1
else
if test -n "$USE_NSPR_THREADS"; then
#define _PR_LOCAL_THREADS_ONLY 1
fi
fi
if test -z "$USE_NSPR_THREADS"; then
#define _REENTRANT 1
#define HAVE_POINTER_LOCALTIME_R 1
if test "$OS_TEST" = "i86pc"; then
else
if test -n "$USE_64"; then
fi
fi
fi
;;
*-nto*)
if test -n "$USE_PTHREADS"; then
#define _PR_HAVE_GETHOST_R 1
#define _PR_HAVE_GETHOST_R_POINTER 1
fi
;;
esac
if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
fi
if test -n "$MOZ_OPTIMIZE"; then
fi
if test -n "$MOZ_DEBUG"; then
fi
if test -n "$MOZ_OPTIMIZE"; then
else
fi
if test -n "$USE_64"; then
fi
RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
case "$target_os" in
;;
esac
Makefile
"
if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
elif test -n "$USE_PTHREADS"; then
elif test -n "$USE_BTHREADS"; then
fi
if test -n "$USE_CPLUS"; then
fi
trap '' 1 2 15
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
else
echo "not updating unwritable cache $cache_file"
fi
fi
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# Let make expand exec_prefix.
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
s%\[%\\&%g
s%\]%\\&%g
s%\$%$$%g
rm -f conftest.defs
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
trap 'rm -fr `echo "$MAKEFILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@CC@%$CC%g
s%@dist_prefix@%$dist_prefix%g
s%@dist_bindir@%$dist_bindir%g
s%@dist_includedir@%$dist_includedir%g
s%@dist_libdir@%$dist_libdir%g
s%@WHOAMI@%$WHOAMI%g
s%@HOST_CC@%$HOST_CC%g
s%@CXX@%$CXX%g
s%@RANLIB@%$RANLIB%g
s%@AR@%$AR%g
s%@AS@%$AS%g
s%@LD@%$LD%g
s%@STRIP@%$STRIP%g
s%@WINDRES@%$WINDRES%g
s%@CPP@%$CPP%g
s%@PERL@%$PERL%g
s%@SHELL_OVERRIDE@%$SHELL_OVERRIDE%g
s%@MOZILLA_CLIENT@%$MOZILLA_CLIENT%g
s%@HOST_CFLAGS@%$HOST_CFLAGS%g
s%@GNU_CC@%$GNU_CC%g
s%@GCC_USE_GNU_LD@%$GCC_USE_GNU_LD%g
s%@MSC_VER@%$MSC_VER%g
s%@CROSS_COMPILE@%$CROSS_COMPILE%g
s%@MOZ_OPTIMIZE@%$MOZ_OPTIMIZE%g
s%@USE_CPLUS@%$USE_CPLUS%g
s%@USE_IPV6@%$USE_IPV6%g
s%@USE_N32@%$USE_N32%g
s%@USE_64@%$USE_64%g
s%@OBJECT_MODE@%$OBJECT_MODE%g
s%@GC_LEAK_DETECTOR@%$GC_LEAK_DETECTOR%g
s%@ENABLE_STRIP@%$ENABLE_STRIP%g
s%@USE_PTHREADS@%$USE_PTHREADS%g
s%@USE_BTHREADS@%$USE_BTHREADS%g
s%@USE_USER_PTHREADS@%$USE_USER_PTHREADS%g
s%@USE_NATIVE_THREADS@%$USE_NATIVE_THREADS%g
s%@USE_NSPR_THREADS@%$USE_NSPR_THREADS%g
s%@LIBNSPR@%$LIBNSPR%g
s%@LIBPLC@%$LIBPLC%g
s%@MOD_MAJOR_VERSION@%$MOD_MAJOR_VERSION%g
s%@MOD_MINOR_VERSION@%$MOD_MINOR_VERSION%g
s%@MOD_PATCH_VERSION@%$MOD_PATCH_VERSION%g
s%@NSPR_MODNAME@%$NSPR_MODNAME%g
s%@MDCPUCFG_H@%$MDCPUCFG_H%g
s%@PR_MD_CSRCS@%$PR_MD_CSRCS%g
s%@PR_MD_ASFILES@%$PR_MD_ASFILES%g
s%@PR_MD_ARCH_DIR@%$PR_MD_ARCH_DIR%g
s%@CPU_ARCH@%$CPU_ARCH%g
s%@OBJ_SUFFIX@%$OBJ_SUFFIX%g
s%@LIB_SUFFIX@%$LIB_SUFFIX%g
s%@DLL_SUFFIX@%$DLL_SUFFIX%g
s%@ASM_SUFFIX@%$ASM_SUFFIX%g
s%@MKSHLIB@%$MKSHLIB%g
s%@DSO_CFLAGS@%$DSO_CFLAGS%g
s%@DSO_LDOPTS@%$DSO_LDOPTS%g
s%@OS_TARGET@%$OS_TARGET%g
s%@OS_ARCH@%$OS_ARCH%g
s%@OS_RELEASE@%$OS_RELEASE%g
s%@OS_TEST@%$OS_TEST%g
s%@MACOS_DEPLOYMENT_TARGET@%$MACOS_DEPLOYMENT_TARGET%g
s%@DEFINES@%$DEFINES%g
s%@AR_FLAGS@%$AR_FLAGS%g
s%@ASFLAGS@%$ASFLAGS%g
s%@FILTER@%$FILTER%g
s%@IMPLIB@%$IMPLIB%g
s%@OS_LIBS@%$OS_LIBS%g
s%@RESOLVE_LINK_SYMBOLS@%$RESOLVE_LINK_SYMBOLS%g
s%@AIX_LINK_OPTS@%$AIX_LINK_OPTS%g
s%@NOSUCHFILE@%$NOSUCHFILE%g
s%@MOZ_OBJFORMAT@%$MOZ_OBJFORMAT%g
s%@ULTRASPARC_LIBRARY@%$ULTRASPARC_LIBRARY%g
s%@OBJDIR@%$OBJDIR%g
s%@OBJDIR_NAME@%$OBJDIR_NAME%g
s%@RELEASE_OBJDIR_NAME@%$RELEASE_OBJDIR_NAME%g
s%@NSINSTALL@%$NSINSTALL%g
s%@OPTIMIZER@%$OPTIMIZER%g
s%@RC@%$RC%g
s%@RCFLAGS@%$RCFLAGS%g
s%@DLLFLAGS@%$DLLFLAGS%g
s%@EXEFLAGS@%$EXEFLAGS%g
s%@OS_DLLFLAGS@%$OS_DLLFLAGS%g
s%@CYGWIN_WRAPPER@%$CYGWIN_WRAPPER%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_sed_cmds=""
while $ac_more_lines; do
else
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
else
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
fi
done
fi
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"$MAKEFILES"}
EOF
cat >> $CONFIG_STATUS <<\EOF
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
# The file is in a subdirectory.
# A "../" for each directory in $ac_dir_suffix.
else
fi
.) srcdir=.
*) # Relative path.
esac
# $configure_input" ;;
*) ac_comsub= ;;
esac
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
fi; done
rm -f conftest.s*
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0