gecko-dev/configure

9696 строки
256 KiB
Plaintext
Исходник Обычный вид История

1999-01-21 02:37:59 +03:00
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
1999-09-15 05:50:05 +04:00
# Generated automatically using autoconf version 2.13
1999-01-21 02:37:59 +03:00
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
1999-09-06 08:30:54 +04:00
ac_default_prefix=`pwd`/dist
1999-01-21 02:37:59 +03:00
ac_help="$ac_help
--with-x use the X Window System"
1999-04-02 07:44:31 +04:00
ac_help="$ac_help
--enable-toolkit=\$val Enable \$val fe (defaults to gtk)"
1999-08-05 09:15:16 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-gtk Enable GTK+ support "
1999-09-05 20:01:13 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-gle GLE support (for debugging gtk widgets) "
1999-08-05 09:15:16 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-static-gtk Link GTK statically if possible"
1999-08-05 09:15:16 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-motif Enable Motif support "
1999-08-05 09:15:16 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-static-motif Link Motif statically if possible"
1999-08-05 09:15:16 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-xlib Enable xlib support "
1999-08-09 19:00:54 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-qt Enable Qt support "
1999-08-17 13:45:50 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-qtdir=\$dir Specify Qt directory "
1999-08-09 19:00:54 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-static-qt Link qt statically if possible"
1999-04-22 05:08:18 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-pthreads Force use of system pthread library with NSPR "
1999-04-22 05:08:18 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-nspr=PFX Prefix where NSPR is installed"
1999-04-22 05:08:18 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-nsprlib=DIR Directory where NSPR libraries are installed"
1999-08-23 00:30:21 +04:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--enable-x11-shm Enable use of X11 shared mem in gfx"
1999-08-30 03:00:49 +04:00
ac_help="$ac_help
--disable-verbose-config-defs
Do not output the contents of config-defs.h"
1999-01-21 02:37:59 +03:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-jpeg[=\$dir] Use system libjpeg [installed at prefix \$dir]"
1999-01-21 02:37:59 +03:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-zlib[=\$dir] Use system libz [installed at prefix \$dir]"
1999-01-21 02:37:59 +03:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-png[=\$dir] Use system libpng [installed at prefix \$dir]"
1999-01-21 02:37:59 +03:00
ac_help="$ac_help
1999-09-28 01:01:38 +04:00
--with-fullcircle=\$dir Location of FullCircle headers and libraries"
1999-01-21 02:37:59 +03:00
# 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=
1999-09-15 05:50:05 +04:00
SHELL=${CONFIG_SHELL-/bin/sh}
1999-01-21 02:37:59 +03:00
# 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)
1999-09-15 05:50:05 +04:00
echo "configure generated by autoconf version 2.13"
1999-01-21 02:37:59 +03:00
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.
ac_unique_file=config/config.mk
# 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'
1999-09-15 05:50:05 +04:00
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-01-21 02:37:59 +03:00
cross_compiling=$ac_cv_prog_cc_cross
1999-09-15 05:50:05 +04:00
ac_exeext=
ac_objext=o
1999-01-21 02:37:59 +03:00
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}/build/autoconf $srcdir/${srcdir}/build/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}/build/autoconf $srcdir/${srcdir}/build/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.
1999-09-15 05:50:05 +04:00
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:614: checking host system type" >&5
1999-01-21 02:37:59 +03:00
host_alias=$host
case "$host_alias" in
NONE)
case $nonopt in
NONE)
1999-09-15 05:50:05 +04:00
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1999-01-21 02:37:59 +03:00
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
fi ;;
*) host_alias=$nonopt ;;
esac ;;
esac
1999-09-15 05:50:05 +04:00
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:635: checking target system type" >&5
1999-01-21 02:37:59 +03:00
target_alias=$target
case "$target_alias" in
NONE)
case $nonopt in
NONE) target_alias=$host_alias ;;
*) target_alias=$nonopt ;;
esac ;;
esac
1999-09-15 05:50:05 +04:00
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:653: checking build system type" >&5
1999-01-21 02:37:59 +03:00
build_alias=$build
case "$build_alias" in
NONE)
case $nonopt in
NONE) build_alias=$host_alias ;;
*) build_alias=$nonopt ;;
esac ;;
esac
1999-09-15 05:50:05 +04:00
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1999-01-21 02:37:59 +03:00
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}-
1999-09-06 08:30:54 +04:00
1999-08-29 22:15:50 +04:00
TARGET_CPU="${target_cpu}"
TARGET_OS="${target_os}"
1999-04-13 18:14:36 +04:00
CFLAGS="${CFLAGS=}"
1999-09-06 08:30:54 +04:00
CPPFLAGS="${CPPFLAGS=}"
1999-04-13 18:14:36 +04:00
CXXFLAGS="${CXXFLAGS=}"
1999-08-21 22:15:22 +04:00
LDFLAGS="${LDFLAGS=}"
HOST_CFLAGS="${HOST_CFLAGS=}"
HOST_CXXFLAGS="${HOST_CXXFLAGS=}"
HOST_LDFLAGS="${HOST_LDFLAGS=}"
_SUBDIR_CC="$CC"
_SUBDIR_CXX="$CXX"
_SUBDIR_CFLAGS="$CFLAGS"
1999-09-06 08:30:54 +04:00
_SUBDIR_CPPFLAGS="$CPPFLAGS"
1999-08-21 22:15:22 +04:00
_SUBDIR_CXXFLAGS="$CFLAGS"
_SUBDIR_LDFLAGS="$LDFLAGS"
_SUBDIR_HOST_CC="$HOST_CC"
_SUBDIR_HOST_CFLAGS="$HOST_CFLAGS"
_SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS"
_SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS"
_SUBDIR_CONFIG_ARGS="$ac_configure_args"
1999-01-21 02:37:59 +03:00
MOZJPEG=62
1999-08-11 03:00:27 +04:00
MOZPNG=10002
1999-05-27 02:49:35 +04:00
NSPR_VERSION=3
1999-01-21 02:37:59 +03:00
1999-03-15 04:00:41 +03:00
GTK_VERSION=1.2.0
1999-04-10 04:29:44 +04:00
LIBIDL_VERSION=0.6.3
1999-05-12 06:44:41 +04:00
MISSING_FULLCIRCLE=
1999-01-21 02:37:59 +03:00
MISSING_MOTIF=
1999-05-12 06:44:41 +04:00
MISSING_NSPR=
MISSING_X=
1999-01-21 02:37:59 +03:00
1999-08-04 22:45:15 +04:00
USE_PTHREADS=
PTHREAD_LDFLAGS=""
1999-03-09 04:45:41 +03:00
_topsrcdir=`cd \`dirname $0\`; pwd`
_objdir=`pwd`
if test "$_topsrcdir" != "$_objdir"
then
# Check for a couple representative files in the source tree
1999-04-24 00:59:41 +04:00
_conflict_files=
1999-03-09 04:45:41 +03:00
for file in $_topsrcdir/Makefile $_topsrcdir/config/autoconf.mk; do
if test -f $file; then
1999-04-24 00:59:41 +04:00
_conflict_files="$_conflict_files $file"
1999-03-09 04:45:41 +03:00
fi
done
1999-04-24 00:59:41 +04:00
if test "$_conflict_files"; then
echo "***"
echo "* Your source tree contains these files:"
for file in $_conflict_files; do
echo "* $file"
done
cat 1>&2 <<-EOF
* This indicates that you previously built in the source tree.
* A source tree build can confuse the separate objdir build.
*
* To clean up the source tree:
* 1. cd $_topsrcdir
* 2. gmake -f client.mk cleansrcdir
***
EOF
exit 1
break
fi
1999-03-09 04:45:41 +03:00
fi
1999-08-29 22:15:50 +04:00
MOZ_BUILD_ROOT=`pwd`
1999-09-04 02:15:44 +04:00
if test -n "$CROSS_COMPILE" && test "$target" != "$host"; then
1999-08-29 22:15:50 +04:00
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 c compiler""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:755: checking for host c compiler" >&5
1999-08-29 22:15:50 +04:00
if test -z "$HOST_CC"; then
for ac_prog in gcc cc /usr/ucb/cc
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
1999-11-16 15:15:24 +03:00
echo "configure:762: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=""""
if test -z "$HOST_CC"; then
{ echo "configure: error: no acceptable c compiler found in \$PATH" 1>&2; exit 1; }
fi
fi
echo "$ac_t""$HOST_CC" 1>&6
echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:798: checking for host c++ compiler" >&5
1999-08-29 22:15:50 +04:00
if test -z "$HOST_CXX"; then
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
1999-11-16 15:15:24 +03:00
echo "configure:805: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$HOST_CXX"; then
ac_cv_prog_HOST_CXX="$HOST_CXX" # Let the user override the test.
else
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_HOST_CXX="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
HOST_CXX="$ac_cv_prog_HOST_CXX"
if test -n "$HOST_CXX"; then
echo "$ac_t""$HOST_CXX" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$HOST_CXX" && break
done
test -n "$HOST_CXX" || HOST_CXX=""""
if test -z "$HOST_CXX"; then
{ echo "configure: error: no acceptable c++ compiler found in \$PATH" 1>&2; exit 1; }
fi
fi
echo "$ac_t""$HOST_CXX" 1>&6
if test -z "$HOST_CFLAGS"; then
HOST_CFLAGS="$CFLAGS"
fi
if test -z "$HOST_CXXFLAGS"; then
HOST_CXXFLAGS="$CXXFLAGS"
fi
if test -z "$HOST_LDFLAGS"; then
HOST_LDFLAGS="$LDFLAGS"
fi
if test -z "$HOST_RANLIB"; then
# 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
1999-11-16 15:15:24 +03:00
echo "configure:854: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$HOST_RANLIB"; then
ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test.
else
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_HOST_RANLIB="ranlib"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_prog_HOST_RANLIB" && ac_cv_prog_HOST_RANLIB=":"
fi
fi
HOST_RANLIB="$ac_cv_prog_HOST_RANLIB"
if test -n "$HOST_RANLIB"; then
echo "$ac_t""$HOST_RANLIB" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-09-04 02:15:44 +04:00
fi
if test -z "$HOST_AR"; then
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:886: checking for $ac_word" >&5
1999-09-04 02:15:44 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$HOST_AR"; then
ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test.
else
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-09-04 02:15:44 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_HOST_AR="ar"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_prog_HOST_AR" && ac_cv_prog_HOST_AR=":"
fi
fi
HOST_AR="$ac_cv_prog_HOST_AR"
if test -n "$HOST_AR"; then
echo "$ac_t""$HOST_AR" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-08-29 22:15:50 +04:00
fi
CC="$HOST_CC"
CFLAGS="$HOST_CFLAGS"
LDFLAGS="$HOST_LDFLAGS"
echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:919: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1999-08-29 22:15:50 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 921 "configure"
1999-08-29 22:15:50 +04:00
#include "confdefs.h"
int main() {
return(0);
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-08-29 22:15:50 +04:00
rm -rf conftest*
ac_cv_prog_hostcc_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="$HOST_CXX"
CFLAGS="$HOST_CXXFLAGS"
echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:943: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5
1999-08-29 22:15:50 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 945 "configure"
1999-08-29 22:15:50 +04:00
#include "confdefs.h"
int main() {
return(0);
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-08-29 22:15:50 +04:00
rm -rf conftest*
ac_cv_prog_hostcxx_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_CXX cannot create executables." 1>&2; exit 1; }
fi
rm -f conftest*
CC=$_SAVE_CC
CFLAGS=$_SAVE_CFLAGS
LDFLAGS=$_SAVE_LDFLAGS
if test -z "$CC"; then
for ac_prog in "${target_alias}-gcc" "${target}-gcc"
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
1999-11-16 15:15:24 +03:00
echo "configure:973: checking for $ac_word" >&5
1999-08-29 22:15:50 +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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
1999-03-09 04:45:41 +03:00
1999-08-29 22:15:50 +04:00
fi
unset ac_cv_prog_CC
# Extract the first word of "gcc", so it can be a program name with args.
1999-01-21 02:37:59 +03:00
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:1008: checking for $ac_word" >&5
1999-01-21 02:37:59 +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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1038: checking for $ac_word" >&5
1999-01-21 02:37:59 +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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1999-01-21 02:37:59 +03:00
ac_prog_rejected=no
1999-09-15 05:50:05 +04:00
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-01-21 02:37:59 +03:00
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
1999-09-15 05:50:05 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1089: checking for $ac_word" >&5
1999-09-15 05:50:05 +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="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
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1999-01-21 02:37:59 +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'
1999-09-15 05:50:05 +04:00
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-01-21 02:37:59 +03:00
cross_compiling=$ac_cv_prog_cc_cross
1999-09-15 05:50:05 +04:00
cat > conftest.$ac_ext << EOF
1999-11-16 15:15:24 +03:00
#line 1132 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-09-15 05:50:05 +04:00
1999-01-21 02:37:59 +03:00
main(){return(0);}
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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*
1999-09-15 05:50:05 +04: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
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1999-01-21 02:37:59 +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
1999-11-16 15:15:24 +03:00
echo "configure:1168: checking whether we are using GNU C" >&5
1999-01-21 02:37:59 +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
1999-11-16 15:15:24 +03:00
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1999-01-21 02:37:59 +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
1999-09-15 05:50:05 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1196: checking whether ${CC-cc} accepts -g" >&5
1999-01-21 02:37:59 +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
1999-09-15 05:50:05 +04:00
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
1999-01-21 02:37:59 +03:00
CFLAGS="-g -O2"
else
1999-09-15 05:50:05 +04:00
CFLAGS="-g"
1999-02-03 02:06:56 +03:00
fi
1999-02-03 02:15:37 +03:00
else
1999-09-15 05:50:05 +04:00
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
1999-01-21 02:37:59 +03:00
fi
1999-08-29 22:15:50 +04:00
if test -z "$CXX"; then
for ac_prog in "${target_alias}-g++" "${target}-g++"
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
1999-11-16 15:15:24 +03:00
echo "configure:1233: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
fi
unset ac_cv_prog_CXX
1999-09-15 05:50:05 +04:00
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1999-01-21 02:37:59 +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
1999-11-16 15:15:24 +03:00
echo "configure:1270: checking for $ac_word" >&5
1999-01-21 02:37:59 +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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1302: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1999-01-21 02:37:59 +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'
1999-09-15 05:50:05 +04:00
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-01-21 02:37:59 +03:00
cross_compiling=$ac_cv_prog_cxx_cross
1999-09-15 05:50:05 +04:00
cat > conftest.$ac_ext << EOF
1999-11-16 15:15:24 +03:00
#line 1313 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-09-15 05:50:05 +04:00
int main(){return(0);}
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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'
1999-09-15 05:50:05 +04:00
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1344: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1999-01-21 02:37:59 +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
1999-11-16 15:15:24 +03:00
echo "configure:1349: checking whether we are using GNU C++" >&5
1999-01-21 02:37:59 +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
1999-11-16 15:15:24 +03:00
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1999-01-21 02:37:59 +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
1999-09-15 05:50:05 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1377: checking whether ${CXX-g++} accepts -g" >&5
1999-01-21 02:37:59 +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
1999-09-15 05:50:05 +04:00
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
1999-01-21 02:37:59 +03:00
CXXFLAGS="-g -O2"
else
1999-09-15 05:50:05 +04:00
CXXFLAGS="-g"
1999-02-03 02:06:56 +03:00
fi
1999-02-03 02:15:37 +03:00
else
1999-09-15 05:50:05 +04:00
if test "$GXX" = yes; then
CXXFLAGS="-O2"
else
CXXFLAGS=
fi
1999-01-21 02:37:59 +03:00
fi
1999-08-29 22:15:50 +04:00
if test -z "$RANLIB"; then
for ac_prog in "${target_alias}-ranlib" "${target}-ranlib"
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
1999-11-16 15:15:24 +03:00
echo "configure:1414: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-08-29 22:15:50 +04:00
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1999-01-21 02:37:59 +03:00
else
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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"
1999-01-21 02:37:59 +03:00
fi
fi
1999-08-29 22:15:50 +04:00
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
echo "$ac_t""$RANLIB" 1>&6
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
fi
1999-08-29 22:15:50 +04:00
test -n "$RANLIB" && break
done
test -n "$RANLIB" || RANLIB=":"
fi
if test -z "$AR"; then
for ac_prog in "${target_alias}-ar" "${target}-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
1999-11-16 15:15:24 +03:00
echo "configure:1451: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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"
1999-01-21 02:37:59 +03:00
fi
fi
1999-08-29 22:15:50 +04:00
AR="$ac_cv_prog_AR"
if test -n "$AR"; then
echo "$ac_t""$AR" 1>&6
1999-01-21 02:37:59 +03:00
else
1999-08-29 22:15:50 +04:00
echo "$ac_t""no" 1>&6
fi
test -n "$AR" && break
done
test -n "$AR" || AR=":"
fi
if test -z "$AS"; then
for ac_prog in "${target_alias}-as" "${target}-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
1999-11-16 15:15:24 +03:00
echo "configure:1488: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
fi
if test -z "$LD"; then
for ac_prog in "${target_alias}-ld" "${target}-ld"
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
1999-11-16 15:15:24 +03:00
echo "configure:1525: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
fi
if test -z "$DLLTOOL"; then
for ac_prog in "${target_alias}-dlltool" "${target}-dlltool"
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
1999-11-16 15:15:24 +03:00
echo "configure:1562: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$DLLTOOL"; then
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_DLLTOOL="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
DLLTOOL="$ac_cv_prog_DLLTOOL"
if test -n "$DLLTOOL"; then
echo "$ac_t""$DLLTOOL" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$DLLTOOL" && break
done
test -n "$DLLTOOL" || DLLTOOL=":"
fi
if test -z "$WINDRES"; then
for ac_prog in "${target_alias}-windres" "${target}-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
1999-11-16 15:15:24 +03:00
echo "configure:1599: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
fi
1999-09-04 02:15:44 +04:00
cat >> confdefs.h <<\EOF
#define CROSS_COMPILE 1
EOF
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1638: checking for $ac_word" >&5
1999-08-29 22:15:50 +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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1668: checking for $ac_word" >&5
1999-08-29 22:15:50 +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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1999-08-29 22:15:50 +04:00
ac_prog_rejected=no
1999-09-15 05:50:05 +04:00
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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
1999-09-15 05:50:05 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1719: checking for $ac_word" >&5
1999-09-15 05:50:05 +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="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
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1999-08-29 22:15:50 +04: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'
1999-09-15 05:50:05 +04:00
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-08-29 22:15:50 +04:00
cross_compiling=$ac_cv_prog_cc_cross
1999-09-15 05:50:05 +04:00
cat > conftest.$ac_ext << EOF
1999-11-16 15:15:24 +03:00
#line 1762 "configure"
1999-08-29 22:15:50 +04:00
#include "confdefs.h"
1999-09-15 05:50:05 +04:00
1999-08-29 22:15:50 +04:00
main(){return(0);}
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-29 22:15:50 +04: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*
1999-09-15 05:50:05 +04: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
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1999-08-29 22:15:50 +04: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
1999-11-16 15:15:24 +03:00
echo "configure:1798: checking whether we are using GNU C" >&5
1999-08-29 22:15:50 +04: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
1999-11-16 15:15:24 +03:00
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1826: checking whether ${CC-cc} accepts -g" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
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
1999-08-29 22:15:50 +04:00
CFLAGS="-g -O2"
else
1999-09-15 05:50:05 +04:00
CFLAGS="-g"
1999-08-29 22:15:50 +04:00
fi
else
1999-09-15 05:50:05 +04:00
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
1999-08-29 22:15:50 +04:00
fi
1999-09-15 05:50:05 +04:00
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1999-08-29 22:15:50 +04: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
1999-11-16 15:15:24 +03:00
echo "configure:1862: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1894: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1999-08-29 22:15:50 +04: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'
1999-09-15 05:50:05 +04:00
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-08-29 22:15:50 +04:00
cross_compiling=$ac_cv_prog_cxx_cross
1999-09-15 05:50:05 +04:00
cat > conftest.$ac_ext << EOF
1999-11-16 15:15:24 +03:00
#line 1905 "configure"
1999-08-29 22:15:50 +04:00
#include "confdefs.h"
1999-09-15 05:50:05 +04:00
int main(){return(0);}
1999-08-29 22:15:50 +04:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-29 22:15:50 +04: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'
1999-09-15 05:50:05 +04:00
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1936: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1999-08-29 22:15:50 +04: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
1999-11-16 15:15:24 +03:00
echo "configure:1941: checking whether we are using GNU C++" >&5
1999-08-29 22:15:50 +04: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
1999-11-16 15:15:24 +03:00
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:1969: checking whether ${CXX-g++} accepts -g" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
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
1999-08-29 22:15:50 +04:00
CXXFLAGS="-g -O2"
else
1999-09-15 05:50:05 +04:00
CXXFLAGS="-g"
1999-08-29 22:15:50 +04:00
fi
else
1999-09-15 05:50:05 +04:00
if test "$GXX" = yes; then
CXXFLAGS="-O2"
else
CXXFLAGS=
fi
1999-08-29 22:15:50 +04:00
fi
# 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
1999-11-16 15:15:24 +03:00
echo "configure:2003: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:2035: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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
1999-11-16 15:15:24 +03:00
echo "configure:2076: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
for ac_prog in ld
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
1999-11-16 15:15:24 +03:00
echo "configure:2117: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
for ac_prog in dlltool
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
1999-11-16 15:15:24 +03:00
echo "configure:2158: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$DLLTOOL" in
/*)
ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_DLLTOOL="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
DLLTOOL="$ac_cv_path_DLLTOOL"
if test -n "$DLLTOOL"; then
echo "$ac_t""$DLLTOOL" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$DLLTOOL" && break
done
test -n "$DLLTOOL" || DLLTOOL=":"
if test -z "$HOST_CC"; then
HOST_CC="$CC"
fi
if test -z "$HOST_CFLAGS"; then
HOST_CFLAGS="$CFLAGS"
fi
if test -z "$HOST_CXX"; then
HOST_CXX="$CXX"
fi
if test -z "$HOST_CXXFLAGS"; then
HOST_CXXFLAGS="$CXXFLAGS"
fi
if test -z "$HOST_LDFLAGS"; then
HOST_LDFLAGS="$LDFLAGS"
fi
if test -z "$HOST_RANLIB"; then
HOST_RANLIB="$RANLIB"
fi
1999-09-04 02:15:44 +04:00
if test -z "$HOST_AR"; then
HOST_AR="$AR"
fi
1999-08-29 22:15:50 +04:00
fi
if test "x$CC" != xcc; then
echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2219: checking whether $CC and cc understand -c and -o together" >&5
1999-08-29 22:15:50 +04:00
else
echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2222: checking whether cc understands -c and -o together" >&5
1999-08-29 22:15:50 +04:00
fi
set dummy $CC; ac_cc="`echo $2 |
sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo 'foo(){}' > conftest.c
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1999-11-16 15:15:24 +03:00
if { (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
test -f conftest.o && { (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1999-08-29 22:15:50 +04:00
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
if test "x$CC" != xcc; then
# Test first that cc exists at all.
1999-11-16 15:15:24 +03:00
if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1999-08-29 22:15:50 +04:00
ac_try='cc -c conftest.c -o conftest.o 1>&5'
1999-11-16 15:15:24 +03:00
if { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
test -f conftest.o && { (eval echo configure:2243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1999-08-29 22:15:50 +04:00
then
# cc works too.
:
else
# cc exists but doesn't like -o.
eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
fi
fi
else
eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
cat >> confdefs.h <<\EOF
#define NO_MINUS_C_MINUS_O 1
EOF
fi
if grep "NO_MINUS_C_MINUS_O 1" ./confdefs.h >/dev/null; then
USING_HCC=1
_OLDCC=$CC
_OLDCXX=$CXX
CC="${srcdir}/build/hcc '$CC'"
CXX="${srcdir}/build/hcpp '$CXX'"
fi
GNU_CC=
GNU_CXX=
if test "$GCC" = "yes"; then
GNU_CC=1
fi
if test "$GXX" = "yes"; then
GNU_CXX=1
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2290: checking how to run the C preprocessor" >&5
1999-08-29 22:15:50 +04: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
1999-01-21 02:37:59 +03:00
# 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
1999-11-16 15:15:24 +03:00
#line 2305 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-01-21 02:37:59 +03:00
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
1999-11-16 15:15:24 +03:00
#line 2322 "configure"
1999-09-15 05:50:05 +04:00
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04: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
1999-11-16 15:15:24 +03:00
#line 2339 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-01-21 02:37:59 +03:00
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
1999-09-15 05:50:05 +04:00
rm -f conftest*
fi
1999-01-21 02:37:59 +03:00
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
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2370: checking how to run the C++ preprocessor" >&5
1999-01-21 02:37:59 +03:00
if test -z "$CXXCPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
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'
1999-09-15 05:50:05 +04:00
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-01-21 02:37:59 +03:00
cross_compiling=$ac_cv_prog_cxx_cross
CXXCPP="${CXX-g++} -E"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 2383 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
#include <stdlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-01-21 02:37:59 +03:00
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*
CXXCPP=/lib/cpp
fi
rm -f conftest*
ac_cv_prog_CXXCPP="$CXXCPP"
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'
1999-09-15 05:50:05 +04:00
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999-01-21 02:37:59 +03:00
cross_compiling=$ac_cv_prog_cc_cross
fi
fi
CXXCPP="$ac_cv_prog_CXXCPP"
echo "$ac_t""$CXXCPP" 1>&6
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
1999-09-15 05:50:05 +04:00
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999-01-21 02:37:59 +03:00
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2424: checking for a BSD compatible install" >&5
1999-01-21 02:37:59 +03:00
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1999-01-21 02:37:59 +03:00
for ac_dir in $PATH; do
# Account for people who put trailing slashes in PATH elements.
case "$ac_dir/" in
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
1999-09-15 05:50:05 +04:00
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall scoinst install; do
1999-01-21 02:37:59 +03:00
if test -f $ac_dir/$ac_prog; then
if test $ac_prog = install &&
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
:
else
ac_cv_path_install="$ac_dir/$ac_prog -c"
break 2
fi
fi
done
;;
esac
done
IFS="$ac_save_IFS"
fi
if test "${ac_cv_path_install+set}" = set; then
INSTALL="$ac_cv_path_install"
else
# As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the path is relative.
INSTALL="$ac_install_sh"
fi
fi
1999-08-29 22:15:50 +04:00
echo "$ac_t""$INSTALL" 1>&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1999-09-15 05:50:05 +04:00
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1999-08-29 22:15:50 +04:00
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2477: checking whether ln -s works" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
rm -f conftestdata
ac_cv_prog_LN_S="ln -s"
else
ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-09-15 05:50:05 +04:00
for ac_prog in gawk mawk nawk awk
1999-08-29 22:15:50 +04: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
1999-11-16 15:15:24 +03:00
echo "configure:2502: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$AWK"; then
ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_AWK="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
echo "$ac_t""$AWK" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$AWK" && break
done
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
1999-11-16 15:15:24 +03:00
echo "configure:2536: checking for $ac_word" >&5
1999-08-29 22:15:50 +04: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.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
for ac_prog in xemacs lemacs emacs
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
1999-11-16 15:15:24 +03:00
echo "configure:2577: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$EMACS" in
/*)
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_EMACS="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
EMACS="$ac_cv_path_EMACS"
if test -n "$EMACS"; then
echo "$ac_t""$EMACS" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-01-21 02:37:59 +03:00
1999-08-29 22:15:50 +04:00
test -n "$EMACS" && break
done
test -n "$EMACS" || EMACS=":"
1999-01-21 02:37:59 +03:00
1999-08-29 22:15:50 +04:00
for ac_prog in perl5 perl
1999-01-21 02:37:59 +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
1999-11-16 15:15:24 +03:00
echo "configure:2618: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-08-29 22:15:50 +04:00
case "$PERL" in
/*)
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-01-21 02:37:59 +03:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
1999-08-29 22:15:50 +04:00
ac_cv_path_PERL="$ac_dir/$ac_word"
1999-01-21 02:37:59 +03:00
break
fi
done
IFS="$ac_save_ifs"
1999-08-29 22:15:50 +04:00
;;
esac
1999-01-21 02:37:59 +03:00
fi
1999-08-29 22:15:50 +04:00
PERL="$ac_cv_path_PERL"
if test -n "$PERL"; then
echo "$ac_t""$PERL" 1>&6
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
fi
1999-08-29 22:15:50 +04:00
test -n "$PERL" && break
1999-01-21 02:37:59 +03:00
done
1999-08-29 22:15:50 +04:00
test -n "$PERL" || PERL=":"
1999-01-21 02:37:59 +03:00
1999-08-29 22:15:50 +04:00
# Extract the first word of "whoami", so it can be a program name with args.
set dummy whoami; ac_word=$2
1999-01-21 02:37:59 +03:00
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2657: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-08-29 22:15:50 +04:00
case "$WHOAMI" in
/*)
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
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=":"
;;
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
# Extract the first word of "unzip", so it can be a program name with args.
set dummy unzip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2693: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
1999-01-21 02:37:59 +03:00
else
1999-08-29 22:15:50 +04:00
case "$UNZIP" in
/*)
ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-01-21 02:37:59 +03:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
1999-08-29 22:15:50 +04:00
ac_cv_path_UNZIP="$ac_dir/$ac_word"
1999-01-21 02:37:59 +03:00
break
fi
done
IFS="$ac_save_ifs"
1999-08-29 22:15:50 +04:00
test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP=":"
;;
esac
1999-01-21 02:37:59 +03:00
fi
1999-08-29 22:15:50 +04:00
UNZIP="$ac_cv_path_UNZIP"
if test -n "$UNZIP"; then
echo "$ac_t""$UNZIP" 1>&6
else
echo "$ac_t""no" 1>&6
1999-01-21 02:37:59 +03:00
fi
1999-08-29 22:15:50 +04:00
# Extract the first word of "zip", so it can be a program name with args.
set dummy zip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2729: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$ZIP" in
/*)
ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_ZIP="$ZIP" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_ZIP="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP=":"
;;
esac
fi
ZIP="$ac_cv_path_ZIP"
if test -n "$ZIP"; then
echo "$ac_t""$ZIP" 1>&6
else
echo "$ac_t""no" 1>&6
fi
# Extract the first word of "makedepend", so it can be a program name with args.
set dummy makedepend; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2765: checking for $ac_word" >&5
1999-08-29 22:15:50 +04:00
if eval "test \"`echo '$''{'ac_cv_path_SYSTEM_MAKEDEPEND'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$SYSTEM_MAKEDEPEND" in
/*)
ac_cv_path_SYSTEM_MAKEDEPEND="$SYSTEM_MAKEDEPEND" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_SYSTEM_MAKEDEPEND="$SYSTEM_MAKEDEPEND" # Let the user override the test with a dos path.
;;
1999-08-29 22:15:50 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-08-29 22:15:50 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_SYSTEM_MAKEDEPEND="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
SYSTEM_MAKEDEPEND="$ac_cv_path_SYSTEM_MAKEDEPEND"
if test -n "$SYSTEM_MAKEDEPEND"; then
echo "$ac_t""$SYSTEM_MAKEDEPEND" 1>&6
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
fi
1999-04-16 08:50:17 +04:00
for ac_prog in gmake make
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
1999-11-16 15:15:24 +03:00
echo "configure:2803: checking for $ac_word" >&5
1999-04-16 08:50:17 +04:00
if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$MAKE" in
/*)
ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
;;
1999-04-16 08:50:17 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-04-16 08:50:17 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_MAKE="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
MAKE="$ac_cv_path_MAKE"
if test -n "$MAKE"; then
echo "$ac_t""$MAKE" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$MAKE" && break
done
test -n "$MAKE" || MAKE=":"
_make_try=`$MAKE --version 2>/dev/null`
if test ! "$_make_try"
then
echo
echo "*** $MAKE is not GNU Make. You will not be able to build Mozilla without GNU Make."
echo
exit 1
fi
_make_vers=`$MAKE --version | grep Make | $AWK '{ print \$4 }' | sed 's/,//'`
if test "$_make_vers" = "3.77"
then
echo
echo "*** Found GNU Make 3.77. This version is known to have problems with the"
echo "*** wildcard function in certain circumstances. You may experience infinite"
echo "*** looping while building Mozilla with 3.77. If this happens, you can"
echo "*** either downgrade to 3.76.1 or try configuring with --disable-md."
echo
fi
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2859: checking whether ${MAKE-make} sets \${MAKE}" >&5
1999-04-16 08:50:17 +04:00
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftestmake <<\EOF
all:
@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
eval ac_cv_prog_make_${ac_make}_set=yes
else
eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
echo "$ac_t""yes" 1>&6
SET_MAKE=
else
echo "$ac_t""no" 1>&6
SET_MAKE="MAKE=${MAKE-make}"
fi
1999-01-21 02:37:59 +03:00
# If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:2891: checking for X" >&5
1999-01-21 02:37:59 +03:00
# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
withval="$with_x"
:
fi
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
# The user explicitly disabled X.
have_x=disabled
else
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
# Both variables are already set.
have_x=yes
else
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# One or both of the vars are not set, and there is no cached value.
ac_x_includes=NO ac_x_libraries=NO
rm -fr conftestdir
if mkdir conftestdir; then
cd conftestdir
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
cat > Imakefile <<'EOF'
acfindx:
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
for ac_extension in a so sl; do
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
test -f $ac_im_libdir/libX11.$ac_extension; then
ac_im_usrlibdir=$ac_im_libdir; break
fi
done
# Screen out bogus values from the imake configuration. They are
# bogus both because they are the default anyway, and because
# using them would break gcc on systems where it needs fixed includes.
case "$ac_im_incroot" in
/usr/include) ;;
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
esac
case "$ac_im_usrlibdir" in
/usr/lib | /lib) ;;
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
esac
fi
cd ..
rm -fr conftestdir
fi
if test "$ac_x_includes" = NO; then
# Guess where to find include files, by looking for this one X11 .h file.
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
# First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 2953 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:2958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-01-21 02:37:59 +03:00
if test -z "$ac_err"; then
rm -rf conftest*
# We can compile using X headers with no special include directory.
ac_x_includes=
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
# Look for the header file in a standard set of common directories.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in \
/usr/X11/include \
/usr/X11R6/include \
/usr/X11R5/include \
/usr/X11R4/include \
\
/usr/include/X11 \
/usr/include/X11R6 \
/usr/include/X11R5 \
/usr/include/X11R4 \
\
/usr/local/X11/include \
/usr/local/X11R6/include \
/usr/local/X11R5/include \
/usr/local/X11R4/include \
\
/usr/local/include/X11 \
/usr/local/include/X11R6 \
/usr/local/include/X11R5 \
/usr/local/include/X11R4 \
\
/usr/X386/include \
/usr/x386/include \
/usr/XFree86/include/X11 \
\
/usr/include \
/usr/local/include \
/usr/unsupported/include \
/usr/athena/include \
/usr/local/x11r5/include \
/usr/lpp/Xamples/include \
\
/usr/openwin/include \
/usr/openwin/share/include \
; \
do
if test -r "$ac_dir/$x_direct_test_include"; then
ac_x_includes=$ac_dir
break
fi
done
fi
rm -f conftest*
fi # $ac_x_includes = NO
if test "$ac_x_libraries" = NO; then
# Check for the libraries.
test -z "$x_direct_test_library" && x_direct_test_library=Xt
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3027 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
int main() {
${x_direct_test_function}()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
/usr/X11/lib \
/usr/X11R6/lib \
/usr/X11R5/lib \
/usr/X11R4/lib \
\
/usr/lib/X11 \
/usr/lib/X11R6 \
/usr/lib/X11R5 \
/usr/lib/X11R4 \
\
/usr/local/X11/lib \
/usr/local/X11R6/lib \
/usr/local/X11R5/lib \
/usr/local/X11R4/lib \
\
/usr/local/lib/X11 \
/usr/local/lib/X11R6 \
/usr/local/lib/X11R5 \
/usr/local/lib/X11R4 \
\
/usr/X386/lib \
/usr/x386/lib \
/usr/XFree86/lib/X11 \
\
/usr/lib \
/usr/local/lib \
/usr/unsupported/lib \
/usr/athena/lib \
/usr/local/x11r5/lib \
/usr/lpp/Xamples/lib \
/lib/usr/lib/X11 \
\
/usr/openwin/lib \
/usr/openwin/share/lib \
; \
do
for ac_extension in a so sl; do
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ac_x_libraries=$ac_dir
break 2
fi
done
done
fi
rm -f conftest*
fi # $ac_x_libraries = NO
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
# Didn't find X anywhere. Cache the known absence of X.
ac_cv_have_x="have_x=no"
else
# Record where we found X for the cache.
ac_cv_have_x="have_x=yes \
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi
fi
eval "$ac_cv_have_x"
fi # $with_x != no
if test "$have_x" != yes; then
echo "$ac_t""$have_x" 1>&6
no_x=yes
else
# If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
# Update the cache value to reflect the command line values.
ac_cv_have_x="have_x=yes \
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi
if test "$no_x" = yes; then
# Not all programs may use this symbol, but it does not hurt to define it.
cat >> confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1
EOF
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
if test -n "$x_includes"; then
X_CFLAGS="$X_CFLAGS -I$x_includes"
fi
# It would also be nice to do this for all -L options, not just this one.
if test -n "$x_libraries"; then
X_LIBS="$X_LIBS -L$x_libraries"
# For Solaris; some versions of Sun CC require a space after -R and
# others require no space. Words are not sufficient . . . .
case "`(uname -sr) 2>/dev/null`" in
"SunOS 5"*)
echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3140: checking whether -R must be followed by a space" >&5
1999-01-21 02:37:59 +03:00
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3143 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
int main() {
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
ac_R_nospace=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_R_nospace=no
fi
rm -f conftest*
if test $ac_R_nospace = yes; then
echo "$ac_t""no" 1>&6
X_LIBS="$X_LIBS -R$x_libraries"
else
LIBS="$ac_xsave_LIBS -R $x_libraries"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3166 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
int main() {
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
ac_R_space=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_R_space=no
fi
rm -f conftest*
if test $ac_R_space = yes; then
echo "$ac_t""yes" 1>&6
X_LIBS="$X_LIBS -R $x_libraries"
else
echo "$ac_t""neither works" 1>&6
fi
fi
LIBS="$ac_xsave_LIBS"
esac
fi
# Check for system-dependent libraries X programs must link with.
# Do this before checking for the system-independent R6 libraries
# (-lICE), since we may need -lsocket or whatever for X linking.
if test "$ISC" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
else
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
# libraries were built with DECnet support. And karl@cs.umb.edu says
# the Alpha needs dnet_stub (dnet does not exist).
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3205: checking for dnet_ntoa in -ldnet" >&5
1999-01-21 02:37:59 +03:00
ac_lib_var=`echo dnet'_'dnet_ntoa | 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="-ldnet $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3213 "configure"
1999-01-21 02:37:59 +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 dnet_ntoa();
int main() {
dnet_ntoa()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
else
echo "$ac_t""no" 1>&6
fi
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3246: checking for dnet_ntoa in -ldnet_stub" >&5
1999-01-21 02:37:59 +03:00
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | 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="-ldnet_stub $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3254 "configure"
1999-01-21 02:37:59 +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 dnet_ntoa();
int main() {
dnet_ntoa()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
else
echo "$ac_t""no" 1>&6
fi
fi
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
# to get the SysV transport functions.
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
# needs -lnsl.
# The nsl library prevents programs from opening the X display
# on Irix 5.2, according to dickey@clark.net.
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3294: checking for gethostbyname" >&5
1999-01-21 02:37:59 +03:00
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3299 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostbyname(); 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 gethostbyname();
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_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
gethostbyname();
#endif
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
eval "ac_cv_func_gethostbyname=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_gethostbyname=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
fi
if test $ac_cv_func_gethostbyname = no; then
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3343: checking for gethostbyname in -lnsl" >&5
1999-01-21 02:37:59 +03:00
ac_lib_var=`echo nsl'_'gethostbyname | 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="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3351 "configure"
1999-01-21 02:37:59 +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 gethostbyname();
int main() {
gethostbyname()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
else
echo "$ac_t""no" 1>&6
fi
fi
# lieder@skyler.mavd.honeywell.com says without -lsocket,
# socket/setsockopt and other routines are undefined under SCO ODT
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
# on later versions), says simon@lia.di.epfl.ch: it contains
# gethostby* variants that don't use the nameserver (or something).
# -lsocket must be given before -lnsl if both are needed.
# We assume that if connect needs -lnsl, so does gethostbyname.
echo $ac_n "checking for connect""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3392: checking for connect" >&5
1999-01-21 02:37:59 +03:00
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3397 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char connect(); 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 connect();
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_connect) || defined (__stub___connect)
choke me
#else
connect();
#endif
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
eval "ac_cv_func_connect=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_connect=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
fi
if test $ac_cv_func_connect = no; then
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3441: checking for connect in -lsocket" >&5
1999-01-21 02:37:59 +03:00
ac_lib_var=`echo socket'_'connect | 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="-lsocket $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3449 "configure"
1999-01-21 02:37:59 +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 connect();
int main() {
connect()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
else
echo "$ac_t""no" 1>&6
fi
fi
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
echo $ac_n "checking for remove""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3484: checking for remove" >&5
1999-01-21 02:37:59 +03:00
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3489 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char remove(); 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 remove();
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_remove) || defined (__stub___remove)
choke me
#else
remove();
#endif
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
eval "ac_cv_func_remove=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_remove=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
fi
if test $ac_cv_func_remove = no; then
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3533: checking for remove in -lposix" >&5
1999-01-21 02:37:59 +03:00
ac_lib_var=`echo posix'_'remove | 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="-lposix $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3541 "configure"
1999-01-21 02:37:59 +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 remove();
int main() {
remove()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
else
echo "$ac_t""no" 1>&6
fi
fi
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
echo $ac_n "checking for shmat""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3576: checking for shmat" >&5
1999-01-21 02:37:59 +03:00
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3581 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char shmat(); 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 shmat();
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_shmat) || defined (__stub___shmat)
choke me
#else
shmat();
#endif
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
eval "ac_cv_func_shmat=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_shmat=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
echo "$ac_t""yes" 1>&6
:
else
echo "$ac_t""no" 1>&6
fi
if test $ac_cv_func_shmat = no; then
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3625: checking for shmat in -lipc" >&5
1999-01-21 02:37:59 +03:00
ac_lib_var=`echo ipc'_'shmat | 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="-lipc $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3633 "configure"
1999-01-21 02:37:59 +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 shmat();
int main() {
shmat()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
else
echo "$ac_t""no" 1>&6
fi
fi
fi
# Check for libraries that X11R6 Xt/Xaw programs need.
ac_save_LDFLAGS="$LDFLAGS"
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
# check for ICE first), but we must link in the order -lSM -lICE or
# we get undefined symbols. So assume we have SM if we have ICE.
# These have to be linked with before -lX11, unlike the other
# libraries we check for below, so use a different variable.
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3677: checking for IceConnectionNumber in -lICE" >&5
1999-01-21 02:37:59 +03:00
ac_lib_var=`echo ICE'_'IceConnectionNumber | 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"
1999-09-15 05:50:05 +04:00
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1999-01-21 02:37:59 +03:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3685 "configure"
1999-01-21 02:37:59 +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 IceConnectionNumber();
int main() {
IceConnectionNumber()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
else
echo "$ac_t""no" 1>&6
fi
LDFLAGS="$ac_save_LDFLAGS"
fi
1999-08-29 22:15:50 +04:00
AR_FLAGS='cr $@'
AR_LIST='$(AR) t'
1999-08-30 03:30:53 +04:00
AR_EXTRACT='$(AR) x'
AR_DELETE='$(AR) d'
1999-08-05 05:50:51 +04:00
AS='$(CC)'
1999-03-08 18:15:41 +03:00
AS_DASH_C_FLAG='-c'
1999-08-29 22:15:50 +04:00
DLL_SUFFIX=so
OBJ_SUFFIX=o
LIB_SUFFIX=a
TARGET_MD_ARCH=unix
1999-07-07 03:15:03 +04:00
OS_TARGET=`uname -s`
1999-06-22 05:48:29 +04:00
_COMPILER_PREFIX=
1999-01-21 02:37:59 +03:00
1999-03-26 08:44:30 +03:00
if test "$GNU_CC"; then
1999-02-02 20:45:37 +03:00
MKSHLIB='$(CXX) $(DSO_LDOPTS)'
1999-05-06 03:38:41 +04:00
MKCSHLIB='$(CC) $(DSO_LDOPTS)'
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-shared -Wl,-h -Wl,$@'
1999-06-11 14:59:52 +04:00
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC'
1999-03-09 04:45:41 +03:00
1999-04-03 03:29:33 +04:00
# Turn on GNU specific features
# -Wall - turn on all warnings
# -pedantic - make compiler warn about non-ANSI stuff, and
# be a little bit stricter
1999-08-13 05:00:29 +04:00
# Warnings slamm took out for now (these were giving more noise than help):
# -Wbad-function-cast - warns when casting a function to a new return type
# -Wconversion - complained when char's or short's were used a function args
1999-11-10 02:30:43 +03:00
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wall -W -Wno-unused -Wshadow -Wpointer-arith -Wcast-align"
1999-03-26 08:44:30 +03:00
1999-09-04 05:21:27 +04:00
_PEDANTIC=1
1999-09-04 08:15:40 +04:00
_IGNORE_LONG_LONG_WARNINGS=1
1999-09-04 05:21:27 +04:00
1999-09-06 08:30:54 +04:00
_DEFINES_CFLAGS='-include $(DEPTH)/config-defs.h -DMOZILLA_CLIENT'
1999-03-26 08:44:30 +03:00
_USE_CPP_INCLUDE_FLAG=1
else
1999-04-02 06:29:31 +04:00
MKSHLIB='$(LD) $(DSO_LDOPTS)'
1999-05-06 06:21:12 +04:00
MKCSHLIB='$(LD) $(DSO_LDOPTS)'
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-shared -h $@'
1999-06-11 14:59:52 +04:00
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-KPIC'
1999-09-06 08:30:54 +04:00
_DEFINES_CFLAGS='$(ACDEFINES) -DMOZILLA_CLIENT'
1999-03-09 04:45:41 +03:00
fi
1999-03-26 08:44:30 +03:00
if test "$GNU_CXX"; then
1999-04-03 03:29:33 +04:00
# Turn on GNU specific features
1999-08-09 19:00:54 +04:00
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth"
1999-08-10 01:46:26 +04:00
if test ! "$QTDIR"; then
1999-08-09 19:00:54 +04:00
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wshadow"
fi
1999-03-26 08:44:30 +03:00
1999-09-07 02:15:55 +04:00
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/config-defs.h'
1999-03-26 08:44:30 +03:00
_USE_CPP_INCLUDE_FLAG=1
else
1999-09-07 02:15:55 +04:00
_DEFINES_CXXFLAGS='-DMOZILLA_CLIENT $(ACDEFINES)'
1999-01-21 02:37:59 +03:00
fi
1999-04-02 06:29:31 +04:00
MKSHLIB_FORCE_ALL=
MKSHLIB_UNFORCE_ALL=
if test "$GNU_CC"; then
echo $ac_n "checking whether ld has archive extraction flags""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:3783: checking whether ld has archive extraction flags" >&5
1999-04-02 06:29:31 +04:00
if eval "test \"`echo '$''{'ac_cv_mkshlib_force_and_unforce'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
_SAVE_LDFLAGS=$LDFLAGS; _SAVE_LIBS=$LIBS
ac_cv_mkshlib_force_and_unforce="no"
exec 3<&0 <<LOOP_INPUT
force="-Wl,--whole-archive"; unforce="-Wl,--no-whole-archive"
force="-Wl,-z -Wl,allextract"; unforce="-Wl,-z -Wl,defaultextract"
1999-08-17 03:00:26 +04:00
force="-Wl,-all"; unforce="-Wl,-none"
1999-04-02 06:29:31 +04:00
LOOP_INPUT
while read line
do
eval $line
LDFLAGS=$force
LIBS=$unforce
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 3800 "configure"
1999-04-02 06:29:31 +04:00
#include "confdefs.h"
int main() {
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-02 06:29:31 +04:00
rm -rf conftest*
ac_cv_mkshlib_force_and_unforce=$line; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
exec 0<&3 3<&-
LDFLAGS=$_SAVE_LDFLAGS; LIBS=$_SAVE_LIBS
fi
if test "$ac_cv_mkshlib_force_and_unforce" = "no"; then
echo "$ac_t""no" 1>&6
else
echo "$ac_t""yes" 1>&6
eval $ac_cv_mkshlib_force_and_unforce
MKSHLIB_FORCE_ALL=$force
MKSHLIB_UNFORCE_ALL=$unforce
fi
fi
1999-08-29 22:15:50 +04:00
case "$host" in
*-linux*)
HOST_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
;;
1999-09-03 10:15:56 +04:00
*-osf*)
HOST_NSPR_MDCPUCFG='\"md/_osf1.cfg\"'
;;
1999-08-29 22:15:50 +04:00
esac
1999-11-16 10:00:24 +03:00
MOZ_COMPONENT_NSPR_LIBS='-L$(DIST)/bin $(NSPR_LIBS)'
MOZ_COMPONENT_XPCOM_LIBS='-L$(DIST)/bin -lxpcom'
MOZ_COMPONENT_LIBS='$(MOZ_COMPONENT_NSPR_LIBS) $(MOZ_COMPONENT_XPCOM_LIBS)'
1999-01-21 02:37:59 +03:00
case "$target" in
1999-05-07 06:29:41 +04:00
*-aix*)
1999-03-26 08:44:30 +03:00
if test ! "$GNU_CC"; then
1999-11-16 10:00:24 +03:00
DSO_LDOPTS='-ldl -bM:SRE -brtl -bso -bexpall -bnoentry'
1999-06-11 14:59:52 +04:00
DSO_CFLAGS='-qflag=w:w'
DSO_PIC_CFLAGS='-DPIC'
1999-02-03 07:30:33 +03:00
fi
1999-11-16 10:00:24 +03:00
MKSHLIB='$(AIX_SHLIB_BIN) -p1 -brtl -bso'
MKCSHLIB='$(AIX_SHLIB_BIN) -p1 -brtl -bso'
1999-11-12 07:00:22 +03:00
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
EOF
1999-02-03 07:30:33 +03:00
;;
1999-01-21 02:37:59 +03:00
1999-06-15 07:41:07 +04:00
*-beos*)
MKSHLIB='$(CXX) $(DSO_LDOPTS)'
DSO_LDOPTS='-nostart -Xlinker --ignore-undefined'
1999-07-20 01:30:10 +04:00
TK_LIBS='-lbe -lroot'
1999-06-15 07:41:07 +04:00
;;
1999-02-10 05:15:36 +03:00
*-bsdi*)
1999-09-04 05:21:27 +04:00
_PEDANTIC=
1999-09-04 08:15:40 +04:00
_IGNORE_LONG_LONG_WARNINGS=
1999-02-16 21:00:39 +03:00
case `uname -r` in
4.*) ;;
*)
DSO_CFLAGS=''
DSO_LDOPTS='-r'
1999-04-08 01:59:37 +04:00
_WARNINGS_CFLAGS="-Wall"
_WARNINGS_CXXFLAGS="-Wall"
1999-07-15 03:01:37 +04:00
# The test above doesn't work properly, at least on 3.1.
MKSHLIB_FORCE_ALL=''
MKSHLIB_UNFORCE_ALL=''
1999-02-16 21:00:39 +03:00
;;
esac
1999-02-10 05:15:36 +03:00
;;
1999-01-21 02:37:59 +03:00
*-freebsd*)
1999-04-02 06:29:31 +04:00
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` != "elf"; then
1999-01-21 02:37:59 +03:00
DLL_SUFFIX="so.1.0"
1999-01-27 08:15:34 +03:00
DSO_LDOPTS="-shared"
fi
1999-03-26 08:44:30 +03:00
if test ! "$GNU_CC"; then
1999-01-27 08:15:34 +03:00
DSO_LDOPTS="-Bshareable $DSO_LDOPTS"
1999-05-07 06:29:41 +04:00
fi
1999-06-09 04:29:53 +04:00
# Hack for FreeBSD 2.2
if test -z "$MKSHLIB_FORCE_ALL"; then
MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive'
MKSHLIB_UNFORCE_ALL=''
fi
1999-05-07 06:29:41 +04:00
;;
*-hpux*)
DLL_SUFFIX="sl"
1999-08-27 04:15:48 +04:00
if test ! "$GNU_CC"; then
1999-11-11 05:15:16 +03:00
DSO_LDOPTS='-b -Wl,+s -L$(DIST)/bin -Wl,-Bsymbolic'
1999-06-11 14:59:52 +04:00
DSO_CFLAGS=""
1999-08-27 04:15:48 +04:00
DSO_PIC_CFLAGS="+Z"
1999-09-14 08:15:54 +04:00
MKSHLIB='$(CXX) $(DSO_LDOPTS)'
MKCSHLIB='$(CC) $(DSO_LDOPTS)'
1999-09-17 05:00:37 +04:00
MOZ_POST_PROGRAM_COMMAND='chatr +s enable'
1999-09-08 23:01:05 +04:00
else
DSO_LDOPTS='-b -E -L$(DIST)/bin -L$(DIST)/lib'
MKSHLIB='$(LD) $(DSO_LDOPTS)'
MKCSHLIB='$(LD) $(DSO_LDOPTS)'
1999-05-07 06:29:41 +04:00
fi
1999-08-14 04:16:12 +04:00
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
EOF
1999-05-07 06:29:41 +04:00
;;
1999-05-21 14:14:45 +04:00
*-irix5*)
DSO_LDOPTS='-elf -shared'
1999-07-23 05:30:08 +04:00
if test "$GNU_CC"; then
MKSHLIB_FORCE_ALL='-Wl,-all'
MKSHLIB_UNFORCE_ALL='-Wl,-none'
else
MKSHLIB_FORCE_ALL='-all'
MKSHLIB_UNFORCE_ALL='-none'
fi
1999-05-21 14:14:45 +04:00
;;
*-irix6*)
1999-09-29 01:46:31 +04:00
cat >> confdefs.h <<\EOF
1999-05-07 06:29:41 +04:00
#define IRIX6_3 1
EOF
DSO_LDOPTS='-elf -shared'
MKSHLIB='$(CCC) $(DSO_LDOPTS)'
MKCSHLIB='$(CC) $(DSO_LDOPTS)'
if test "$GNU_CC"; then
1999-06-09 12:29:52 +04:00
MKSHLIB_FORCE_ALL='-Wl,-all'
MKSHLIB_UNFORCE_ALL='-Wl,-none'
1999-05-07 06:29:41 +04:00
_WARNINGS_CFLAGS="-Wall"
_WARNINGS_CXXFLAGS="-Wall"
else
1999-06-09 12:29:52 +04:00
MKSHLIB_FORCE_ALL='-all'
MKSHLIB_UNFORCE_ALL='-none'
1999-05-07 06:29:41 +04:00
CFLAGS="$CFLAGS -woff 3262"
CXXFLAGS="$CXXFLAGS -woff 3262"
1999-09-29 01:46:31 +04:00
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
EOF
1999-05-07 06:29:41 +04:00
fi
;;
1999-08-29 22:15:50 +04:00
*-*linux*)
1999-09-12 18:31:04 +04:00
cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
1999-09-16 19:00:42 +04:00
EOF
cat >> confdefs.h <<\EOF
#define _SVID_SOURCE 1
1999-09-12 18:31:04 +04:00
EOF
1999-08-29 22:15:50 +04:00
TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
case "${host_cpu}" in
alpha*)
CFLAGS="$CFLAGS -mieee"
CXXFLAGS="$CXXFLAGS -mieee"
;;
i*86*)
cat >> confdefs.h <<\EOF
#define MOZ_LEAKY 1
EOF
;;
1999-08-29 22:15:50 +04:00
esac
1999-05-07 06:29:41 +04:00
;;
1999-01-21 02:37:59 +03:00
1999-09-03 04:01:25 +04:00
*-mingw*)
cat >> confdefs.h <<\EOF
#define _WINDOWS 1
EOF
TARGET_MD_ARCH=win32
if test -z "$GNU_CC"; then
OBJ_SUFFIX=obj
LIB_SUFFIX=lib
DLL_SUFFIX=dll
fi
MKSHLIB='$(DLLTOOL) --as=$(AS) -k --dllname $(LIBRARY_NAME).dll --output-lib $@'
MKCSHLIB='$(DLLTOOL) --as=$(AS) -k --dllname $(LIBRARY_NAME).dll --output-lib $@'
MKSHLIB_FORCE_ALL=
MKSHLIB_UNFORCE_ALL=
DSO_LDOPTS=
DSO_CFLAGS=
DSO_PIC_CFLAGS=
OS_TARGET=WINNT
TARGET_NSPR_MDCPUCFG='\"md/_win95.cfg\"'
case "$target" in
i?86-*)
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
;;
1999-01-21 02:37:59 +03:00
*-netbsd*)
1999-02-01 09:30:39 +03:00
DLL_SUFFIX="so.1.0"
1999-06-11 14:59:52 +04:00
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC'
1999-04-06 03:14:35 +04:00
CFLAGS="$CFLAGS -Dunix"
CXXFLAGS="$CXXFLAGS -Dunix"
1999-06-09 04:29:53 +04:00
# At least for 1.3 and up, ld supports this, despite the test failing above.
1999-06-09 12:29:52 +04:00
MKSHLIB_FORCE_ALL='--whole-archive'
MKSHLIB_UNFORCE_ALL='--no-whole-archive'
1999-05-06 10:02:45 +04:00
case `uname -m` in
*86)
MKSHLIB='$(LD) $(DSO_LDOPTS)'
MKCSHLIB='$(LD) $(DSO_LDOPTS)'
;;
esac
1999-05-07 06:29:41 +04:00
if $CC -E - -dM </dev/null | grep -v __ELF__ >/dev/null; then
1999-04-14 07:59:59 +04:00
DSO_LDOPTS="-shared"
1999-01-21 02:37:59 +03:00
fi
1999-03-26 08:44:30 +03:00
if test "$LIBRUNPATH"; then
1999-01-21 02:37:59 +03:00
DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS"
fi
;;
1999-06-22 05:48:29 +04:00
*-nto*)
1999-07-26 15:45:09 +04:00
CFLAGS="$CFLAGS -DNTO -D__QNXNTO__ -D_QNX_SOURCE -D_POSIX_SOURCE -D__i386__ -D_i386 -DNSCAP_NO_EXPLICIT -DNO_REGEX -DSTRINGS_ALIGNED -D_SEEKPOS_DEFINED_ -I/usr/gcc/lib/gcc-lib/ntox86/2.8.1/include"
CXXFLAGS="$CXXFLAGS -DNTO -D__QNXNTO__ -D_QNX_SOURCE -D_POSIX_SOURCE -D__i386__ -D_i386 -DNSCAP_NO_EXPLICIT -DNO_REGEX -DSTRINGS_ALIGNED -D_SEEKPOS_DEFINED_ -I/usr/gcc/lib/gcc-lib/ntox86/2.8.1/include"
1999-06-22 05:48:29 +04:00
_WARNINGS_CFLAGS='-w'
_WARNINGS_CXXFLAGS='-w'
OS_TARGET="NTO"
MOZ_OPTIMIZE_FLAGS="-O2"
1999-07-20 03:30:06 +04:00
MOZ_DEBUG_FLAGS="-gdwarf-2"
1999-06-22 05:48:29 +04:00
DSO_LDOPTS="-M $DSO_LDOPTS"
DSO_CFLAGS=''
DSO_PIC_CFLAGS="-shared -Wc,-fPIC -DPIC"
MKSHLIB='qcc -Vgcc_ntox86 $(DSO_LDOPTS)'
MKCSHLIB='qcc -Vgcc_ntox86 $(DSO_LDOPTS)'
1999-08-29 22:15:50 +04:00
AR='qcc -Vgcc_ntox86'
AR_FLAGS='-M -a $@'
AR_LIST='ar.elf t'
AR_EXTRACT='ar.elf x'
AR_DELETE='ar.elf d'
1999-09-09 17:45:46 +04:00
_DEFINES_CFLAGS='-Wp,-include,$(DEPTH)/config-defs.h -DMOZILLA_CLIENT'
_DEFINES_CXXFLAGS='-Wp,-include,$(DEPTH)/config-defs.h -DMOZILLA_CLIENT'
1999-06-22 05:48:29 +04:00
_PREPROCESSOR_PREFIX="-Wp,"
_COMPILER_PREFIX="-Wc,"
_LINKER_PREFIX="-Wl,"
1999-08-04 22:45:15 +04:00
USE_PTHREADS=1
PTHREAD_LDFLAGS=""
1999-08-30 17:45:41 +04:00
LIBS="$LIBS -lstdc++"
1999-09-14 23:30:35 +04:00
HAVE_DEV_ZERO=1
1999-06-22 05:48:29 +04:00
;;
1999-01-21 02:37:59 +03:00
*-openbsd*)
DLL_SUFFIX="so.1.0"
1999-06-11 14:59:52 +04:00
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC'
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-shared -h $@'
1999-01-21 02:37:59 +03:00
MKSHLIB='$(LD) $(DSO_LDOPTS)'
1999-05-06 06:21:12 +04:00
MKCSHLIB='$(LD) $(DSO_LDOPTS)'
1999-03-26 08:44:30 +03:00
if $CC -E - -dM </dev/null | grep -v __ELF__ >/dev/null; then
1999-01-21 02:37:59 +03:00
DSO_LDOPTS="-Bshareable /usr/lib/c++rt0.o"
fi
1999-03-26 08:44:30 +03:00
if test "$LIBRUNPATH"; then
1999-01-21 02:37:59 +03:00
DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS"
fi
;;
1999-06-04 05:50:43 +04:00
*-openvms*)
1999-07-07 03:15:03 +04:00
if test "$OS_TARGET" = "POSIX_for_OpenVMS_AXP"; then
1999-09-04 02:15:44 +04:00
_OPENVMS_CROSS_COMPILE=1
1999-07-09 03:15:07 +04:00
NSPR_LIBS="-lnspr$NSPR_VERSION -lplc$NSPR_VERSION -lplds$NSPR_VERSION"
1999-07-07 03:15:03 +04:00
fi
1999-06-04 05:50:43 +04:00
;;
1999-05-07 06:29:41 +04:00
alpha*-*-osf*)
if test "$GNU_CC"; then
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-shared -Wl,-soname -Wl,$@'
1999-05-07 06:29:41 +04:00
else
CFLAGS="$CFLAGS -std1 -ieee_with_inexact"
CXXFLAGS="$CXXFLAGS -std1 -ieee_with_inexact"
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-shared -msym -expect_unresolved \* -soname $@'
1999-08-12 12:10:50 +04:00
DSO_CFLAGS=
MKSHLIB='-$(LD) $(DSO_LDOPTS)'
MKCSHLIB='-$(LD) $(DSO_LDOPTS)'
MKSHLIB_FORCE_ALL='-all'
MKSHLIB_UNFORCE_ALL='-none'
1999-07-23 03:41:55 +04:00
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_TEST_DONTQUERY_CASES 1
EOF
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
EOF
1999-01-21 02:37:59 +03:00
fi
;;
1999-06-22 05:48:29 +04:00
*-qnx*)
1999-07-23 03:41:55 +04:00
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_TEST_DONTQUERY_CASES 1
EOF
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
EOF
1999-06-22 05:48:29 +04:00
if test "$no_x" = "yes"; then
1999-07-02 17:15:07 +04:00
MOZ_WIDGET_TOOLKIT='photon'
1999-09-09 19:00:52 +04:00
TK_CFLAGS='-I/usr/nto/include/photon'
1999-06-22 05:48:29 +04:00
TK_LIBS='-lphoton -lphrender'
cat >> confdefs.h <<\EOF
#define NO_X11 1
EOF
fi
;;
1999-06-04 05:50:43 +04:00
*-rhapsody*)
DLL_SUFFIX="dylib"
;;
1999-05-19 13:59:43 +04:00
*-sco*)
1999-09-25 05:01:26 +04:00
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_TEST_DONTQUERY_CASES 1
EOF
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
EOF
1999-07-12 09:23:22 +04:00
CXXFLAGS="$CXXFLAGS -I/usr/include/CC"
1999-05-19 13:59:43 +04:00
if test ! "$GNU_CC"; then
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-G -h $@'
1999-05-19 13:59:43 +04:00
fi
;;
1999-05-07 06:29:41 +04:00
*-solaris*)
1999-01-21 02:37:59 +03:00
cat >> confdefs.h <<\EOF
1999-05-07 06:29:41 +04:00
#define BROKEN_QSORT 1
1999-01-21 02:37:59 +03:00
EOF
1999-05-07 06:29:41 +04:00
if test ! "$GNU_CC"; then
1999-08-10 01:46:26 +04:00
cat >> confdefs.h <<\EOF
#define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
EOF
1999-05-07 06:29:41 +04:00
LDFLAGS='-xildoff'
MKSHLIB='$(CXX) $(DSO_LDOPTS)'
MKCSHLIB='$(CC) $(DSO_LDOPTS)'
MKSHLIB_FORCE_ALL='-z allextract'
MKSHLIB_UNFORCE_ALL=''
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-G -h $@'
1999-08-29 22:15:50 +04:00
AR_LIST="$AR t"
AR_EXTRACT="$AR x"
AR_DELETE="$AR d"
1999-08-29 22:15:50 +04:00
AR='$(CXX) -xar'
AR_FLAGS='-o $@'
1999-05-07 06:29:41 +04:00
AS='/usr/ccs/bin/as'
AS_DASH_C_FLAG=''
NS_USE_NATIVE=1
case `uname -m` in
sun4u)
1999-05-07 06:38:41 +04:00
ASFLAGS='-xarch=v8plus -DULTRA_SPARC -P -L -D_ASM -D__STDC__=0 -K PIC'
1999-05-07 06:29:41 +04:00
;;
*)
1999-05-07 06:38:41 +04:00
ASFLAGS='-xarch=v8 -P -L -D_ASM -D__STDC__=0 -K PIC'
1999-05-07 06:29:41 +04:00
;;
esac
1999-07-04 22:55:56 +04:00
if test ! -z "`${CC} -V 2>&1 | head -1 | grep '5.0'`"; then
CXX="$CXX -library=iostream"
fi
1999-04-10 05:44:34 +04:00
else
1999-08-04 12:45:12 +04:00
MKSHLIB='$(CXX) $(DSO_LDOPTS)'
MKCSHLIB='$(CC) $(DSO_LDOPTS)'
1999-08-10 08:00:24 +04:00
if test "$ac_cv_mkshlib_force_and_unforce" != "no"; then
1999-08-04 12:45:12 +04:00
MKSHLIB_FORCE_ALL='-z allextract'
MKSHLIB_UNFORCE_ALL=''
1999-08-10 08:00:24 +04:00
fi
1999-08-20 11:00:28 +04:00
DSO_LDOPTS='-G -h $@'
1999-05-07 06:29:41 +04:00
_WARNINGS_CFLAGS=''
_WARNINGS_CXXFLAGS=''
1999-02-02 20:45:37 +03:00
fi
;;
1999-01-21 02:37:59 +03:00
1999-05-07 06:29:41 +04:00
*-sunos*)
1999-07-01 06:22:01 +04:00
DSO_LDOPTS='-Bdynamic'
MKSHLIB='-$(LD) $(DSO_LDOPTS)'
MKCSHLIB='-$(LD) $(DSO_LDOPTS)'
1999-08-25 07:30:50 +04:00
cat >> confdefs.h <<\EOF
#define SUNOS4 1
EOF
1999-08-14 07:15:21 +04:00
cat >> confdefs.h <<\EOF
#define SPRINTF_RETURNS_STRING 1
EOF
1999-05-07 06:29:41 +04:00
;;
1999-01-21 02:37:59 +03:00
esac
1999-07-13 04:15:39 +04:00
NO_LD_ARCHIVE_FLAGS=
if test -z "$MKSHLIB_FORCE_ALL"; then
NO_LD_ARCHIVE_FLAGS=1
fi
1999-07-10 01:30:03 +04:00
XLDFLAGS="$X_LIBS"
XLIBS="$X_EXTRA_LIBS"
1999-06-11 16:59:52 +04:00
1999-08-17 13:45:50 +04:00
if test "$no_x" != "yes"
then
XLIBS="-lX11 $XLIBS"
_SAVE_LDFLAGS="$LDFLAGS"
LDFLAGS="$XLDFLAGS $LDFLAGS"
echo $ac_n "checking for XDrawLines in -lX11""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4244: checking for XDrawLines in -lX11" >&5
1999-04-16 08:50:17 +04:00
ac_lib_var=`echo X11'_'XDrawLines | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-16 08:50:17 +04:00
ac_save_LIBS="$LIBS"
LIBS="-lX11 $XLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4252 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-16 08:50:17 +04:00
/* 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 XDrawLines();
1999-01-21 02:37:59 +03:00
int main() {
1999-04-16 08:50:17 +04:00
XDrawLines()
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
LIBS="$ac_save_LIBS"
1999-01-21 02:37:59 +03:00
1999-04-16 08:50:17 +04:00
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-07-07 17:15:03 +04:00
X11_LIBS="-lX11"
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
MISSING_X="$MISSING_X -lX11"
1999-01-21 02:37:59 +03:00
fi
1999-08-17 13:45:50 +04:00
echo $ac_n "checking for XextAddDisplay in -lXext""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4285: checking for XextAddDisplay in -lXext" >&5
1999-04-16 08:50:17 +04:00
ac_lib_var=`echo Xext'_'XextAddDisplay | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-16 08:50:17 +04:00
ac_save_LIBS="$LIBS"
LIBS="-lXext $XLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4293 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-16 08:50:17 +04:00
/* 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 XextAddDisplay();
int main() {
XextAddDisplay()
; return 0; }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
LIBS="$ac_save_LIBS"
1999-01-21 02:37:59 +03:00
fi
1999-04-16 08:50:17 +04:00
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-07-07 17:15:03 +04:00
XEXT_LIBS="-lXext"
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
MISSING_X="$MISSING_X -lXext"
1999-01-21 02:37:59 +03:00
fi
1999-08-17 13:45:50 +04:00
echo $ac_n "checking for IceFlush in -lICE""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4326: checking for IceFlush in -lICE" >&5
1999-04-16 08:50:17 +04:00
ac_lib_var=`echo ICE'_'IceFlush | 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="-lICE $XLIBS $LIBS"
1999-01-21 02:37:59 +03:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4334 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-16 08:50:17 +04:00
/* 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 IceFlush();
int main() {
IceFlush()
; return 0; }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-16 08:50:17 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
1999-04-16 08:50:17 +04:00
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
LIBS="$ac_save_LIBS"
1999-01-21 02:37:59 +03:00
fi
1999-04-16 08:50:17 +04:00
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-07-07 17:15:03 +04:00
XICE_LIBS="-lICE"
1999-01-21 02:37:59 +03:00
else
1999-04-16 08:50:17 +04:00
echo "$ac_t""no" 1>&6
fi
1999-08-17 13:45:50 +04:00
echo $ac_n "checking for SmcCloseConnection in -lSM""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4366: checking for SmcCloseConnection in -lSM" >&5
1999-04-16 08:50:17 +04:00
ac_lib_var=`echo SM'_'SmcCloseConnection | 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"
1999-08-17 13:45:50 +04:00
LIBS="-lSM $XLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4374 "configure"
1999-08-17 13:45:50 +04: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 SmcCloseConnection();
1999-04-16 08:50:17 +04:00
1999-08-17 13:45:50 +04:00
int main() {
SmcCloseConnection()
; return 0; }
1999-03-11 05:45:41 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-17 13:45:50 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
1999-03-11 05:45:41 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-08-17 13:45:50 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
1999-03-11 05:45:41 +03:00
fi
1999-08-17 13:45:50 +04:00
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
XSM_LIBS="-lSM"
else
echo "$ac_t""no" 1>&6
1999-03-11 05:45:41 +03:00
fi
1999-08-17 13:45:50 +04:00
echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4406: checking for XtFree in -lXt" >&5
1999-08-17 13:45:50 +04:00
ac_lib_var=`echo Xt'_'XtFree | 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="-lXt $X_PRE_LIBS $XLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4414 "configure"
1999-03-11 05:45:41 +03:00
#include "confdefs.h"
1999-08-17 13:45:50 +04:00
/* 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 XtFree();
1999-04-16 08:50:17 +04:00
1999-03-11 05:45:41 +03:00
int main() {
1999-08-17 13:45:50 +04:00
XtFree()
1999-03-11 05:45:41 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-03-11 05:45:41 +03:00
rm -rf conftest*
1999-08-17 13:45:50 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-03-11 05:45:41 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-08-17 13:45:50 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-03-11 05:45:41 +03:00
fi
rm -f conftest*
1999-08-17 13:45:50 +04:00
LIBS="$ac_save_LIBS"
1999-03-11 05:45:41 +03:00
fi
1999-08-17 13:45:50 +04:00
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
XT_LIBS="-lXt"
else
echo "$ac_t""no" 1>&6
MISSING_X="$MISSING_X -lXt"
1999-01-21 02:37:59 +03:00
fi
1999-08-17 13:45:50 +04:00
echo $ac_n "checking for XmuLookupString in -lXmu""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4447: checking for XmuLookupString in -lXmu" >&5
1999-08-17 13:45:50 +04:00
ac_lib_var=`echo Xmu'_'XmuLookupString | 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="-lXmu $X_PRE_LIBS $XLIBS $XT_LIBS $XEXT_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4455 "configure"
1999-08-17 13:45:50 +04: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 XmuLookupString();
1999-08-09 19:00:54 +04:00
1999-08-17 13:45:50 +04:00
int main() {
XmuLookupString()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-17 13:45:50 +04: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"
1999-08-09 19:00:54 +04:00
fi
1999-08-17 13:45:50 +04:00
rm -f conftest*
LIBS="$ac_save_LIBS"
1999-08-09 19:00:54 +04:00
1999-08-17 13:45:50 +04:00
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
XMU_LIBS="-lXmu"
else
echo "$ac_t""no" 1>&6
MISSING_X="$MISSING_X -lXmu"
fi
1999-08-09 19:00:54 +04:00
1999-08-17 13:45:50 +04:00
LDFLAGS="$_SAVE_LDFLAGS"
1999-08-09 19:00:54 +04:00
1999-08-17 13:45:50 +04:00
# Check whether --enable-toolkit or --disable-toolkit was given.
if test "${enable_toolkit+set}" = set; then
enableval="$enable_toolkit"
if test "$enableval" = "motif" \
-o "$enableval" = "gtk" \
-o "$enableval" = "qt" \
-o "$enableval" = "xlib"
then
MOZ_WIDGET_TOOLKIT=`echo "$enableval" | sed -e "s/,.*$//"`
else
{ echo "configure: error: Toolkit must be Xlib" 1>&2; exit 1; }
fi
else
MOZ_WIDGET_TOOLKIT="gtk"
1999-06-08 04:44:51 +04:00
fi
1999-04-16 08:50:17 +04:00
fi # $no_x
1999-01-21 02:37:59 +03:00
1999-08-17 13:45:50 +04:00
1999-06-30 13:45:00 +04:00
# BeOS toolkit setting
if test "`echo $target_os | egrep "beos"`"; then
1999-07-02 17:15:07 +04:00
MOZ_WIDGET_TOOLKIT="beos"
1999-06-30 13:45:00 +04:00
fi
1999-07-20 03:30:06 +04:00
# Photon toolkit setting for the Neutrino platform
if test "`echo $target_os | egrep "nto"`"; then
MOZ_WIDGET_TOOLKIT="photon"
cat >> confdefs.h <<\EOF
#define NO_X11 1
EOF
1999-09-10 00:45:47 +04:00
TK_CFLAGS='-I/usr/nto/include/photon'
1999-07-20 03:30:06 +04:00
TK_LIBS='-lphoton -lphrender'
fi
1999-04-02 07:44:31 +04:00
1999-07-02 17:15:07 +04:00
1999-08-17 13:45:50 +04:00
if test "$MOZ_WIDGET_TOOLKIT" = "gtk"
1999-07-07 10:15:02 +04:00
then
1999-08-17 13:45:50 +04:00
MOZ_ENABLE_GTK=1
fi
1999-07-07 10:15:02 +04:00
1999-08-17 13:45:50 +04:00
if test "$MOZ_WIDGET_TOOLKIT" = "xlib"
then
MOZ_ENABLE_XLIB=1
fi
1999-07-07 10:15:02 +04:00
1999-08-17 13:45:50 +04:00
if test "$MOZ_WIDGET_TOOLKIT" = "qt"
then
MOZ_ENABLE_QT=1
fi
1999-07-07 10:15:02 +04:00
1999-08-17 13:45:50 +04:00
if test "$MOZ_WIDGET_TOOLKIT" = "motif"
then
MOZ_ENABLE_MOTIF=1
1999-07-07 10:15:02 +04:00
fi
1999-08-05 09:15:16 +04:00
if test "$no_x" != "yes"
1999-05-01 06:14:39 +04:00
then
1999-08-05 09:15:16 +04:00
# Check whether --with-gtk or --without-gtk was given.
if test "${with_gtk+set}" = set; then
withval="$with_gtk"
if test "$withval" = "yes"
1999-05-01 06:14:39 +04:00
then
1999-08-05 09:15:16 +04:00
MOZ_ENABLE_GTK=1
else
MOZ_ENABLE_GTK=
fi
1999-01-21 02:37:59 +03:00
fi
1999-04-16 08:50:17 +04:00
fi
1999-01-21 02:37:59 +03:00
1999-08-05 09:15:16 +04:00
if test "$MOZ_ENABLE_GTK"
then
1999-11-16 15:15:24 +03:00
AM_PATH_GTK($GTK_VERSION,,
{ echo "configure: error: Test for GTK failed." 1>&2; exit 1; })
1999-08-05 09:15:16 +04:00
1999-09-05 20:01:13 +04:00
MOZ_GLE=
MOZ_GLE_LDFLAGS=
# Check whether --with-gle or --without-gle was given.
if test "${with_gle+set}" = set; then
withval="$with_gle"
if test "$withval" = "yes"
then
MOZ_GLE=1
MOZ_GLE_LDFLAGS=-lgle
cat >> confdefs.h <<\EOF
#define MOZ_GLE 1
EOF
else
MOZ_GLE=
MOZ_GLE_LDFLAGS=
fi
fi
1999-08-05 09:15:16 +04:00
# Check whether --with-static-gtk or --without-static-gtk was given.
if test "${with_static_gtk+set}" = set; then
withval="$with_static_gtk"
sysstaticgtk=$withval
fi
1999-09-05 20:01:13 +04:00
if test "$sysstaticgtk" != "yes"
then
MOZ_GTK_LDFLAGS=$GTK_LIBS
if test "$MOZ_GLE"
then
MOZ_GTK_LDFLAGS=`echo $MOZ_GTK_LDFLAGS | sed -e 's/-lgtk/-lgle -lgtk/'`
fi
1999-08-05 09:15:16 +04:00
else
GTK_LIBS_LOC=`echo $GTK_LIBS | sed 's/\(.*\)\(-lgtk.*\)/\1/'`
GTK_STATIC_LOC=`echo $GTK_LIBS | sed 's/^ *-L\([^ ]*\) .*$/\1/'`
GTK_STATIC=`echo $GTK_LIBS | sed 's/^.*-l\(gtk[^ ]*\) .*/\1/'`
GDK_STATIC=`echo $GTK_LIBS | sed 's/^.*-l\(gdk[^ ]*\) .*/\1/'`
GLIB_STATIC_LOC=`echo $GTK_LIBS | sed -e 's/^.*-lgdk[^ ]* *-L\([^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'`
if test ! "$GLIB_STATIC_LOC" ; then
GLIB_STATIC_LOC=$GTK_STATIC_LOC
fi
GMODULE_STATIC=`echo $GTK_LIBS | sed 's/^.*-l\(gmodule[^ ]*\) .*/\1/'`
GLIB_STATIC=`echo $GTK_LIBS | sed 's/^.*-l\(glib[^ ]*\) .*/\1/'`
GTK_OTHER_LIBS=`echo $GTK_LIBS | sed 's/^.*-lglib *\(.*\)/\1/'`
MOZ_GTK_LDFLAGS="$GTK_STATIC_LOC/lib${GTK_STATIC}.a"
MOZ_GTK_LDFLAGS="$MOZ_GTK_LDFLAGS $GTK_STATIC_LOC/lib${GDK_STATIC}.a"
MOZ_GTK_LDFLAGS="$MOZ_GTK_LDFLAGS $GLIB_STATIC_LOC/lib${GMODULE_STATIC}.a"
MOZ_GTK_LDFLAGS="$MOZ_GTK_LDFLAGS $GLIB_STATIC_LOC/lib${GLIB_STATIC}.a"
MOZ_GTK_LDFLAGS="$MOZ_GTK_LDFLAGS $GTK_LIBS_LOC $GTK_OTHER_LIBS"
fi
MOZ_GTK_CFLAGS=$GTK_CFLAGS
1999-08-20 16:30:32 +04:00
case "$target" in
*-linux*)
MOZ_ENABLE_GTK_MOZILLA=1
;;
esac
1999-09-05 20:01:13 +04:00
1999-08-05 09:15:16 +04:00
fi
if test "$no_x" != "yes"
then
# Check whether --with-motif or --without-motif was given.
if test "${with_motif+set}" = set; then
withval="$with_motif"
if test "$withval" = "yes"
then
MOZ_ENABLE_MOTIF=1
else
MOZ_ENABLE_MOTIF=
fi
fi
fi
if test "$MOZ_ENABLE_MOTIF"
then
echo $ac_n "checking for motif insanity""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4667: checking for motif insanity" >&5
1999-08-05 09:15:16 +04:00
if test "$x_includes"
then
MOTIF_XINCS="-xif -I$x_includes"
fi
detect_motif="${srcdir}/config/mkdetect/detect_motif.sh -cc $CC $MOTIF_XINCS"
MOTIF_VERSION=`${detect_motif}`
MOTIF_INCLUDES=`${detect_motif} -if`
MOTIF_STATIC_FLAGS=`${detect_motif} -sf`
MOTIF_DYNAMIC_FLAGS=`${detect_motif} -df`
MOTIF_DYNAMIC_PATHS=`${detect_motif} -dp`
MOTIF_REQUIRES_XPM="False"
${srcdir}/config/mkdetect/detect_motif.sh --cleanup
if test "$MOTIF_REQUIRES_XPM" = "True" -o "$MOTIF_VERSION" = "2.1"
then
_SAVE_LDFLAGS="$LDFLAGS"
LDFLAGS="$XLDFLAGS $LDFLAGS"
fi
if test "$MOTIF_REQUIRES_XPM" = "True"
then
echo $ac_n "checking for XpmWriteFileFromImage in -lXpm""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4693: checking for XpmWriteFileFromImage in -lXpm" >&5
1999-08-05 09:15:16 +04:00
ac_lib_var=`echo Xpm'_'XpmWriteFileFromImage | 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="-lXpm $XLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4701 "configure"
1999-08-05 09:15:16 +04: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 XpmWriteFileFromImage();
int main() {
XpmWriteFileFromImage()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-05 09:15:16 +04: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
XPM_LIBS="-lXpm"
else
echo "$ac_t""no" 1>&6
MISSING_MOTIF="$MISSING_MOTIF -lXpm"
fi
fi
if test "$MOTIF_VERSION" = "2.1"
then
echo $ac_n "checking for XpGetPrinterList in -lXp""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4738: checking for XpGetPrinterList in -lXp" >&5
1999-08-05 09:15:16 +04:00
ac_lib_var=`echo Xp'_'XpGetPrinterList | 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"
1999-08-27 10:30:57 +04:00
LIBS="-lXp $XEXT_LIBS $XLIBS $LIBS"
1999-08-05 09:15:16 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4746 "configure"
1999-08-05 09:15:16 +04: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 XpGetPrinterList();
int main() {
XpGetPrinterList()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-05 09:15:16 +04: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
MOTIF_XP_LIBS="-lXp"
else
echo "$ac_t""no" 1>&6
MISSING_MOTIF="$MISSING_MOTIF -lXp"
fi
fi
LDFLAGS="$_SAVE_LDFLAGS"
MOZ_MOTIF_LDFLAGS="$XLDFLAGS $MOZ_MOTIF_LDFLAGS"
if test "$MOTIF_STATIC_LIB" = "unknown" -a "$MOTIF_DYNAMIC_LIB" = "unknown"
then
echo "$ac_t""no" 1>&6
else
echo "$ac_t""yes" 1>&6
fi
# Get rid of offending error values
if test "$MOTIF_DYNAMIC_PATHS" = "unknown"
then
MOTIF_DYNAMIC_PATHS=
fi
if test "$MOTIF_DYNAMIC_FLAGS" = "unknown"
then
MOTIF_DYNAMIC_FLAGS=
fi
if test "$MOTIF_STATIC_FLAGS" = "unknown"
then
MOTIF_STATIC_FLAGS=
fi
if test "$MOTIF_INCLUDE_DIR" = "unknown"
then
MOTIF_INCLUDE_DIR=
fi
MOZ_MOTIF_LDFLAGS="$MOTIF_XP_LIBS $MOZ_MOTIF_LDFLAGS $X_LIBS $XT_LIBS $XMU_LIBS $XPM_LIBS $XEXT_LIBS $X11_LIBS $XSM_LIBS $XICE_LIBS"
# Check whether --with-static-motif or --without-static-motif was given.
if test "${with_static_motif+set}" = set; then
withval="$with_static_motif"
sysstaticmotif=$withval
fi
if test "$sysstaticmotif" != "yes"; then
_SAVE_LDFLAGS="$LDFLAGS"
LDFLAGS="$MOTIF_DYNAMIC_PATHS $XLDFLAGS $LDFLAGS"
echo $ac_n "checking for XmStringCreate in -lXm""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4825: checking for XmStringCreate in -lXm" >&5
1999-08-05 09:15:16 +04:00
ac_lib_var=`echo Xm'_'XmStringCreate | 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="-lXm $MOTIF_DYNAMIC_PATHS $MOZ_MOTIF_LDFLAGS $XLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4833 "configure"
1999-08-05 09:15:16 +04: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 XmStringCreate();
int main() {
XmStringCreate()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-05 09:15:16 +04: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
MOZ_MOTIF_LDFLAGS="$MOTIF_DYNAMIC_PATHS $MOTIF_DYNAMIC_FLAGS $MOZ_MOTIF_LDFLAGS"
else
echo "$ac_t""no" 1>&6
MISSING_MOTIF="$MISSING_MOTIF $MOTIF_DYNAMIC_FLAGS"
fi
LDFLAGS="$_SAVE_LDFLAGS"
else
echo $ac_n "checking for XmStringCreate in -lXm""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4868: checking for XmStringCreate in -lXm" >&5
1999-08-05 09:15:16 +04:00
ac_lib_var=`echo Xm'_'XmStringCreate | 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="-lXm $MOZ_MOTIF_LDFLAGS $XLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 4876 "configure"
1999-08-05 09:15:16 +04: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 XmStringCreate();
int main() {
XmStringCreate()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-08-05 09:15:16 +04: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
MOZ_MOTIF_LDFLAGS="$MOTIF_STATIC_FLAGS $MOZ_MOTIF_LDFLAGS"
else
echo "$ac_t""no" 1>&6
MISSING_MOTIF="$MISSING_MOTIF $MOTIF_STATIC_FLAGS"
fi
fi
MOZ_MOTIF_CFLAGS="$MOTIF_INCLUDES"
fi
if test "$no_x" != "yes"
then
# Check whether --with-xlib or --without-xlib was given.
if test "${with_xlib+set}" = set; then
withval="$with_xlib"
if test "$withval" = "yes"
then
MOZ_ENABLE_XLIB=1
else
MOZ_ENABLE_XLIB=
fi
fi
fi
if test "$MOZ_ENABLE_XLIB"
then
echo $ac_n "checking for xlib insanity""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4934: checking for xlib insanity" >&5
1999-08-05 09:15:16 +04:00
echo "$ac_t""yes" 1>&6
MOZ_XLIB_CFLAGS="$X_CFLAGS"
MOZ_XLIB_LDFLAGS="$XLDFLAGS"
MOZ_XLIB_LDFLAGS="$MOZ_XLIB_LDFLAGS $XEXT_LIBS $X11_LIBS"
fi
1999-08-09 19:00:54 +04:00
if test "$no_x" != "yes"
then
# Check whether --with-qt or --without-qt was given.
if test "${with_qt+set}" = set; then
withval="$with_qt"
if test "$withval" = "yes"
then
MOZ_ENABLE_QT=1
else
MOZ_ENABLE_QT=
fi
fi
fi
if test "$MOZ_ENABLE_QT"
then
1999-08-17 13:45:50 +04:00
# Check whether --with-qtdir or --without-qtdir was given.
if test "${with_qtdir+set}" = set; then
withval="$with_qtdir"
QTDIR=$withval
else
QTDIR="/usr"
fi
1999-08-09 19:00:54 +04:00
1999-08-17 13:45:50 +04:00
echo $ac_n "checking for Qt insanity""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:4972: checking for Qt insanity" >&5
1999-08-17 13:45:50 +04:00
1999-08-20 01:00:36 +04:00
QT_CFLAGS="-I${QTDIR}/include/qt"
1999-08-17 13:45:50 +04:00
QT_LIBS="-L/usr/X11R6/lib -L${QTDIR}/lib -lqt -lXext -lX11"
1999-08-09 19:00:54 +04:00
# Check whether --with-static-qt or --without-static-qt was given.
if test "${with_static_qt+set}" = set; then
withval="$with_static_qt"
sysstaticqt=$withval
fi
if test "$sysstaticqt" != "yes"; then
MOZ_QT_LDFLAGS=$QT_LIBS
else
QT_LIBS_LOC=`echo $QT_LIBS | sed 's/\(.*\)\(-lqt.*\)/\1/'`
QT_STATIC_LOC=`echo $QT_LIBS | sed 's/^ *-L\([^ ]*\) .*$/\1/'`
QT_STATIC=`echo $QT_LIBS | sed 's/^.*-l\(qt[^ ]*\) .*/\1/'`
MOZ_QT_LDFLAGS="$QT_STATIC_LOC/lib${QT_STATIC}.a"
MOZ_QT_LDFLAGS="$MOZ_QT_LDFLAGS $QT_STATIC_LOC/lib${QT_STATIC}.a"
MOZ_QT_LDFLAGS="$MOZ_QT_LDFLAGS $QT_LIBS_LOC"
fi
MOZ_QT_CFLAGS=$QT_CFLAGS
fi
1999-08-17 13:45:50 +04:00
if test "$MOZ_WIDGET_TOOLKIT" = "gtk"
then
TK_CFLAGS="$MOZ_GTK_CFLAGS"
TK_LIBS="$MOZ_GTK_LDFLAGS"
fi
if test "$MOZ_WIDGET_TOOLKIT" = "xlib"
then
TK_CFLAGS="$MOZ_XLIB_CFLAGS"
TK_LIBS="$MOZ_XLIB_LDFLAGS"
fi
if test "$MOZ_WIDGET_TOOLKIT" = "qt"
then
TK_CFLAGS="$MOZ_QT_CFLAGS"
TK_LIBS="$MOZ_QT_LDFLAGS"
fi
if test "$MOZ_WIDGET_TOOLKIT" = "motif"
then
TK_CFLAGS="$MOZ_MOTIF_CFLAGS"
TK_LIBS="$MOZ_MOTIF_LDFLAGS"
fi
cat >> confdefs.h <<EOF
#define MOZ_DEFAULT_TOOLKIT "$MOZ_WIDGET_TOOLKIT"
EOF
1999-08-09 19:00:54 +04:00
1999-08-05 09:15:16 +04:00
XCFLAGS="$X_CFLAGS"
SKIP_IDL_CHECK="no"
if test -f /etc/redhat-release
then
if egrep "Hedwig" /etc/redhat-release >/dev/null
then
if test -x /usr/bin/orbit-config
then
SKIP_IDL_CHECK="yes"
LIBIDL_CFLAGS="-I/usr/lib/glib/include"
LIBIDL_LIBS="-lglib -lIDL"
fi
fi
fi
if test "$SKIP_IDL_CHECK" = "no"
then
1999-11-16 15:15:24 +03:00
AM_PATH_LIBIDL($LIBIDL_VERSION,,
echo libIDL $LIBIDL_VERSION or higher is required.
echo Get yourself a RPM or source package from ftp://ftp.mozilla.org/
echo before your tree is HOSED.
echo See http://www.rpi.edu/~veliaa/libIDL/ for more information.
AC_MSG_ERROR(libIDL not installed.))
1999-08-05 09:15:16 +04:00
fi
1999-11-16 15:15:24 +03:00
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:5090: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
1999-08-05 09:15:16 +04:00
else
1999-11-16 15:15:24 +03:00
cat > conftest.$ac_ext <<EOF
#line 5095 "configure"
#include "confdefs.h"
1999-08-05 09:15:16 +04:00
1999-11-16 15:15:24 +03:00
int main() {
1999-10-11 15:07:20 +04:00
1999-11-16 15:15:24 +03:00
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
1999-10-11 15:07:20 +04:00
1999-11-16 15:15:24 +03:00
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
1999-08-05 09:15:16 +04:00
1999-11-16 15:15:24 +03:00
; return 0; }
EOF
if { (eval echo configure:5144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
1999-10-11 15:07:20 +04:00
else
1999-11-16 15:15:24 +03:00
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
EOF
1999-10-11 15:16:05 +04:00
fi
1999-11-16 15:15:24 +03:00
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:5165: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 5170 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
ac_cv_header_stdc=yes
1999-08-05 09:15:16 +04:00
else
1999-11-16 15:15:24 +03:00
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_stdc=no
1999-08-05 09:15:16 +04:00
fi
1999-11-16 15:15:24 +03:00
rm -f conftest*
1999-08-05 09:15:16 +04:00
1999-11-16 15:15:24 +03:00
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 5195 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "memchr" >/dev/null 2>&1; then
1999-08-05 09:15:16 +04:00
:
else
1999-11-16 15:15:24 +03:00
rm -rf conftest*
ac_cv_header_stdc=no
1999-08-05 09:15:16 +04:00
fi
1999-11-16 15:15:24 +03:00
rm -f conftest*
1999-08-05 09:15:16 +04:00
1999-11-16 15:15:24 +03:00
fi
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5213 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "free" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
1999-04-22 05:08:18 +04:00
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
1999-01-21 02:37:59 +03:00
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5234 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-04-22 05:08:18 +04:00
then
:
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-04-22 05:08:18 +04:00
rm -fr conftest*
ac_cv_header_stdc=no
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
rm -fr conftest*
1999-01-21 02:37:59 +03:00
fi
1999-04-16 08:50:17 +04:00
1999-04-22 05:08:18 +04:00
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
1999-04-16 08:50:17 +04:00
cat >> confdefs.h <<\EOF
1999-04-22 05:08:18 +04:00
#define STDC_HEADERS 1
1999-01-21 02:37:59 +03:00
EOF
1999-04-16 08:50:17 +04:00
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5269: checking for mode_t" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1999-04-10 05:13:44 +04:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5274 "configure"
1999-04-10 05:13:44 +04:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
1999-04-10 05:13:44 +04:00
EOF
1999-04-22 05:08:18 +04:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999-09-15 05:50:05 +04:00
egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1999-04-10 05:13:44 +04:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_mode_t=yes
1999-04-10 05:13:44 +04:00
else
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_mode_t=no
1999-04-10 05:13:44 +04:00
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
1999-04-22 05:08:18 +04:00
fi
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
1999-04-16 08:50:17 +04:00
cat >> confdefs.h <<\EOF
1999-04-22 05:08:18 +04:00
#define mode_t int
1999-04-10 05:13:44 +04:00
EOF
1999-04-16 08:50:17 +04:00
1999-04-10 05:13:44 +04:00
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5302: checking for off_t" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5307 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999-09-15 05:50:05 +04:00
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_off_t=yes
1999-01-21 02:37:59 +03:00
else
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_off_t=no
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
1999-04-22 05:08:18 +04:00
fi
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
1999-04-16 08:50:17 +04:00
cat >> confdefs.h <<\EOF
1999-04-22 05:08:18 +04:00
#define off_t long
1999-04-02 07:44:31 +04:00
EOF
1999-04-16 08:50:17 +04:00
1999-04-02 07:44:31 +04:00
fi
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5335: checking for pid_t" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5340 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-16 08:50:17 +04:00
#include <sys/types.h>
1999-04-22 05:08:18 +04:00
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999-09-15 05:50:05 +04:00
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_pid_t=yes
1999-01-21 02:37:59 +03:00
else
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_pid_t=no
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
cat >> confdefs.h <<\EOF
#define pid_t int
EOF
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
fi
1999-04-16 08:50:17 +04:00
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5368: checking for size_t" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1999-04-02 07:44:31 +04:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5373 "configure"
1999-04-02 07:44:31 +04:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999-09-15 05:50:05 +04:00
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_size_t=yes
1999-01-21 02:37:59 +03:00
else
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_size_t=no
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5401: checking for uid_t in sys/types.h" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5406 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <sys/types.h>
1999-04-02 07:44:31 +04:00
EOF
1999-04-22 05:08:18 +04:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "uid_t" >/dev/null 2>&1; then
1999-04-02 07:44:31 +04:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_uid_t=yes
1999-04-02 07:44:31 +04:00
else
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_type_uid_t=no
1999-04-16 08:50:17 +04:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
if test $ac_cv_type_uid_t = no; then
cat >> confdefs.h <<\EOF
#define uid_t int
EOF
1999-04-16 08:50:17 +04:00
1999-04-22 05:08:18 +04:00
cat >> confdefs.h <<\EOF
#define gid_t int
1999-04-02 07:44:31 +04:00
EOF
1999-01-21 02:37:59 +03:00
1999-04-16 08:50:17 +04:00
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5435: checking for st_blksize in struct stat" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
1999-04-16 08:50:17 +04:00
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5440 "configure"
1999-04-16 08:50:17 +04:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <sys/types.h>
#include <sys/stat.h>
int main() {
struct stat s; s.st_blksize;
; return 0; }
1999-04-16 08:50:17 +04:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-04-22 05:08:18 +04:00
rm -rf conftest*
ac_cv_struct_st_blksize=yes
1999-04-02 07:44:31 +04:00
else
1999-04-16 08:50:17 +04:00
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-04-22 05:08:18 +04:00
rm -rf conftest*
ac_cv_struct_st_blksize=no
1999-04-16 08:50:17 +04:00
fi
1999-04-22 05:08:18 +04:00
rm -f conftest*
1999-04-16 08:50:17 +04:00
fi
1999-04-22 05:08:18 +04:00
echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
if test $ac_cv_struct_st_blksize = yes; then
1999-04-16 08:50:17 +04:00
cat >> confdefs.h <<\EOF
1999-04-22 05:08:18 +04:00
#define HAVE_ST_BLKSIZE 1
1999-04-16 08:50:17 +04:00
EOF
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for int16_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5470: checking for int16_t" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_int16_t'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5475 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <stdio.h>
#include <sys/types.h>
int main() {
int16_t foo = 0;
; return 0; }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_int16_t=true
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_int16_t=false
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
if test "$ac_cv_int16_t" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_INT16_T 1
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
echo "$ac_t""yes" 1>&6
1999-01-21 02:37:59 +03:00
else
1999-04-02 07:44:31 +04:00
echo "$ac_t""no" 1>&6
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for int32_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5505: checking for int32_t" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_int32_t'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5510 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <stdio.h>
#include <sys/types.h>
int main() {
int32_t foo = 0;
; return 0; }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_int32_t=true
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_int32_t=false
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
if test "$ac_cv_int32_t" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_INT32_T 1
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
echo "$ac_t""yes" 1>&6
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
1999-04-02 07:44:31 +04:00
fi
1999-06-05 01:44:49 +04:00
echo $ac_n "checking for int64_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5540: checking for int64_t" >&5
1999-06-05 01:44:49 +04:00
if eval "test \"`echo '$''{'ac_cv_int64_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5545 "configure"
1999-06-05 01:44:49 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
int main() {
int64_t foo = 0;
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-06-05 01:44:49 +04:00
rm -rf conftest*
ac_cv_int64_t=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_int64_t=false
fi
rm -f conftest*
fi
if test "$ac_cv_int64_t" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_INT64_T 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for int64""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5575: checking for int64" >&5
1999-06-05 01:44:49 +04:00
if eval "test \"`echo '$''{'ac_cv_int64'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5580 "configure"
1999-06-05 01:44:49 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
int main() {
int64 foo = 0;
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-06-05 01:44:49 +04:00
rm -rf conftest*
ac_cv_int64=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_int64=false
fi
rm -f conftest*
fi
if test "$ac_cv_int64" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_INT64 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-05-13 03:37:56 +04:00
echo $ac_n "checking for uint""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5610: checking for uint" >&5
1999-05-13 03:37:56 +04:00
if eval "test \"`echo '$''{'ac_cv_uint'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5615 "configure"
1999-05-13 03:37:56 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
int main() {
uint foo = 0;
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-05-13 03:37:56 +04:00
rm -rf conftest*
ac_cv_uint=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_uint=false
fi
rm -f conftest*
fi
if test "$ac_cv_uint" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_UINT 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-06-05 01:44:49 +04:00
echo $ac_n "checking for uint_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5645: checking for uint_t" >&5
1999-06-05 01:44:49 +04:00
if eval "test \"`echo '$''{'ac_cv_uint_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5650 "configure"
1999-06-05 01:44:49 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
int main() {
uint foo = 0;
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-06-05 01:44:49 +04:00
rm -rf conftest*
ac_cv_uint_t=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_uint_t=false
fi
rm -f conftest*
fi
if test "$ac_cv_uint_t" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_UINT_T 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5680: checking for uint16_t" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_uint16_t'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5685 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <stdio.h>
#include <sys/types.h>
int main() {
uint16_t foo = 0;
; return 0; }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_uint16_t=true
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-22 05:08:18 +04:00
ac_cv_uint16_t=false
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-22 05:08:18 +04:00
if test "$ac_cv_uint16_t" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_UINT16_T 1
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
echo "$ac_t""yes" 1>&6
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
fi
1999-09-12 18:31:04 +04:00
for ac_hdr in sys/byteorder.h compat.h getopt.h
1999-04-22 05:08:18 +04:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5719: checking for $ac_hdr" >&5
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5724 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
#include <$ac_hdr>
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:5729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-04-22 05:08:18 +04:00
if test -z "$ac_err"; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_header_$ac_safe=yes"
1999-01-21 02:37:59 +03:00
else
1999-04-22 05:08:18 +04:00
echo "$ac_err" >&5
1999-01-21 02:37:59 +03:00
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_header_$ac_safe=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1999-01-21 02:37:59 +03:00
echo "$ac_t""yes" 1>&6
1999-04-22 05:08:18 +04:00
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1999-04-16 08:50:17 +04:00
cat >> confdefs.h <<EOF
1999-04-22 05:08:18 +04:00
#define $ac_tr_hdr 1
1999-04-16 08:50:17 +04:00
EOF
1999-04-22 05:08:18 +04:00
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
fi
1999-04-22 05:08:18 +04:00
done
1999-04-16 08:50:17 +04:00
1999-08-23 00:30:21 +04:00
for ac_hdr in sys/bittypes.h memory.h unistd.h sys/filio.h
1999-04-22 05:08:18 +04:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5759: checking for $ac_hdr" >&5
1999-04-22 05:08:18 +04: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
1999-11-16 15:15:24 +03:00
#line 5764 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:5769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-04-22 05:08:18 +04:00
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
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
1999-08-23 00:30:21 +04:00
for ac_hdr in sys/ipc.h shm.h sys/shm.h X11/extensions/XShm.h
1999-04-22 05:08:18 +04:00
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5799: checking for $ac_hdr" >&5
1999-04-22 05:08:18 +04: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
1999-11-16 15:15:24 +03:00
#line 5804 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:5809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-04-22 05:08:18 +04:00
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
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_hdr in sys/statvfs.h sys/statfs.h sys/vfs.h sys/mount.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5840: checking for $ac_hdr" >&5
1999-04-22 05:08:18 +04: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
1999-11-16 15:15:24 +03:00
#line 5845 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:5850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-04-22 05:08:18 +04:00
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
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
case $target in
*-aix4.3*)
;;
*)
for ac_hdr in sys/cdefs.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5885: checking for $ac_hdr" >&5
1999-04-22 05:08:18 +04: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
1999-11-16 15:15:24 +03:00
#line 5890 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999-11-16 15:15:24 +03:00
{ (eval echo configure:5895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999-09-15 05:50:05 +04:00
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999-04-22 05:08:18 +04:00
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
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
;;
esac
1999-10-02 04:03:06 +04:00
case $target in
*-hpux11.*)
;;
*)
echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5929: checking for gethostbyname_r in -lc_r" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
1999-04-16 08:50:17 +04:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lc_r $LIBS"
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5937 "configure"
1999-04-16 08:50:17 +04: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. */
1999-04-22 05:08:18 +04:00
char gethostbyname_r();
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
int main() {
1999-04-22 05:08:18 +04:00
gethostbyname_r()
1999-04-16 08:50:17 +04:00
; return 0; }
1999-04-10 05:13:44 +04:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-16 08:50:17 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
1999-04-10 05:13:44 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-04-16 08:50:17 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
1999-04-10 05:13:44 +04:00
fi
1999-04-16 08:50:17 +04:00
rm -f conftest*
LIBS="$ac_save_LIBS"
1999-04-10 05:13:44 +04:00
fi
1999-04-16 08:50:17 +04:00
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-04-22 05:08:18 +04:00
ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-04-16 08:50:17 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
1999-04-10 05:13:44 +04:00
1999-04-22 05:08:18 +04:00
LIBS="-lc_r $LIBS"
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
fi
1999-10-02 04:03:06 +04:00
;;
esac
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:5978: checking for atan in -lm" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
1999-04-16 08:50:17 +04:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lm $LIBS"
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 5986 "configure"
1999-04-16 08:50:17 +04: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. */
1999-04-22 05:08:18 +04:00
char atan();
1999-04-10 05:13:44 +04:00
int main() {
1999-04-22 05:08:18 +04:00
atan()
1999-04-10 05:13:44 +04:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-10 05:13:44 +04:00
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-04-10 05:13:44 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-04-10 05:13:44 +04:00
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-04-22 05:08:18 +04:00
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-04-16 08:50:17 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
1999-04-10 05:13:44 +04:00
1999-04-22 05:08:18 +04:00
LIBS="-lm $LIBS"
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6025: checking for dlopen in -ldl" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1999-04-16 08:50:17 +04:00
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-04-10 05:13:44 +04:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-16 08:50:17 +04:00
ac_save_LIBS="$LIBS"
1999-04-22 05:08:18 +04:00
LIBS="-ldl $LIBS"
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6033 "configure"
1999-04-16 08:50:17 +04: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. */
1999-04-22 05:08:18 +04:00
char dlopen();
1999-04-16 08:50:17 +04:00
int main() {
1999-04-22 05:08:18 +04:00
dlopen()
1999-04-16 08:50:17 +04:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-16 08:50:17 +04: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"
1999-04-10 05:13:44 +04:00
fi
1999-04-16 08:50:17 +04:00
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
1999-04-22 05:08:18 +04:00
ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-04-16 08:50:17 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
1999-04-22 05:08:18 +04:00
LIBS="-ldl $LIBS"
1999-04-16 08:50:17 +04:00
1999-04-10 05:13:44 +04:00
else
echo "$ac_t""no" 1>&6
fi
1999-04-22 05:08:18 +04:00
if test ! "$GNU_CXX"; then
echo $ac_n "checking for demangle in -lC""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6073: checking for demangle in -lC" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo C'_'demangle | sed 'y%./+-%__p_%'`
1999-04-16 08:50:17 +04:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lC $LIBS"
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6081 "configure"
1999-04-16 08:50:17 +04: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. */
1999-04-22 05:08:18 +04:00
char demangle();
1999-04-16 08:50:17 +04:00
int main() {
1999-04-22 05:08:18 +04:00
demangle()
1999-04-16 08:50:17 +04:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-16 08:50:17 +04: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
1999-04-22 05:08:18 +04:00
ac_tr_lib=HAVE_LIB`echo C | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-04-16 08:50:17 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
1999-04-22 05:08:18 +04:00
LIBS="-lC $LIBS"
1999-04-16 08:50:17 +04:00
1999-04-10 05:13:44 +04:00
else
1999-04-16 08:50:17 +04:00
echo "$ac_t""no" 1>&6
fi
1999-04-22 05:08:18 +04:00
fi
echo $ac_n "checking for res_gethostbyaddr in -lresolv""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6121: checking for res_gethostbyaddr in -lresolv" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo resolv'_'res_gethostbyaddr | sed 'y%./+-%__p_%'`
1999-04-16 08:50:17 +04:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lresolv $LIBS"
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6129 "configure"
1999-04-10 05:13:44 +04:00
#include "confdefs.h"
1999-04-16 08:50:17 +04:00
/* 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. */
1999-04-22 05:08:18 +04:00
char res_gethostbyaddr();
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
int main() {
1999-04-22 05:08:18 +04:00
res_gethostbyaddr()
1999-04-16 08:50:17 +04:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-16 08:50:17 +04: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"
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-04-22 05:08:18 +04:00
ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-04-16 08:50:17 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
1999-04-10 05:13:44 +04:00
1999-04-22 05:08:18 +04:00
LIBS="-lresolv $LIBS"
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
fi
1999-04-10 05:13:44 +04:00
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for getnetbyaddr in -lsocket""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6168: checking for getnetbyaddr in -lsocket" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo socket'_'getnetbyaddr | sed 'y%./+-%__p_%'`
1999-04-16 08:50:17 +04:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lsocket $LIBS"
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6176 "configure"
1999-04-16 08:50:17 +04: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. */
1999-04-22 05:08:18 +04:00
char getnetbyaddr();
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
int main() {
1999-04-22 05:08:18 +04:00
getnetbyaddr()
1999-04-16 08:50:17 +04:00
; return 0; }
1999-04-10 05:13:44 +04:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-16 08:50:17 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
1999-04-10 05:13:44 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-04-16 08:50:17 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
1999-04-10 05:13:44 +04:00
fi
1999-04-16 08:50:17 +04:00
rm -f conftest*
LIBS="$ac_save_LIBS"
1999-04-10 05:13:44 +04:00
fi
1999-04-16 08:50:17 +04:00
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-04-22 05:08:18 +04:00
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-04-16 08:50:17 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
1999-04-10 05:13:44 +04:00
1999-04-22 05:08:18 +04:00
LIBS="-lsocket $LIBS"
1999-04-10 05:13:44 +04:00
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
1999-04-22 05:08:18 +04:00
fi
echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6215: checking for login in -lutil" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'`
1999-04-16 08:50:17 +04:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lutil $LIBS"
1999-04-16 08:50:17 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6223 "configure"
1999-04-16 08:50:17 +04: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. */
1999-04-22 05:08:18 +04:00
char login();
1999-04-10 05:13:44 +04:00
int main() {
1999-04-22 05:08:18 +04:00
login()
1999-04-10 05:13:44 +04:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-10 05:13:44 +04:00
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-04-10 05:13:44 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-16 08:50:17 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-04-10 05:13:44 +04:00
fi
rm -f conftest*
1999-04-16 08:50:17 +04:00
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-04-22 05:08:18 +04:00
ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-04-16 08:50:17 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
1999-04-22 05:08:18 +04:00
LIBS="-lutil $LIBS"
1999-04-16 08:50:17 +04:00
else
echo "$ac_t""no" 1>&6
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for xdr_string in -lnsl""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6262: checking for xdr_string in -lnsl" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo nsl'_'xdr_string | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-22 05:08:18 +04:00
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6270 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
/* 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 xdr_string();
1999-01-21 02:37:59 +03:00
int main() {
1999-04-22 05:08:18 +04:00
xdr_string()
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-22 05:08:18 +04:00
LIBS="$ac_save_LIBS"
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
LIBS="-lnsl $LIBS"
else
echo "$ac_t""no" 1>&6
1999-04-02 07:44:31 +04:00
fi
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for elf_rawdata in -lelf""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6309: checking for elf_rawdata in -lelf" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo elf'_'elf_rawdata | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-22 05:08:18 +04:00
ac_save_LIBS="$LIBS"
LIBS="-lelf $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6317 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
/* 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 elf_rawdata();
1999-04-02 07:44:31 +04:00
1999-01-21 02:37:59 +03:00
int main() {
1999-04-22 05:08:18 +04:00
elf_rawdata()
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-22 05:08:18 +04:00
LIBS="$ac_save_LIBS"
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
1999-01-21 02:37:59 +03:00
EOF
1999-04-22 05:08:18 +04:00
LIBS="-lelf $LIBS"
else
echo "$ac_t""no" 1>&6
fi
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6356: checking for textdomain in -lintl" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-22 05:08:18 +04:00
ac_save_LIBS="$LIBS"
LIBS="-lintl $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6364 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
/* 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 textdomain();
1999-04-02 07:44:31 +04:00
1999-04-22 05:08:18 +04:00
int main() {
textdomain()
; return 0; }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
1999-04-22 05:08:18 +04:00
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-22 05:08:18 +04:00
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lintl $LIBS"
1999-03-06 15:15:43 +03:00
1999-04-22 05:08:18 +04:00
else
echo "$ac_t""no" 1>&6
1999-03-05 18:45:38 +03:00
fi
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for shm_open in -lposix4""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6403: checking for shm_open in -lposix4" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo posix4'_'shm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-22 05:08:18 +04:00
ac_save_LIBS="$LIBS"
1999-04-22 06:37:23 +04:00
LIBS="-lposix4 $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6411 "configure"
1999-04-22 06:37:23 +04: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 shm_open();
int main() {
shm_open()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-22 06:37:23 +04: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
ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lposix4 $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for iswupper in -lw""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6450: checking for iswupper in -lw" >&5
1999-04-22 06:37:23 +04:00
ac_lib_var=`echo w'_'iswupper | 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="-lw $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6458 "configure"
1999-04-22 06:37:23 +04: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 iswupper();
int main() {
iswupper()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-22 06:37:23 +04: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
ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lw $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6500: checking for pthread_attr_init in -lpthread" >&5
1999-04-22 06:37:23 +04:00
ac_lib_var=`echo pthread'_'pthread_attr_init | 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="-lpthread $LIBS"
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6508 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
/* 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. */
1999-04-22 06:37:23 +04:00
char pthread_attr_init();
1999-04-02 07:44:31 +04:00
1999-01-21 02:37:59 +03:00
int main() {
1999-04-22 06:37:23 +04:00
pthread_attr_init()
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-22 05:08:18 +04:00
LIBS="$ac_save_LIBS"
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1999-04-02 07:44:31 +04:00
echo "$ac_t""yes" 1>&6
1999-04-22 06:37:23 +04:00
USE_PTHREADS=1 PTHREAD_LDFLAGS="-lpthread"
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
1999-04-02 07:44:31 +04:00
fi
1999-01-21 02:37:59 +03:00
1999-04-22 06:37:23 +04:00
if test "x$ac_cv_lib_pthread_pthread_attr_init" = "xno" -a \
"x$ac_cv_lib_c_r_gethostbyname_r" = "xno"
then
echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6544: checking for pthread_attr_init in -lc_r" >&5
1999-04-22 06:37:23 +04:00
ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
1999-04-02 07:44:31 +04:00
else
1999-04-22 05:08:18 +04:00
ac_save_LIBS="$LIBS"
1999-04-22 06:37:23 +04:00
LIBS="-lc_r $LIBS"
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6552 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
/* 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. */
1999-04-22 06:37:23 +04:00
char pthread_attr_init();
1999-04-22 05:08:18 +04:00
int main() {
1999-04-22 06:37:23 +04:00
pthread_attr_init()
1999-04-22 05:08:18 +04:00
; return 0; }
1999-01-21 02:37:59 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-22 05:08:18 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-04-22 05:08:18 +04:00
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
rm -f conftest*
LIBS="$ac_save_LIBS"
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
fi
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-04-22 06:37:23 +04:00
USE_PTHREADS=1 PTHREAD_LDFLAGS="-lc_r"
else
echo "$ac_t""no" 1>&6
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 "$USE_PTHREADS"x = x
then
{ echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&2; exit 1; };
fi
else
USE_PTHREADS=
PTHREAD_LDFLAGS=""
fi
fi
if test "$USE_PTHREADS"x != x
then
1999-04-24 01:05:25 +04:00
rm -f conftest*
ac_cv_have_dash_pthread=no
echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6606: checking whether ${CC-cc} accepts -pthread" >&5
1999-04-24 01:05:25 +04: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
1999-04-28 03:29:45 +04:00
if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
1999-04-24 01:05:25 +04:00
ac_cv_have_dash_pthread=yes
CFLAGS="$CFLAGS -pthread"
CXXFLAGS="$CXXFLAGS -pthread"
fi
fi
rm -f conftest*
1999-04-22 06:37:23 +04:00
case "$target" in
1999-06-22 05:48:29 +04:00
*-*-freebsd*)
cat >> confdefs.h <<\EOF
1999-04-22 06:37:23 +04:00
#define _REENTRANT 1
1999-01-21 02:37:59 +03:00
EOF
1999-06-22 05:48:29 +04:00
cat >> confdefs.h <<\EOF
#define _THREAD_SAFE 1
EOF
if test "$ac_cv_have_dash_pthread" = "yes"; then
PTHREAD_LDFLAGS=""
else
PTHREAD_LDFLAGS="-lc_r"
1999-05-01 01:44:41 +04:00
fi
1999-04-22 06:37:23 +04:00
;;
1999-01-21 02:37:59 +03:00
1999-04-22 06:37:23 +04:00
*-*-linux*)
cat >> confdefs.h <<\EOF
#define _REENTRANT 1
EOF
;;
1999-06-22 05:48:29 +04:00
*-*-nto*)
1999-04-22 06:37:23 +04:00
cat >> confdefs.h <<\EOF
#define _REENTRANT 1
EOF
1999-06-22 05:48:29 +04:00
1999-04-22 06:37:23 +04:00
;;
1999-06-22 05:48:29 +04:00
alpha*-*-osf*)
1999-04-22 06:37:23 +04:00
cat >> confdefs.h <<\EOF
#define _REENTRANT 1
EOF
1999-06-22 05:48:29 +04:00
;;
1999-04-22 06:37:23 +04:00
1999-06-22 05:48:29 +04:00
*-*-solaris*)
cat >> confdefs.h <<\EOF
#define _REENTRANT 1
EOF
if test ! "$GNU_CC"; then
CFLAGS="$CFLAGS -mt"
CXXFLAGS="$CXXFLAGS -mt"
1999-04-24 01:05:25 +04:00
fi
1999-04-22 06:37:23 +04:00
;;
esac
1999-04-24 01:05:25 +04:00
echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6
1999-04-22 06:37:23 +04:00
fi
NSPR_LIBS="$NSPR_LIBS $PTHREAD_LDFLAGS"
# Check whether --with-nspr or --without-nspr was given.
if test "${with_nspr+set}" = set; then
withval="$with_nspr"
NSPR_DIR=$withval
fi
# Check whether --with-nsprlib or --without-nsprlib was given.
if test "${with_nsprlib+set}" = set; then
withval="$with_nsprlib"
NSPR_LIBDIR=$withval
fi
1999-04-22 05:08:18 +04:00
1999-04-22 06:37:23 +04:00
1999-09-04 02:15:44 +04:00
if test "$_OPENVMS_CROSS_COMPILE"x = x; then
1999-07-07 03:15:03 +04:00
1999-04-22 06:37:23 +04:00
_SAVE_CFLAGS=$CFLAGS
_SAVE_LDFLAGS=$LDFLAGS
_SAVE_LIBS=$LIBS
CFLAGS="$CFLAGS -I${NSPR_DIR}/include"
if test "$NSPR_LIBDIR"x = x; then
LDFLAGS="$LDFLAGS -L${NSPR_DIR}/lib $NSPR_LIBS"
1999-04-22 05:08:18 +04:00
else
1999-04-22 06:37:23 +04:00
LDFLAGS="$LDFLAGS -L${NSPR_LIBDIR} $NSPR_LIBS"
1999-04-02 07:44:31 +04:00
fi
1999-02-25 20:45:40 +03:00
1999-05-27 02:49:35 +04:00
echo $ac_n "checking "for PR_GetCurrentThread in -lnspr$NSPR_VERSION"""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6699: checking "for PR_GetCurrentThread in -lnspr$NSPR_VERSION"" >&5
1999-05-27 02:49:35 +04:00
LIBS="-lnspr$NSPR_VERSION $NSPR_LIBS $LIBS"
1999-04-22 06:37:23 +04:00
if test "$cross_compiling" = yes; then
1999-07-20 03:30:06 +04:00
NSPR_LIBS="-lnspr$NSPR_VERSION $NSPR_LIBS" result="yes"
1999-04-22 06:37:23 +04:00
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6705 "configure"
1999-04-22 06:37:23 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <nspr.h>
int main () {
PRThread *dummy = PR_GetCurrentThread();
exit(0);
}
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-04-22 06:37:23 +04:00
then
1999-05-27 02:49:35 +04:00
NSPR_LIBS="-lnspr$NSPR_VERSION $NSPR_LIBS" result="yes"
1999-04-22 06:37:23 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
_NSPR_NEEDS_THREAD_LIB=1 result="no"
fi
rm -fr conftest*
fi
rm -f core
echo "$ac_t"""$result"" 1>&6
if test "$_NSPR_NEEDS_THREAD_LIB" = 1; then
LIBS=$_SAVE_LIBS
1999-05-27 02:49:35 +04:00
echo $ac_n "checking "for PR_GetCurrentThread in -lnspr$NSPR_VERSION with thread lib"""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6734: checking "for PR_GetCurrentThread in -lnspr$NSPR_VERSION with thread lib"" >&5
1999-05-27 02:49:35 +04:00
LIBS="-lnspr$NSPR_VERSION $NSPR_LIBS $LIBS"
1999-04-22 06:37:23 +04:00
if test "$cross_compiling" = yes; then
1999-07-20 03:30:06 +04:00
NSPR_LIBS="-lnspr$NSPR_VERSION $NSPR_LIBS" result="yes"
1999-04-22 06:37:23 +04:00
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6740 "configure"
1999-04-22 06:37:23 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <nspr.h>
int main () {
PRThread *dummy = PR_GetCurrentThread();
exit(0);
}
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-04-22 06:37:23 +04:00
then
1999-05-27 02:49:35 +04:00
NSPR_LIBS="-lnspr$NSPR_VERSION $NSPR_LIBS" result="yes"
1999-04-22 06:37:23 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
1999-05-27 02:49:35 +04:00
MISSING_NSPR="$MISSING_NSPR -lnspr$NSPR_VERSION" result="no"
1999-04-22 06:37:23 +04:00
fi
rm -fr conftest*
fi
rm -f core
echo "$ac_t"""$result"" 1>&6
fi
1999-09-03 04:01:25 +04:00
if test "$cross_compiling" = "yes"; then
NSPR_LIBS="-lplds$NSPR_VERSION -lplc$NSPR_VERSION $NSPR_LIBS"
else
echo $ac_n "checking for PL_CreateOptState in -lplc$NSPR_VERSION""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6770: checking for PL_CreateOptState in -lplc$NSPR_VERSION" >&5
1999-05-27 02:49:35 +04:00
ac_lib_var=`echo plc$NSPR_VERSION'_'PL_CreateOptState | sed 'y%./+-%__p_%'`
1999-04-22 05:08:18 +04:00
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999-02-25 20:45:40 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-22 05:08:18 +04:00
ac_save_LIBS="$LIBS"
1999-05-27 02:49:35 +04:00
LIBS="-lplc$NSPR_VERSION $NSPR_LIBS $LIBS"
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6778 "configure"
1999-02-25 20:45:40 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
/* 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. */
1999-04-22 06:37:23 +04:00
char PL_CreateOptState();
1999-04-22 05:08:18 +04:00
int main() {
1999-04-22 06:37:23 +04:00
PL_CreateOptState()
1999-04-22 05:08:18 +04:00
; return 0; }
1999-02-25 20:45:40 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-02-25 20:45:40 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=yes"
1999-02-25 20:45:40 +03:00
else
1999-04-22 05:08:18 +04:00
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-02-25 20:45:40 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
eval "ac_cv_lib_$ac_lib_var=no"
1999-02-25 20:45:40 +03:00
fi
rm -f conftest*
1999-04-22 05:08:18 +04:00
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-05-27 02:49:35 +04:00
NSPR_LIBS="-lplc$NSPR_VERSION $NSPR_LIBS"
1999-04-22 05:08:18 +04:00
else
echo "$ac_t""no" 1>&6
1999-05-27 02:49:35 +04:00
MISSING_NSPR="$MISSING_NSPR -lplc$NSPR_VERSION"
1999-04-22 06:37:23 +04:00
fi
1999-09-03 04:01:25 +04:00
echo $ac_n "checking for PL_GetEvent in -lplds$NSPR_VERSION""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6811: checking for PL_GetEvent in -lplds$NSPR_VERSION" >&5
1999-07-09 03:15:07 +04:00
ac_lib_var=`echo plds$NSPR_VERSION'_'PL_GetEvent | sed 'y%./+-%__p_%'`
1999-04-22 05:08:18 +04:00
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"
1999-07-09 03:15:07 +04:00
LIBS="-lplds$NSPR_VERSION $NSPR_LIBS $LIBS"
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6819 "configure"
1999-02-27 09:15:40 +03:00
#include "confdefs.h"
1999-04-22 05:08:18 +04:00
/* 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. */
1999-04-22 06:37:23 +04:00
char PL_GetEvent();
1999-04-22 05:08:18 +04:00
int main() {
1999-04-22 06:37:23 +04:00
PL_GetEvent()
1999-04-22 05:08:18 +04:00
; return 0; }
1999-02-27 09:15:40 +03:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-02-27 09:15:40 +03:00
rm -rf conftest*
1999-04-22 05:08:18 +04:00
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"
1999-02-27 09:15:40 +03:00
fi
rm -f conftest*
1999-04-22 05:08:18 +04:00
LIBS="$ac_save_LIBS"
1999-02-27 09:15:40 +03:00
1999-04-22 05:08:18 +04:00
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
1999-05-27 02:49:35 +04:00
NSPR_LIBS="-lplds$NSPR_VERSION $NSPR_LIBS"
1999-04-22 05:08:18 +04:00
else
echo "$ac_t""no" 1>&6
1999-05-27 02:49:35 +04:00
MISSING_NSPR="$MISSING_NSPR -lplds$NSPR_VERSION"
1999-02-27 09:15:40 +03:00
fi
1999-09-03 04:01:25 +04:00
fi
1999-04-22 06:37:23 +04:00
CFLAGS=$_SAVE_CFLAGS
LDFLAGS=$_SAVE_LDFLAGS
LIBS=$_SAVE_LIBS
1999-07-07 03:15:03 +04:00
1999-09-03 04:01:25 +04:00
fi # ! CROSS_COMPILE
1999-07-07 03:15:03 +04:00
1999-04-22 06:37:23 +04:00
if test "${NSPR_DIR}" -a -d "${NSPR_DIR}"; then
NSPR_INCLUDE_DIR="${NSPR_DIR}/include"
NSPR_CFLAGS="-I${NSPR_INCLUDE_DIR}"
if test "$NSPR_LIBDIR"x != x; then
NSPR_LIBS="-L${NSPR_LIBDIR} ${NSPR_LIBS}"
else
NSPR_LIBS="-L${NSPR_DIR}/lib ${NSPR_LIBS}"
fi
1999-04-02 07:44:31 +04:00
fi
1999-02-27 09:15:40 +03:00
1999-08-20 00:00:26 +04:00
echo $ac_n "checking whether have system NSPR""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6869: checking whether have system NSPR" >&5
1999-08-20 00:00:26 +04:00
if test "$MISSING_NSPR"; then
echo "$ac_t""no (will build it from source)" 1>&6
1999-04-22 06:37:23 +04:00
NSPR_INCLUDE_DIR=
NSPR_CFLAGS=
1999-05-27 02:49:35 +04:00
NSPR_LIBS="-lplds$NSPR_VERSION -lplc$NSPR_VERSION -lnspr$NSPR_VERSION $PTHREAD_LDFLAGS"
1999-04-22 06:37:23 +04:00
else
1999-08-20 00:00:26 +04:00
echo "$ac_t""yes" 1>&6
1999-04-22 06:37:23 +04:00
MOZ_NATIVE_NSPR=1
fi
1999-04-22 05:08:18 +04:00
1999-10-17 19:30:18 +04:00
USE_NSPR_AUTOCONF=
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(nspr-autoconf,
--enable-nspr-autoconf Use autoconf when building nspr,
USE_NSPR_AUTOCONF=1)
1999-10-17 19:30:18 +04:00
1999-10-05 04:31:43 +04:00
echo $ac_n "checking if mmap() sees write()s""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6886: checking if mmap() sees write()s" >&5
1999-10-05 04:31:43 +04:00
mmap_test_prog='
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
char fname[] = "conftest.file";
char zbuff[1024]; /* Fractional page is probably worst case */
int main() {
char *map;
int fd;
int i;
unlink(fname);
fd = open(fname, O_RDWR | O_CREAT, 0660);
if(fd<0) return 1;
unlink(fname);
write(fd, zbuff, sizeof(zbuff));
lseek(fd, 0, SEEK_SET);
map = (char*)mmap(0, sizeof(zbuff), PROT_READ, MAP_SHARED, fd, 0);
if(map==(char*)-1) return 2;
for(i=0; fname[i]; i++) {
int rc = write(fd, &fname[i], 1);
if(map[i]!=fname[i]) return 4;
}
return 0;
}
'
if test "$cross_compiling" = yes; then
result="yes"
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6925 "configure"
1999-10-05 04:31:43 +04:00
#include "confdefs.h"
$mmap_test_prog
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-10-05 04:31:43 +04:00
then
result="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
result="no"
fi
rm -fr conftest*
fi
echo "$ac_t"""$result"" 1>&6
if test "$result" = "no"; then
cat >> confdefs.h <<\EOF
#define MMAP_MISSES_WRITES 1
EOF
fi
1999-08-23 00:30:21 +04:00
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:6954: checking whether ${CC-cc} needs -traditional" >&5
1999-08-23 00:30:21 +04:00
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1999-02-25 20:45:40 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-08-23 00:30:21 +04:00
ac_pattern="Autoconf.*'x'"
1999-02-25 20:45:40 +03:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6960 "configure"
1999-02-25 20:45:40 +03:00
#include "confdefs.h"
1999-08-23 00:30:21 +04:00
#include <sgtty.h>
Autoconf TIOCGETP
1999-02-25 20:45:40 +03:00
EOF
1999-08-23 00:30:21 +04:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "$ac_pattern" >/dev/null 2>&1; then
1999-04-22 05:08:18 +04:00
rm -rf conftest*
1999-08-23 00:30:21 +04:00
ac_cv_prog_gcc_traditional=yes
1999-02-25 20:45:40 +03:00
else
1999-04-22 05:08:18 +04:00
rm -rf conftest*
1999-08-23 00:30:21 +04:00
ac_cv_prog_gcc_traditional=no
1999-02-25 20:45:40 +03:00
fi
1999-04-22 05:08:18 +04:00
rm -f conftest*
1999-02-27 07:15:38 +03:00
1999-03-01 15:15:39 +03:00
1999-08-23 00:30:21 +04:00
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 6978 "configure"
1999-02-27 07:15:38 +03:00
#include "confdefs.h"
1999-08-23 00:30:21 +04:00
#include <termio.h>
Autoconf TCGETA
1999-04-02 07:44:31 +04:00
EOF
1999-08-23 00:30:21 +04:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "$ac_pattern" >/dev/null 2>&1; then
1999-04-02 07:44:31 +04:00
rm -rf conftest*
1999-08-23 00:30:21 +04:00
ac_cv_prog_gcc_traditional=yes
1999-04-02 07:44:31 +04:00
fi
rm -f conftest*
1999-02-17 17:45:37 +03:00
1999-08-23 00:30:21 +04:00
fi
1999-04-02 07:44:31 +04:00
fi
1999-02-17 17:45:37 +03:00
1999-08-23 00:30:21 +04:00
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
if test $ac_cv_prog_gcc_traditional = yes; then
CC="$CC -traditional"
fi
1999-04-02 07:44:31 +04:00
fi
1999-02-17 17:45:37 +03:00
1999-08-23 00:30:21 +04:00
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7000: checking for 8-bit clean memcmp" >&5
1999-08-23 00:30:21 +04:00
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1999-04-02 07:44:31 +04:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-08-23 00:30:21 +04:00
if test "$cross_compiling" = yes; then
ac_cv_func_memcmp_clean=no
1999-04-02 07:44:31 +04:00
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7008 "configure"
1999-04-02 07:44:31 +04:00
#include "confdefs.h"
1999-01-21 02:37:59 +03:00
1999-08-23 00:30:21 +04:00
main()
{
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
}
1999-03-12 22:45:45 +03:00
1999-04-02 07:44:31 +04:00
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-08-23 00:30:21 +04:00
then
ac_cv_func_memcmp_clean=yes
1999-04-02 07:44:31 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
1999-08-23 00:30:21 +04:00
rm -fr conftest*
ac_cv_func_memcmp_clean=no
1999-04-02 07:44:31 +04:00
fi
1999-08-23 00:30:21 +04:00
rm -fr conftest*
1999-04-02 07:44:31 +04:00
fi
1999-03-12 22:45:45 +03:00
1999-04-02 07:44:31 +04:00
fi
1999-03-05 18:45:38 +03:00
1999-08-23 00:30:21 +04:00
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1999-09-15 05:50:05 +04:00
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1999-01-21 02:37:59 +03:00
1999-09-18 07:01:07 +04:00
for ac_func in random qsort strerror lchown fchmod snprintf localtime_r statvfs memmove
1999-04-02 07:44:31 +04:00
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7038: checking for $ac_func" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7043 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
#include <assert.h>
1999-01-21 02:37:59 +03:00
/* 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. */
1999-04-02 07:44:31 +04:00
char $ac_func();
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
/* 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
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
eval "ac_cv_func_$ac_func=yes"
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
eval "ac_cv_func_$ac_func=no"
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1999-01-21 02:37:59 +03:00
echo "$ac_t""yes" 1>&6
1999-04-02 07:44:31 +04:00
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
fi
1999-04-02 07:44:31 +04:00
done
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
echo $ac_n "checking how to call gettimeofday""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7092: checking how to call gettimeofday" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_gettimeofday_args'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7097 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
#include <stdlib.h>
#include <sys/time.h>
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
struct timeval tv; struct timezone tzp;
gettimeofday(&tv, &tzp);
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_gettimeofday_args=2
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7114 "configure"
1999-04-02 07:44:31 +04:00
#include "confdefs.h"
#include <stdlib.h>
#include <sys/time.h>
int main() {
struct timeval tv; gettimeofday(&tv);
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-04-02 07:44:31 +04:00
rm -rf conftest*
ac_cv_gettimeofday_args=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_gettimeofday_args=0
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
rm -f conftest*
fi
if test "$ac_cv_gettimeofday_args" = 1 ; then
cat >> confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
EOF
echo "$ac_t""one argument" 1>&6
elif test "$ac_cv_gettimeofday_args" = 2 ; then
cat >> confdefs.h <<\EOF
#define HAVE_GETTIMEOFDAY 1
EOF
cat >> confdefs.h <<\EOF
#define GETTIMEOFDAY_TWO_ARGS 1
EOF
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
echo "$ac_t""two arguments" 1>&6
else
echo "$ac_t""unknown" 1>&6
1999-01-21 02:37:59 +03:00
fi
1999-04-02 07:44:31 +04:00
1999-09-11 03:15:54 +04:00
echo $ac_n "checking for /dev/zero""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7158: checking for /dev/zero" >&5
1999-09-14 23:30:35 +04:00
if test "$HAVE_DEV_ZERO"; then
cat >> confdefs.h <<\EOF
#define HAVE_DEV_ZERO 1
EOF
echo "$ac_t""yes" 1>&6
else
1999-09-11 03:15:54 +04:00
if test -f /dev/zero; then
cat >> confdefs.h <<\EOF
#define HAVE_DEV_ZERO 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for valloc""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7175: checking for valloc" >&5
1999-09-11 03:15:54 +04:00
if eval "test \"`echo '$''{'ac_cv_valloc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7180 "configure"
1999-09-11 03:15:54 +04:00
#include "confdefs.h"
#include <stdlib.h>
int main() {
void *ptr = valloc(1);
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-09-11 03:15:54 +04:00
rm -rf conftest*
ac_cv_valloc=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_valloc=false
fi
rm -f conftest*
fi
if test "$ac_cv_valloc" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_VALLOC 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
fi
1999-09-14 23:30:35 +04:00
fi
1999-09-11 03:15:54 +04:00
1999-06-11 07:09:49 +04:00
case "$target" in
*-linux*)
curdir=`pwd`
rm -f conftest* /tmp/conftest*
cat >> conftest.C <<\EOF
#include <stdio.h>
#include <link.h>
#include <dlfcn.h>
1999-06-15 00:59:52 +04:00
#ifdef _dl_loaded
1999-06-11 07:09:49 +04:00
void __dump_link_map(void) {
struct link_map *map = _dl_loaded;
while (NULL != map) {printf("0x%08x %s\n", map->l_addr, map->l_name); map = map->l_next;}
}
int main() {
dlopen("./conftest1.so",RTLD_LAZY);
dlopen("./../tmp/conftest1.so",RTLD_LAZY);
dlopen("/tmp/conftest1.so",RTLD_LAZY);
dlopen("/tmp/../tmp/conftest1.so",RTLD_LAZY);
__dump_link_map();
}
1999-06-15 00:59:52 +04:00
#else
/* _dl_loaded isn't defined, so this should be either a libc5 (glibc1) system, or a glibc2 system that doesn't have the multiple load bug (i.e., RH6.0).*/
int main() { printf("./conftest1.so\n"); }
#endif
1999-06-11 07:09:49 +04:00
EOF
cat >> conftest1.C <<\EOF
#include <stdio.h>
void foo(void) {printf("foo in dll called\n");}
EOF
${CXX-g++} -fPIC -c -g conftest1.C
${CXX-g++} -shared -Wl,-h -Wl,conftest1.so -o conftest1.so conftest1.o
${CXX-g++} -g conftest.C -o conftest -ldl
cp -f conftest1.so conftest /tmp
cd /tmp
if test `./conftest | grep conftest1.so | wc -l` -gt 1
then
echo
echo "*** Your libc has a bug that can result in loading the same dynamic"
echo "*** library multiple times. This bug is known to be fixed in glibc-2.0.7-32"
echo "*** or later. However, if you choose not to upgrade, the only effect"
echo "*** will be excessive memory usage at runtime."
echo
fi
cd ${curdir}
rm -f conftest* /tmp/conftest*
;;
esac
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for sys_errlist/sys_nerr""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7263: checking for sys_errlist/sys_nerr" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_syserrlist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7268 "configure"
1999-04-02 07:44:31 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <errno.h>
int main() {
char *foo = sys_errlist[sys_nerr-1];
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-04-02 07:44:31 +04:00
rm -rf conftest*
ac_cv_syserrlist=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_syserrlist=false
fi
rm -f conftest*
fi
if test "$ac_cv_syserrlist" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_SYSERRLIST 1
EOF
1999-01-21 02:37:59 +03:00
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
1999-04-02 07:44:31 +04:00
fi
if test "$GNU_CXX"; then
1999-07-20 03:30:06 +04:00
_MOZ_RTTI_FLAGS=${_COMPILER_PREFIX}-fno-rtti
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for C++ exceptions flag""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7303: checking for C++ exceptions flag" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_cxx_exceptions_flags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo "int main() { return 0; }" | cat > conftest.C
1999-04-14 01:14:40 +04:00
${CXX-g++} -c -fno-handle-exceptions conftest.C > conftest.out 2>&1
1999-04-02 07:44:31 +04:00
1999-04-14 01:14:40 +04:00
if egrep "warning.*renamed" conftest.out >/dev/null; then
1999-07-20 03:30:06 +04:00
ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions
1999-04-02 07:44:31 +04:00
else
1999-07-20 03:30:06 +04:00
ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-handle-exceptions
1999-04-02 07:44:31 +04:00
fi
1999-04-14 01:14:40 +04:00
rm -f conftest*
1999-01-21 02:37:59 +03:00
fi
1999-04-02 07:44:31 +04:00
echo "$ac_t""$ac_cv_cxx_exceptions_flags" 1>&6
_MOZ_EXCEPTIONS_FLAGS=$ac_cv_cxx_exceptions_flags
fi
1999-04-10 05:20:28 +04:00
_SAVE_CC=$CC
CC=$CXX
ac_ext=C
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for ios::binary""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7330: checking for ios::binary" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_ios_binary'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7335 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
#include <iostream.h>
#include <fstream.h>
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
char *buffer = "config.log";
fstream *mFileStream=new fstream(buffer, ios::binary);
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_ios_binary=true
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_ios_binary=false
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-02 07:44:31 +04:00
if test "$ac_cv_ios_binary" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_IOS_BINARY 1
EOF
1999-01-21 02:37:59 +03:00
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
1999-04-02 07:44:31 +04:00
fi
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for ios::bin""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7368: checking for ios::bin" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_ios_bin'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7373 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
#include <iostream.h>
#include <fstream.h>
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
char *buffer = "config.log";
fstream *mFileStream=new fstream(buffer, ios::bin);
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_ios_bin=true
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_ios_bin=false
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-02 07:44:31 +04:00
if test "$ac_cv_ios_bin" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_IOS_BIN 1
EOF
1999-01-21 02:37:59 +03:00
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
1999-04-02 07:44:31 +04:00
fi
1999-01-21 02:37:59 +03:00
1999-06-03 04:44:51 +04:00
echo $ac_n "checking for ostreams""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7405: checking for ostreams" >&5
1999-06-03 04:44:51 +04:00
if eval "test \"`echo '$''{'ac_cv_ostream'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7410 "configure"
1999-06-03 04:44:51 +04:00
#include "confdefs.h"
#include <iostream.h>
int main() {
1999-06-05 06:35:01 +04:00
streambuf *xxx; ostream *foo=new ostream(xxx);
1999-06-03 04:44:51 +04:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-06-03 04:44:51 +04:00
rm -rf conftest*
ac_cv_ostream=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_ostream=false
fi
rm -f conftest*
fi
if test "$ac_cv_ostream" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_OSTREAM 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
_SAVE_LIBS=$LIBS
LIBS="$LIBS -lstdc++"
echo $ac_n "checking for ostreams in -lstdc++""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7440: checking for ostreams in -lstdc++" >&5
1999-06-03 04:44:51 +04:00
if eval "test \"`echo '$''{'ac_cv_lib_stdcpp_ostream'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7445 "configure"
1999-06-03 04:44:51 +04:00
#include "confdefs.h"
#include <iostream.h>
int main() {
ostream *foo=new ostream();
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-06-03 04:44:51 +04:00
rm -rf conftest*
ac_cv_lib_stdcpp_ostream=true
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_lib_stdcpp_ostream=false
fi
rm -f conftest*
fi
if test "$ac_cv_lib_stdcpp_ostream" = true ; then
cat >> confdefs.h <<\EOF
#define HAVE_OSTREAM 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
LIBS=$_SAVE_LIBS
fi
fi
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for C++ \"bool\" keyword""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7477: checking for C++ \"bool\" keyword" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_cpp_bool'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7482 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
bool b;
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
b = true;
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_bool=yes
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_bool=no
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-02 07:44:31 +04:00
echo "$ac_t""$ac_cv_cpp_bool" 1>&6
if test "$ac_cv_cpp_bool" = no ; then
cat >> confdefs.h <<\EOF
#define NEEDS_bool 1
EOF
1999-01-21 02:37:59 +03:00
fi
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for C++ \"explicit\" keyword""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7511: checking for C++ \"explicit\" keyword" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_cpp_explicit'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7516 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
class X {
public: explicit X(int i) : i_(i) {}
private: int i_;
};
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
X x(3);
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_explicit=yes
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_explicit=no
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-02 07:44:31 +04:00
echo "$ac_t""$ac_cv_cpp_explicit" 1>&6
if test "$ac_cv_cpp_explicit" = yes ; then
cat >> confdefs.h <<\EOF
#define HAVE_CPP_EXPLICIT 1
EOF
1999-01-21 02:37:59 +03:00
fi
1999-06-30 00:45:01 +04:00
echo $ac_n "checking for C++ template specialization support""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7547: checking for C++ template specialization support" >&5
1999-06-30 00:45:01 +04:00
if eval "test \"`echo '$''{'ac_cv_cpp_template_specialization'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7552 "configure"
1999-06-30 00:45:01 +04:00
#include "confdefs.h"
template <class T> struct X { int a; };
class Y {};
template <> struct X<Y> { double a; };
int main() {
X<int> int_x;
X<Y> y_x;
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-06-30 00:45:01 +04:00
rm -rf conftest*
ac_cv_cpp_template_specialization=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_cpp_template_specialization=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_cpp_template_specialization" 1>&6
1999-07-01 07:02:15 +04:00
case "$target" in
*-*-solaris*)
if test ! "$GNU_CC"; then
1999-07-01 07:46:58 +04:00
if test ! -z "`${CC} -V 2>&1 | head -1 | grep '4.2'`"; then
1999-07-01 07:02:15 +04:00
ac_cv_cpp_template_specialization=no
fi
fi
;;
esac
1999-06-30 00:45:01 +04:00
if test "$ac_cv_cpp_template_specialization" = yes ; then
cat >> confdefs.h <<\EOF
#define HAVE_CPP_SPECIALIZATION 1
EOF
fi
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for C++ \"using\" keyword""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7594: checking for C++ \"using\" keyword" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_cpp_using'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7599 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
class X { public: int go() {return 3;} };
class Y : public X {
private: using X::go;
};
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
X x; Y y;
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_using=yes
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_using=no
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-02 07:44:31 +04:00
echo "$ac_t""$ac_cv_cpp_using" 1>&6
if test "$ac_cv_cpp_using" = yes ; then
cat >> confdefs.h <<\EOF
#define HAVE_CPP_USING 1
EOF
1999-01-21 02:37:59 +03:00
fi
1999-04-02 07:44:31 +04:00
echo $ac_n "checking for C++ reinterpret_cast""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7630: checking for C++ reinterpret_cast" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_cpp_reinterpret_cast'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7635 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
struct X { int i; };
struct Y { int i; };
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
X x; X*const z = &x;Y*y = reinterpret_cast<Y*>(z);
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_reinterpret_cast=yes
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_reinterpret_cast=no
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
fi
1999-04-02 07:44:31 +04:00
echo "$ac_t""$ac_cv_cpp_reinterpret_cast" 1>&6
if test "$ac_cv_cpp_reinterpret_cast" = yes ; then
cat >> confdefs.h <<\EOF
#define HAVE_CPP_NEW_CASTS 1
EOF
1999-01-21 02:37:59 +03:00
fi
1999-04-23 11:44:39 +04:00
echo $ac_n "checking whether C++ requires implementation of unused methods""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7664: checking whether C++ requires implementation of unused methods" >&5
1999-04-02 07:44:31 +04:00
if eval "test \"`echo '$''{'ac_cv_cpp_unused_required'+set}'`\" = set"; then
1999-01-21 02:37:59 +03:00
echo $ac_n "(cached) $ac_c" 1>&6
else
1999-04-02 07:44:31 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7669 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
1999-04-02 07:44:31 +04:00
class X {private: void never_called();};
1999-01-21 02:37:59 +03:00
int main() {
1999-04-02 07:44:31 +04:00
X x;
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +03:00
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_unused_required=no
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
1999-04-02 07:44:31 +04:00
ac_cv_cpp_unused_required=yes
1999-01-21 02:37:59 +03:00
fi
rm -f conftest*
1999-04-02 07:44:31 +04:00
fi
echo "$ac_t""$ac_cv_cpp_unused_required" 1>&6
if test "$ac_cv_cpp_unused_required" = yes ; then
cat >> confdefs.h <<\EOF
#define NEED_CPP_UNUSED_IMPLEMENTATIONS 1
EOF
1999-01-21 02:37:59 +03:00
fi
1999-07-23 03:41:55 +04:00
1999-04-10 05:20:28 +04:00
CC=$_SAVE_CC
ac_ext=c
1999-04-02 07:44:31 +04:00
1999-04-30 03:14:43 +04:00
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7702: checking for LC_MESSAGES" >&5
1999-04-30 03:14:43 +04:00
if eval "test \"`echo '$''{'ac_cv_i18n_lc_messages'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7707 "configure"
1999-04-30 03:14:43 +04:00
#include "confdefs.h"
#include <locale.h>
int main() {
int catagory = LC_MESSAGES;
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-04-30 03:14:43 +04:00
rm -rf conftest*
ac_cv_i18n_lc_messages=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_i18n_lc_messages=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_i18n_lc_messages" 1>&6
if test "$ac_cv_i18n_lc_messages" = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_I18N_LC_MESSAGES 1
EOF
fi
1999-07-23 03:41:55 +04:00
1999-04-30 03:14:43 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_HEADER(Components and Features)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(async-dns,
--disable-async-dns Disable separate dns thread,
NO_UNIX_ASYNC_DNS=1)
1999-04-02 07:44:31 +04:00
MOZ_BUILD_XPFE=1
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(build-xpfe,
--disable-build-xpfe Disable building of mozilla/xpfe (BROKEN),
MOZ_BUILD_XPFE= )
1999-04-02 07:44:31 +04:00
1999-04-06 02:29:35 +04:00
MOZ_EDITOR=1
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(editor,
--disable-editor Disable building of editor component,
MOZ_EDITOR= )
1999-04-02 07:44:31 +04:00
1999-05-27 03:44:47 +04:00
MOZ_MAIL_NEWS=1
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(mailnews,
--disable-mailnews Disable building of mail & news components,
MOZ_MAIL_NEWS= )
1999-09-03 02:15:49 +04:00
if test "$MOZ_MAIL_NEWS"; then
cat >> confdefs.h <<\EOF
#define MOZ_MAIL_NEWS 1
EOF
fi
1999-04-02 07:44:31 +04:00
1999-07-16 03:45:09 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(oji,
--enable-oji Enable use of Open JVM Interface,
MOZ_OJI=1 FULL_STATIC_BUILD= NO_SHARED_LIB=)
1999-10-11 15:16:05 +04:00
1999-05-27 03:44:47 +04:00
ENABLE_TESTS=1
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(tests,
--disable-tests Dont build the tests,
ENABLE_TESTS= )
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(brprof,
--enable-brprof Enable browsing profile cookie,
MOZ_BRPROF=1
1999-05-25 01:18:00 +04:00
cat >> confdefs.h <<\EOF
#define MOZ_BRPROF 1
EOF
1999-11-16 15:15:24 +03:00
)
1999-04-02 07:44:31 +04:00
1999-08-23 00:30:21 +04:00
if test "$no_x" != "yes"; then
# Check whether --enable-x11-shm or --disable-x11-shm was given.
if test "${enable_x11_shm+set}" = set; then
enableval="$enable_x11_shm"
if test "$enableval" = "yes"; then
if test "$ac_cv_header_sys_ipc_h" = "yes" &&
test "$ac_cv_header_sys_shm_h" = "yes" &&
test "$ac_cv_header_X11_extensions_XShm_h" = "yes"; then
cat >> confdefs.h <<\EOF
#define USE_SHM 1
EOF
else
echo "configure: warning: "X11 Shared Memory extensions not supported under this configuration."" 1>&2
fi
fi
fi
fi # ! no_x
1999-08-02 17:45:11 +04:00
1999-08-17 13:45:50 +04:00
MOZ_MONOLITHIC_TOOLKIT=1
case "$target" in
1999-08-28 03:16:01 +04:00
*-*-linux*) MOZ_MONOLITHIC_TOOLKIT= ;;
*-*-solaris*) MOZ_MONOLITHIC_TOOLKIT= ;;
1999-08-17 13:45:50 +04:00
esac
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(monolithic-toolkit,
--enable-monolithic-toolkit
Link the toolkit into the app,
MOZ_MONOLITHIC_TOOLKIT=1)
1999-08-02 17:45:11 +04:00
1999-08-17 13:45:50 +04:00
if test "$MOZ_MONOLITHIC_TOOLKIT"
then
cat >> confdefs.h <<\EOF
#define MOZ_MONOLITHIC_TOOLKIT 1
EOF
fi
1999-08-28 03:16:01 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(gtk-mozilla,
--disable-gtk-mozilla Disable building of GtkMozilla GTK+ widget,
MOZ_ENABLE_GTK_MOZILLA=)
1999-08-28 03:16:01 +04:00
1999-07-16 03:45:09 +04:00
ENABLE_PIC_DSO_CFLAGS=1
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(pic-dso-cflags,
--disable-pic-dso-cflags
Do not generate PIC for shared libs),
ENABLE_PIC_DSO_CFLAGS= )
1999-07-16 03:45:09 +04:00
if test ! "$ENABLE_PIC_DSO_CFLAGS"
then
DSO_PIC_CFLAGS=""
fi
1999-11-16 15:15:24 +03:00
MOZ_ARG_HEADER(Compiler Options)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(crash-on-assert,
--enable-crash-on-assert
Make NS_ASSERTION crash on Unix,
cat >> confdefs.h <<\EOF
1999-09-03 02:15:49 +04:00
#define UNIX_CRASH_ON_ASSERT 1
EOF
1999-11-16 15:15:24 +03:00
)
1999-04-02 07:44:31 +04:00
1999-04-13 18:14:36 +04:00
MOZ_OPTIMIZE=
if test ! "$MOZ_OPTIMIZE_FLAGS"
then
MOZ_OPTIMIZE_FLAGS="-O"
fi
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(optimize,
--enable-optimize Enable code optimizations ,
MOZ_OPTIMIZE=1 )
1999-04-13 18:14:36 +04:00
if test "$MOZ_OPTIMIZE"
then
CFLAGS="$CFLAGS $MOZ_OPTIMIZE_FLAGS"
CXXFLAGS="$CXXFLAGS $MOZ_OPTIMIZE_FLAGS"
fi
MOZ_DEBUG=1
if test ! "$MOZ_DEBUG_FLAGS"
then
MOZ_DEBUG_FLAGS="-g"
fi
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(debug,
--disable-debug Disable building with debug info,
MOZ_DEBUG=)
1999-04-02 07:44:31 +04:00
1999-04-11 23:44:37 +04:00
if test "$MOZ_DEBUG"
then
1999-04-13 18:14:36 +04:00
CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS"
CXXFLAGS="$CXXFLAGS $MOZ_DEBUG_FLAGS"
1999-09-03 02:15:49 +04:00
cat >> confdefs.h <<\EOF
#define DEBUG 1
EOF
cat >> confdefs.h <<EOF
#define DEBUG_`$WHOAMI` 1
EOF
cat >> confdefs.h <<\EOF
#define TRACING 1
EOF
else
cat >> confdefs.h <<\EOF
#define NDEBUG 1
EOF
cat >> confdefs.h <<\EOF
#define TRIMMED 1
EOF
1999-04-13 18:14:36 +04:00
fi
1999-09-17 05:00:37 +04:00
if test -z "$MOZ_POST_DSO_LIB_COMMAND"; then
MOZ_POST_DSO_LIB_COMMAND=true
fi
if test -z "$MOZ_POST_PROGRAM_COMMAND"; then
MOZ_POST_PROGRAM_COMMAND=true
fi
1999-06-10 19:29:51 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(strip-libs,
--enable-strip-libs Enable stripping of .so and .a libs ,
MOZ_POST_DSO_LIB_COMMAND=strip
MOZ_POST_PROGRAM_COMMAND=strip )
1999-06-10 19:29:51 +04:00
1999-09-22 07:16:10 +04:00
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
1999-09-16 17:45:36 +04:00
1999-09-22 14:01:17 +04:00
if test ! "$MOZ_DEBUG"
then
case "$host" in
*-linux*)
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(topsrcdir)/build/unix/gnu-ld-scripts/components-version-script'
;;
esac
fi
1999-09-16 17:45:36 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_WITH_STRING(debug-modules,
--with-debug-modules Enable debug for specific modules only,
MOZ_DEBUG_MODULES=`echo $withval | sed 's/,/ /g'` )
1999-10-11 15:16:05 +04:00
1999-11-12 00:45:23 +03:00
1999-11-10 02:31:43 +03:00
MOZ_EXTENSIONS="cookie wallet"
1999-11-12 00:45:23 +03:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_WITH_STRING(extensions,
--with-extensions Enable extensions (dirs in extensions/),
1999-11-10 02:31:43 +03:00
if test "$withval" = "yes" || test "$withval" = "all"; then
MOZ_EXTENSIONS="cookie irc wallet"
elif test "$withval" = "no" || test "$withval" = "none"; then
MOZ_EXTENSIONS=""
elif "$withval" != ""; then
MOZ_EXTENSIONS=`echo $withval | sed 's/,/ /g'`
1999-11-16 15:15:24 +03:00
fi )
1999-09-07 23:15:42 +04:00
1999-04-02 07:44:31 +04:00
_cpp_md_flag=
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(md,
--disable-md Do not use compiler-based dependencies ,
,
_cpp_md_flag=1,
dnl Default is to turn on -MD if using GNU-compatible compilers
if test "$GNU_CC" -a "$GNU_CXX"; then
1999-04-02 07:44:31 +04:00
_cpp_md_flag=1
1999-11-16 15:15:24 +03:00
fi)
1999-04-02 07:44:31 +04:00
if test "$_cpp_md_flag"; then
COMPILER_DEPEND=1
MDDEPDIR='.deps'
_DEPEND_CFLAGS='$(filter-out %/.pp,-Wp,-MD,$(MDDEPDIR)/$(*F).pp)'
1999-01-21 02:37:59 +03:00
fi
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(pedantic,
--disable-pedantic Issue all warnings demanded by strict ANSI C ,
_PEDANTIC= )
1999-09-03 12:15:45 +04:00
if test "$_PEDANTIC"; then
1999-09-03 16:45:44 +04:00
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} ${_COMPILER_PREFIX}-pedantic"
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-pedantic"
1999-09-03 12:15:45 +04:00
fi
1999-02-11 12:32:01 +03:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(long-long-warning,
--enable-long-long-warning
Pass -Wno-long-long to the compiler,
_IGNORE_LONG_LONG_WARNINGS=)
1999-09-04 08:15:40 +04:00
if test "$_IGNORE_LONG_LONG_WARNINGS"; then
1999-09-04 10:15:45 +04:00
_SAVE_CFLAGS="$CFLAGS"
1999-09-08 16:46:08 +04:00
CFLAGS="$CFLAGS ${_COMPILER_PREFIX}-Wno-long-long"
1999-09-04 10:15:45 +04:00
echo $ac_n "checking whether compiler supports -Wno-long-long""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:7980: checking whether compiler supports -Wno-long-long" >&5
1999-09-04 10:15:45 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 7982 "configure"
1999-09-04 10:15:45 +04:00
#include "confdefs.h"
int main() {
return(0);
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:7989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-09-04 10:15:45 +04:00
rm -rf conftest*
1999-09-08 16:46:08 +04:00
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} ${_COMPILER_PREFIX}-Wno-long-long"
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-Wno-long-long"
1999-09-04 10:15:45 +04:00
result="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
result="no"
fi
rm -f conftest*
echo "$ac_t""$result" 1>&6
CFLAGS="$_SAVE_CFLAGS"
1999-09-04 08:15:40 +04:00
fi
1999-06-25 00:44:57 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(shared,
--disable-shared Disable building of internal shared libs,
NO_SHARED_LIB=1)
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(cpp-rtti,
--enable-cpp-rtti Enable C++ RTTI ,
1999-04-02 07:44:31 +04:00
_MOZ_RTTI_FLAGS=-frtti
1999-11-16 15:15:24 +03:00
)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(cpp-exceptions,
--enable-cpp-exceptions Enable C++ exceptions ,
1999-04-02 07:44:31 +04:00
_MOZ_EXCEPTIONS_FLAGS=-fexceptions
1999-11-16 15:15:24 +03:00
)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_HEADER(Profiling and Instrumenting)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(gprof,
--enable-gprof Enable gprof symbols,
_GPROF_CFLAGS="-pg" )
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(perf-metrics,
--enable-perf-metrics Enable performance metrics,
MOZ_PERF=1
1999-10-21 06:15:10 +04:00
cat >> confdefs.h <<\EOF
#define MOZ_PERF_METRICS 1
EOF
1999-11-16 15:15:24 +03:00
)
1999-10-21 06:15:10 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(insure,
--enable-insure Enable insure++ instrumentation (linux only),
MOZ_INSURE="insure" MOZ_INSURIFYING=1 MOZ_INSURE_DIRS="." MOZ_INSURE_EXCLUDE_DIRS="config" )
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_WITH_STRING(insure-dirs,
--with-insure-dirs=\$dirs
Dirs to instrument ,
MOZ_INSURE_DIRS=$withval )
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_WITH_STRING(insure-exclude-dirs,
--with-insure-exclude-dirs=\$dirs
Dirs to not instrument ,
MOZ_INSURE_EXCLUDE_DIRS="config $withval" )
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(profile,
--enable-profile Enable profiling (solaris only),
MOZILLA_GPROF=1)
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(boehm,
--enable-boehm Enable the Boehm Garbage Collector,
cat >> confdefs.h <<\EOF
1999-10-19 03:15:10 +04:00
#define GC_LEAK_DETECTOR 1
EOF
1999-11-16 15:15:24 +03:00
GC_LEAK_DETECTOR=1)
1999-10-19 03:15:10 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(logrefcnt,
--enable-logrefcnt Enable Logging of refcounts (default=no) ,
MOZ_LOG_REFCNT=1
1999-10-21 00:45:41 +04:00
cat >> confdefs.h <<\EOF
#define MOZ_LOG_REFCNT 1
EOF
1999-11-16 15:15:24 +03:00
)
1999-10-21 00:45:41 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(leaky,
--enable-leaky Enable leaky memory tool,
MOZ_LEAKY=1)
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(detect-webshell-leaks,
--enable-detect-webshell-leaks Enable detection of webshell leaks,
DETECT_WEBSHELL_LEAKS=1
1999-10-27 11:15:10 +04:00
cat >> confdefs.h <<\EOF
#define DETECT_WEBSHELL_LEAKS 1
EOF
1999-11-16 15:15:24 +03:00
)
1999-10-27 11:15:10 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(double-buffer,
--disable-double-buffer Disable double buffering,
cat >> confdefs.h <<\EOF
1999-05-01 03:14:40 +04:00
#define NO_DOUBLE_BUFFER 1
EOF
1999-11-16 15:15:24 +03:00
)
1999-05-01 03:14:40 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(wrap-malloc,
--enable-wrap-malloc Wrap malloc calls (gnu linker only) (default=no) ,
if test "$GNU_CC"; then
1999-04-02 07:44:31 +04:00
WRAP_MALLOC_CFLAGS="${LDFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc"
MKSHLIB='$(CXX) $(DSO_LDOPTS) $(WRAP_MALLOC_CFLAGS)'
1999-11-16 15:15:24 +03:00
fi)
1999-02-11 12:32:01 +03:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_WITH_STRING(wrap-malloc,
--with-wrap-malloc=\$dir Location of malloc wrapper library,
WRAP_MALLOC_LIB=$withval)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(efence,
--enable-efence Link with Electric Fence if available (default=no) ,
echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6
echo "configure:8100: checking for malloc in -lefence" >&5
1999-07-16 03:15:11 +04:00
ac_lib_var=`echo efence'_'malloc | 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="-lefence $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8108 "configure"
1999-07-16 03:15:11 +04: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 malloc();
int main() {
malloc()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-07-16 03:15:11 +04: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
1999-11-16 15:15:24 +03:00
ac_tr_lib=HAVE_LIB`echo efence | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1999-07-16 03:15:11 +04:00
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lefence $LIBS"
else
echo "$ac_t""no" 1>&6
fi
1999-11-16 15:15:24 +03:00
)
1999-07-16 03:15:11 +04:00
1999-10-12 15:52:18 +04:00
echo $ac_n "checking for cplus_demangle in -liberty""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:8148: checking for cplus_demangle in -liberty" >&5
1999-10-12 15:52:18 +04:00
ac_lib_var=`echo iberty'_'cplus_demangle | 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="-liberty "-liberty" $LIBS"
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8156 "configure"
1999-10-12 15:52:18 +04: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 cplus_demangle();
int main() {
cplus_demangle()
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-10-12 15:52:18 +04: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
HAVE_DEMANGLE=1
else
echo "$ac_t""no" 1>&6
HAVE_DEMANGLE=
fi
1999-09-14 17:31:12 +04:00
MOZ_DEMANGLE_SYMBOLS=
1999-10-12 15:52:18 +04:00
if test "$HAVE_DEMANGLE"
then
case "$target" in
*-linux*)
1999-09-14 17:31:12 +04:00
# Demangle only for debug builds
if test "$MOZ_DEBUG"
then
MOZ_DEMANGLE_SYMBOLS=1
cat >> confdefs.h <<\EOF
#define MOZ_DEMANGLE_SYMBOLS 1
EOF
fi
;;
1999-10-12 15:52:18 +04:00
esac
fi
1999-09-14 17:31:12 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_HEADER(Misc. Options)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_STRING(homedir,
--enable-homedir=\$val Set the homedir to \$val,
if echo "$enableval" | grep "\/" >/dev/null; then
AC_MSG_ERROR("Homedir must be single relative path.")
1999-04-02 07:44:31 +04:00
else
1999-11-16 15:15:24 +03:00
AC_DEFINE(MOZ_USER_DIR,"$enableval")
fi,
1999-04-02 07:44:31 +04:00
cat >> confdefs.h <<\EOF
#define MOZ_USER_DIR ".mozilla"
EOF
1999-11-16 15:15:24 +03:00
)
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(idltool,
--enable-idlc Build idl tool (default=no) ,
BUILD_IDLC=1)
1999-04-02 07:44:31 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(xterm-updates,
--enable-xterm-updates Update XTERM titles with current command.,
MOZ_UPDATE_XTERM=1)
1999-10-11 15:16:05 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(mathml,
--enable-mathml Enable MathML (BROKEN) ,
MOZ_MATHML=1
1999-10-13 04:45:14 +04:00
cat >> confdefs.h <<\EOF
#define MOZ_MATHML 1
EOF
1999-11-16 15:15:24 +03:00
)
1999-10-13 04:45:14 +04:00
1999-08-30 03:00:49 +04:00
VERBOSE_CONFIG_DEFS=1
# Check whether --enable-verbose-config-defs or --disable-verbose-config-defs was given.
if test "${enable_verbose_config_defs+set}" = set; then
enableval="$enable_verbose_config_defs"
if test "$enableval" = "no"; then
VERBOSE_CONFIG_DEFS=
fi
fi
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(implicit-archive,
--enable-implicit-archive
Use GNU make's implicit archive feature,
USE_IMPLICIT_ARCHIVE=1)
1999-10-12 16:52:20 +04:00
1999-07-16 03:45:09 +04:00
MOZ_DISABLE_DTD_DEBUG=
1999-06-21 04:29:54 +04:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_DISABLE_BOOL(dtd-debug,
--disable-dtd-debug Disable some DTD debuggin code in the parser),
MOZ_DISABLE_DTD_DEBUG=1
1999-07-16 03:45:09 +04:00
cat >> confdefs.h <<\EOF
#define MOZ_DISABLE_DTD_DEBUG 1
1999-07-08 00:45:04 +04:00
EOF
1999-11-16 15:15:24 +03:00
)
1999-01-21 02:37:59 +03:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_HEADER(Untested or Broken Options)
1999-01-21 02:37:59 +03:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(java,
--enable-java Enable use of java applets (untested),
MOZ_JAVA=1 FULL_STATIC_BUILD= NO_SHARED_LIB=)
1999-01-21 02:37:59 +03:00
1999-04-22 22:59:40 +04:00
if test "$MOZ_OJI" -a "$MOZ_JAVA"
1999-04-22 04:44:37 +04:00
then
1999-04-22 22:59:40 +04:00
echo "configure: error: Simultaneous use of --enable-java and\
--enable-oji is no longer supported." 1>&2
exit 1
1999-04-22 04:44:37 +04:00
fi
1999-09-15 06:16:15 +04:00
MOZ_TIMER_LIBS='$(DIST)/lib/libtimer_s.a'
1999-08-24 19:00:47 +04:00
1999-09-06 12:30:40 +04:00
# Beos needs to link the timer in dynamically
case "$target" in
*-beos*)
MOZ_TIMER_LIBS=-ltimer_beos
;;
esac
1999-08-19 18:45:54 +04:00
NO_STATIC_LIB=1
1999-01-21 02:37:59 +03:00
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(static,
--enable-static Enable building of internal static libs,
NO_STATIC_LIB=)
1999-01-21 02:37:59 +03:00
1999-05-06 07:17:19 +04:00
case "$target" in
*-*-aix*)
if test "${NO_STATIC_LIB}" = "1" -o -z "${NO_SHARED_LIB}"; then
if test -f /usr/lpp/xlC/bin/makeC++SharedLib_r; then
AIX_SHLIB_BIN='/usr/lpp/xlC/bin/makeC++SharedLib_r'
elif test -f /usr/ibmcxx/bin/makeC++SharedLib_r; then
AIX_SHLIB_BIN='/usr/ibmcxx/bin/makeC++SharedLib_r'
fi
# Extract the first word of "makeC++SharedLib_r", so it can be a program name with args.
set dummy makeC++SharedLib_r; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:8308: checking for $ac_word" >&5
1999-05-06 07:17:19 +04:00
if eval "test \"`echo '$''{'ac_cv_path_AIX_SHLIB_BIN'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$AIX_SHLIB_BIN" in
/*)
ac_cv_path_AIX_SHLIB_BIN="$AIX_SHLIB_BIN" # Let the user override the test with a path.
;;
1999-09-15 05:50:05 +04:00
?:/*)
ac_cv_path_AIX_SHLIB_BIN="$AIX_SHLIB_BIN" # Let the user override the test with a dos path.
;;
1999-05-06 07:17:19 +04:00
*)
1999-09-15 05:50:05 +04:00
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
1999-05-06 07:17:19 +04:00
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_AIX_SHLIB_BIN="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_AIX_SHLIB_BIN" && ac_cv_path_AIX_SHLIB_BIN=":"
;;
esac
fi
AIX_SHLIB_BIN="$ac_cv_path_AIX_SHLIB_BIN"
if test -n "$AIX_SHLIB_BIN"; then
echo "$ac_t""$AIX_SHLIB_BIN" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test ! -n "$AIX_SHLIB_BIN"; then
echo
echo "*** Unable to locate makeC++SharedLib_r, needed for creation of shared"
echo "*** libraries on AIX. You will only be able to build static libraries."
echo
NO_STATIC_LIB=''
NO_SHARED_LIB=1
fi
fi
;;
esac
1999-01-21 02:37:59 +03:00
1999-04-02 07:44:31 +04:00
1999-08-29 22:15:50 +04:00
1999-04-02 07:44:31 +04:00
1999-04-22 05:08:18 +04:00
1999-05-01 01:44:41 +04:00
1999-06-10 18:59:53 +04:00
1999-05-28 16:44:46 +04:00
1999-06-10 19:29:51 +04:00
1999-07-02 17:15:07 +04:00
1999-09-05 20:01:13 +04:00
1999-07-08 00:45:04 +04:00
1999-08-24 19:00:47 +04:00
1999-09-16 17:45:36 +04:00
1999-09-07 23:15:42 +04:00
1999-10-21 00:45:41 +04:00
1999-11-12 01:00:30 +03:00
1999-11-16 10:00:24 +03:00
1999-10-27 11:15:10 +04:00
1999-04-22 05:08:18 +04:00
# Check whether --with-jpeg or --without-jpeg was given.
if test "${with_jpeg+set}" = set; then
withval="$with_jpeg"
JPEG_DIR=$withval
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
_SAVE_CFLAGS=$CFLAGS
_SAVE_LDFLAGS=$LDFLAGS
_SAVE_LIBS=$LIBS
CFLAGS="-I${JPEG_DIR}/include $CFLAGS"
LDFLAGS="-L${JPEG_DIR}/lib $LDFLAGS"
if test "$JPEG_DIR" = no; then
SYSTEM_JPEG=
1999-01-21 02:37:59 +03:00
else
1999-04-22 05:08:18 +04:00
echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:8433: checking for jpeg_destroy_compress in -ljpeg" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
1999-01-21 02:37:59 +03:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-ljpeg $JPEG_LIBS $LIBS"
1999-01-21 02:37:59 +03:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8441 "configure"
1999-01-21 02:37:59 +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. */
1999-04-22 05:08:18 +04:00
char jpeg_destroy_compress();
1999-01-21 02:37:59 +03:00
int main() {
1999-04-22 05:08:18 +04:00
jpeg_destroy_compress()
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
1999-04-22 05:08:18 +04:00
SYSTEM_JPEG=1 JPEG_LIBS="-ljpeg $JPEG_LIBS"
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
1999-04-22 05:08:18 +04:00
SYSTEM_JPEG=
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
fi
if test "$SYSTEM_JPEG" = 1; then
LIBS="$JPEG_LIBS $LIBS"
1999-01-21 02:37:59 +03:00
if test "$cross_compiling" = yes; then
1999-04-22 05:08:18 +04:00
SYSTEM_JPEG=
1999-01-21 02:37:59 +03:00
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8481 "configure"
1999-01-21 02:37:59 +03:00
#include "confdefs.h"
#include <stdio.h>
1999-04-22 05:08:18 +04:00
#include <sys/types.h>
#include <jpeglib.h>
1999-01-21 02:37:59 +03:00
int main () {
1999-04-22 05:08:18 +04:00
#if JPEG_LIB_VERSION >= $MOZJPEG
exit(0);
#else
exit(1);
#endif
1999-01-21 02:37:59 +03:00
}
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-01-21 02:37:59 +03:00
then
1999-04-22 05:08:18 +04:00
SYSTEM_JPEG=1
1999-01-21 02:37:59 +03:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
1999-04-22 05:08:18 +04:00
SYSTEM_JPEG= JPEG_CFLAGS= JPEG_LIBS=
1999-01-21 02:37:59 +03:00
fi
rm -fr conftest*
fi
1999-04-22 05:08:18 +04:00
1999-01-21 02:37:59 +03:00
rm -f core
1999-04-22 05:08:18 +04:00
fi
CFLAGS=$_SAVE_CFLAGS
LDFLAGS=$_SAVE_LDFLAGS
LIBS=$_SAVE_LIBS
if test -n "${JPEG_DIR}" -a -d "${JPEG_DIR}" -a "$SYSTEM_JPEG" = 1; then
JPEG_CFLAGS="-I${JPEG_DIR}/include"
JPEG_LIBS="-L${JPEG_DIR}/lib ${JPEG_LIBS}"
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
# Check whether --with-zlib or --without-zlib was given.
if test "${with_zlib+set}" = set; then
withval="$with_zlib"
ZLIB_DIR=$withval
fi
1999-01-21 02:37:59 +03:00
1999-04-22 05:08:18 +04:00
_SAVE_CFLAGS=$CFLAGS
_SAVE_LDFLAGS=$LDFLAGS
CFLAGS="-I${ZLIB_DIR}/include $CFLAGS"
LDFLAGS="-L${ZLIB_DIR}/lib $LDFLAGS"
if test "$ZLIB_DIR" = no; then
SYSTEM_ZLIB=
else
echo $ac_n "checking "for zlib.h"""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:8533: checking "for zlib.h"" >&5
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8535 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
#include "zlib.h"
int main() {
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999-04-22 05:08:18 +04:00
rm -rf conftest*
result="yes" SYSTEM_ZLIB=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
result="no" SYSTEM_ZLIB=
fi
rm -f conftest*
echo "$ac_t"""$result"" 1>&6
fi
if test "$SYSTEM_ZLIB" = 1; then
echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:8556: checking for gzread in -lz" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
1999-01-21 02:37:59 +03:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lz $ZLIB_LIBS $LIBS"
1999-01-21 02:37:59 +03:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8564 "configure"
1999-01-21 02:37:59 +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. */
1999-04-22 05:08:18 +04:00
char gzread();
1999-01-21 02:37:59 +03:00
int main() {
1999-04-22 05:08:18 +04:00
gzread()
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
1999-04-22 05:08:18 +04:00
SYSTEM_ZLIB=1 ZLIB_LIBS="-lz $ZLIB_LIBS"
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
1999-04-22 05:08:18 +04:00
SYSTEM_ZLIB= ZLIB_CFLAGS= ZLIB_LIBS=
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
fi
CFLAGS=$_SAVE_CFLAGS
LDFLAGS=$_SAVE_LDFLAGS
if test "${ZLIB_DIR}" -a -d "${ZLIB_DIR}" -a "$SYSTEM_ZLIB" = 1; then
ZLIB_CFLAGS="-I${ZLIB_DIR}/include"
ZLIB_LIBS="-L${ZLIB_DIR}/lib ${ZLIB_LIBS}"
fi
# Check whether --with-png or --without-png was given.
if test "${with_png+set}" = set; then
withval="$with_png"
PNG_DIR=$withval
fi
_SAVE_CFLAGS=$CFLAGS
_SAVE_LDFLAGS=$LDFLAGS
_SAVE_LIBS=$LIBS
CFLAGS="-I${PNG_DIR}/include $ZLIB_CFLAGS $CFLAGS"
LDFLAGS="-L${PNG_DIR}/lib $ZLIB_LIBS -lz $LDFLAGS"
if test "$PNG_DIR" = no; then
SYSTEM_PNG=
else
echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:8621: checking for png_get_valid in -lpng" >&5
1999-04-22 05:08:18 +04:00
ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
1999-01-21 02:37:59 +03:00
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"
1999-04-22 05:08:18 +04:00
LIBS="-lpng $PNG_LIBS $LIBS"
1999-01-21 02:37:59 +03:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8629 "configure"
1999-01-21 02:37:59 +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. */
1999-04-22 05:08:18 +04:00
char png_get_valid();
1999-01-21 02:37:59 +03:00
int main() {
1999-04-22 05:08:18 +04:00
png_get_valid()
1999-01-21 02:37:59 +03:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-01-21 02:37:59 +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
1999-04-22 05:08:18 +04:00
SYSTEM_PNG=1 PNG_LIBS="-lpng $PNG_LIBS"
1999-01-21 02:37:59 +03:00
else
echo "$ac_t""no" 1>&6
1999-04-22 05:08:18 +04:00
SYSTEM_PNG=
1999-01-21 02:37:59 +03:00
fi
1999-04-22 05:08:18 +04:00
fi
if test "$SYSTEM_PNG" = 1; then
LIBS="$PNG_LIBS $LIBS"
if test "$cross_compiling" = yes; then
SYSTEM_PNG=
else
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8668 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
#include <png.h>
int main () {
#if PNG_LIBPNG_VER >= $MOZPNG
exit(0);
#else
exit(1);
#endif
}
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1999-04-22 05:08:18 +04:00
then
SYSTEM_PNG=1
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
SYSTEM_PNG= PNG_CFLAGS= PNG_LIBS=
fi
rm -fr conftest*
fi
rm -f core
fi
1999-01-21 02:37:59 +03:00
CFLAGS=$_SAVE_CFLAGS
LDFLAGS=$_SAVE_LDFLAGS
LIBS=$_SAVE_LIBS
1999-04-22 05:08:18 +04:00
if test "${PNG_DIR}" -a -d "${PNG_DIR}" -a "$SYSTEM_PNG" = 1; then
PNG_CFLAGS="-I${PNG_DIR}/include"
PNG_LIBS="-L${PNG_DIR}/lib ${PNG_LIBS}"
1999-01-21 02:37:59 +03:00
fi
1999-04-11 18:14:36 +04:00
1999-09-10 02:00:50 +04:00
MOZ_FULLCIRCLE=
FULLCIRCLE_LIBS=
1999-11-16 15:15:24 +03:00
MOZ_ARG_ENABLE_BOOL(fullcircle,
--enable-fullcircle Enable FullCircle/Talkback support,
MOZ_FULLCIRCLE=1 FULLCIRCLE_LIBS="-lfullsoft" )
1999-08-31 06:01:01 +04:00
1999-04-22 05:08:18 +04:00
# Check whether --with-fullcircle or --without-fullcircle was given.
if test "${with_fullcircle+set}" = set; then
withval="$with_fullcircle"
FULLCIRCLE_DIR=$withval
else
FULLCIRCLE_DIR=no
fi
1999-04-11 18:14:36 +04:00
1999-04-22 05:08:18 +04:00
if test "$FULLCIRCLE_DIR" = no; then
FULLCIRCLE_DIR=
1999-04-11 18:14:36 +04:00
else
1999-04-22 05:08:18 +04:00
_SAVE_CFLAGS=$CFLAGS
_SAVE_LDFLAGS=$LDFLAGS
_SAVE_LIBS=$LIBS
CFLAGS="$CFLAGS -I${FULLCIRCLE_DIR}"
LDFLAGS="$LDFLAGS -L${FULLCIRCLE_DIR}"
1999-08-31 06:01:01 +04:00
LIBS="-lfullsoft $LIBS"
1999-09-05 07:26:34 +04:00
echo $ac_n "checking "for FCInitialize in -lfullsoft"""... $ac_c" 1>&6
1999-11-16 15:15:24 +03:00
echo "configure:8732: checking "for FCInitialize in -lfullsoft"" >&5;
1999-04-22 05:08:18 +04:00
cat > conftest.$ac_ext <<EOF
1999-11-16 15:15:24 +03:00
#line 8734 "configure"
1999-04-22 05:08:18 +04:00
#include "confdefs.h"
1999-06-25 23:48:18 +04:00
#include <stdio.h>
1999-09-09 01:46:16 +04:00
#include "fullsoft.h"
1999-04-22 05:08:18 +04:00
int main() {
1999-09-05 07:26:34 +04:00
FCInitialize(); exit(0);
1999-04-22 05:08:18 +04:00
; return 0; }
EOF
1999-11-16 15:15:24 +03:00
if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999-04-22 05:08:18 +04:00
rm -rf conftest*
1999-08-31 06:01:01 +04:00
FULLCIRCLE_LIBS="-I${FULLCIRCLE_DIR} -L${FULLCIRCLE_DIR} -lfullsoft" result="yes"
1999-04-22 05:08:18 +04:00
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
MISSING_FULLCIRCLE=1 result="no"
fi
rm -f conftest*
echo "$ac_t"""$result"" 1>&6
CFLAGS=$_SAVE_CFLAGS
LDFLAGS=$_SAVE_LDFLAGS
LIBS=$_SAVE_LIBS
1999-05-12 06:44:41 +04:00
if test ! -z "$MISSING_FULLCIRCLE"; then
1999-08-31 06:01:01 +04:00
echo
echo "Could not find FullCircle library -- ignoring it"
echo
1999-09-10 02:00:50 +04:00
MOZ_FULLCIRCLE=
FULLCIRCLE_LIBS=
1999-08-31 06:01:01 +04:00
else
cat >> confdefs.h <<\EOF
#define MOZ_FULLCIRCLE 1
EOF
1999-09-09 12:45:48 +04:00
CFLAGS="$CFLAGS -I${FULLCIRCLE_DIR}"
CXXFLAGS="$CXXFLAGS -I${FULLCIRCLE_DIR}"
1999-04-22 05:08:18 +04:00
fi
1999-04-11 18:14:36 +04:00
fi
1999-04-22 05:08:18 +04:00
1999-08-31 06:01:01 +04:00
1999-09-10 02:00:50 +04:00
1999-03-22 23:45:44 +03:00
LDFLAGS=`echo \
$_WARNINGS_CFLAGS \
$LDFLAGS \
$CFLAGS`
1999-02-17 20:45:38 +03:00
CFLAGS=`echo \
1999-03-07 08:30:39 +03:00
$_WARNINGS_CFLAGS \
$_GPROF_CFLAGS \
$_DEPEND_CFLAGS \
1999-03-09 04:45:41 +03:00
$_DEFINES_CFLAGS \
1999-02-17 20:45:38 +03:00
$CFLAGS`
1999-02-12 04:45:35 +03:00
1999-03-07 08:30:39 +03:00
CXXFLAGS=`echo \
$_MOZ_RTTI_FLAGS \
$_MOZ_EXCEPTIONS_FLAGS \
1999-03-09 04:45:41 +03:00
$_WARNINGS_CXXFLAGS \
1999-03-07 08:30:39 +03:00
$_GPROF_CFLAGS \
$_DEPEND_CFLAGS \
1999-03-09 04:45:41 +03:00
$_DEFINES_CXXFLAGS \
1999-03-07 08:30:39 +03:00
$CXXFLAGS`
1999-03-09 04:45:41 +03:00
1999-04-11 21:44:37 +04:00
1999-03-09 04:45:41 +03:00
1999-01-21 02:37:59 +03:00
1999-08-29 22:15:50 +04:00
1999-02-02 20:45:37 +03:00
1999-01-21 02:37:59 +03:00
1999-03-07 08:30:39 +03:00
1999-04-05 06:59:34 +04:00
1999-05-04 10:59:41 +04:00
1999-04-11 14:44:36 +04:00
1999-05-06 03:38:41 +04:00
1999-01-21 02:37:59 +03:00
1999-09-04 02:15:44 +04:00
1999-06-11 14:59:52 +04:00
1999-10-17 19:30:18 +04:00
1999-02-19 20:31:47 +03:00
1999-01-21 02:37:59 +03:00
1999-06-04 07:25:25 +04:00
cat >> confdefs.h <<EOF
1999-06-04 05:50:43 +04:00
#define MOZ_DLL_SUFFIX ".$DLL_SUFFIX"
EOF
1999-01-21 02:37:59 +03:00
1999-08-29 22:15:50 +04:00
1999-01-21 02:37:59 +03:00
if test "$USING_HCC"; then
CC='${topsrcdir}/build/hcc'
CC="$CC '$_OLDCC'"
CXX='${topsrcdir}/build/hcpp'
CXX="$CXX '$_OLDCXX'"
fi
1999-02-16 21:31:20 +03:00
if test "$no_x" != "yes"; then
1999-05-12 06:44:41 +04:00
if test ! -z "$MISSING_X"; then
1999-01-21 02:37:59 +03:00
{ echo "configure: error: Could not find the following X libraries: $MISSING_X " 1>&2; exit 1; };
fi
1999-05-12 06:44:41 +04:00
if test ! -z "$MISSING_MOTIF"; then
1999-05-12 01:39:38 +04:00
{ echo "configure: error: Could not find the following Motif libraries: $MISSING_MOTIF " 1>&2; exit 1; };
1999-01-21 02:37:59 +03:00
fi
fi # $no_x
1999-02-16 21:31:20 +03:00
if test "$OS_TARGET" = "OS2"; then
cat >> confdefs.h <<\EOF
#define XP_PC 1
EOF
elif test "$OS_TARGET" = "WINNT"; then
cat >> confdefs.h <<\EOF
#define XP_PC 1
EOF
1999-06-25 12:14:56 +04:00
elif test "$OS_TARGET" = "BeOS"; then
cat >> confdefs.h <<\EOF
#define XP_BEOS 1
EOF
1999-02-16 21:31:20 +03:00
else
cat >> confdefs.h <<\EOF
#define XP_UNIX 1
EOF
cat >> confdefs.h <<\EOF
#define UNIX_EMBED 1
EOF
cat >> confdefs.h <<\EOF
#define X_PLUGINS 1
EOF
cat >> confdefs.h <<\EOF
#define UNIX_LDAP 1
EOF
cat >> confdefs.h <<\EOF
#define UNIX_ASYNC_DNS 1
EOF
fi
cat >> confdefs.h <<\EOF
#define JS_THREADSAFE 1
EOF
cat >> confdefs.h <<\EOF
#define LAYERS 1
EOF
if test "$MOZ_EDITOR"; then
cat >> confdefs.h <<\EOF
#define NGEDITOR 1
EOF
fi
1999-02-19 01:00:38 +03:00
# Used for LD_LIBRARY_PATH of run_viewer target
LIBS_PATH=
for lib_arg in $NSPR_LIBS $TK_LIBS; do
case $lib_arg in
-L* ) LIBS_PATH="${LIBS_PATH:+$LIBS_PATH:}"`expr $lib_arg : "-L\(.*\)"` ;;
* ) ;;
esac
done
1999-02-16 21:31:20 +03:00
1999-10-17 19:30:18 +04:00
if test -z "$MOZ_NATIVE_NSPR" && test -z "$USE_NSPR_AUTOCONF"
1999-04-13 07:14:37 +04:00
then
1999-04-11 14:44:36 +04:00
1999-04-11 18:14:36 +04:00
MOZ_NSPRENV_USE_PTHREADS=$USE_PTHREADS
1999-04-11 14:44:36 +04:00
1999-06-15 03:44:52 +04:00
MOZ_NSPRENV_CLASSIC_NSPR=
case "$target" in
*-linux*)
if test "$USE_PTHREADS"x = x
then
MOZ_NSPRENV_CLASSIC_NSPR=1
fi
;;
esac
1999-04-11 14:44:36 +04:00
if test "$MOZ_DEBUG"
then
MOZ_NSPRENV_BUILD_OPT=
else
MOZ_NSPRENV_BUILD_OPT=1
fi
if test "$GNU_CC"
then
MOZ_NSPRENV_NS_USE_GCC=1
MOZ_NSPRENV_NS_USE_NATIVE=
else
MOZ_NSPRENV_NS_USE_NATIVE=1
MOZ_NSPRENV_NS_USE_GCC=
fi
MOZ_NSPRENV_NO_MDUPDATE=1
1999-05-31 05:29:47 +04:00
MOZ_NSPRENV_MOZILLA_CLIENT=
1999-04-13 07:14:37 +04:00
MOZ_NSPRENV_DIST=`pwd`/dist
1999-04-10 03:14:27 +04:00
1999-04-16 07:44:39 +04:00
case "$target" in
*-linux*)
1999-04-22 04:44:37 +04:00
MOZ_NSPRENV_OVERRIDE_MAKE=`echo $MAKE | $AWK '{print \$1}'`
1999-04-16 07:44:39 +04:00
;;
1999-04-16 06:59:39 +04:00
1999-04-16 07:44:39 +04:00
*)
MOZ_NSPRENV_OVERRIDE_MAKE=
;;
esac
1999-04-16 06:44:40 +04:00
1999-04-10 03:14:27 +04:00
1999-06-17 01:29:54 +04:00
1999-04-13 07:14:37 +04:00
fi
1999-02-16 21:31:20 +03:00
1999-02-10 02:32:00 +03:00
# Save the defines header file before autoconf removes it.
# (Do not add AC_DEFINE calls after this line.)
1999-03-09 04:45:41 +03:00
if test "$_USE_CPP_INCLUDE_FLAG"; then
1999-09-03 02:15:49 +04:00
_CONFIG_TMP=confdefs-tmp.h
_CONFIG_DEFS_H=config-defs.h
1999-02-12 04:00:35 +03:00
1999-09-03 02:15:49 +04:00
cat > $_CONFIG_TMP <<\EOF
1999-02-10 02:32:00 +03:00
/* List of defines generated by configure. Included with preprocessor flag,
* -include, to avoid long list of -D defines on the compile command-line.
* Do not edit.
*/
EOF
1999-09-03 02:45:47 +04:00
sort confdefs.h >> $_CONFIG_TMP
1999-09-03 02:15:49 +04:00
# Only write config-defs.h when something changes (or it doesn't exist)
if cmp -s $_CONFIG_TMP $_CONFIG_DEFS_H; then
rm $_CONFIG_TMP
else
echo "$ac_t"""creating $_CONFIG_DEFS_H"" 1>&6
mv -f $_CONFIG_TMP $_CONFIG_DEFS_H
if test "$VERBOSE_CONFIG_DEFS"; then
echo ==== $_CONFIG_DEFS_H =================================
cat $_CONFIG_DEFS_H
fi
1999-02-12 04:00:35 +03:00
fi
1999-02-10 02:32:00 +03:00
fi
1999-09-06 08:30:54 +04:00
1999-09-09 23:31:03 +04:00
. ${srcdir}/allmakefiles.sh
echo $MAKEFILES | $PERL $srcdir/build/autoconf/acoutput-fast.pl > conftest.sh
1999-09-10 22:30:52 +04:00
. ./conftest.sh
1999-09-09 23:31:03 +04:00
rm conftest.sh
1999-04-21 05:14:38 +04:00
1999-01-21 02:37:59 +03:00
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 |
1999-09-15 05:50:05 +04:00
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1999-01-21 02:37:59 +03:00
*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.
cat > conftest.defs <<\EOF
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
s%\[%\\&%g
s%\]%\\&%g
s%\$%$$%g
EOF
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
rm -f conftest.defs
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1999-09-15 05:50:05 +04:00
echo "$CONFIG_STATUS generated by autoconf version 2.13"
1999-01-21 02:37:59 +03:00
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
ac_given_INSTALL="$INSTALL"
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
1999-09-15 05:50:05 +04:00
s%@SHELL@%$SHELL%g
1999-01-21 02:37:59 +03:00
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
1999-09-15 05:50:05 +04:00
s%@FFLAGS@%$FFLAGS%g
1999-01-21 02:37:59 +03:00
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
1999-08-29 22:15:50 +04:00
s%@HOST_CC@%$HOST_CC%g
s%@HOST_CXX@%$HOST_CXX%g
s%@HOST_RANLIB@%$HOST_RANLIB%g
1999-09-04 02:15:44 +04:00
s%@HOST_AR@%$HOST_AR%g
1999-01-21 02:37:59 +03:00
s%@CC@%$CC%g
s%@CXX@%$CXX%g
1999-08-29 22:15:50 +04:00
s%@RANLIB@%$RANLIB%g
s%@AR@%$AR%g
s%@AS@%$AS%g
s%@LD@%$LD%g
s%@DLLTOOL@%$DLLTOOL%g
s%@WINDRES@%$WINDRES%g
s%@GNU_CC@%$GNU_CC%g
s%@GNU_CXX@%$GNU_CXX%g
1999-01-21 02:37:59 +03:00
s%@CPP@%$CPP%g
s%@CXXCPP@%$CXXCPP%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1999-09-15 05:50:05 +04:00
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1999-01-21 02:37:59 +03:00
s%@INSTALL_DATA@%$INSTALL_DATA%g
1999-08-29 22:15:50 +04:00
s%@LN_S@%$LN_S%g
1999-01-21 02:37:59 +03:00
s%@AWK@%$AWK%g
s%@PERL@%$PERL%g
1999-08-29 22:15:50 +04:00
s%@EMACS@%$EMACS%g
1999-01-21 02:37:59 +03:00
s%@WHOAMI@%$WHOAMI%g
s%@UNZIP@%$UNZIP%g
s%@ZIP@%$ZIP%g
1999-08-29 22:15:50 +04:00
s%@SYSTEM_MAKEDEPEND@%$SYSTEM_MAKEDEPEND%g
s%@MAKE@%$MAKE%g
s%@SET_MAKE@%$SET_MAKE%g
1999-01-21 02:37:59 +03:00
s%@X_CFLAGS@%$X_CFLAGS%g
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
s%@X_LIBS@%$X_LIBS%g
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
1999-07-13 04:15:39 +04:00
s%@NO_LD_ARCHIVE_FLAGS@%$NO_LD_ARCHIVE_FLAGS%g
1999-04-02 07:44:31 +04:00
s%@GTK_CONFIG@%$GTK_CONFIG%g
s%@TK_CFLAGS@%$TK_CFLAGS%g
s%@TK_LIBS@%$TK_LIBS%g
1999-08-05 09:15:16 +04:00
s%@MOZ_ENABLE_GTK@%$MOZ_ENABLE_GTK%g
s%@MOZ_ENABLE_MOTIF@%$MOZ_ENABLE_MOTIF%g
s%@MOZ_ENABLE_XLIB@%$MOZ_ENABLE_XLIB%g
1999-08-09 19:00:54 +04:00
s%@MOZ_ENABLE_QT@%$MOZ_ENABLE_QT%g
1999-08-05 09:15:16 +04:00
s%@MOZ_GTK_CFLAGS@%$MOZ_GTK_CFLAGS%g
s%@MOZ_GTK_LDFLAGS@%$MOZ_GTK_LDFLAGS%g
s%@MOZ_MOTIF_CFLAGS@%$MOZ_MOTIF_CFLAGS%g
s%@MOZ_MOTIF_LDFLAGS@%$MOZ_MOTIF_LDFLAGS%g
s%@MOZ_XLIB_CFLAGS@%$MOZ_XLIB_CFLAGS%g
s%@MOZ_XLIB_LDFLAGS@%$MOZ_XLIB_LDFLAGS%g
1999-08-09 19:00:54 +04:00
s%@MOZ_QT_CFLAGS@%$MOZ_QT_CFLAGS%g
s%@MOZ_QT_LDFLAGS@%$MOZ_QT_LDFLAGS%g
1999-08-17 13:45:50 +04:00
s%@MOZ_DEFAULT_TOOLKIT@%$MOZ_DEFAULT_TOOLKIT%g
1999-04-02 07:44:31 +04:00
s%@XCFLAGS@%$XCFLAGS%g
s%@XLDFLAGS@%$XLDFLAGS%g
s%@XLIBS@%$XLIBS%g
1999-05-01 06:14:39 +04:00
s%@LIBIDL_CFLAGS@%$LIBIDL_CFLAGS%g
s%@LIBIDL_LIBS@%$LIBIDL_LIBS%g
1999-01-21 02:37:59 +03:00
s%@LIBOBJS@%$LIBOBJS%g
1999-09-03 02:15:49 +04:00
s%@MOZ_MAIL_NEWS@%$MOZ_MAIL_NEWS%g
1999-03-26 08:44:30 +03:00
s%@COMPILER_DEPEND@%$COMPILER_DEPEND%g
1999-03-22 23:45:44 +03:00
s%@MDDEPDIR@%$MDDEPDIR%g
1999-09-14 17:31:12 +04:00
s%@MOZ_DEMANGLE_SYMBOLS@%$MOZ_DEMANGLE_SYMBOLS%g
1999-05-06 07:17:19 +04:00
s%@AIX_SHLIB_BIN@%$AIX_SHLIB_BIN%g
1999-08-29 22:15:50 +04:00
s%@AR_FLAGS@%$AR_FLAGS%g
s%@AR_LIST@%$AR_LIST%g
s%@AR_EXTRACT@%$AR_EXTRACT%g
s%@AR_DELETE@%$AR_DELETE%g
1999-03-08 18:15:41 +03:00
s%@ASFLAGS@%$ASFLAGS%g
s%@AS_DASH_C_FLAG@%$AS_DASH_C_FLAG%g
s%@NS_USE_NATIVE@%$NS_USE_NATIVE%g
1999-07-02 17:15:07 +04:00
s%@MOZ_WIDGET_TOOLKIT@%$MOZ_WIDGET_TOOLKIT%g
s%@MOZ_GFX_TOOLKIT@%$MOZ_GFX_TOOLKIT%g
1999-02-12 02:15:44 +03:00
s%@MOZ_UPDATE_XTERM@%$MOZ_UPDATE_XTERM%g
1999-10-13 04:45:14 +04:00
s%@MOZ_MATHML@%$MOZ_MATHML%g
1999-08-17 13:45:50 +04:00
s%@MOZ_MONOLITHIC_TOOLKIT@%$MOZ_MONOLITHIC_TOOLKIT%g
1999-08-24 19:00:47 +04:00
s%@MOZ_TIMER_LIBS@%$MOZ_TIMER_LIBS%g
1999-01-21 02:37:59 +03:00
s%@MOZ_SECURITY@%$MOZ_SECURITY%g
s%@MOZ_JAVA@%$MOZ_JAVA%g
s%@MOZ_OJI@%$MOZ_OJI%g
s%@MOZ_DEBUG@%$MOZ_DEBUG%g
s%@MOZ_DEBUG_MODULES@%$MOZ_DEBUG_MODULES%g
1999-09-07 23:15:42 +04:00
s%@MOZ_EXTENSIONS@%$MOZ_EXTENSIONS%g
1999-01-21 02:37:59 +03:00
s%@MOZILLA_GPROF@%$MOZILLA_GPROF%g
1999-10-21 06:15:10 +04:00
s%@MOZ_PERF_METRICS@%$MOZ_PERF_METRICS%g
1999-10-19 03:15:10 +04:00
s%@GC_LEAK_DETECTOR@%$GC_LEAK_DETECTOR%g
1999-10-21 00:45:41 +04:00
s%@MOZ_LOG_REFCNT@%$MOZ_LOG_REFCNT%g
1999-09-26 00:46:28 +04:00
s%@MOZ_LEAKY@%$MOZ_LEAKY%g
1999-10-27 11:15:10 +04:00
s%@DETECT_WEBSHELL_LEAKS@%$DETECT_WEBSHELL_LEAKS%g
1999-02-17 17:45:37 +03:00
s%@MOZ_INSURE@%$MOZ_INSURE%g
s%@MOZ_INSURE_DIRS@%$MOZ_INSURE_DIRS%g
s%@MOZ_INSURE_EXCLUDE_DIRS@%$MOZ_INSURE_EXCLUDE_DIRS%g
s%@MOZ_INSURIFYING@%$MOZ_INSURIFYING%g
1999-02-18 07:31:38 +03:00
s%@MOZ_BUILD_XPFE@%$MOZ_BUILD_XPFE%g
1999-01-21 02:37:59 +03:00
s%@MOZ_EDITOR@%$MOZ_EDITOR%g
1999-04-01 11:29:38 +04:00
s%@MOZ_BRPROF@%$MOZ_BRPROF%g
1999-05-12 02:29:43 +04:00
s%@UNIX_CRASH_ON_ASSERT@%$UNIX_CRASH_ON_ASSERT%g
1999-01-21 02:37:59 +03:00
s%@NO_UNIX_ASYNC_DNS@%$NO_UNIX_ASYNC_DNS%g
s%@NO_SHARED_LIB@%$NO_SHARED_LIB%g
s%@NO_STATIC_LIB@%$NO_STATIC_LIB%g
s%@ENABLE_TESTS@%$ENABLE_TESTS%g
s%@MOZ_USER_DIR@%$MOZ_USER_DIR%g
s%@FULL_STATIC_BUILD@%$FULL_STATIC_BUILD%g
s%@NO_UNIX_LDAP@%$NO_UNIX_LDAP%g
1999-03-12 22:45:45 +03:00
s%@BUILD_IDLC@%$BUILD_IDLC%g
1999-05-28 16:44:46 +04:00
s%@MOZ_ENABLE_GTK_MOZILLA@%$MOZ_ENABLE_GTK_MOZILLA%g
1999-10-12 16:52:20 +04:00
s%@USE_IMPLICIT_ARCHIVE@%$USE_IMPLICIT_ARCHIVE%g
1999-09-22 07:16:10 +04:00
s%@MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS@%$MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS%g
1999-11-16 10:00:24 +03:00
s%@MOZ_COMPONENT_NSPR_LIBS@%$MOZ_COMPONENT_NSPR_LIBS%g
s%@MOZ_COMPONENT_XPCOM_LIBS@%$MOZ_COMPONENT_XPCOM_LIBS%g
1999-11-12 01:00:30 +03:00
s%@MOZ_COMPONENT_LIBS@%$MOZ_COMPONENT_LIBS%g
1999-09-05 20:01:13 +04:00
s%@MOZ_GLE@%$MOZ_GLE%g
1999-05-28 16:44:46 +04:00
s%@MOZ_BUILD_ROOT@%$MOZ_BUILD_ROOT%g
1999-06-10 19:29:51 +04:00
s%@MOZ_POST_DSO_LIB_COMMAND@%$MOZ_POST_DSO_LIB_COMMAND%g
1999-06-10 20:29:51 +04:00
s%@MOZ_POST_PROGRAM_COMMAND@%$MOZ_POST_PROGRAM_COMMAND%g
1999-09-10 02:00:50 +04:00
s%@MOZ_FULLCIRCLE@%$MOZ_FULLCIRCLE%g
s%@FULLCIRCLE_LIBS@%$FULLCIRCLE_LIBS%g
1999-01-21 02:37:59 +03:00
s%@SYSTEM_JPEG@%$SYSTEM_JPEG%g
s%@SYSTEM_PNG@%$SYSTEM_PNG%g
s%@SYSTEM_ZLIB@%$SYSTEM_ZLIB%g
s%@JPEG_CFLAGS@%$JPEG_CFLAGS%g
s%@JPEG_LIBS@%$JPEG_LIBS%g
s%@ZLIB_CFLAGS@%$ZLIB_CFLAGS%g
s%@ZLIB_LIBS@%$ZLIB_LIBS%g
s%@PNG_CFLAGS@%$PNG_CFLAGS%g
s%@PNG_LIBS@%$PNG_LIBS%g
1999-04-05 06:59:34 +04:00
s%@NSPR_INCLUDE_DIR@%$NSPR_INCLUDE_DIR%g
1999-01-21 02:37:59 +03:00
s%@NSPR_CFLAGS@%$NSPR_CFLAGS%g
s%@NSPR_LIBS@%$NSPR_LIBS%g
1999-04-11 14:44:36 +04:00
s%@MOZ_NATIVE_NSPR@%$MOZ_NATIVE_NSPR%g
1999-10-17 19:30:18 +04:00
s%@USE_NSPR_AUTOCONF@%$USE_NSPR_AUTOCONF%g
1999-09-04 02:15:44 +04:00
s%@CROSS_COMPILE@%$CROSS_COMPILE%g
1999-08-29 22:15:50 +04:00
s%@HOST_CFLAGS@%$HOST_CFLAGS%g
s%@HOST_CXXFLAGS@%$HOST_CXXFLAGS%g
s%@HOST_NSPR_MDCPUCFG@%$HOST_NSPR_MDCPUCFG%g
s%@TARGET_CPU@%$TARGET_CPU%g
s%@TARGET_OS@%$TARGET_OS%g
s%@TARGET_NSPR_MDCPUCFG@%$TARGET_NSPR_MDCPUCFG%g
s%@TARGET_MD_ARCH@%$TARGET_MD_ARCH%g
s%@OS_TARGET@%$OS_TARGET%g
1999-06-12 16:59:51 +04:00
s%@MOZ_DISABLE_DTD_DEBUG@%$MOZ_DISABLE_DTD_DEBUG%g
1999-02-02 20:45:37 +03:00
s%@WRAP_MALLOC_CFLAGS@%$WRAP_MALLOC_CFLAGS%g
s%@WRAP_MALLOC_LIB@%$WRAP_MALLOC_LIB%g
1999-01-21 02:37:59 +03:00
s%@MKSHLIB@%$MKSHLIB%g
1999-05-06 03:38:41 +04:00
s%@MKCSHLIB@%$MKCSHLIB%g
1999-02-02 20:45:37 +03:00
s%@MKSHLIB_FORCE_ALL@%$MKSHLIB_FORCE_ALL%g
s%@MKSHLIB_UNFORCE_ALL@%$MKSHLIB_UNFORCE_ALL%g
1999-01-21 02:37:59 +03:00
s%@DSO_CFLAGS@%$DSO_CFLAGS%g
1999-06-11 14:59:52 +04:00
s%@DSO_PIC_CFLAGS@%$DSO_PIC_CFLAGS%g
1999-01-21 02:37:59 +03:00
s%@DSO_LDOPTS@%$DSO_LDOPTS%g
s%@DLL_SUFFIX@%$DLL_SUFFIX%g
1999-08-29 22:15:50 +04:00
s%@LIB_SUFFIX@%$LIB_SUFFIX%g
s%@OBJ_SUFFIX@%$OBJ_SUFFIX%g
1999-02-19 01:00:38 +03:00
s%@LIBS_PATH@%$LIBS_PATH%g
1999-04-11 14:44:36 +04:00
s%@MOZ_NSPRENV_USE_PTHREADS@%$MOZ_NSPRENV_USE_PTHREADS%g
s%@MOZ_NSPRENV_BUILD_OPT@%$MOZ_NSPRENV_BUILD_OPT%g
s%@MOZ_NSPRENV_NS_USE_GCC@%$MOZ_NSPRENV_NS_USE_GCC%g
s%@MOZ_NSPRENV_NO_MDUPDATE@%$MOZ_NSPRENV_NO_MDUPDATE%g
s%@MOZ_NSPRENV_NS_USE_NATIVE@%$MOZ_NSPRENV_NS_USE_NATIVE%g
s%@MOZ_NSPRENV_MOZILLA_CLIENT@%$MOZ_NSPRENV_MOZILLA_CLIENT%g
1999-06-17 01:29:54 +04:00
s%@MOZ_NSPRENV_CLASSIC_NSPR@%$MOZ_NSPRENV_CLASSIC_NSPR%g
1999-04-13 07:14:37 +04:00
s%@MOZ_NSPRENV_DIST@%$MOZ_NSPRENV_DIST%g
1999-04-16 06:44:40 +04:00
s%@MOZ_NSPRENV_OVERRIDE_MAKE@%$MOZ_NSPRENV_OVERRIDE_MAKE%g
1999-09-06 08:30:54 +04:00
s%@MOZ_DEFINES@%$MOZ_DEFINES%g
1999-01-21 02:37:59 +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
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
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
s%@INSTALL@%$INSTALL%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
1999-04-13 07:14:37 +04:00
1999-10-17 19:30:18 +04:00
if test ! "$MOZ_NATIVE_NSPR" && test -z "$USE_NSPR_AUTOCONF"
1999-04-15 09:14:37 +04:00
then
1999-04-23 03:00:39 +04:00
rm -f ${srcdir}/nsprpub/config/my_config.mk
rm -f ${srcdir}/nsprpub/config/my_overrides.mk
cp build/unix/nspr_my_config.mk ${srcdir}/nsprpub/config/my_config.mk
cp build/unix/nspr_my_overrides.mk ${srcdir}/nsprpub/config/my_overrides.mk
1999-04-15 09:14:37 +04:00
fi
1999-08-21 22:15:22 +04:00
CC="$_SUBDIR_CC"
CXX="$_SUBDIR_CXX"
CFLAGS="$_SUBDIR_CFLAGS"
1999-09-06 08:30:54 +04:00
CPPFLAGS="$_SUBDIR_CPPFLAGS"
1999-08-21 22:15:22 +04:00
CXXFLAGS="$_SUBDIR_CXXFLAGS"
LDFLAGS="$_SUBDIR_LDFLAGS"
HOST_CC="$_SUBDIR_HOST_CC"
HOST_CFLAGS="$_SUBDIR_HOST_CFLAGS"
HOST_LDFLAGS="$_SUBDIR_HOST_LDFLAGS"
WINDRES=
DLLTOOL=
1999-08-29 22:15:50 +04:00
unset MAKEFILES
1999-08-21 22:15:22 +04:00
unset CONFIG_FILES
1999-10-17 19:30:18 +04:00
if test -z "$MOZ_NATIVE_NSPR" && test -n "$USE_NSPR_AUTOCONF"; then
1999-08-29 22:15:50 +04:00
ac_configure_args="$_SUBDIR_CONFIG_ARGS --prefix=$MOZ_BUILD_ROOT/dist"
if test "$no_recursion" != yes; then
# Remove --cache-file and --srcdir arguments so they do not pile up.
ac_sub_configure_args=
ac_prev=
for ac_arg in $ac_configure_args; do
if test -n "$ac_prev"; then
ac_prev=
continue
fi
case "$ac_arg" in
-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=*)
;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
;;
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
esac
done
for ac_config_dir in nsprpub; do
# Do not complain, so a configure script can configure whichever
# parts of a large source tree are present.
if test ! -d $srcdir/$ac_config_dir; then
continue
fi
echo configuring in $ac_config_dir
case "$srcdir" in
.) ;;
*)
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
else
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
fi
;;
esac
ac_popdir=`pwd`
cd $ac_config_dir
# A "../" for each directory in /$ac_config_dir.
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
/*) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
esac
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_sub_srcdir/configure; then
ac_sub_configure=$ac_sub_srcdir/configure
elif test -f $ac_sub_srcdir/configure.in; then
ac_sub_configure=$ac_configure
else
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
ac_sub_configure=
fi
# The recursion is here.
if test -n "$ac_sub_configure"; then
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
/*) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
# The eval makes quoting arguments work.
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
then :
else
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
fi
fi
cd $ac_popdir
done
fi
fi
1999-08-25 01:46:21 +04:00
if test "$MOZ_ENABLE_GTK_MOZILLA"; then
1999-08-29 09:01:19 +04:00
ac_configure_args="$_SUBDIR_CONFIG_ARGS --prefix=$MOZ_BUILD_ROOT/dist --with-mozilla=$MOZ_BUILD_ROOT/dist"
1999-08-25 01:46:21 +04:00
1999-08-21 22:15:22 +04:00
if test "$no_recursion" != yes; then
# Remove --cache-file and --srcdir arguments so they do not pile up.
ac_sub_configure_args=
ac_prev=
for ac_arg in $ac_configure_args; do
if test -n "$ac_prev"; then
ac_prev=
continue
fi
case "$ac_arg" in
-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=*)
;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
;;
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
esac
done
for ac_config_dir in webshell/embed/gtk; do
# Do not complain, so a configure script can configure whichever
# parts of a large source tree are present.
if test ! -d $srcdir/$ac_config_dir; then
continue
fi
echo configuring in $ac_config_dir
case "$srcdir" in
.) ;;
*)
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
else
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
fi
;;
esac
ac_popdir=`pwd`
cd $ac_config_dir
# A "../" for each directory in /$ac_config_dir.
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
/*) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
esac
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_sub_srcdir/configure; then
ac_sub_configure=$ac_sub_srcdir/configure
elif test -f $ac_sub_srcdir/configure.in; then
ac_sub_configure=$ac_configure
else
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
ac_sub_configure=
fi
# The recursion is here.
if test -n "$ac_sub_configure"; then
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
/*) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
# The eval makes quoting arguments work.
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
then :
else
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
fi
fi
cd $ac_popdir
done
fi
fi