2002-03-27 00:54:41 +03:00
|
|
|
#! /bin/sh
|
2002-08-09 01:45:20 +04:00
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
# 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.
|
|
|
|
|
2002-08-09 01:45:20 +04:00
|
|
|
# Defaults:
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_help=
|
|
|
|
ac_default_prefix=/usr/local
|
|
|
|
# Any additions from configure.in:
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-dist-prefix=DIST_PREFIX
|
|
|
|
place build files in DIST_PREFIX [dist]"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-dist-bindir=DIR build execuatables in DIR [DIST_PREFIX/bin]"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-dist-libdir=DIR build library files in DIR [DIST_PREFIX/lib]"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-mozilla Compile LDAP with Mozilla support"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-optimize(=val) Enable code optimizations (val, ie. -O2) "
|
|
|
|
ac_help="$ac_help
|
2005-06-01 17:54:02 +04:00
|
|
|
--disable-debug Do not compile in debugging symbols
|
|
|
|
--enable-debug(=val) Enable debugging (debug flags val)"
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-win32-target=\$t
|
|
|
|
Specify win32 flavor. (WIN95 or WINNT)"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-debug-rtl Use the MSVC debug runtime library"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-n32 Enable n32 ABI support (IRIX only)"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-64bit Enable 64-bit support (on certain platforms)"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-mdupdate Enable use of certain compilers' mdupdate feature"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-nss Build libssldap, using NSS for crypto"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-system-nspr Use system installed NSPR"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-nspr-prefix=PFX Prefix where NSPR is installed"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-nspr-exec-prefix=PFX
|
|
|
|
Exec prefix where NSPR is installed"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-strip Enable stripping of shared libs and programs"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-pthreads Use system pthreads library as thread subsystem"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-user-pthreads Build using userland pthreads"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-nspr-threads Build using classic nspr threads"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-bthreads Use system bthreads library as thread subsystem (BeOS only)"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-native-threads Use native system threads as thread subsystem (Solaris only)"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-cplus Enable some c++ api routines"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-ipv6 Compile ipv6 support"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--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.
|
|
|
|
build=NONE
|
|
|
|
cache_file=./config.cache
|
|
|
|
exec_prefix=NONE
|
|
|
|
host=NONE
|
|
|
|
no_create=
|
|
|
|
nonopt=NONE
|
|
|
|
no_recursion=
|
|
|
|
prefix=NONE
|
|
|
|
program_prefix=NONE
|
|
|
|
program_suffix=NONE
|
|
|
|
program_transform_name=s,x,x,
|
|
|
|
silent=
|
|
|
|
site=
|
|
|
|
srcdir=
|
|
|
|
target=NONE
|
|
|
|
verbose=
|
|
|
|
x_includes=NONE
|
|
|
|
x_libraries=NONE
|
|
|
|
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'
|
|
|
|
oldincludedir='/usr/include'
|
|
|
|
infodir='${prefix}/info'
|
|
|
|
mandir='${prefix}/man'
|
|
|
|
|
|
|
|
# Initialize some other variables.
|
|
|
|
subdirs=
|
|
|
|
MFLAGS= MAKEFLAGS=
|
|
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
|
# Maximum number of lines to put in a shell here document.
|
|
|
|
ac_max_here_lines=12
|
|
|
|
|
|
|
|
ac_prev=
|
|
|
|
for ac_option
|
|
|
|
do
|
|
|
|
|
|
|
|
# If the previous option needs an argument, assign it.
|
|
|
|
if test -n "$ac_prev"; then
|
|
|
|
eval "$ac_prev=\$ac_option"
|
|
|
|
ac_prev=
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$ac_option" in
|
|
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
|
|
*) ac_optarg= ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
|
|
|
|
case "$ac_option" in
|
|
|
|
|
|
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
|
|
ac_prev=bindir ;;
|
|
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
|
|
bindir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-build | --build | --buil | --bui | --bu)
|
|
|
|
ac_prev=build ;;
|
|
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
|
|
build="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
|
|
ac_prev=cache_file ;;
|
|
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
|
|
cache_file="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
|
|
ac_prev=datadir ;;
|
|
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
|
|
| --da=*)
|
|
|
|
datadir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-disable-* | --disable-*)
|
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
|
|
eval "enable_${ac_feature}=no" ;;
|
|
|
|
|
|
|
|
-enable-* | --enable-*)
|
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
|
|
case "$ac_option" in
|
|
|
|
*=*) ;;
|
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
|
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|
|
|
|
|
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
|
|
| --exec | --exe | --ex)
|
|
|
|
ac_prev=exec_prefix ;;
|
|
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
|
|
| --exec=* | --exe=* | --ex=*)
|
|
|
|
exec_prefix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-gas | --gas | --ga | --g)
|
|
|
|
# Obsolete; use --with-gas.
|
|
|
|
with_gas=yes ;;
|
|
|
|
|
|
|
|
-help | --help | --hel | --he)
|
|
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
|
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
|
|
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 | --host | --hos | --ho)
|
|
|
|
ac_prev=host ;;
|
|
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
|
|
|
host="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-includedir | --includedir | --includedi | --included | --include \
|
|
|
|
| --includ | --inclu | --incl | --inc)
|
|
|
|
ac_prev=includedir ;;
|
|
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
|
|
includedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
|
|
ac_prev=infodir ;;
|
|
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
|
|
infodir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-libdir | --libdir | --libdi | --libd)
|
|
|
|
ac_prev=libdir ;;
|
|
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
|
|
libdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
|
|
| --libexe | --libex | --libe)
|
|
|
|
ac_prev=libexecdir ;;
|
|
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
|
|
| --libexe=* | --libex=* | --libe=*)
|
|
|
|
libexecdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
|
|
| --localstate | --localstat | --localsta | --localst \
|
|
|
|
| --locals | --local | --loca | --loc | --lo)
|
|
|
|
ac_prev=localstatedir ;;
|
|
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|
|
|
localstatedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
|
|
ac_prev=mandir ;;
|
|
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
|
|
mandir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-nfp | --nfp | --nf)
|
|
|
|
# Obsolete; use --without-fp.
|
|
|
|
with_fp=no ;;
|
|
|
|
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
|
| --no-cr | --no-c)
|
|
|
|
no_create=yes ;;
|
|
|
|
|
|
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
|
|
no_recursion=yes ;;
|
|
|
|
|
|
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
|
|
| --oldin | --oldi | --old | --ol | --o)
|
|
|
|
ac_prev=oldincludedir ;;
|
|
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
|
|
oldincludedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
|
|
ac_prev=prefix ;;
|
|
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
|
|
prefix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
|
|
| --program-pre | --program-pr | --program-p)
|
|
|
|
ac_prev=program_prefix ;;
|
|
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
|
|
program_prefix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
|
|
| --program-suf | --program-su | --program-s)
|
|
|
|
ac_prev=program_suffix ;;
|
|
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
|
|
program_suffix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-program-transform-name | --program-transform-name \
|
|
|
|
| --program-transform-nam | --program-transform-na \
|
|
|
|
| --program-transform-n | --program-transform- \
|
|
|
|
| --program-transform | --program-transfor \
|
|
|
|
| --program-transfo | --program-transf \
|
|
|
|
| --program-trans | --program-tran \
|
|
|
|
| --progr-tra | --program-tr | --program-t)
|
|
|
|
ac_prev=program_transform_name ;;
|
|
|
|
-program-transform-name=* | --program-transform-name=* \
|
|
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
|
|
|
| --program-transform-n=* | --program-transform-=* \
|
|
|
|
| --program-transform=* | --program-transfor=* \
|
|
|
|
| --program-transfo=* | --program-transf=* \
|
|
|
|
| --program-trans=* | --program-tran=* \
|
|
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
|
|
|
program_transform_name="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
|
|
silent=yes ;;
|
|
|
|
|
|
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
|
|
ac_prev=sbindir ;;
|
|
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
|
|
| --sbi=* | --sb=*)
|
|
|
|
sbindir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
|
|
|
| --sha | --sh)
|
|
|
|
ac_prev=sharedstatedir ;;
|
|
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
|
|
| --sha=* | --sh=*)
|
|
|
|
sharedstatedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-site | --site | --sit)
|
|
|
|
ac_prev=site ;;
|
|
|
|
-site=* | --site=* | --sit=*)
|
|
|
|
site="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
|
|
ac_prev=srcdir ;;
|
|
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
|
|
srcdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
|
|
ac_prev=sysconfdir ;;
|
|
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
|
|
sysconfdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
|
|
|
ac_prev=target ;;
|
|
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
|
|
target="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
|
|
verbose=yes ;;
|
|
|
|
|
|
|
|
-version | --version | --versio | --versi | --vers)
|
|
|
|
echo "configure generated by autoconf version 2.13"
|
|
|
|
exit 0 ;;
|
|
|
|
|
|
|
|
-with-* | --with-*)
|
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
|
|
case "$ac_option" in
|
|
|
|
*=*) ;;
|
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
|
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
|
|
|
|
|
|
|
-without-* | --without-*)
|
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
|
|
eval "with_${ac_package}=no" ;;
|
|
|
|
|
|
|
|
--x)
|
|
|
|
# Obsolete; use --with-x.
|
|
|
|
with_x=yes ;;
|
|
|
|
|
|
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
|
|
|
ac_prev=x_includes ;;
|
|
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
|
|
x_includes="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
|
|
ac_prev=x_libraries ;;
|
|
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
|
|
x_libraries="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|
|
|
fi
|
|
|
|
if test "x$nonopt" != xNONE; then
|
|
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
nonopt="$ac_option"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -n "$ac_prev"; then
|
|
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|
|
|
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
|
|
|
|
# 3 some systems may open it to /dev/tty
|
|
|
|
# 4 used on the Kubota Titan
|
|
|
|
# 6 checking for... messages and results
|
|
|
|
# 5 compiler messages saved in config.log
|
|
|
|
if test "$silent" = yes; then
|
|
|
|
exec 6>/dev/null
|
|
|
|
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.
|
|
|
|
ac_configure_args=
|
|
|
|
for ac_arg
|
|
|
|
do
|
|
|
|
case "$ac_arg" in
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
|
| --no-cr | --no-c) ;;
|
|
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
|
|
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.
|
|
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
|
|
|
|
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
|
|
rm -rf conftest* confdefs.h
|
|
|
|
# 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.
|
2002-04-25 03:46:34 +04:00
|
|
|
ac_unique_file=ldap/include/ldap.h
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
# Find the source files, if location was not specified.
|
|
|
|
if test -z "$srcdir"; then
|
|
|
|
ac_srcdir_defaulted=yes
|
|
|
|
# Try the directory containing this script, then its parent.
|
|
|
|
ac_prog=$0
|
|
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
|
|
srcdir=$ac_confdir
|
|
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
|
|
srcdir=..
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
ac_srcdir_defaulted=no
|
|
|
|
fi
|
|
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
|
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
|
|
|
|
|
|
# Prefer explicitly selected file to automatically selected ones.
|
|
|
|
if test -z "$CONFIG_SITE"; then
|
|
|
|
if test "x$prefix" != xNONE; then
|
|
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
|
|
else
|
|
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
for ac_site_file in $CONFIG_SITE; do
|
|
|
|
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"
|
|
|
|
. $cache_file
|
|
|
|
else
|
|
|
|
echo "creating cache $cache_file"
|
|
|
|
> $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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
ac_exeext=
|
|
|
|
ac_objext=o
|
|
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
|
|
ac_n= ac_c='
|
|
|
|
' ac_t=' '
|
|
|
|
else
|
|
|
|
ac_n=-n ac_c= ac_t=
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
ac_n= ac_c='\c' ac_t=
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_aux_dir=
|
|
|
|
for ac_dir in ${srcdir}/config/autoconf $srcdir/${srcdir}/config/autoconf; do
|
|
|
|
if test -f $ac_dir/install-sh; then
|
|
|
|
ac_aux_dir=$ac_dir
|
|
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
|
|
break
|
|
|
|
elif test -f $ac_dir/install.sh; then
|
|
|
|
ac_aux_dir=$ac_dir
|
|
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
if test -z "$ac_aux_dir"; then
|
|
|
|
{ echo "configure: error: can not find install-sh or install.sh in ${srcdir}/config/autoconf $srcdir/${srcdir}/config/autoconf" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_config_guess=$ac_aux_dir/config.guess
|
|
|
|
ac_config_sub=$ac_aux_dir/config.sub
|
|
|
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
case $host---$target---$nonopt in
|
|
|
|
NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|
|
|
*) { 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.
|
|
|
|
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
2005-06-01 17:54:02 +04:00
|
|
|
echo "configure:625: checking host system type" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
host_alias=$host
|
|
|
|
case "$host_alias" in
|
|
|
|
NONE)
|
|
|
|
case $nonopt in
|
|
|
|
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
|
|
|
|
|
|
|
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|
|
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
|
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
|
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
|
|
echo "$ac_t""$host" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
2005-06-01 17:54:02 +04:00
|
|
|
echo "configure:646: checking target system type" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
target_alias=$target
|
|
|
|
case "$target_alias" in
|
|
|
|
NONE)
|
|
|
|
case $nonopt in
|
|
|
|
NONE) target_alias=$host_alias ;;
|
|
|
|
*) target_alias=$nonopt ;;
|
|
|
|
esac ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|
|
|
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
|
|
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
|
|
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
|
|
echo "$ac_t""$target" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
2005-06-01 17:54:02 +04:00
|
|
|
echo "configure:664: checking build system type" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
build_alias=$build
|
|
|
|
case "$build_alias" in
|
|
|
|
NONE)
|
|
|
|
case $nonopt in
|
|
|
|
NONE) build_alias=$host_alias ;;
|
|
|
|
*) build_alias=$nonopt ;;
|
|
|
|
esac ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|
|
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
|
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
|
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
|
|
echo "$ac_t""$build" 1>&6
|
|
|
|
|
|
|
|
test "$host_alias" != "$target_alias" &&
|
|
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
|
|
NONENONEs,x,x, &&
|
|
|
|
program_prefix=${target_alias}-
|
|
|
|
|
|
|
|
|
2005-06-02 21:40:05 +04:00
|
|
|
NSPR_VERSION=4
|
2002-03-27 00:54:41 +03:00
|
|
|
_HAVE_PTHREADS=
|
|
|
|
USE_PTHREADS=
|
|
|
|
USE_USER_PTHREADS=
|
|
|
|
USE_NSPR_THREADS=
|
|
|
|
USE_N32=
|
|
|
|
USE_64=
|
|
|
|
USE_CPLUS=
|
|
|
|
USE_IPV6=
|
|
|
|
USE_MDUPDATE=
|
|
|
|
_OPTIMIZE_FLAGS=-O
|
|
|
|
_DEBUG_FLAGS=-g
|
|
|
|
MOZ_DEBUG=1
|
|
|
|
MOZ_OPTIMIZE=
|
|
|
|
OBJDIR=.
|
|
|
|
OBJDIR_NAME=.
|
|
|
|
OBJDIR_SUFFIX=OBJ
|
|
|
|
NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
|
|
|
|
NOSUCHFILE=/no-such-file
|
|
|
|
|
|
|
|
RESOLVE_LINK_SYMBOLS=
|
|
|
|
|
|
|
|
CFLAGS="${CFLAGS=}"
|
|
|
|
CXXFLAGS="${CXXFLAGS=}"
|
|
|
|
LDFLAGS="${LDFLAGS=}"
|
|
|
|
HOST_CFLAGS="${HOST_CFLAGS=}"
|
|
|
|
HOST_LDFLAGS="${HOST_LDFLAGS=}"
|
|
|
|
|
|
|
|
case "$target" in
|
2003-04-19 05:47:57 +04:00
|
|
|
*-cygwin*|*-mingw*|*-msvc*|*-mks*)
|
2002-03-27 00:54:41 +03:00
|
|
|
# Check to see if we are really running in a msvc environemnt
|
|
|
|
_WIN32_MSVC=
|
2002-08-09 01:45:20 +04:00
|
|
|
for ac_prog in cl
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:724: checking for $ac_word" >&5
|
2002-08-09 01:45:20 +04:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$CC" && break
|
|
|
|
done
|
|
|
|
|
|
|
|
if test "$CC" = "cl"; then
|
2002-03-27 00:54:41 +03:00
|
|
|
echo 'main() { return 0; }' > dummy.c
|
2002-08-09 01:45:20 +04:00
|
|
|
${CC} -o dummy dummy.c >/dev/null 2>&1
|
2002-03-27 00:54:41 +03:00
|
|
|
if test $? = 0; then
|
|
|
|
_WIN32_MSVC=1
|
2002-08-09 01:45:20 +04:00
|
|
|
CXX=$CC
|
|
|
|
else
|
|
|
|
echo "configure: warning: $(CC) test failed. Using normal feature tests" 1>&2
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
|
|
|
rm -f dummy dummy.o dummy.obj dummy.exe dummy.c
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test -n "$_WIN32_MSVC"; then
|
|
|
|
SKIP_PATH_CHECKS=1
|
|
|
|
SKIP_COMPILER_CHECKS=1
|
|
|
|
SKIP_LIBRARY_CHECKS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
dist_prefix='${MOD_DEPTH}/../../dist'
|
|
|
|
dist_bindir='${dist_prefix}/bin'
|
|
|
|
dist_libdir='${dist_prefix}/lib'
|
|
|
|
|
|
|
|
# Check whether --with-dist-prefix or --without-dist-prefix was given.
|
|
|
|
if test "${with_dist_prefix+set}" = set; then
|
|
|
|
withval="$with_dist_prefix"
|
|
|
|
dist_prefix=$withval
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-dist-bindir or --without-dist-bindir was given.
|
|
|
|
if test "${with_dist_bindir+set}" = set; then
|
|
|
|
withval="$with_dist_bindir"
|
|
|
|
dist_bindir=$withval
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-dist-libdir or --without-dist-libdir was given.
|
|
|
|
if test "${with_dist_libdir+set}" = set; then
|
|
|
|
withval="$with_dist_libdir"
|
|
|
|
dist_libdir=$withval
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-mozilla or --without-mozilla was given.
|
|
|
|
if test "${with_mozilla+set}" = set; then
|
|
|
|
withval="$with_mozilla"
|
|
|
|
if test "$withval" = "yes"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MOZILLA_CLIENT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
MOZILLA_CLIENT=1
|
|
|
|
else
|
|
|
|
MOZILLA_CLIENT=
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test -n "$MOZILLA_CLIENT"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MOZILLA_CLIENT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-optimize or --disable-optimize was given.
|
|
|
|
if test "${enable_optimize+set}" = set; then
|
|
|
|
enableval="$enable_optimize"
|
|
|
|
if test "$enableval" != "no"; then
|
|
|
|
MOZ_OPTIMIZE=1
|
|
|
|
if test -n "$enableval" && test "$enableval" != "yes"; then
|
|
|
|
_OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
|
|
|
|
_SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
|
|
|
|
fi
|
2004-04-27 02:54:01 +04:00
|
|
|
else
|
|
|
|
MOZ_OPTIMIZE=
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-debug or --disable-debug was given.
|
|
|
|
if test "${enable_debug+set}" = set; then
|
|
|
|
enableval="$enable_debug"
|
|
|
|
if test "$enableval" = "no"; then
|
|
|
|
MOZ_DEBUG=
|
2004-04-27 02:54:01 +04:00
|
|
|
else
|
|
|
|
MOZ_DEBUG=1
|
2005-06-01 17:54:02 +04:00
|
|
|
if test -n "$enableval" && test "$enableval" != "yes"; then
|
|
|
|
_DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
|
|
|
|
_SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
|
|
|
|
fi
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-win32-target or --disable-win32-target was given.
|
|
|
|
if test "${enable_win32_target+set}" = set; then
|
|
|
|
enableval="$enable_win32_target"
|
|
|
|
OS_TARGET=`echo $enableval | tr a-z A-Z`
|
|
|
|
else
|
|
|
|
OS_TARGET=
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-debug-rtl or --disable-debug-rtl was given.
|
|
|
|
if test "${enable_debug_rtl+set}" = set; then
|
|
|
|
enableval="$enable_debug_rtl"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
USE_DEBUG_RTL=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-n32 or --disable-n32 was given.
|
|
|
|
if test "${enable_n32+set}" = set; then
|
|
|
|
enableval="$enable_n32"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
USE_N32=1
|
|
|
|
else if test "$enableval" = "no"; then
|
|
|
|
USE_N32=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-64bit or --disable-64bit was given.
|
|
|
|
if test "${enable_64bit+set}" = set; then
|
|
|
|
enableval="$enable_64bit"
|
|
|
|
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
|
|
|
|
enableval="$enable_mdupdate"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
USE_MDUPDATE=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-nss or --without-nss was given.
|
|
|
|
if test "${with_nss+set}" = set; then
|
|
|
|
withval="$with_nss"
|
|
|
|
if test "$withval" = "yes"; then
|
|
|
|
USE_NSS=1
|
|
|
|
else
|
|
|
|
USE_NSS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-system-nspr or --without-system-nspr was given.
|
|
|
|
if test "${with_system_nspr+set}" = set; then
|
|
|
|
withval="$with_system_nspr"
|
|
|
|
if test "$withval" = "yes"; then
|
2005-06-02 21:40:05 +04:00
|
|
|
_SYSTEM_NSPR=1
|
2002-03-27 00:54:41 +03:00
|
|
|
else
|
2005-06-02 21:40:05 +04:00
|
|
|
_SYSTEM_NSPR=
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
2005-06-02 21:40:05 +04:00
|
|
|
else
|
|
|
|
_SYSTEM_NSPR=
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test "$_WIN32_MSVC"; then
|
2005-06-02 21:40:05 +04:00
|
|
|
_SYSTEM_NSPR=
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
|
|
|
|
2005-06-02 21:40:05 +04:00
|
|
|
if test -n "$_SYSTEM_NSPR"; then
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
# Check whether --with-nspr-prefix or --without-nspr-prefix was given.
|
|
|
|
if test "${with_nspr_prefix+set}" = set; then
|
|
|
|
withval="$with_nspr_prefix"
|
|
|
|
nspr_config_prefix="$withval"
|
|
|
|
else
|
|
|
|
nspr_config_prefix=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-nspr-exec-prefix or --without-nspr-exec-prefix was given.
|
|
|
|
if test "${with_nspr_exec_prefix+set}" = set; then
|
|
|
|
withval="$with_nspr_exec_prefix"
|
|
|
|
nspr_config_exec_prefix="$withval"
|
|
|
|
else
|
|
|
|
nspr_config_exec_prefix=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$nspr_config_exec_prefix"; then
|
|
|
|
nspr_config_args="$nspr_config_args --exec-prefix=$nspr_config_exec_prefix"
|
|
|
|
if test -z "$NSPR_CONFIG"; then
|
|
|
|
NSPR_CONFIG=$nspr_config_exec_prefix/bin/nspr-config
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test -n "$nspr_config_prefix"; then
|
|
|
|
nspr_config_args="$nspr_config_args --prefix=$nspr_config_prefix"
|
|
|
|
if test -z "$NSPR_CONFIG"; then
|
|
|
|
NSPR_CONFIG=$nspr_config_prefix/bin/nspr-config
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
unset ac_cv_path_NSPR_CONFIG
|
|
|
|
# Extract the first word of "nspr-config", so it can be a program name with args.
|
|
|
|
set dummy nspr-config; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:967: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_NSPR_CONFIG'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$NSPR_CONFIG" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_NSPR_CONFIG="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_path_NSPR_CONFIG" && ac_cv_path_NSPR_CONFIG="no"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
NSPR_CONFIG="$ac_cv_path_NSPR_CONFIG"
|
|
|
|
if test -n "$NSPR_CONFIG"; then
|
|
|
|
echo "$ac_t""$NSPR_CONFIG" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
min_nspr_version=4.0.0
|
|
|
|
echo $ac_n "checking for NSPR - version >= $min_nspr_version (skipping)""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1002: checking for NSPR - version >= $min_nspr_version (skipping)" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
no_nspr=""
|
|
|
|
if test "$NSPR_CONFIG" = "no"; then
|
|
|
|
no_nspr="yes"
|
|
|
|
else
|
|
|
|
NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags`
|
|
|
|
NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs`
|
|
|
|
|
|
|
|
nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
|
|
nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
|
|
nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$no_nspr"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
MOZ_NATIVE_NSPR=1
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$MOZ_NATIVE_NSPR"; then
|
2005-06-02 21:40:05 +04:00
|
|
|
NSPR_CFLAGS='-I$(DIST)/include/nspr'
|
|
|
|
NSPR_LIBS='-L$(DIST)/lib '"-lplds$NSPR_VERSION -lplc$NSPR_VERSION -lnspr$NSPR_VERSION"
|
2002-03-27 00:54:41 +03:00
|
|
|
# explicitly set libs for Visual Age C++ for OS/2
|
|
|
|
if test "$VACPP" = "yes"; then
|
|
|
|
NSPR_LIBS='$(DIST)/lib/nspr'$NSPR_VERSION'.lib $(DIST)/lib/plc'$NSPR_VERSION'.lib $(DIST)/lib/plds'$NSPR_VERSION'.lib '$_PTHREAD_LDFLAGS''
|
|
|
|
elif test "$_WIN32_MSVC"; then
|
|
|
|
NSPR_LIBS='$(DIST)/lib/nspr'$NSPR_VERSION'.lib $(DIST)/lib/plc'$NSPR_VERSION'.lib $(DIST)/lib/plds'$NSPR_VERSION'.lib '
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$target" in
|
|
|
|
|
|
|
|
*-aix*)
|
|
|
|
case "${target_os}" in
|
|
|
|
aix3.2*)
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
USE_PTHREADS=1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test -z "$CC"; then
|
|
|
|
case "$target" in
|
|
|
|
|
|
|
|
*-aix*)
|
|
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
|
|
CC=xlC_r
|
|
|
|
else
|
|
|
|
CC=xlC
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-hpux*)
|
|
|
|
CC=cc
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-irix*)
|
|
|
|
CC=cc
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-osf*)
|
|
|
|
CC=cc
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-solaris*)
|
|
|
|
CC=cc
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$CXX"; then
|
|
|
|
case "$target" in
|
|
|
|
|
|
|
|
*-aix*)
|
|
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
|
|
CXX=xlC_r
|
|
|
|
else
|
|
|
|
CXX=xlC
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-hpux*)
|
|
|
|
case "${target_os}" in
|
|
|
|
hpux10.30)
|
|
|
|
CXX=aCC
|
|
|
|
;;
|
|
|
|
hpux11.*)
|
|
|
|
CXX=aCC
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
CXX=CC
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-irix*)
|
|
|
|
CXX=CC
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-osf*)
|
|
|
|
CXX=cxx
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-solaris*)
|
|
|
|
CXX=CC
|
|
|
|
;;
|
|
|
|
|
|
|
|
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.
|
|
|
|
set dummy $WHOAMI whoami; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1133: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$WHOAMI" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_WHOAMI="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
WHOAMI="$ac_cv_path_WHOAMI"
|
|
|
|
if test -n "$WHOAMI"; then
|
|
|
|
echo "$ac_t""$WHOAMI" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$MOZ_DEBUG"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define DEBUG 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DEFINES="$DEFINES -UNDEBUG"
|
2002-08-10 14:37:25 +04:00
|
|
|
case "${target_os}" in
|
|
|
|
beos*)
|
|
|
|
DEFINES="$DEFINES -DDEBUG_${USER}"
|
|
|
|
;;
|
2004-03-15 09:25:32 +03:00
|
|
|
msvc*|mks*|cygwin*|mingw*|os2*)
|
2002-08-10 14:37:25 +04:00
|
|
|
DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
DEFINES="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_`$WHOAMI`"
|
|
|
|
;;
|
|
|
|
esac
|
2002-03-27 00:54:41 +03:00
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define NDEBUG 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DEFINES="$DEFINES -UDEBUG"
|
|
|
|
fi
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
# Use mozilla's nsinstall
|
|
|
|
if test -n "$MOZILLA_CLIENT"; then
|
|
|
|
NSINSTALL='$(dist_bindir)/nsinstall'
|
|
|
|
fi
|
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
if test -z "$SKIP_COMPILER_CHECKS"; then
|
|
|
|
if test "$target" != "$host"; then
|
|
|
|
echo "cross compiling from $host to $target"
|
|
|
|
cross_compiling=yes
|
|
|
|
|
|
|
|
_SAVE_CC="$CC"
|
|
|
|
_SAVE_CFLAGS="$CFLAGS"
|
|
|
|
_SAVE_LDFLAGS="$LDFLAGS"
|
|
|
|
|
|
|
|
echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1208: checking for $host compiler" >&5
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in gcc cc /usr/ucb/cc
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1214: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$HOST_CC"; then
|
|
|
|
ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_HOST_CC="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
HOST_CC="$ac_cv_prog_HOST_CC"
|
|
|
|
if test -n "$HOST_CC"; then
|
|
|
|
echo "$ac_t""$HOST_CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$HOST_CC" && break
|
|
|
|
done
|
|
|
|
test -n "$HOST_CC" || HOST_CC=""""
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
if test -z "$HOST_CC"; then
|
|
|
|
{ echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
|
fi
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "$ac_t""$HOST_CC" 1>&6
|
|
|
|
if test -z "$HOST_CFLAGS"; then
|
|
|
|
HOST_CFLAGS="$CFLAGS"
|
|
|
|
fi
|
|
|
|
if test -z "$HOST_LDFLAGS"; then
|
|
|
|
HOST_LDFLAGS="$LDFLAGS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
CC="$HOST_CC"
|
|
|
|
CFLAGS="$HOST_CFLAGS"
|
|
|
|
LDFLAGS="$HOST_LDFLAGS"
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1260: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 1262 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
return(0);
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:1269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2002-03-27 00:54:41 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
{ echo "configure: error: installation or configuration problem: $host compiler $HOST_CC cannot create executables." 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
CC=$_SAVE_CC
|
|
|
|
CFLAGS=$_SAVE_CFLAGS
|
|
|
|
LDFLAGS=$_SAVE_LDFLAGS
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1289: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$CC" && break
|
|
|
|
done
|
|
|
|
test -n "$CC" || CC="echo"
|
|
|
|
|
|
|
|
unset ac_cv_prog_CC
|
|
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
|
|
set dummy gcc; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1323: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="gcc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$CC"; then
|
|
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
|
|
set dummy cc; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1353: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_prog_rejected=no
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
|
ac_prog_rejected=yes
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
ac_cv_prog_CC="cc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
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
|
|
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
|
|
|
shift
|
|
|
|
ac_cv_prog_CC="$@"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$CC"; then
|
|
|
|
case "`uname -s`" in
|
|
|
|
*win32* | *WIN32*)
|
|
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
|
|
|
set dummy cl; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1404: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="cl"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1436: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 1447 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
main(){return(0);}
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_cc_works=yes
|
|
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
|
|
ac_cv_prog_cc_cross=no
|
|
|
|
else
|
|
|
|
ac_cv_prog_cc_cross=yes
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
ac_cv_prog_cc_works=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1478: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1483: checking whether we are using GNU C" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.c <<EOF
|
|
|
|
#ifdef __GNUC__
|
|
|
|
yes;
|
|
|
|
#endif
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_gcc=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
GCC=yes
|
|
|
|
else
|
|
|
|
GCC=
|
|
|
|
fi
|
|
|
|
|
|
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS=
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1511: checking whether ${CC-cc} accepts -g" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
echo 'void f(){}' > conftest.c
|
|
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
|
ac_cv_prog_cc_g=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_cc_g=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
|
if test "$ac_test_CFLAGS" = set; then
|
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="-g -O2"
|
|
|
|
else
|
|
|
|
CFLAGS="-g"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="-O2"
|
|
|
|
else
|
|
|
|
CFLAGS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1547: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CXX"; then
|
|
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CXX="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CXX="$ac_cv_prog_CXX"
|
|
|
|
if test -n "$CXX"; then
|
|
|
|
echo "$ac_t""$CXX" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$CXX" && break
|
|
|
|
done
|
|
|
|
test -n "$CXX" || CXX="echo"
|
|
|
|
|
|
|
|
unset ac_cv_prog_CXX
|
|
|
|
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1583: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CXX"; then
|
|
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CXX="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CXX="$ac_cv_prog_CXX"
|
|
|
|
if test -n "$CXX"; then
|
|
|
|
echo "$ac_t""$CXX" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$CXX" && break
|
|
|
|
done
|
|
|
|
test -n "$CXX" || CXX="gcc"
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1615: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cxx_cross
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 1626 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
int main(){return(0);}
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_cxx_works=yes
|
|
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
|
|
ac_cv_prog_cxx_cross=no
|
|
|
|
else
|
|
|
|
ac_cv_prog_cxx_cross=yes
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
ac_cv_prog_cxx_works=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1657: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
|
|
|
cross_compiling=$ac_cv_prog_cxx_cross
|
|
|
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1662: checking whether we are using GNU C++" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.C <<EOF
|
|
|
|
#ifdef __GNUC__
|
|
|
|
yes;
|
|
|
|
#endif
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_gxx=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_gxx=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gxx = yes; then
|
|
|
|
GXX=yes
|
|
|
|
else
|
|
|
|
GXX=
|
|
|
|
fi
|
|
|
|
|
|
|
|
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
|
|
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
CXXFLAGS=
|
|
|
|
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1690: checking whether ${CXX-g++} accepts -g" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
echo 'void f(){}' > conftest.cc
|
|
|
|
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
|
|
|
ac_cv_prog_cxx_g=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_cxx_g=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
|
|
|
if test "$ac_test_CXXFLAGS" = set; then
|
|
|
|
CXXFLAGS="$ac_save_CXXFLAGS"
|
|
|
|
elif test $ac_cv_prog_cxx_g = yes; then
|
|
|
|
if test "$GXX" = yes; then
|
|
|
|
CXXFLAGS="-g -O2"
|
|
|
|
else
|
|
|
|
CXXFLAGS="-g"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "$GXX" = yes; then
|
|
|
|
CXXFLAGS="-O2"
|
|
|
|
else
|
|
|
|
CXXFLAGS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2004-03-15 09:17:21 +03:00
|
|
|
for ac_declaration in \
|
|
|
|
''\
|
|
|
|
'#include <stdlib.h>' \
|
|
|
|
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
|
|
|
'extern "C" void std::exit (int); using std::exit;' \
|
|
|
|
'extern "C" void exit (int) throw ();' \
|
|
|
|
'extern "C" void exit (int);' \
|
|
|
|
'void exit (int);'
|
|
|
|
do
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 1731 "configure"
|
2004-03-15 09:17:21 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
$ac_declaration
|
|
|
|
int main() {
|
|
|
|
exit (42);
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:1739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2004-03-15 09:17:21 +03:00
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 1749 "configure"
|
2004-03-15 09:17:21 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
$ac_declaration
|
|
|
|
int main() {
|
|
|
|
exit (42);
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2004-03-15 09:17:21 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
break
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
done
|
|
|
|
if test -n "$ac_declaration"; then
|
|
|
|
echo '#ifdef __cplusplus' >>confdefs.h
|
|
|
|
echo $ac_declaration >>confdefs.h
|
|
|
|
echo '#endif' >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1777: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$RANLIB"; then
|
|
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_RANLIB="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
|
|
if test -n "$RANLIB"; then
|
|
|
|
echo "$ac_t""$RANLIB" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$RANLIB" && break
|
|
|
|
done
|
|
|
|
test -n "$RANLIB" || RANLIB="echo"
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1812: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$AR"; then
|
|
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_AR="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AR="$ac_cv_prog_AR"
|
|
|
|
if test -n "$AR"; then
|
|
|
|
echo "$ac_t""$AR" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$AR" && break
|
|
|
|
done
|
|
|
|
test -n "$AR" || AR="echo"
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $AS "${target_alias}-as" "${target}-as"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1847: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$AS"; then
|
|
|
|
ac_cv_prog_AS="$AS" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_AS="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AS="$ac_cv_prog_AS"
|
|
|
|
if test -n "$AS"; then
|
|
|
|
echo "$ac_t""$AS" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$AS" && break
|
|
|
|
done
|
|
|
|
test -n "$AS" || AS="echo"
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1882: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$LD"; then
|
|
|
|
ac_cv_prog_LD="$LD" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_LD="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
LD="$ac_cv_prog_LD"
|
|
|
|
if test -n "$LD"; then
|
|
|
|
echo "$ac_t""$LD" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$LD" && break
|
|
|
|
done
|
|
|
|
test -n "$LD" || LD="echo"
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1917: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$STRIP"; then
|
|
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_STRIP="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
STRIP="$ac_cv_prog_STRIP"
|
|
|
|
if test -n "$STRIP"; then
|
|
|
|
echo "$ac_t""$STRIP" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$STRIP" && break
|
|
|
|
done
|
|
|
|
test -n "$STRIP" || STRIP="echo"
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1952: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$WINDRES"; then
|
|
|
|
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_WINDRES="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
WINDRES="$ac_cv_prog_WINDRES"
|
|
|
|
if test -n "$WINDRES"; then
|
|
|
|
echo "$ac_t""$WINDRES" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$WINDRES" && break
|
|
|
|
done
|
|
|
|
test -n "$WINDRES" || WINDRES="echo"
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:1989: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CXX"; then
|
|
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CXX="$ac_prog"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CXX="$ac_cv_prog_CXX"
|
|
|
|
if test -n "$CXX"; then
|
|
|
|
echo "$ac_t""$CXX" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$CXX" && break
|
|
|
|
done
|
|
|
|
test -n "$CXX" || CXX="gcc"
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2021: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cxx_cross
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2032 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
int main(){return(0);}
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_cxx_works=yes
|
|
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
|
|
ac_cv_prog_cxx_cross=no
|
|
|
|
else
|
|
|
|
ac_cv_prog_cxx_cross=yes
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
ac_cv_prog_cxx_works=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2063: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
|
|
|
cross_compiling=$ac_cv_prog_cxx_cross
|
|
|
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2068: checking whether we are using GNU C++" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.C <<EOF
|
|
|
|
#ifdef __GNUC__
|
|
|
|
yes;
|
|
|
|
#endif
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_gxx=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_gxx=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gxx = yes; then
|
|
|
|
GXX=yes
|
|
|
|
else
|
|
|
|
GXX=
|
|
|
|
fi
|
|
|
|
|
|
|
|
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
|
|
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
CXXFLAGS=
|
|
|
|
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2096: checking whether ${CXX-g++} accepts -g" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
echo 'void f(){}' > conftest.cc
|
|
|
|
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
|
|
|
ac_cv_prog_cxx_g=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_cxx_g=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
|
|
|
if test "$ac_test_CXXFLAGS" = set; then
|
|
|
|
CXXFLAGS="$ac_save_CXXFLAGS"
|
|
|
|
elif test $ac_cv_prog_cxx_g = yes; then
|
|
|
|
if test "$GXX" = yes; then
|
|
|
|
CXXFLAGS="-g -O2"
|
|
|
|
else
|
|
|
|
CXXFLAGS="-g"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "$GXX" = yes; then
|
|
|
|
CXXFLAGS="-O2"
|
|
|
|
else
|
|
|
|
CXXFLAGS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2004-03-15 09:17:21 +03:00
|
|
|
for ac_declaration in \
|
|
|
|
''\
|
|
|
|
'#include <stdlib.h>' \
|
|
|
|
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
|
|
|
'extern "C" void std::exit (int); using std::exit;' \
|
|
|
|
'extern "C" void exit (int) throw ();' \
|
|
|
|
'extern "C" void exit (int);' \
|
|
|
|
'void exit (int);'
|
|
|
|
do
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2137 "configure"
|
2004-03-15 09:17:21 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
$ac_declaration
|
|
|
|
int main() {
|
|
|
|
exit (42);
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2004-03-15 09:17:21 +03:00
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2155 "configure"
|
2004-03-15 09:17:21 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
$ac_declaration
|
|
|
|
int main() {
|
|
|
|
exit (42);
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:2162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2004-03-15 09:17:21 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
break
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
done
|
|
|
|
if test -n "$ac_declaration"; then
|
|
|
|
echo '#ifdef __cplusplus' >>confdefs.h
|
|
|
|
echo $ac_declaration >>confdefs.h
|
|
|
|
echo '#endif' >>confdefs.h
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
if test "$CXX" = "cl" -a -z "$CC"; then
|
|
|
|
CC=$CXX
|
|
|
|
else
|
|
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
|
|
set dummy gcc; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2184: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="gcc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$CC"; then
|
|
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
|
|
set dummy cc; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2214: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_prog_rejected=no
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
|
ac_prog_rejected=yes
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
ac_cv_prog_CC="cc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
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
|
|
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
|
|
|
shift
|
|
|
|
ac_cv_prog_CC="$@"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$CC"; then
|
|
|
|
case "`uname -s`" in
|
|
|
|
*win32* | *WIN32*)
|
|
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
|
|
|
set dummy cl; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2265: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="cl"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2297: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2308 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
main(){return(0);}
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_cc_works=yes
|
|
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
|
|
ac_cv_prog_cc_cross=no
|
|
|
|
else
|
|
|
|
ac_cv_prog_cc_cross=yes
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
ac_cv_prog_cc_works=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
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'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2339: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2344: checking whether we are using GNU C" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.c <<EOF
|
|
|
|
#ifdef __GNUC__
|
|
|
|
yes;
|
|
|
|
#endif
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_cv_prog_gcc=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
GCC=yes
|
|
|
|
else
|
|
|
|
GCC=
|
|
|
|
fi
|
|
|
|
|
|
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS=
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2372: checking whether ${CC-cc} accepts -g" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
echo 'void f(){}' > conftest.c
|
|
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
|
ac_cv_prog_cc_g=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_cc_g=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
|
if test "$ac_test_CFLAGS" = set; then
|
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="-g -O2"
|
|
|
|
else
|
|
|
|
CFLAGS="-g"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="-O2"
|
|
|
|
else
|
|
|
|
CFLAGS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2405: checking how to run the C preprocessor" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
CPP=
|
|
|
|
fi
|
|
|
|
if test -z "$CPP"; then
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
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.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2420 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2005-06-02 21:40:05 +04:00
|
|
|
{ (eval echo configure:2426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2437 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2005-06-02 21:40:05 +04:00
|
|
|
{ (eval echo configure:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
CPP="${CC-cc} -nologo -E"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2454 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2005-06-02 21:40:05 +04:00
|
|
|
{ (eval echo configure:2460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
CPP=/lib/cpp
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
ac_cv_prog_CPP="$CPP"
|
|
|
|
fi
|
|
|
|
CPP="$ac_cv_prog_CPP"
|
|
|
|
else
|
|
|
|
ac_cv_prog_CPP="$CPP"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$CPP" 1>&6
|
|
|
|
|
|
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
|
set dummy ranlib; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2487: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$RANLIB"; then
|
|
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_RANLIB="ranlib"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
|
|
if test -n "$RANLIB"; then
|
|
|
|
echo "$ac_t""$RANLIB" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
for ac_prog in as
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2519: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$AS" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_AS="$AS" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_AS="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AS="$ac_cv_path_AS"
|
|
|
|
if test -n "$AS"; then
|
|
|
|
echo "$ac_t""$AS" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$AS" && break
|
|
|
|
done
|
|
|
|
test -n "$AS" || AS="$CC"
|
|
|
|
|
|
|
|
for ac_prog in ar
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2560: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$AR" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_AR="$AR" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_AR="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AR="$ac_cv_path_AR"
|
|
|
|
if test -n "$AR"; then
|
|
|
|
echo "$ac_t""$AR" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$AR" && break
|
|
|
|
done
|
|
|
|
test -n "$AR" || AR="echo not_ar"
|
|
|
|
|
|
|
|
for ac_prog in ld link
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2601: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$LD" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_LD="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
LD="$ac_cv_path_LD"
|
|
|
|
if test -n "$LD"; then
|
|
|
|
echo "$ac_t""$LD" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$LD" && break
|
|
|
|
done
|
|
|
|
test -n "$LD" || LD="echo not_ld"
|
|
|
|
|
|
|
|
for ac_prog in strip
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2642: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$STRIP" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_STRIP="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
STRIP="$ac_cv_path_STRIP"
|
|
|
|
if test -n "$STRIP"; then
|
|
|
|
echo "$ac_t""$STRIP" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$STRIP" && break
|
|
|
|
done
|
|
|
|
test -n "$STRIP" || STRIP="echo not_strip"
|
|
|
|
|
|
|
|
for ac_prog in windres
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2683: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$WINDRES" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_WINDRES="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
WINDRES="$ac_cv_path_WINDRES"
|
|
|
|
if test -n "$WINDRES"; then
|
|
|
|
echo "$ac_t""$WINDRES" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$WINDRES" && break
|
|
|
|
done
|
|
|
|
test -n "$WINDRES" || WINDRES="echo not_windres"
|
|
|
|
|
|
|
|
if test -z "$HOST_CC"; then
|
|
|
|
HOST_CC="$CC"
|
|
|
|
fi
|
|
|
|
if test -z "$HOST_CFLAGS"; then
|
|
|
|
HOST_CFLAGS="$CFLAGS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$GCC" = "yes"; then
|
|
|
|
GNU_CC=1
|
|
|
|
fi
|
|
|
|
if test "$GXX" = "yes"; then
|
|
|
|
GNU_CXX=1
|
|
|
|
fi
|
2004-03-15 09:25:32 +03:00
|
|
|
if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
|
2002-03-27 00:54:41 +03:00
|
|
|
GNU_AS=1
|
|
|
|
fi
|
|
|
|
rm -f a.out
|
|
|
|
|
|
|
|
if test "$cross_compiling" = "yes"; then
|
|
|
|
CROSS_COMPILE=1
|
|
|
|
else
|
|
|
|
CROSS_COMPILE=
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2745: checking for gcc -pipe support" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
|
|
|
|
echo '#include <stdio.h>' > dummy-hello.c
|
|
|
|
echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c
|
|
|
|
${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
|
|
|
|
cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5
|
|
|
|
if test $? = 0; then
|
|
|
|
_res_as_stdin="yes"
|
|
|
|
else
|
|
|
|
_res_as_stdin="no"
|
|
|
|
fi
|
|
|
|
if test "$_res_as_stdin" = "yes"; then
|
|
|
|
_SAVE_CFLAGS=$CFLAGS
|
|
|
|
CFLAGS="$CFLAGS -pipe"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 2760 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
|
|
printf("Hello World\n");
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2002-03-27 00:54:41 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
_res_gcc_pipe="yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
_res_gcc_pipe="no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
CFLAGS=$_SAVE_CFLAGS
|
|
|
|
fi
|
|
|
|
if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then
|
|
|
|
_res="yes";
|
|
|
|
CFLAGS="$CFLAGS -pipe"
|
|
|
|
CXXFLAGS="$CXXFLAGS -pipe"
|
|
|
|
else
|
|
|
|
_res="no"
|
|
|
|
fi
|
|
|
|
rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out
|
|
|
|
echo "$ac_t""$_res" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi # SKIP_COMPILER_CHECKS
|
|
|
|
|
|
|
|
if test -z "$SKIP_PATH_CHECKS"; then
|
|
|
|
for ac_prog in perl5 perl
|
|
|
|
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
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:2800: checking for $ac_word" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$PERL" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_PERL="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
PERL="$ac_cv_path_PERL"
|
|
|
|
if test -n "$PERL"; then
|
|
|
|
echo "$ac_t""$PERL" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
test -n "$PERL" && break
|
|
|
|
done
|
|
|
|
test -n "$PERL" || PERL="echo not_perl"
|
|
|
|
|
|
|
|
elif test -z "$PERL"; then
|
|
|
|
PERL=perl
|
|
|
|
fi
|
|
|
|
|
|
|
|
OBJ_SUFFIX=o
|
|
|
|
LIB_SUFFIX=a
|
2002-04-18 01:53:50 +04:00
|
|
|
LIB_PREFIX=lib
|
2002-03-27 00:54:41 +03:00
|
|
|
DLL_SUFFIX=so
|
|
|
|
ASM_SUFFIX=s
|
|
|
|
MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
|
|
PR_MD_ASFILES=
|
|
|
|
PR_MD_CSRCS=
|
|
|
|
PR_MD_ARCH_DIR=unix
|
|
|
|
AR_FLAGS='cr $@'
|
|
|
|
AS='$(CC)'
|
|
|
|
ASFLAGS='$(CFLAGS)'
|
|
|
|
|
2004-03-15 10:38:54 +03:00
|
|
|
if test -n "$CROSS_COMPILE"; then
|
|
|
|
OS_ARCH=`echo $target_os | sed -e 's|/|_|g'`
|
|
|
|
OS_RELEASE=
|
|
|
|
OS_TEST="${target_cpu}"
|
|
|
|
case "${target_os}" in
|
|
|
|
linux*) OS_ARCH=Linux ;;
|
|
|
|
solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
|
|
|
|
mingw*) OS_ARCH=WINNT ;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
OS_ARCH=`uname -s | sed -e 's|/|_|g'`
|
|
|
|
OS_RELEASE=`uname -r`
|
|
|
|
OS_TEST=`uname -m`
|
|
|
|
fi
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
if test "$OS_ARCH" = "IRIX64"; then
|
|
|
|
OS_ARCH=IRIX
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS_ARCH" = "Linux"; then
|
|
|
|
OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
|
2004-05-24 17:03:16 +04:00
|
|
|
OS_RELEASE=`echo $OS_RELEASE | awk -F. '{ print $1 "." $2 }'`
|
2002-03-27 00:54:41 +03:00
|
|
|
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
|
|
|
|
# s/he were cross-compiling on a WINNT host for a WIN95 target).
|
|
|
|
# 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.
|
|
|
|
#
|
2005-06-01 19:30:48 +04:00
|
|
|
case "$OS_ARCH" in
|
|
|
|
WIN95)
|
2002-03-27 00:54:41 +03:00
|
|
|
OS_ARCH=WINNT
|
|
|
|
OS_TARGET=WIN95
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
Windows_95)
|
2002-03-27 00:54:41 +03:00
|
|
|
OS_ARCH=Windows_NT
|
|
|
|
OS_TARGET=WIN95
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
Windows_98)
|
2002-03-27 00:54:41 +03:00
|
|
|
OS_ARCH=Windows_NT
|
|
|
|
OS_TARGET=WIN95
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
CYGWIN_9*|CYGWIN_ME*)
|
2002-03-27 00:54:41 +03:00
|
|
|
OS_ARCH='CYGWIN_NT-4.0'
|
|
|
|
OS_TARGET=WIN95
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
OS_2)
|
2002-03-27 00:54:41 +03:00
|
|
|
OS_ARCH=OS2
|
|
|
|
OS_TARGET=OS2
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
WINCE)
|
|
|
|
OS_ARCH=WINCE
|
|
|
|
OS_TARGET=WINCE
|
|
|
|
;;
|
|
|
|
esac
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# On WIN32, we also define the variable CPU_ARCH.
|
|
|
|
#
|
|
|
|
|
2005-06-01 19:30:48 +04:00
|
|
|
case "$OS_ARCH" in
|
|
|
|
WINNT)
|
2002-03-27 00:54:41 +03:00
|
|
|
CPU_ARCH=`uname -p`
|
|
|
|
if test "$CPU_ARCH" = "I386"; then
|
|
|
|
CPU_ARCH=x86
|
|
|
|
fi
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
Windows_NT)
|
2002-03-27 00:54:41 +03:00
|
|
|
#
|
|
|
|
# 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_ARCH=WINNT
|
|
|
|
OS_MINOR_RELEASE=`uname -v`
|
|
|
|
if test "$OS_MINOR_RELEASE" = "00"; then
|
|
|
|
OS_MINOR_RELEASE=0
|
|
|
|
fi
|
|
|
|
OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}"
|
|
|
|
CPU_ARCH=`uname -m`
|
|
|
|
#
|
|
|
|
# MKS's uname -m returns "586" on a Pentium machine.
|
|
|
|
#
|
|
|
|
if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
|
|
|
|
CPU_ARCH=x86
|
|
|
|
fi
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
CYGWIN32_NT|CYGWIN_NT*|MINGW*_NT*)
|
2002-03-27 00:54:41 +03:00
|
|
|
#
|
|
|
|
# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
|
|
|
|
# the uname.exe in the Cygwin tools.
|
|
|
|
# Prior to the Beta 20 release, Cygwin was called GNU-Win32.
|
|
|
|
# If uname -s returns "CYGWIN32/NT", we assume that we are using
|
|
|
|
# the uname.exe in the GNU-Win32 tools.
|
2005-06-01 19:30:48 +04:00
|
|
|
# If uname -s returns MINGW32_NT-5.1, we assume that we are using
|
|
|
|
# the uname.exe in the MSYS tools.
|
2002-03-27 00:54:41 +03:00
|
|
|
#
|
2005-06-01 19:30:48 +04:00
|
|
|
OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'`
|
2002-03-27 00:54:41 +03:00
|
|
|
OS_ARCH=WINNT
|
|
|
|
CPU_ARCH=`uname -m`
|
|
|
|
#
|
2005-06-01 19:30:48 +04:00
|
|
|
# Cygwin's uname -m returns "i686" on a Pentium Pro machine.
|
2002-03-27 00:54:41 +03:00
|
|
|
#
|
|
|
|
if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
|
|
|
|
CPU_ARCH=x86
|
|
|
|
fi
|
2005-06-01 19:30:48 +04:00
|
|
|
;;
|
|
|
|
esac
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then
|
|
|
|
OS_TARGET=WIN95
|
|
|
|
if test -n "$MOZ_DEBUG"; then
|
|
|
|
USE_DEBUG_RTL=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test -z "$OS_TARGET"; then
|
|
|
|
OS_TARGET=$OS_ARCH
|
|
|
|
fi
|
|
|
|
if test "$OS_TARGET" = "WIN95"; then
|
|
|
|
OS_RELEASE="4.0"
|
|
|
|
fi
|
|
|
|
if test "$OS_TARGET" = "WIN16"; then
|
|
|
|
OS_RELEASE=
|
|
|
|
fi
|
|
|
|
OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
|
|
|
|
|
|
|
|
|
|
|
|
case "$host" in
|
2005-06-02 08:21:17 +04:00
|
|
|
*-mingw*)
|
|
|
|
NSINSTALL=nsinstall
|
|
|
|
WIN_TOP_SRC=`cd $srcdir && pwd -W`
|
|
|
|
;;
|
|
|
|
*-cygwin*|*-msvc*|*-mks*)
|
2004-03-15 10:38:54 +03:00
|
|
|
CYGWIN_WRAPPER='sh $(topsrcdir)/config/cygwin-wrapper'
|
|
|
|
NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
|
|
|
|
if test "`${PERL} -v | grep -c cygwin 2>/dev/null`" = 0; then
|
|
|
|
PERL='$(CYGWIN_WRAPPER) perl'
|
|
|
|
fi
|
2005-06-02 08:21:17 +04:00
|
|
|
WIN_TOP_SRC=`cygpath -w $srcdir | sed -e 's|\\\\|/|g'`
|
2002-03-27 00:54:41 +03:00
|
|
|
;;
|
|
|
|
*-beos*)
|
|
|
|
HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE"
|
|
|
|
;;
|
|
|
|
*os2*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$target" in
|
|
|
|
|
|
|
|
*-aix*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SYSV 1
|
|
|
|
EOF
|
|
|
|
|
2003-10-08 02:01:12 +04:00
|
|
|
DSO_LDOPTS='-brtl -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:3045: checking for sys/atomic_op.h" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 3050 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/atomic_op.h>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2005-06-02 21:40:05 +04:00
|
|
|
{ (eval echo configure:3055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX_HAVE_ATOMIC_OP_H 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "${target_os}" in
|
|
|
|
aix3.2*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX_RENAME_SELECT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NO_LARGE_FILES 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
AIX_LINK_OPTS='-bnso -berok'
|
|
|
|
PR_MD_ASFILES=os_AIX.s
|
|
|
|
;;
|
|
|
|
aix4.1*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX_TIMERS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NO_LARGE_FILES 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX4_1 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
MKSHLIB=
|
|
|
|
DSO_LDOPTS=
|
|
|
|
AIX_LINK_OPTS='-bnso -berok'
|
|
|
|
;;
|
|
|
|
aix4.2*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX_TIMERS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_OFF64_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
AIX_LINK_OPTS='-brtl -bnso -berok'
|
|
|
|
;;
|
|
|
|
aix4.3*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX_TIMERS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_OFF64_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX4_3 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_SOCKLEN_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_FCNTL_FILE_LOCKING 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_IPV6=1
|
|
|
|
AIX_LINK_OPTS='-brtl -bnso -berok'
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX_TIMERS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_OFF64_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_SOCKLEN_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_FCNTL_FILE_LOCKING 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_IPV6=1
|
|
|
|
AIX_LINK_OPTS='-brtl -bnso -berok'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
CFLAGS="$CFLAGS -qro -qroconst"
|
|
|
|
if echo "$CC" | grep -c xlC_r; then
|
|
|
|
CFLAGS="$CFLAGS -qarch=com"
|
|
|
|
fi
|
|
|
|
AIX_WRAP='$(DIST)/lib/aixwrap.o'
|
|
|
|
AIX_TMP='./_aix_tmp.o'
|
|
|
|
if test -n "$USE_64"; then
|
|
|
|
MDCPUCFG_H=_aix64.cfg
|
|
|
|
OBJECT_MODE=64
|
|
|
|
else
|
|
|
|
if test -n "$USE_IPV6"; then
|
|
|
|
MDCPUCFG_H=_aix32in6.cfg
|
|
|
|
else
|
|
|
|
MDCPUCFG_H=_aix32.cfg
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
PR_MD_CSRCS=aix.c
|
|
|
|
RESOLVE_LINK_SYMBOLS=1
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-beos*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_BEOS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define BeOS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define BEOS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _POSIX_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DSO_LDOPTS=-nostart
|
|
|
|
MDCPUCFG_H=_beos.cfg
|
|
|
|
USE_BTHREADS=1
|
|
|
|
PR_MD_ARCH_DIR=beos
|
|
|
|
RESOLVE_LINK_SYMBOLS=1
|
|
|
|
case "${target_cpu}" in
|
2003-04-18 23:18:12 +04:00
|
|
|
i*86)
|
2002-03-27 00:54:41 +03:00
|
|
|
_OPTIMIZE_FLAGS=-O2
|
|
|
|
_DEBUG_FLAGS='-gdwarf-2 -O0'
|
|
|
|
MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
|
|
|
|
echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:3213: checking for gethostbyaddr in -lbind" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lbind $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 3221 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#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
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
OS_LIBS="$OS_LIBS -lbind -lsocket"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
powerpc)
|
|
|
|
CC=mwcc
|
|
|
|
CCC=mwcc
|
|
|
|
LD=mwld
|
|
|
|
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'
|
|
|
|
_OPTIMIZE_FLAGS=-O2
|
|
|
|
_DEBUG_FLAGS='-g -O0'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-bsdi*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define BSDI 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define NEED_BSDREGEX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wno-format"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Wall -Wno-format"
|
|
|
|
|
|
|
|
if echo "$OS_TEST" | grep -c 86 >/dev/null; then
|
|
|
|
CPU_ARCH=x86
|
|
|
|
elif echo "$OS_TEST" | grep -c sparc >/dev/null; then
|
|
|
|
CPU_ARCH=sparc
|
|
|
|
fi
|
|
|
|
|
|
|
|
MDCPUCFG_H=_bsdi.cfg
|
|
|
|
PR_MD_CSRCS=bsdi.c
|
|
|
|
|
|
|
|
DSO_LDOPTS=-r
|
|
|
|
|
|
|
|
case "$target_os" in
|
|
|
|
bsdi1.1*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_BSDI_JMPBUF_IS_ARRAY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_STAT_HAS_ONLY_ST_ATIME 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NEED_H_ERRNO 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
MKSHLIB=
|
|
|
|
DSO_CFLAGS=
|
|
|
|
DSO_LDOPTS=
|
|
|
|
;;
|
|
|
|
|
|
|
|
bsdi2.1*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_TIMESPEC_HAS_TS_SEC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_BSDI_JMPBUF_IS_ARRAY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_DLL 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define USE_DLFCN 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_STAT_HAS_ST_ATIMESPEC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
PR_MD_ASFILES=os_BSD_OS_386_2.s
|
|
|
|
;;
|
|
|
|
|
|
|
|
bsdi4.*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_SELECT_CONST_TIMEVAL 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_BSDI_JMPBUF_IS_STRUCT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_DLL 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define USE_DLFCN 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_STAT_HAS_ST_ATIMESPEC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
|
|
|
|
DSO_CFLAGS=-fPIC
|
2002-04-18 01:53:50 +04:00
|
|
|
DSO_LDOPTS='-shared -soname $(@:$(OBJDIR)/%.so=%.so)'
|
2002-03-27 00:54:41 +03:00
|
|
|
STRIP="$STRIP -d"
|
|
|
|
case "$target_os" in
|
|
|
|
bsdi4.2*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETPROTO_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETPROTO_R_POINTER 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_SELECT_CONST_TIMEVAL 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_BSDI_JMPBUF_IS_STRUCT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_DLL 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define USE_DLFCN 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_STAT_HAS_ST_ATIMESPEC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-darwin*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define DARWIN 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_BSD_FLOCK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -Wmost -fno-common"
|
|
|
|
if echo $OS_TEST | grep -c 86 2>/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define i386 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CPU_ARCH=i386
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define ppc 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CPU_ARCH=ppc
|
|
|
|
fi
|
|
|
|
DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@'
|
|
|
|
# Use the standard preprocessor (cpp)
|
|
|
|
CFLAGS="$CFLAGS -no-cpp-precomp"
|
|
|
|
MKSHLIB='$(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS) -o $@'
|
|
|
|
STRIP="$STRIP -x -S"
|
|
|
|
DLL_SUFFIX=dylib
|
|
|
|
USE_PTHREADS=1
|
|
|
|
MDCPUCFG_H=_darwin.cfg
|
|
|
|
PR_MD_CSRCS=darwin.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-dgux*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SYSV 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define DGUX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _DGUX_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _POSIX4A_DRAFT6_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DSO_LDOPTS=-G
|
|
|
|
_OPTIMIZE_FLAGS=-O2
|
|
|
|
_DEBUG_FLAGS=
|
|
|
|
MDCPUCFG_H=_dgux.cfg
|
|
|
|
PR_MD_CSRCS=dgux.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-freebsd*)
|
|
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
|
|
USE_PTHREADS=1
|
|
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define FREEBSD 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_BSD_FLOCK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
|
|
|
|
MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
|
|
|
if test "$MOZ_OBJFORMAT" = "elf"; then
|
|
|
|
DLL_SUFFIX=so
|
|
|
|
else
|
|
|
|
DLL_SUFFIX=so.1.0
|
|
|
|
fi
|
|
|
|
DSO_CFLAGS=-fPIC
|
|
|
|
DSO_LDOPTS=-Bshareable
|
|
|
|
MDCPUCFG_H=_freebsd.cfg
|
|
|
|
PR_MD_CSRCS=freebsd.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-hpux*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _HPUX_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define hppa 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DLL_SUFFIX=sl
|
|
|
|
DSO_LDOPTS='-b +h $(notdir $@)'
|
|
|
|
PR_MD_CSRCS=hpux.c
|
|
|
|
PR_MD_ASFILES=os_HPUX.s
|
|
|
|
if test -n "$USE_64"; then
|
|
|
|
MDCPUCFG_H=_hpux64.cfg
|
|
|
|
else
|
|
|
|
MDCPUCFG_H=_hpux32.cfg
|
|
|
|
fi
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
CC="$CC -Ae"
|
|
|
|
CXX="$CXX -ext"
|
|
|
|
CFLAGS="$CFLAGS +ESlit"
|
|
|
|
CXXFLAGS="$CXXFLAGS +ESlit"
|
|
|
|
DSO_CFLAGS=+Z
|
|
|
|
else
|
|
|
|
DSO_CFLAGS=-fPIC
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$MOZILLA_CLIENT"; then
|
|
|
|
DEFAULT_IMPL_STRATEGY=_EMU
|
|
|
|
fi
|
|
|
|
|
|
|
|
if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NEED_H_ERRNO 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX9 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DEFAULT_IMPL_STRATEGY=_EMU
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NO_LARGE_FILES 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NEED_H_ERRNO 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_INT_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11.00|B.11.11)' >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_POINTER_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS_RELEASE" = "B.10.01"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DEFAULT_IMPL_STRATEGY=_EMU
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS_RELEASE" = "B.10.10"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10_10 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
DEFAULT_IMPL_STRATEGY=_PTH
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS_RELEASE" = "B.10.20"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10_20 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
CFLAGS="$CFLAGS +DAportable +DS1.1"
|
|
|
|
CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
|
|
|
|
fi
|
|
|
|
DEFAULT_IMPL_STRATEGY=_PTH
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS_RELEASE" = "B.10.30"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10_30 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
CFLAGS="$CFLAGS +DAportable +DS1.1"
|
|
|
|
CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
|
|
|
|
fi
|
|
|
|
DEFAULT_IMPL_STRATEGY=_PTH
|
|
|
|
fi
|
|
|
|
|
|
|
|
if echo "$OS_RELEASE" | egrep '^(B.11.00|B.11.11)' >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX10 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HPUX11 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _LARGEFILE64_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_OFF64_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_FCNTL_FILE_LOCKING 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
if test -z "$USE_64"; then
|
|
|
|
CFLAGS="$CFLAGS +DAportable +DS2.0"
|
|
|
|
CXXFLAGS="$CXXFLAGS +DAportable +DS2.0"
|
|
|
|
else
|
|
|
|
CFLAGS="$CFLAGS +DA2.0W +DS2.0"
|
|
|
|
CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
DEFAULT_IMPL_STRATEGY=_PTH
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
USE_PTHREADS=
|
|
|
|
USE_USER_THREADS=
|
|
|
|
elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then
|
|
|
|
USE_PTHREADS=1
|
|
|
|
if test "$USE_NSPR_THREADS"; then
|
|
|
|
USE_PTHREADS=
|
|
|
|
fi
|
|
|
|
if test "$USE_USER_PTHREADS"; then
|
|
|
|
USE_PTHREADS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-irix*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define IRIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _SGI_MP_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_FCNTL_FILE_LOCKING 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
PR_MD_CSRCS=irix.c
|
|
|
|
PR_MD_ASFILES=os_Irix.s
|
2002-04-18 01:53:50 +04:00
|
|
|
DSO_LDOPTS='-rdata_shared -shared'
|
|
|
|
MKSHLIB='$(LD) $(DSO_LDOPTS) -soname $(notdir $@) -o $@'
|
2002-03-27 00:54:41 +03:00
|
|
|
STRIP="$STRIP -f"
|
|
|
|
RESOLVE_LINK_SYMBOLS=1
|
|
|
|
if test -n "$USE_64"; then
|
|
|
|
MDCPUCFG_H=_irix64.cfg
|
|
|
|
else
|
|
|
|
MDCPUCFG_H=_irix32.cfg
|
|
|
|
fi
|
|
|
|
case "${target_os}" in
|
|
|
|
irix6*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define IRIX6 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_PTHREADS=1
|
|
|
|
USE_N32=1
|
|
|
|
COMPILER_TAG=_n32
|
|
|
|
IMPL_STRATEGY=_PTH
|
|
|
|
;;
|
|
|
|
irix5*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define IRIX5 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
USE_PTHREADS=1
|
|
|
|
USE_N32=1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
if test "$GNU_CC"; then
|
|
|
|
AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wno-format"
|
|
|
|
_OPTIMIZE_FLAGS="-O6"
|
|
|
|
else
|
|
|
|
if test -n "$USE_N32"; then
|
|
|
|
AS='as -D_ASM $(INCLUDES) -n32'
|
|
|
|
else
|
|
|
|
AS='as -D_ASM $(INCLUDES)'
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -fullwarn -xansi"
|
|
|
|
if test "$USE_N32"; then
|
|
|
|
_OPTIMIZE_FLAGS="-O -OPT:Olimit=4000"
|
|
|
|
else
|
|
|
|
_OPTIMIZE_FLAGS="-O -Olimit 4000"
|
|
|
|
fi
|
|
|
|
if test "$USE_MDUPDATE"; then
|
|
|
|
CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
|
|
|
|
fi
|
|
|
|
case "$target}" in
|
|
|
|
*-irix6.*)
|
|
|
|
CFLAGS="$CFLAGS -multigot"
|
2002-04-18 01:53:50 +04:00
|
|
|
DSO_LDOPTS="$DSO_LDOPTS -no_unresolved"
|
2002-03-27 00:54:41 +03:00
|
|
|
if test "$USE_N32"; then
|
|
|
|
CFLAGS="$CFLAGS -n32 -woff 1209"
|
|
|
|
DSO_LDOPTS="$DSO_LDOPTS -n32"
|
|
|
|
else
|
|
|
|
if test "$USE_64"; then
|
|
|
|
CFLAGS="$CFLAGS -64"
|
|
|
|
else
|
|
|
|
CFLAGS="$CFLAGS -32"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
CFLAGS="$CFLAGS -xgot"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
if test "${target_os}" = "irix5.3"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define IRIX5_3 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
case "${target_os}" in
|
|
|
|
irix6.5)
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
CFLAGS="$CFLAGS -mips3"
|
|
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETPROTO_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETPROTO_R_POINTER 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
irix5*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-linux*)
|
|
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
|
|
USE_PTHREADS=1
|
|
|
|
IMPL_STRATEGY=_PTH
|
|
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _POSIX_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _BSD_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _SVID_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _LARGEFILE64_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_FCNTL_FILE_LOCKING 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define LINUX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define linux 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
LD='$(CC)'
|
|
|
|
CFLAGS="$CFLAGS -ansi -Wall"
|
|
|
|
CXXFLAGS="$CXXFLAGS -ansi -Wall"
|
|
|
|
MDCPUCFG_H=_linux.cfg
|
|
|
|
PR_MD_CSRCS=linux.c
|
|
|
|
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
|
|
|
|
DSO_CFLAGS=-fPIC
|
|
|
|
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
|
|
|
|
OS_LIBS="$OS_LIBS -lc"
|
|
|
|
_OPTIMIZE_FLAGS=-O2
|
2002-08-23 02:52:44 +04:00
|
|
|
_DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that
|
|
|
|
# combo is not yet good at debugging inlined
|
|
|
|
# functions (even when using DWARF2 as the
|
|
|
|
# debugging format)
|
2002-03-27 00:54:41 +03:00
|
|
|
COMPILER_TAG=_glibc
|
|
|
|
if echo "$OS_TEST" | grep -c 86 >/dev/null; then
|
|
|
|
CPU_ARCH=x86
|
|
|
|
else
|
|
|
|
CPU_ARCH=$OS_TEST
|
|
|
|
fi
|
|
|
|
CPU_ARCH_TAG=_${CPU_ARCH}
|
|
|
|
case "${target_cpu}" in
|
|
|
|
alpha)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _ALPHA_ 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define __alpha 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -mieee"
|
|
|
|
CXXFLAGS="$CXXFLAGS -mieee"
|
|
|
|
;;
|
2003-04-18 23:18:12 +04:00
|
|
|
i*86)
|
2002-03-27 00:54:41 +03:00
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define i386 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
PR_MD_ASFILES=os_Linux_x86.s
|
|
|
|
;;
|
|
|
|
ia64)
|
|
|
|
PR_MD_ASFILES=os_Linux_ia64.s
|
|
|
|
;;
|
|
|
|
m68k)
|
|
|
|
CFLAGS="$CFLAGS -m68020-40"
|
|
|
|
CXXFLAGS="$CXXFLAGS -m68020-40"
|
|
|
|
#
|
|
|
|
# gcc on Linux/m68k either has a bug or triggers a code-sequence
|
|
|
|
# bug in the 68060 which causes gcc to crash. The simplest way to
|
|
|
|
# avoid this is to enable a minimum level of optimization.
|
|
|
|
#
|
|
|
|
_DEBUG_FLAGS="$_DEBUG_FLAGS -O"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
2003-04-19 05:47:57 +04:00
|
|
|
*-mingw*|*-cygwin*|*-msvc*|*-mks*)
|
2002-03-27 00:54:41 +03:00
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_PC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define WIN32 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _WINDOWS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
PR_MD_ARCH_DIR=windows
|
|
|
|
RESOLVE_LINK_SYMBOLS=1
|
2003-03-08 00:12:09 +03:00
|
|
|
PROG_SUFFIX=.exe
|
2002-03-27 00:54:41 +03:00
|
|
|
if test -n "$GNU_CC"; then
|
2003-03-08 00:12:09 +03:00
|
|
|
CC="$CC -mno-cygwin"
|
|
|
|
CXX="$CXX -mno-cygwin"
|
|
|
|
DLL_SUFFIX=dll
|
|
|
|
MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) -o $@'
|
2003-09-15 07:48:56 +04:00
|
|
|
# Use temp file for windres (bug 213281)
|
|
|
|
RC="$WINDRES -O coff --use-temp-file"
|
2002-03-27 00:54:41 +03:00
|
|
|
else
|
2004-03-15 09:17:21 +03:00
|
|
|
CYGWIN_WRAPPER='sh $(topsrcdir)/config/cygwin-wrapper'
|
2004-03-15 10:15:51 +03:00
|
|
|
CC=cl
|
|
|
|
CXX=cl
|
|
|
|
LD=link
|
2002-03-27 00:54:41 +03:00
|
|
|
AR='lib -NOLOGO -OUT:"$@"'
|
|
|
|
AR_FLAGS=
|
|
|
|
RANLIB='echo not_ranlib'
|
|
|
|
STRIP='echo not_strip'
|
2004-03-15 09:17:21 +03:00
|
|
|
RC='$(CYGWIN_WRAPPER) rc.exe'
|
2002-03-27 00:54:41 +03:00
|
|
|
GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
|
|
|
|
OBJ_SUFFIX=obj
|
|
|
|
LIB_SUFFIX=lib
|
2002-04-18 01:53:50 +04:00
|
|
|
LIB_PREFIX=
|
2002-03-27 00:54:41 +03:00
|
|
|
DLL_SUFFIX=dll
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
|
2004-05-21 00:21:33 +04:00
|
|
|
DLLFLAGS='-OUT:"$@"'
|
|
|
|
_DEBUG_FLAGS=-Z7
|
|
|
|
_OPTIMIZE_FLAGS=-O2
|
|
|
|
if test -z "$MOZ_OPTIMIZE"; then
|
|
|
|
CFLAGS="$CFLAGS -Od"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$USE_DEBUG_RTL"; then
|
|
|
|
CFLAGS="$CFLAGS -MDd"
|
|
|
|
else
|
|
|
|
CFLAGS="$CFLAGS -MD"
|
|
|
|
fi
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
if test -n "$MOZ_DEBUG"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _DEBUG 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
DEFINES="$DEFINES -U_DEBUG"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$MOZ_OPTIMIZE"; then
|
|
|
|
if test -n "$MOZ_PROFILE"; then
|
|
|
|
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Z7"
|
2004-08-27 17:24:29 +04:00
|
|
|
fi
|
|
|
|
if test -n "$MOZ_DEBUG_SYMBOLS"; then
|
|
|
|
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Zi"
|
|
|
|
fi
|
|
|
|
if test -n "$MOZ_PROFILE" -o -n "$MOZ_DEBUG_SYMBOLS"; then
|
|
|
|
DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF"
|
|
|
|
LDFLAGS="$LDFLAGS -DEBUG -OPT:REF"
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
2004-05-21 00:21:33 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$MOZ_DEBUG"; then
|
|
|
|
DLLFLAGS="$DLLFLAGS -DEBUG -DEBUGTYPE:CV"
|
|
|
|
LDFLAGS="$LDFLAGS -DEBUG -DEBUGTYPE:CV"
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS_TARGET" = "WINNT"; then
|
|
|
|
CFLAGS="$CFLAGS -GT"
|
|
|
|
if test "$CPU_ARCH" = "x86"; then
|
|
|
|
CFLAGS="$CFLAGS -G5"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi # GNU_CC
|
|
|
|
|
|
|
|
if test -n "$USE_STATIC_TLS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_USE_STATIC_TLS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS_TARGET" = "WINNT"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define WINNT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define WIN95 1
|
|
|
|
EOF
|
|
|
|
|
2003-03-08 00:12:09 +03:00
|
|
|
# undefine WINNT as some versions of mingw gcc define it by default
|
|
|
|
DEFINES="$DEFINES -UWINNT"
|
2002-03-27 00:54:41 +03:00
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_GLOBAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$CPU_ARCH" = "x86"; then
|
|
|
|
CPU_ARCH_TAG=
|
|
|
|
else
|
|
|
|
CPU_ARCH_TAG=$CPU_ARCH
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$USE_DEBUG_RTL"; then
|
|
|
|
OBJDIR_SUFFIX=OBJD
|
|
|
|
fi
|
|
|
|
|
|
|
|
OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS -PDB:NONE'
|
|
|
|
|
|
|
|
case "$OS_TARGET" in
|
|
|
|
WINNT)
|
|
|
|
MDCPUCFG_H=_winnt.cfg
|
|
|
|
;;
|
|
|
|
WIN95)
|
|
|
|
MDCPUCFG_H=_win95.cfg
|
|
|
|
;;
|
|
|
|
WIN16)
|
|
|
|
MDCPUCFG_H=_win16.cfg
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
{ echo "configure: error: Missing OS_TARGET for ${target}. Use --enable-win32-target to set." 1>&2; exit 1; }
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$target_cpu" in
|
2003-04-18 23:18:12 +04:00
|
|
|
i*86)
|
2002-03-27 00:54:41 +03:00
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _X86_ 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
alpha)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _ALPHA_ 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
mips)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _MIPS_ 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _CPU_ARCH_NOT_DEFINED 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-ncr-sysv*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SYSV 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define NCR 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
if test "$OS_RELEASE" = "2.03"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_STAT_HAS_ST_ATIM 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_STAT_HAS_ST_ATIM_UNION 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
CFLAGS="$CFLAGS -Hnocopyr"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Hnocopyr"
|
|
|
|
else
|
|
|
|
CFLAGS="$CFLAGS -fPIC -Wall"
|
|
|
|
CXXFLAGS="$CXXFLAGS -fPIC -Wall"
|
|
|
|
DSO_LDOPTS=-G
|
|
|
|
fi
|
|
|
|
MDCPUCFG_H=_ncr.cfg
|
|
|
|
PR_MD_CSRCS=ncr.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
mips-nec-sysv*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define __SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define NEC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define nec_ews 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
CC='$(NSDEPTH)/build/hcc cc -Xa -KGnum=0 -KOlimit=4000'
|
|
|
|
CXX=g++
|
|
|
|
fi
|
|
|
|
OS_LIBS="$OS_LIBS -lsocket -lnsl -ldl"
|
|
|
|
DSO_LDOPTS=-G
|
|
|
|
MDCPUCFG_H=_nec.cfg
|
|
|
|
PR_MD_CSRCS=nec.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-netbsd*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define NETBSD 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_BSD_FLOCK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
MDCPUCFG_H=_netbsd.cfg
|
|
|
|
PR_MD_CSRCS=netbsd.c
|
|
|
|
|
|
|
|
DSO_CFLAGS='-fPIC -DPIC'
|
|
|
|
CFLAGS="$CFLAGS -ansi -Wall"
|
|
|
|
CXXFLAGS="$CXXFLAGS -ansi -Wall"
|
|
|
|
MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
|
|
|
|
|
|
|
|
if test -z "$OBJECT_FMT"; then
|
|
|
|
if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then
|
|
|
|
OBJECT_FMT=a.out
|
|
|
|
DLL_SUFFIX=so.1.0
|
|
|
|
DSO_LDOPTS='-shared'
|
|
|
|
else
|
|
|
|
OBJECT_FMT=ELF
|
|
|
|
DLL_SUFFIX=so
|
|
|
|
DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$LIBRUNPATH"; then
|
|
|
|
DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
mips-sony-newsos*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SONY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SYSV 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define __svr4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define __svr4__ 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_SVID_GETTOD 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
CFLAGS="$CFLAGS -Xa -fullwarn"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Xa -fullwarn"
|
|
|
|
DSO_LDOPTS=-G
|
|
|
|
MDCPUCFG_H=_sony.cfg
|
|
|
|
PR_MD_CSRCS=sony.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-nextstep*|*-openstep*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define NEXTSTEP 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_BSD_FLOCK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _POSIX_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -Wall -fno-common -traditional-cpp -posix"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Wall -fno-common -traditional-cpp -posix"
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
DLL_SUFFIX=dylib
|
|
|
|
MDCPUCFG_H=_nextstep.cfg
|
|
|
|
PR_MD_CSRCS=nextstep.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
*-nto*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define NTO 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _QNX_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_POINTER_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
MDCPUCFG_H=_nto.cfg
|
|
|
|
PR_MD_CSRCS=nto.c
|
|
|
|
MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
|
|
|
|
DSO_CFLAGS=-fPIC
|
|
|
|
DSO_LDOPTS=-shared
|
|
|
|
OS_LIBS="$OS_LIBS -lsocket"
|
|
|
|
_OPTIMIZE_FLAGS="-O1"
|
|
|
|
_DEBUG_FLAGS="-gstabs"
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-openbsd*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define OPENBSD 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_BSD_FLOCK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -ansi -Wall"
|
|
|
|
CXXFLAGS="$CXXFLAGS -ansi -Wall"
|
|
|
|
DLL_SUFFIX=so.1.0
|
|
|
|
DSO_CFLAGS=-fPIC
|
|
|
|
MDCPUCFG_H=_openbsd.cfg
|
|
|
|
PR_MD_CSRCS=openbsd.c
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
case "$OS_TEST" in
|
|
|
|
alpha|mips|pmax)
|
|
|
|
DSO_LDOPTS=-shared ;;
|
|
|
|
*)
|
|
|
|
DSO_LDOPTS=-Bshareable ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-openvms*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
RESOLVE_LINK_SYMBOLS=1
|
|
|
|
MDCPUCFG_H=_openvms.cfg
|
|
|
|
PR_MD_CSRCS=openvms.c
|
2004-03-15 09:51:00 +03:00
|
|
|
AR_FLAGS='c $@'
|
|
|
|
DSO_LDOPTS='-shared -auto_symvec $(LDFLAGS) $(OPTIMIZER)'
|
2002-03-27 00:54:41 +03:00
|
|
|
;;
|
|
|
|
|
2004-03-15 09:25:32 +03:00
|
|
|
*-os2*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_OS2 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_PC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define BSD_SELECT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_GLOBAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
PR_MD_ARCH_DIR=os2
|
|
|
|
RESOLVE_LINK_SYMBOLS=1
|
|
|
|
NSINSTALL=nsinstall
|
|
|
|
LIB_PREFIX=
|
|
|
|
LIB_SUFFIX=lib
|
|
|
|
DLL_SUFFIX=dll
|
|
|
|
DLLTOOL=''
|
|
|
|
RC=rc.exe
|
|
|
|
PROG_SUFFIX=.exe
|
|
|
|
MDCPUCFG_H=_os2.cfg
|
|
|
|
|
|
|
|
# EMX/GCC build
|
|
|
|
if test -n "$GNU_CC"; then
|
|
|
|
# AC_DEFINE(USE_OS2_TOOLKIT_HEADERS)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_OS2_EMX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define OS2 1
|
2004-03-15 09:35:14 +03:00
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define TCPV40HDRS 1
|
2004-03-15 09:25:32 +03:00
|
|
|
EOF
|
|
|
|
|
|
|
|
AR=emxomfar
|
2004-03-15 09:35:14 +03:00
|
|
|
AR_FLAGS='r $@'
|
2004-03-15 09:25:32 +03:00
|
|
|
LD='$(CC)'
|
2004-03-15 09:35:14 +03:00
|
|
|
CFLAGS="$CFLAGS -Wall -Zomf"
|
|
|
|
CXXFLAGS="$CFLAGS -Wall -Zomf"
|
2004-03-15 09:25:32 +03:00
|
|
|
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
|
|
|
|
DSO_CFLAGS=
|
2004-03-15 09:35:14 +03:00
|
|
|
DSO_LDOPTS='-Zomf -Zdll'
|
2004-03-15 09:25:32 +03:00
|
|
|
_OPTIMIZE_FLAGS=-O3
|
|
|
|
_DEBUG_FLAGS="-g -fno-inline"
|
|
|
|
if test -n "$MOZ_OPTIMIZE"; then
|
|
|
|
DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
|
|
|
|
fi
|
2004-03-15 09:35:14 +03:00
|
|
|
OS_LIBS="-lsocket"
|
2004-03-15 09:25:32 +03:00
|
|
|
IMPLIB='emximp -o'
|
|
|
|
FILTER='emxexp -o'
|
|
|
|
|
|
|
|
# GCC for OS/2 currently predefines these, but we don't want them
|
|
|
|
DEFINES="$DEFINES -Uunix -U__unix -U__unix__"
|
|
|
|
|
|
|
|
# Visual Age C++ build
|
|
|
|
elif test "$VACPP" = "yes"; then
|
|
|
|
MOZ_BUILD_ROOT=`pwd -D`
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_OS2_VACPP 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define OS2 4
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define TCPV40HDRS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _X86_ 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
OBJ_SUFFIX=obj
|
|
|
|
AS=alp
|
|
|
|
ASFLAGS='-Mb'
|
|
|
|
ASM_SUFFIX=asm
|
|
|
|
AR=ilib
|
|
|
|
AR_FLAGS='/NOL /NOI /O:$(subst /,\\,$@)'
|
|
|
|
CFLAGS='/Q /qlibansi /Gd+ /Gm+ /Su4 /Mp /Tl9'
|
|
|
|
HOST_CFLAGS="$CFLAGS"
|
|
|
|
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'
|
|
|
|
OS_LIBS='so32dll.lib tcp32dll.lib'
|
|
|
|
LD='-ilink'
|
|
|
|
MKSHLIB='$(LD) $(DSO_LDOPTS)'
|
|
|
|
IMPLIB='implib -nologo -noignorecase'
|
|
|
|
FILTER='cppfilt -q -B -P'
|
|
|
|
_OPTIMIZE_FLAGS='/O+ /Gl+ /Gx+ /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
|
|
|
|
LDFLAGS="$LDFLAGS /DE"
|
|
|
|
DLLFLAGS="$DLLFLAGS /DE"
|
|
|
|
EXEFLAGS="$EXEFLAGS /DE"
|
|
|
|
fi
|
|
|
|
if test -n "$MOZ_OPTIMIZE"; then
|
|
|
|
LDFLAGS="$LDFLAGS /OPTFUNC /EXEPACK:2 /PACKCODE /PACKDATA"
|
|
|
|
DLLFLAGS="$DLLFLAGS /OPTFUNC /EXEPACK:2 /PACKCODE /PACKDATA"
|
|
|
|
EXEFLAGS="$EXEFLAGS /OPTFUNC /EXEPACK:2 /PACKCODE /PACKDATA"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
*-osf*)
|
|
|
|
SHELL_OVERRIDE="SHELL = /usr/bin/ksh"
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define OSF1 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _REENTRANT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:4450: checking for machine/builtins.h" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 4455 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <machine/builtins.h>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2005-06-02 21:40:05 +04:00
|
|
|
{ (eval echo configure:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define OSF1_HAVE_MACHINE_BUILTINS_H 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
CC="$CC -std1 -ieee_with_inexact"
|
|
|
|
if test "$OS_RELEASE" != "V2.0"; then
|
|
|
|
CC="$CC -readonly_strings"
|
|
|
|
fi
|
|
|
|
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_INT_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_FCNTL_FILE_LOCKING 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_POINTER_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define OSF1V4_MAP_PRIVATE_BUG 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)'
|
|
|
|
MDCPUCFG_H=_osf1.cfg
|
|
|
|
PR_MD_CSRCS=osf1.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-qnx*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define QNX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NEED_H_ERRNO 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
MDCPUCFG_H=_qnx.cfg
|
|
|
|
PR_MD_CSRCS=qnx.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-*-sco*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SCO 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define sco 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SYSV 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _SVID3 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NEED_H_ERRNO 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CC='cc -b elf -KPIC'
|
|
|
|
CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w'
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
CPU_ARCH=x86
|
|
|
|
DSO_LDOPTS='-b elf -G'
|
|
|
|
MDCPUCFG_H=_scoos.cfg
|
|
|
|
PR_MD_SRCS=scoos.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-sinix*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SNI 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define RELIANTUNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define sinix 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_SVID_GETTOD 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if echo "$OS_TEST" | grep -c 86 2>/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define i386 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CPU_ARCH=x86
|
|
|
|
else
|
|
|
|
CPU_ARCH=mips
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$GNU_CC"; then
|
|
|
|
AS='$(CC) -x assembler-with-cpp'
|
|
|
|
if test "$CPU_ARCH" = "mips"; then
|
|
|
|
LD=gld
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wno-format"
|
|
|
|
else
|
|
|
|
AS='/usr/bin/cc'
|
|
|
|
_OPTIMIZE_FLAGS='-O -F Olimit,4000'
|
|
|
|
fi
|
|
|
|
|
|
|
|
DSO_LDOPTS='-G -z defs -h $(@:$(OBJDIR)/%.so=%.so)'
|
|
|
|
|
|
|
|
if test "$OS_RELEASE" = "5.43"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define IP_MULTICAST 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
OS_LIBS="$OS_LIBS -lsocket -lnsl -lresolv -ldl -lc"
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
MDCPUCFG_H=_reliantunix.cfg
|
|
|
|
PR_MD_CSRCS=reliantunix.c
|
|
|
|
if test "${OS_ARCH}" = "mips"; then
|
|
|
|
PR_MD_ASFILES=os_ReliantUNIX.s
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-sunos*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SUNOS4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -Wall -Wno-format"
|
|
|
|
if test "$USE_MDUPDATE"; then
|
|
|
|
CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
|
|
|
|
fi
|
|
|
|
CPU_ARCH=sparc
|
|
|
|
DLL_SUFFIX=so.1.0
|
|
|
|
DSO_LDOPTS=
|
|
|
|
DSO_CFLAGS=-fPIC
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
if test "$OS_RELEASE" = "4.1.3_U1"; then
|
|
|
|
_OPTIMIZE_FLAGS=
|
|
|
|
OS_LIBS="$OS_LIBS -lm"
|
|
|
|
fi
|
|
|
|
MDCPUCFG_H=_sunos4.cfg
|
|
|
|
PR_MD_CSRCS=sunos4.c
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-solaris*)
|
|
|
|
if test -z "$USE_USER_THREADS" && test -z "$USE_NATIVE_THREADS"; then
|
|
|
|
USE_PTHREADS=1
|
|
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SYSV 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define __svr4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define __svr4__ 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SOLARIS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_FCNTL_FILE_LOCKING 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test -n "$USE_64"; then
|
|
|
|
MDCPUCFG_H=_solaris64.cfg
|
|
|
|
else
|
|
|
|
MDCPUCFG_H=_solaris32.cfg
|
|
|
|
fi
|
|
|
|
PR_MD_CSRCS=solaris.c
|
2002-12-18 00:44:49 +03:00
|
|
|
LD=/usr/ccs/bin/ld
|
|
|
|
RANLIB=/usr/ccs/bin/ranlib
|
2002-03-27 00:54:41 +03:00
|
|
|
DSO_LDOPTS='-G -h $(notdir $@)'
|
|
|
|
if test -n "$GNU_CC"; then
|
|
|
|
DSO_CFLAGS=-fPIC
|
|
|
|
else
|
|
|
|
DSO_CFLAGS=-KPIC
|
|
|
|
fi
|
|
|
|
if test -z "$GNU_AS"; then
|
|
|
|
ASFLAGS="$ASFLAGS -Wa,-P"
|
|
|
|
fi
|
|
|
|
if test -n "$GNU_CC"; then
|
|
|
|
CFLAGS="$CFLAGS -Wall"
|
|
|
|
CXXFLAGS="$CXXFLAGS -Wall"
|
|
|
|
if test -n "$USE_MDUPDATE"; then
|
|
|
|
CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
|
|
|
|
CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)"
|
|
|
|
fi
|
2005-05-11 00:08:39 +04:00
|
|
|
COMPILER_TAG=_gcc
|
2002-03-27 00:54:41 +03:00
|
|
|
else
|
|
|
|
CC="$CC -xstrconst"
|
|
|
|
CXX="$CXX -Qoption cg -xstrconst"
|
|
|
|
if test -z "$MOZ_OPTIMIZE"; then
|
|
|
|
CFLAGS="$CFLAGS -xs"
|
|
|
|
CXXFLAGS="$CXXFLAGS -xs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test -n "$USE_64" && test -z "$GNU_CC"; then
|
|
|
|
CC="$CC -xarch=v9"
|
|
|
|
CXX="$CXX -xarch=v9"
|
|
|
|
fi
|
2005-06-01 17:54:02 +04:00
|
|
|
if test -n "$USE_64" && test -n "$GNU_CC"; then
|
2005-05-11 00:08:39 +04:00
|
|
|
CC="$CC -m64"
|
|
|
|
CXX="$CXX -m64"
|
|
|
|
fi
|
2002-03-27 00:54:41 +03:00
|
|
|
if test "$OS_TEST" = "i86pc"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define i386 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CPU_ARCH_TAG=_$OS_TEST
|
|
|
|
# The default debug format, DWARF (-g), is not supported by gcc
|
|
|
|
# on i386-ANY-sysv4/solaris, but the stabs format is. It is
|
|
|
|
# assumed that the Solaris assembler /usr/ccs/bin/as is used.
|
|
|
|
# If your gcc uses GNU as, you do not need the -Wa,-s option.
|
|
|
|
if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
|
|
|
|
_DEBUG_FLAGS=-gstabs
|
|
|
|
if test -z "$GNU_AS"; then
|
|
|
|
_DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
case "${target_os}" in
|
|
|
|
solaris2.3*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NO_LARGE_FILES 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
solaris2.4*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NO_LARGE_FILES 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
solaris2.5*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SOLARIS2_5 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_OFF64_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# The lfcompile64(5) man page on Solaris 2.6 says:
|
|
|
|
# For applications that do not wish to conform to the POSIX or
|
|
|
|
# X/Open specifications, the 64-bit transitional interfaces
|
|
|
|
# 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
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _LARGEFILE64_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
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
|
|
|
|
ULTRASPARC_LIBRARY=ultrasparc
|
|
|
|
ULTRASPARC_FILTER_LIBRARY=libatomic.so
|
|
|
|
DSO_LDOPTS="$DSO_LDOPTS -f "'$(ULTRASPARC_FILTER_LIBRARY)'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-sco-sysv5*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define UNIXWARE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SVR4 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SYSV 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NO_LARGE_FILES 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
CC='$(NSDEPTH)/build/hcc cc'
|
|
|
|
CXX='$(NSDEPTH)/build/hcpp CC'
|
|
|
|
MDCPUCFG_H=_unixware.cfg
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _LARGEFILE64_SOURCE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_OFF64_T 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_SOCKADDR_LEN 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
MDCPUCFG_H=_unixware7.cfg
|
|
|
|
fi
|
|
|
|
PR_MD_CSRCS=unixware.c
|
|
|
|
DSO_LDOPTS=-G
|
|
|
|
CPU_ARCH=x86
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define XP_UNIX 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
|
|
|
|
|
|
|
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:4863: checking for dlopen" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 4868 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
|
which can conflict with char dlopen(); 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 dlopen();
|
|
|
|
|
|
|
|
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_dlopen) || defined (__stub___dlopen)
|
|
|
|
choke me
|
|
|
|
#else
|
|
|
|
dlopen();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_dlopen=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_dlopen=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:4910: checking for dlopen in -ldl" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-ldl $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 4918 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#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
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
OS_LIBS="-ldl $OS_LIBS"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:4957: checking whether ${CC-cc} needs -traditional" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_pattern="Autoconf.*'x'"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 4963 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sgtty.h>
|
|
|
|
Autoconf TIOCGETP
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "$ac_pattern" >/dev/null 2>&1; then
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_prog_gcc_traditional=yes
|
|
|
|
else
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_prog_gcc_traditional=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc_traditional = no; then
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 4981 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <termio.h>
|
|
|
|
Autoconf TCGETA
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "$ac_pattern" >/dev/null 2>&1; then
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_prog_gcc_traditional=yes
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
|
|
|
if test $ac_cv_prog_gcc_traditional = yes; then
|
|
|
|
CC="$CC -traditional"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
for ac_func in lchown strerror
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:5005: checking for $ac_func" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2005-06-02 21:40:05 +04:00
|
|
|
#line 5010 "configure"
|
2002-03-27 00:54:41 +03:00
|
|
|
#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
|
2005-06-02 21:40:05 +04:00
|
|
|
if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2002-03-27 00:54:41 +03:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-strip or --disable-strip was given.
|
|
|
|
if test "${enable_strip+set}" = set; then
|
|
|
|
enableval="$enable_strip"
|
|
|
|
ENABLE_STRIP=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:5071: checking for pthread_create in -lpthreads" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "
|
|
|
|
#include <pthread.h>
|
|
|
|
void *foo(void *v) { int a = 1; }
|
|
|
|
int main() {
|
|
|
|
pthread_t t;
|
|
|
|
if (!pthread_create(&t, 0, &foo, 0)) {
|
|
|
|
pthread_join(t, 0);
|
|
|
|
}
|
|
|
|
exit(0);
|
|
|
|
}" > dummy.c ;
|
|
|
|
echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5;
|
|
|
|
${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5;
|
|
|
|
_res=$? ;
|
|
|
|
rm -f dummy.c dummy${ac_exeext} ;
|
|
|
|
if test "$_res" = "0"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
_HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:5093: checking for pthread_create in -lpthread" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "
|
|
|
|
#include <pthread.h>
|
|
|
|
void *foo(void *v) { int a = 1; }
|
|
|
|
int main() {
|
|
|
|
pthread_t t;
|
|
|
|
if (!pthread_create(&t, 0, &foo, 0)) {
|
|
|
|
pthread_join(t, 0);
|
|
|
|
}
|
|
|
|
exit(0);
|
|
|
|
}" > dummy.c ;
|
|
|
|
echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5;
|
|
|
|
${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5;
|
|
|
|
_res=$? ;
|
|
|
|
rm -f dummy.c dummy${ac_exeext} ;
|
|
|
|
if test "$_res" = "0"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
_HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:5115: checking for pthread_create in -lc_r" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "
|
|
|
|
#include <pthread.h>
|
|
|
|
void *foo(void *v) { int a = 1; }
|
|
|
|
int main() {
|
|
|
|
pthread_t t;
|
|
|
|
if (!pthread_create(&t, 0, &foo, 0)) {
|
|
|
|
pthread_join(t, 0);
|
|
|
|
}
|
|
|
|
exit(0);
|
|
|
|
}" > dummy.c ;
|
|
|
|
echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5;
|
|
|
|
${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5;
|
|
|
|
_res=$? ;
|
|
|
|
rm -f dummy.c dummy${ac_exeext} ;
|
|
|
|
if test "$_res" = "0"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
_HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:5137: checking for pthread_create in -lc" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo "
|
|
|
|
#include <pthread.h>
|
|
|
|
void *foo(void *v) { int a = 1; }
|
|
|
|
int main() {
|
|
|
|
pthread_t t;
|
|
|
|
if (!pthread_create(&t, 0, &foo, 0)) {
|
|
|
|
pthread_join(t, 0);
|
|
|
|
}
|
|
|
|
exit(0);
|
|
|
|
}" > dummy.c ;
|
|
|
|
echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5;
|
|
|
|
${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5;
|
|
|
|
_res=$? ;
|
|
|
|
rm -f dummy.c dummy${ac_exeext} ;
|
|
|
|
if test "$_res" = "0"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
_HAVE_PTHREADS=1
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-pthreads or --without-pthreads was given.
|
|
|
|
if test "${with_pthreads+set}" = set; then
|
|
|
|
withval="$with_pthreads"
|
|
|
|
if test "$withval" = "yes"; then
|
|
|
|
if test -n "$_HAVE_PTHREADS"; then
|
|
|
|
USE_PTHREADS=1
|
|
|
|
USE_USER_PTHREADS=
|
|
|
|
USE_NSPR_THREADS=
|
|
|
|
else
|
|
|
|
{ echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&2; exit 1; };
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
USE_PTHREADS=
|
|
|
|
_PTHREAD_LDFLAGS=
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USER_NSPR_THREADS"; then
|
|
|
|
USE_PTHREADS=1
|
|
|
|
USE_USER_PTHREADS=
|
|
|
|
USE_NSPR_THREADS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-user-pthreads or --disable-user-pthreads was given.
|
|
|
|
if test "${enable_user_pthreads+set}" = set; then
|
|
|
|
enableval="$enable_user_pthreads"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
if test -n "$_HAVE_PTHREADS"; then
|
|
|
|
USE_PTHREADS=
|
|
|
|
USE_USER_PTHREADS=1
|
|
|
|
USE_NSPR_THREADS=
|
|
|
|
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
|
|
|
|
enableval="$enable_nspr_threads"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
USE_PTHREADS=
|
|
|
|
USE_USER_PTHREADS=
|
|
|
|
USE_NSPR_THREADS=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
case "$target" in
|
|
|
|
*-beos*)
|
|
|
|
# Check whether --with-bthreads or --without-bthreads was given.
|
|
|
|
if test "${with_bthreads+set}" = set; then
|
|
|
|
withval="$with_bthreads"
|
|
|
|
if test "$withval" = "yes"; then
|
|
|
|
USE_BTHREADS=1
|
|
|
|
USE_USER_PTHREADS=
|
|
|
|
USE_PTHREADS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
*-solaris*)
|
|
|
|
# Check whether --with-native-threads or --without-native-threads was given.
|
|
|
|
if test "${with_native_threads+set}" = set; then
|
|
|
|
withval="$with_native_threads"
|
|
|
|
if test "$withval" = "yes"; then
|
|
|
|
USE_NATIVE_THREADS=1
|
|
|
|
USE_USER_PTHREADS=
|
|
|
|
USE_PTHREADS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
fi # SKIP_LIBRARY_CHECKS
|
|
|
|
|
|
|
|
# Check whether --enable-cplus or --disable-cplus was given.
|
|
|
|
if test "${enable_cplus+set}" = set; then
|
|
|
|
enableval="$enable_cplus"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
USE_CPLUS=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-ipv6 or --disable-ipv6 was given.
|
|
|
|
if test "${enable_ipv6+set}" = set; then
|
|
|
|
enableval="$enable_ipv6"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
USE_IPV6=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-boehm or --disable-boehm was given.
|
|
|
|
if test "${enable_boehm+set}" = set; then
|
|
|
|
enableval="$enable_boehm"
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define GC_LEAK_DETECTOR 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
GC_LEAK_DETECTOR=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test -n "$USE_PTHREADS"; then
|
|
|
|
rm -f conftest*
|
|
|
|
ac_cv_have_dash_pthread=no
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:5287: checking whether ${CC-cc} accepts -pthread" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo 'int main() { return 0; }' | cat > conftest.c
|
|
|
|
${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
|
|
|
|
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
|
|
|
|
ac_cv_have_dash_pthread=yes
|
|
|
|
CFLAGS="$CFLAGS -pthread"
|
|
|
|
CXXFLAGS="$CXXFLAGS -pthread"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6
|
|
|
|
|
|
|
|
ac_cv_have_dash_pthreads=no
|
|
|
|
if test "$ac_cv_have_dash_pthread" = "no"; then
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
|
2005-06-02 21:40:05 +04:00
|
|
|
echo "configure:5303: checking whether ${CC-cc} accepts -pthreads" >&5
|
2002-03-27 00:54:41 +03:00
|
|
|
echo 'int main() { return 0; }' | cat > conftest.c
|
|
|
|
${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
|
|
|
|
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
|
|
|
|
ac_cv_have_dash_pthreads=yes
|
|
|
|
CFLAGS="$CFLAGS -pthreads"
|
|
|
|
CXXFLAGS="$CXXFLAGS -pthreads"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$target" in
|
|
|
|
*-solaris*)
|
|
|
|
if test "$ac_cv_have_dash_pthreads" = "yes"; then
|
|
|
|
_PTHREAD_LDFLAGS=
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-freebsd*|*-openbsd*|*-bsdi*|*-netbsd*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _THREAD_SAFE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test "$ac_cv_have_dash_pthread" = "yes"; then
|
|
|
|
_PTHREAD_LDFLAGS=
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-linux*)
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _REENTRANT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
else
|
|
|
|
if test -n "$USE_USER_PTHREADS"; then
|
|
|
|
USE_PTHREADS=
|
|
|
|
USE_NSPR_THREADS=
|
|
|
|
else
|
|
|
|
_PTHREAD_LDFLAGS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$target" in
|
|
|
|
*-aix*)
|
|
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
case "$target_os" in
|
|
|
|
aix4.1*)
|
|
|
|
if test -z "$USE_PTHREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define AIX_RENAME_SELECT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
aix4.2*)
|
|
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_POINTER_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
aix4.3*)
|
|
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_POINTER_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
if test -n "$USE_PTHREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_THREADSAFE_GETHOST 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
*-bsdi*)
|
|
|
|
if test -n "$USE_PTHREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_NEED_PTHREAD_INIT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-freebsd*)
|
|
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-hpux*)
|
|
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
if test "$USE_PTHREADS"; then
|
|
|
|
if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _REENTRANT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_DCETHREADS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define _POSIX_C_SOURCE 199506L
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_THREADSAFE_GETHOST 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
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
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETHOST_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETHOST_R_POINTER 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-linux*)
|
|
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
2003-04-19 05:47:57 +04:00
|
|
|
*-mingw*|*-cygwin*|*-msvc*|*-mks*)
|
2002-03-27 00:54:41 +03:00
|
|
|
USE_PTHREADS=
|
|
|
|
_PTHREAD_LDFLAGS=
|
|
|
|
USE_USER_PTHREADS=
|
|
|
|
;;
|
|
|
|
*-netbsd*)
|
|
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-osf*)
|
|
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
if test -n "$USE_PTHREADS"; then
|
|
|
|
if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_THREADSAFE_GETHOST 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-solaris*)
|
|
|
|
if test -n "$USE_NATIVE_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_GLOBAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
if test -n "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_LOCAL_THREADS_ONLY 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test -z "$USE_NSPR_THREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _REENTRANT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_POINTER_LOCALTIME_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test "$OS_TEST" = "i86pc"; then
|
|
|
|
PR_MD_ASFILES=os_SunOS_x86.s
|
|
|
|
else
|
|
|
|
PR_MD_ASFILES=os_SunOS.s
|
|
|
|
if test -n "$USE_64"; then
|
|
|
|
PR_MD_ASFILES="$PR_MD_ASFILES os_SunOS_sparcv9.s"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*-nto*)
|
|
|
|
if test -n "$USE_PTHREADS"; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETHOST_R 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define _PR_HAVE_GETHOST_R_POINTER 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
|
|
|
|
|
|
|
|
if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
|
|
|
|
_OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS"
|
|
|
|
fi
|
|
|
|
|
2005-06-01 17:54:02 +04:00
|
|
|
if test -n "$_SAVE_DEBUG_FLAGS"; then
|
|
|
|
_DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS"
|
|
|
|
fi
|
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
if test -n "$MOZ_OPTIMIZE"; then
|
|
|
|
CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS"
|
|
|
|
CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$MOZ_DEBUG"; then
|
|
|
|
CFLAGS="$CFLAGS $_DEBUG_FLAGS"
|
|
|
|
CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$MOZ_OPTIMIZE"; then
|
|
|
|
OBJDIR_TAG=_OPT
|
|
|
|
else
|
|
|
|
OBJDIR_TAG=_DBG
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$USE_64"; then
|
2005-05-11 00:08:39 +04:00
|
|
|
COMPILER_TAG=${COMPILER_TAG}_64
|
2002-03-27 00:54:41 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
|
|
|
|
|
2004-03-15 10:15:51 +03:00
|
|
|
case "$target_os" in
|
2005-06-02 08:21:17 +04:00
|
|
|
cygwin*|msvc*|mks*)
|
2004-03-15 10:15:51 +03:00
|
|
|
CC="\$(CYGWIN_WRAPPER) $CC"
|
|
|
|
CXX="\$(CYGWIN_WRAPPER) $CXX"
|
|
|
|
RC="\$(CYGWIN_WRAPPER) $RC"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-04-18 01:53:50 +04:00
|
|
|
|
2004-03-15 09:17:21 +03:00
|
|
|
|
2005-06-02 08:21:17 +04:00
|
|
|
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
MAKEFILES="
|
|
|
|
Makefile
|
|
|
|
config/Makefile
|
|
|
|
config/autoconf.mk
|
|
|
|
ldap/Makefile
|
|
|
|
ldap/clients/tools/Makefile
|
|
|
|
ldap/include/Makefile
|
|
|
|
ldap/libraries/Makefile
|
|
|
|
ldap/libraries/libldap/Makefile
|
|
|
|
ldap/libraries/libprldap/Makefile
|
|
|
|
ldap/libraries/libldif/Makefile
|
|
|
|
ldap/libraries/liblber/Makefile
|
|
|
|
ldap/libraries/libiutil/Makefile
|
|
|
|
ldap/libraries/libssldap/Makefile
|
|
|
|
"
|
|
|
|
|
|
|
|
mkdir ldap > /dev/null 2>&1
|
|
|
|
mkdir ldap/clients > /dev/null 2>&1
|
|
|
|
|
|
|
|
trap '' 1 2 15
|
|
|
|
cat > confcache <<\EOF
|
|
|
|
# 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.
|
|
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|
|
|
# config.status only pays attention to the cache file if you give it the
|
|
|
|
# --recheck option to rerun configure.
|
|
|
|
#
|
|
|
|
EOF
|
|
|
|
# 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 |
|
|
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|
|
|
*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
|
|
|
|
if cmp -s $cache_file confcache; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
if test -w $cache_file; then
|
|
|
|
echo "updating cache $cache_file"
|
|
|
|
cat confcache > $cache_file
|
|
|
|
else
|
|
|
|
echo "not updating unwritable cache $cache_file"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f confcache
|
|
|
|
|
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
|
# Let make expand exec_prefix.
|
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${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.
|
2004-03-15 09:17:21 +03:00
|
|
|
#
|
|
|
|
# If the first sed substitution is executed (which looks for macros that
|
|
|
|
# take arguments), then we branch to the quote section. Otherwise,
|
|
|
|
# look for a macro that doesn't take arguments.
|
|
|
|
cat >confdef2opt.sed <<\_ACEOF
|
|
|
|
t clear
|
|
|
|
: clear
|
|
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
|
|
|
|
t quote
|
|
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
|
|
|
|
t quote
|
|
|
|
d
|
|
|
|
: quote
|
|
|
|
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
|
|
|
|
s,\[,\\&,g
|
|
|
|
s,\],\\&,g
|
|
|
|
s,\$,$$,g
|
|
|
|
p
|
|
|
|
_ACEOF
|
|
|
|
# We use echo to avoid assuming a particular line-breaking character.
|
|
|
|
# The extra dot is to prevent the shell from consuming trailing
|
|
|
|
# line-breaks from the sub-command output. A line-break within
|
|
|
|
# single-quotes doesn't work because, if this script is created in a
|
|
|
|
# platform that uses two characters for line-breaks (e.g., DOS), tr
|
|
|
|
# would break.
|
|
|
|
ac_LF_and_DOT=`echo; echo .`
|
|
|
|
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
|
|
|
|
rm -f confdef2opt.sed
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2002-08-09 01:45:20 +04:00
|
|
|
s%@CC@%$CC%g
|
2002-03-27 00:54:41 +03:00
|
|
|
s%@dist_prefix@%$dist_prefix%g
|
|
|
|
s%@dist_bindir@%$dist_bindir%g
|
|
|
|
s%@dist_libdir@%$dist_libdir%g
|
|
|
|
s%@NSPR_CONFIG@%$NSPR_CONFIG%g
|
|
|
|
s%@NSPR_CFLAGS@%$NSPR_CFLAGS%g
|
|
|
|
s%@NSPR_LIBS@%$NSPR_LIBS%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%@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%@USE_NSS@%$USE_NSS%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
|
2002-04-18 01:53:50 +04:00
|
|
|
s%@LIB_PREFIX@%$LIB_PREFIX%g
|
2002-03-27 00:54:41 +03:00
|
|
|
s%@DLL_SUFFIX@%$DLL_SUFFIX%g
|
|
|
|
s%@ASM_SUFFIX@%$ASM_SUFFIX%g
|
|
|
|
s%@PROG_SUFFIX@%$PROG_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%@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%@ULTRASPARC_FILTER_LIBRARY@%$ULTRASPARC_FILTER_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%@DLLFLAGS@%$DLLFLAGS%g
|
|
|
|
s%@EXEFLAGS@%$EXEFLAGS%g
|
|
|
|
s%@OS_DLLFLAGS@%$OS_DLLFLAGS%g
|
2004-03-15 09:17:21 +03:00
|
|
|
s%@CYGWIN_WRAPPER@%$CYGWIN_WRAPPER%g
|
2005-06-02 08:21:17 +04:00
|
|
|
s%@WIN_TOP_SRC@%$WIN_TOP_SRC%g
|
2002-03-27 00:54:41 +03:00
|
|
|
|
|
|
|
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_more_lines=:
|
|
|
|
ac_sed_cmds=""
|
|
|
|
while $ac_more_lines; do
|
|
|
|
if test $ac_beg -gt 1; then
|
|
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
|
else
|
|
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
|
fi
|
|
|
|
if test ! -s conftest.s$ac_file; then
|
|
|
|
ac_more_lines=false
|
|
|
|
rm -f conftest.s$ac_file
|
|
|
|
else
|
|
|
|
if test -z "$ac_sed_cmds"; then
|
|
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
|
|
else
|
|
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
|
|
fi
|
|
|
|
ac_file=`expr $ac_file + 1`
|
|
|
|
ac_beg=$ac_end
|
|
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
if test -z "$ac_sed_cmds"; then
|
|
|
|
ac_sed_cmds=cat
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
|
|
|
|
CONFIG_FILES=\${CONFIG_FILES-"$MAKEFILES"}
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
|
case "$ac_file" in
|
|
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
|
*) ac_file_in="${ac_file}.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.
|
|
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
|
# The file is in a subdirectory.
|
|
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
|
|
# A "../" for each directory in $ac_dir_suffix.
|
|
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
|
|
else
|
|
|
|
ac_dir_suffix= ac_dots=
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$ac_given_srcdir" in
|
|
|
|
.) srcdir=.
|
|
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
|
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
|
|
*) # Relative path.
|
|
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
echo creating "$ac_file"
|
|
|
|
rm -f "$ac_file"
|
|
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
|
|
case "$ac_file" in
|
|
|
|
*Makefile*) ac_comsub="1i\\
|
|
|
|
# $configure_input" ;;
|
|
|
|
*) ac_comsub= ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
|
sed -e "$ac_comsub
|
|
|
|
s%@configure_input@%$configure_input%g
|
|
|
|
s%@srcdir@%$srcdir%g
|
|
|
|
s%@top_srcdir@%$top_srcdir%g
|
|
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
|
|
fi; done
|
|
|
|
rm -f conftest.s*
|
|
|
|
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
EOF
|
|
|
|
chmod +x $CONFIG_STATUS
|
|
|
|
rm -fr confdefs* $ac_clean_files
|
|
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
|
|
|