|
|
|
@ -736,7 +736,7 @@ test "$host_alias" != "$target_alias" &&
|
|
|
|
|
|
|
|
|
|
MOD_MAJOR_VERSION=4
|
|
|
|
|
MOD_MINOR_VERSION=9
|
|
|
|
|
MOD_PATCH_VERSION=4
|
|
|
|
|
MOD_PATCH_VERSION=5
|
|
|
|
|
NSPR_MODNAME=nspr20
|
|
|
|
|
_HAVE_PTHREADS=
|
|
|
|
|
USE_PTHREADS=
|
|
|
|
@ -878,7 +878,7 @@ arm-linux*-android*|*-linuxandroid*)
|
|
|
|
|
android_tool_prefix="arm-linux-androideabi"
|
|
|
|
|
;;
|
|
|
|
|
i?86-*android*)
|
|
|
|
|
android_tool_prefix="i686-android-linux"
|
|
|
|
|
android_tool_prefix="i686-linux-android"
|
|
|
|
|
;;
|
|
|
|
|
mipsel-*android*)
|
|
|
|
|
android_tool_prefix="mipsel-linux-android"
|
|
|
|
@ -973,6 +973,14 @@ echo "configure:954: checking for android platform directory" >&5
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
case "$target_cpu" in
|
|
|
|
|
i?86)
|
|
|
|
|
if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then
|
|
|
|
|
android_tool_prefix="i686-android-linux"
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
AS="$android_toolchain"/bin/"$android_tool_prefix"-as
|
|
|
|
|
CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc
|
|
|
|
|
CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++
|
|
|
|
@ -1304,7 +1312,7 @@ if test -z "$SKIP_PATH_CHECKS"; then
|
|
|
|
|
# Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
|
|
|
|
|
set dummy $WHOAMI whoami; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1308: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1316: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1376,13 +1384,13 @@ if test "$target" != "$host" -o -n "$CROSS_COMPILE"; then
|
|
|
|
|
_SAVE_LDFLAGS="$LDFLAGS"
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1380: checking for $host compiler" >&5
|
|
|
|
|
echo "configure:1388: checking for $host compiler" >&5
|
|
|
|
|
for ac_prog in $HOST_CC 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
|
|
|
|
|
echo "configure:1386: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1394: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1428,16 +1436,16 @@ test -n "$HOST_CC" || HOST_CC=""""
|
|
|
|
|
LDFLAGS="$HOST_LDFLAGS"
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1432: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
|
|
|
|
|
echo "configure:1440: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 1434 "configure"
|
|
|
|
|
#line 1442 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
return(0);
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:1449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1472,7 +1480,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1476: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1484: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1506,7 +1514,7 @@ test -n "$CC" || CC="echo"
|
|
|
|
|
# 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
|
|
|
|
|
echo "configure:1510: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1518: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1536,7 +1544,7 @@ 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
|
|
|
|
|
echo "configure:1540: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1548: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1587,7 +1595,7 @@ fi
|
|
|
|
|
# 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
|
|
|
|
|
echo "configure:1591: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1599: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1619,7 +1627,7 @@ fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1623: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
echo "configure:1631: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
|
|
@ -1630,12 +1638,12 @@ cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
|
|
|
|
|
#line 1634 "configure"
|
|
|
|
|
#line 1642 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
main(){return(0);}
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
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
|
|
|
|
@ -1661,12 +1669,12 @@ if test $ac_cv_prog_cc_works = no; then
|
|
|
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
|
|
fi
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
echo "configure:1673: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
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
|
|
|
|
|
echo "configure:1670: checking whether we are using GNU C" >&5
|
|
|
|
|
echo "configure:1678: checking whether we are using GNU C" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1675,7 +1683,7 @@ else
|
|
|
|
|
yes;
|
|
|
|
|
#endif
|
|
|
|
|
EOF
|
|
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
ac_cv_prog_gcc=yes
|
|
|
|
|
else
|
|
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
@ -1694,7 +1702,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS=
|
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1698: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
|
echo "configure:1706: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1731,7 +1739,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1735: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1743: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1767,7 +1775,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1771: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1779: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1799,7 +1807,7 @@ test -n "$CXX" || CXX="gcc"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1803: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
echo "configure:1811: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
|
|
|
|
|
ac_ext=C
|
|
|
|
|
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
|
|
@ -1810,12 +1818,12 @@ cross_compiling=$ac_cv_prog_cxx_cross
|
|
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
|
|
|
|
|
#line 1814 "configure"
|
|
|
|
|
#line 1822 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
int main(){return(0);}
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
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
|
|
|
|
@ -1841,12 +1849,12 @@ if test $ac_cv_prog_cxx_works = no; then
|
|
|
|
|
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
|
|
|
|
fi
|
|
|
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1845: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
echo "configure:1853: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
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
|
|
|
|
|
echo "configure:1850: checking whether we are using GNU C++" >&5
|
|
|
|
|
echo "configure:1858: checking whether we are using GNU C++" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1855,7 +1863,7 @@ else
|
|
|
|
|
yes;
|
|
|
|
|
#endif
|
|
|
|
|
EOF
|
|
|
|
|
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
ac_cv_prog_gxx=yes
|
|
|
|
|
else
|
|
|
|
|
ac_cv_prog_gxx=no
|
|
|
|
@ -1874,7 +1882,7 @@ ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
|
|
|
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
|
CXXFLAGS=
|
|
|
|
|
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1878: checking whether ${CXX-g++} accepts -g" >&5
|
|
|
|
|
echo "configure:1886: checking whether ${CXX-g++} accepts -g" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1919,7 +1927,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1923: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1931: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1954,7 +1962,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1958: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:1966: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -1989,7 +1997,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:1993: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2001: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2024,7 +2032,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2028: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2036: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2059,7 +2067,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2063: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2071: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2094,7 +2102,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2098: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2106: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2129,7 +2137,7 @@ 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
|
|
|
|
|
echo "configure:2133: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2141: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2159,7 +2167,7 @@ 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
|
|
|
|
|
echo "configure:2163: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2171: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2210,7 +2218,7 @@ fi
|
|
|
|
|
# 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
|
|
|
|
|
echo "configure:2214: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2222: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2242,7 +2250,7 @@ fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2246: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
echo "configure:2254: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
|
|
@ -2253,12 +2261,12 @@ cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
|
|
|
|
|
#line 2257 "configure"
|
|
|
|
|
#line 2265 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
main(){return(0);}
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
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
|
|
|
|
@ -2284,12 +2292,12 @@ if test $ac_cv_prog_cc_works = no; then
|
|
|
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
|
|
fi
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2288: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
echo "configure:2296: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
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
|
|
|
|
|
echo "configure:2293: checking whether we are using GNU C" >&5
|
|
|
|
|
echo "configure:2301: checking whether we are using GNU C" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2298,7 +2306,7 @@ else
|
|
|
|
|
yes;
|
|
|
|
|
#endif
|
|
|
|
|
EOF
|
|
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
ac_cv_prog_gcc=yes
|
|
|
|
|
else
|
|
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
@ -2317,7 +2325,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS=
|
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2321: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
|
echo "configure:2329: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2357,7 +2365,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2361: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2369: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2389,7 +2397,7 @@ test -n "$CXX" || CXX="gcc"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2393: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
echo "configure:2401: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
|
|
|
|
|
|
|
|
|
ac_ext=C
|
|
|
|
|
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
|
|
@ -2400,12 +2408,12 @@ cross_compiling=$ac_cv_prog_cxx_cross
|
|
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
|
|
|
|
|
#line 2404 "configure"
|
|
|
|
|
#line 2412 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
int main(){return(0);}
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
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
|
|
|
|
@ -2431,12 +2439,12 @@ if test $ac_cv_prog_cxx_works = no; then
|
|
|
|
|
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
|
|
|
|
fi
|
|
|
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2435: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
echo "configure:2443: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
|
|
|
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
|
|
|
|
|
echo "configure:2440: checking whether we are using GNU C++" >&5
|
|
|
|
|
echo "configure:2448: checking whether we are using GNU C++" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2445,7 +2453,7 @@ else
|
|
|
|
|
yes;
|
|
|
|
|
#endif
|
|
|
|
|
EOF
|
|
|
|
|
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
|
|
|
ac_cv_prog_gxx=yes
|
|
|
|
|
else
|
|
|
|
|
ac_cv_prog_gxx=no
|
|
|
|
@ -2464,7 +2472,7 @@ ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
|
|
|
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
|
CXXFLAGS=
|
|
|
|
|
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2468: checking whether ${CXX-g++} accepts -g" >&5
|
|
|
|
|
echo "configure:2476: checking whether ${CXX-g++} accepts -g" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2498,7 +2506,7 @@ fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2502: checking how to run the C preprocessor" >&5
|
|
|
|
|
echo "configure:2510: checking how to run the C preprocessor" >&5
|
|
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
|
CPP=
|
|
|
|
@ -2513,13 +2521,13 @@ else
|
|
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
|
|
# not just through cpp.
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2517 "configure"
|
|
|
|
|
#line 2525 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:2523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:2531: \"$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
|
|
|
|
|
:
|
|
|
|
@ -2530,13 +2538,13 @@ else
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2534 "configure"
|
|
|
|
|
#line 2542 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:2548: \"$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
|
|
|
|
|
:
|
|
|
|
@ -2547,13 +2555,13 @@ else
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
CPP="${CC-cc} -nologo -E"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2551 "configure"
|
|
|
|
|
#line 2559 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
Syntax Error
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:2565: \"$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
|
|
|
|
|
:
|
|
|
|
@ -2580,7 +2588,7 @@ echo "$ac_t""$CPP" 1>&6
|
|
|
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
|
|
set dummy ranlib; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2584: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2592: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2612,7 +2620,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2616: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2624: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2653,7 +2661,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2657: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2665: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2694,7 +2702,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2698: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2706: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2735,7 +2743,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2739: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2747: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2776,7 +2784,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2780: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:2788: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2844,7 +2852,7 @@ else
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2848: checking for gcc -pipe support" >&5
|
|
|
|
|
echo "configure:2856: checking for gcc -pipe support" >&5
|
|
|
|
|
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
|
|
|
|
|
echo '#include <stdio.h>' > dummy-hello.c
|
|
|
|
|
echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
|
|
|
|
@ -2859,14 +2867,14 @@ if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
|
|
|
|
|
_SAVE_CFLAGS=$CFLAGS
|
|
|
|
|
CFLAGS="$CFLAGS -pipe"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2863 "configure"
|
|
|
|
|
#line 2871 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
int main() {
|
|
|
|
|
printf("Hello World\n");
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:2878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
_res_gcc_pipe="yes"
|
|
|
|
|
else
|
|
|
|
@ -2896,16 +2904,16 @@ _SAVE_CFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking whether C compiler supports -fprofile-generate""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2900: checking whether C compiler supports -fprofile-generate" >&5
|
|
|
|
|
echo "configure:2908: checking whether C compiler supports -fprofile-generate" >&5
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 2902 "configure"
|
|
|
|
|
#line 2910 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
return 0;
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:2909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
PROFILE_GEN_CFLAGS="-fprofile-generate"
|
|
|
|
|
result="yes"
|
|
|
|
@ -2928,7 +2936,7 @@ CFLAGS="$_SAVE_CFLAGS"
|
|
|
|
|
|
|
|
|
|
if test "$GNU_CC"; then
|
|
|
|
|
echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2932: checking for visibility(hidden) attribute" >&5
|
|
|
|
|
echo "configure:2940: checking for visibility(hidden) attribute" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -2952,7 +2960,7 @@ echo "$ac_t""$ac_cv_visibility_hidden" 1>&6
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:2956: checking for visibility pragma support" >&5
|
|
|
|
|
echo "configure:2964: checking for visibility pragma support" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -3005,7 +3013,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:3009: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:3017: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -3327,14 +3335,14 @@ no)
|
|
|
|
|
_SAVE_CFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS="$arch_flag"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 3331 "configure"
|
|
|
|
|
#line 3339 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
return sizeof(__thumb2__);
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:3346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
MOZ_THUMB2=1
|
|
|
|
|
else
|
|
|
|
@ -3396,16 +3404,16 @@ if test -n "$all_flags"; then
|
|
|
|
|
_SAVE_CFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS="$all_flags"
|
|
|
|
|
echo $ac_n "checking whether the chosen combination of compiler flags ($all_flags) works""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:3400: checking whether the chosen combination of compiler flags ($all_flags) works" >&5
|
|
|
|
|
echo "configure:3408: checking whether the chosen combination of compiler flags ($all_flags) works" >&5
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 3402 "configure"
|
|
|
|
|
#line 3410 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
return 0;
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
if { (eval echo configure:3417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -3462,17 +3470,17 @@ EOF
|
|
|
|
|
DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
|
|
|
|
|
ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:3466: checking for sys/atomic_op.h" >&5
|
|
|
|
|
echo "configure:3474: checking for sys/atomic_op.h" >&5
|
|
|
|
|
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
|
|
|
|
|
#line 3471 "configure"
|
|
|
|
|
#line 3479 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <sys/atomic_op.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:3476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:3484: \"$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*
|
|
|
|
@ -3629,7 +3637,7 @@ EOF
|
|
|
|
|
_DEBUG_FLAGS='-gdwarf-2 -O0'
|
|
|
|
|
MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
|
|
|
|
|
echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:3633: checking for gethostbyaddr in -lbind" >&5
|
|
|
|
|
echo "configure:3641: checking for gethostbyaddr in -lbind" >&5
|
|
|
|
|
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
@ -3637,7 +3645,7 @@ else
|
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
|
LIBS="-lbind $LIBS"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 3641 "configure"
|
|
|
|
|
#line 3649 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
|
|
|
@ -3648,7 +3656,7 @@ int main() {
|
|
|
|
|
gethostbyaddr()
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
|
else
|
|
|
|
@ -3857,17 +3865,17 @@ EOF
|
|
|
|
|
fi
|
|
|
|
|
ac_safe=`echo "crt_externs.h" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for crt_externs.h""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:3861: checking for crt_externs.h" >&5
|
|
|
|
|
echo "configure:3869: checking for crt_externs.h" >&5
|
|
|
|
|
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
|
|
|
|
|
#line 3866 "configure"
|
|
|
|
|
#line 3874 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <crt_externs.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:3871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:3879: \"$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*
|
|
|
|
@ -4911,17 +4919,17 @@ EOF
|
|
|
|
|
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
|
|
|
|
|
ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:4915: checking for machine/builtins.h" >&5
|
|
|
|
|
echo "configure:4923: checking for machine/builtins.h" >&5
|
|
|
|
|
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
|
|
|
|
|
#line 4920 "configure"
|
|
|
|
|
#line 4928 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <machine/builtins.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:4925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:4933: \"$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*
|
|
|
|
@ -5480,7 +5488,7 @@ case $target in
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5484: checking for dlopen in -ldl" >&5
|
|
|
|
|
echo "configure:5492: checking for dlopen in -ldl" >&5
|
|
|
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
@ -5488,7 +5496,7 @@ else
|
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
|
LIBS="-ldl $LIBS"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 5492 "configure"
|
|
|
|
|
#line 5500 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
|
|
|
@ -5499,7 +5507,7 @@ int main() {
|
|
|
|
|
dlopen()
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
|
else
|
|
|
|
@ -5516,17 +5524,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
|
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
|
|
|
|
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5520: checking for dlfcn.h" >&5
|
|
|
|
|
echo "configure:5528: checking for dlfcn.h" >&5
|
|
|
|
|
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
|
|
|
|
|
#line 5525 "configure"
|
|
|
|
|
#line 5533 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
EOF
|
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
|
|
|
{ (eval echo configure:5530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
|
|
|
{ (eval echo configure:5538: \"$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*
|
|
|
|
@ -5559,13 +5567,13 @@ esac
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
|
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5563: checking whether ${CC-cc} needs -traditional" >&5
|
|
|
|
|
echo "configure:5571: checking whether ${CC-cc} needs -traditional" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
ac_pattern="Autoconf.*'x'"
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 5569 "configure"
|
|
|
|
|
#line 5577 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <sgtty.h>
|
|
|
|
|
Autoconf TIOCGETP
|
|
|
|
@ -5583,7 +5591,7 @@ rm -f conftest*
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc_traditional = no; then
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 5587 "configure"
|
|
|
|
|
#line 5595 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
#include <termio.h>
|
|
|
|
|
Autoconf TCGETA
|
|
|
|
@ -5606,15 +5614,15 @@ fi
|
|
|
|
|
|
|
|
|
|
_SAVE_LIBS="$LIBS"
|
|
|
|
|
LIBS="$LIBS $OS_LIBS"
|
|
|
|
|
for ac_func in dladdr gettid lchown setpriority strerror syscall
|
|
|
|
|
for ac_func in lchown strerror dladdr
|
|
|
|
|
do
|
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5613: checking for $ac_func" >&5
|
|
|
|
|
echo "configure:5621: checking for $ac_func" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
|
#line 5618 "configure"
|
|
|
|
|
#line 5626 "configure"
|
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
@ -5637,7 +5645,7 @@ $ac_func();
|
|
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
|
EOF
|
|
|
|
|
if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
|
rm -rf conftest*
|
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
|
else
|
|
|
|
@ -5689,7 +5697,7 @@ do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5693: checking for $ac_word" >&5
|
|
|
|
|
echo "configure:5701: checking for $ac_word" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_CCACHE'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -5748,7 +5756,7 @@ hpux*)
|
|
|
|
|
if test -z "$GNU_CC"; then
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for +Olit support""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5752: checking for +Olit support" >&5
|
|
|
|
|
echo "configure:5760: checking for +Olit support" >&5
|
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
|
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
|
else
|
|
|
|
@ -5790,7 +5798,7 @@ wince*)
|
|
|
|
|
*)
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5794: checking for pthread_create in -lpthreads" >&5
|
|
|
|
|
echo "configure:5802: checking for pthread_create in -lpthreads" >&5
|
|
|
|
|
echo "
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
void *foo(void *v) { return v; }
|
|
|
|
@ -5812,7 +5820,7 @@ echo "
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5816: checking for pthread_create in -lpthread" >&5
|
|
|
|
|
echo "configure:5824: checking for pthread_create in -lpthread" >&5
|
|
|
|
|
echo "
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
void *foo(void *v) { return v; }
|
|
|
|
@ -5834,7 +5842,7 @@ echo "
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5838: checking for pthread_create in -lc_r" >&5
|
|
|
|
|
echo "configure:5846: checking for pthread_create in -lc_r" >&5
|
|
|
|
|
echo "
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
void *foo(void *v) { return v; }
|
|
|
|
@ -5856,7 +5864,7 @@ echo "
|
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5860: checking for pthread_create in -lc" >&5
|
|
|
|
|
echo "configure:5868: checking for pthread_create in -lc" >&5
|
|
|
|
|
echo "
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
void *foo(void *v) { return v; }
|
|
|
|
@ -5974,7 +5982,7 @@ if test -n "$USE_PTHREADS"; then
|
|
|
|
|
rm -f conftest*
|
|
|
|
|
ac_cv_have_dash_pthread=no
|
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:5978: checking whether ${CC-cc} accepts -pthread" >&5
|
|
|
|
|
echo "configure:5986: checking whether ${CC-cc} accepts -pthread" >&5
|
|
|
|
|
echo 'int main() { return 0; }' | cat > conftest.c
|
|
|
|
|
${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
|
|
|
|
|
if test $? -eq 0; then
|
|
|
|
@ -5997,7 +6005,7 @@ echo "configure:5978: checking whether ${CC-cc} accepts -pthread" >&5
|
|
|
|
|
ac_cv_have_dash_pthreads=no
|
|
|
|
|
if test "$ac_cv_have_dash_pthread" = "no"; then
|
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
|
|
|
|
|
echo "configure:6001: checking whether ${CC-cc} accepts -pthreads" >&5
|
|
|
|
|
echo "configure:6009: checking whether ${CC-cc} accepts -pthreads" >&5
|
|
|
|
|
echo 'int main() { return 0; }' | cat > conftest.c
|
|
|
|
|
${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
|
|
|
|
|
if test $? -eq 0; then
|
|
|
|
@ -6582,7 +6590,7 @@ s%\[%\\&%g
|
|
|
|
|
s%\]%\\&%g
|
|
|
|
|
s%\$%$$%g
|
|
|
|
|
EOF
|
|
|
|
|
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' ' | tr '\015' ' '` # Manually modified for MKS support.
|
|
|
|
|
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
|
|
|
|
rm -f conftest.defs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|