mirror of git://gcc.gnu.org/git/gcc.git
configure.ac: Don't use GCC_NO_EXECUTABLES or clear GLIBCXX_IS_NATIVE on Darwin crosses.
* configure.ac: Don't use GCC_NO_EXECUTABLES or clear GLIBCXX_IS_NATIVE on Darwin crosses. * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't skip configuring the testsuite just because there's no symbol versioning. * configure: Regenerate. From-SVN: r102718
This commit is contained in:
parent
d783b2a2dc
commit
0646b0597b
|
@ -1,5 +1,11 @@
|
||||||
2005-08-03 Geoffrey Keating <geoffk@apple.com>
|
2005-08-03 Geoffrey Keating <geoffk@apple.com>
|
||||||
|
|
||||||
|
* configure.ac: Don't use GCC_NO_EXECUTABLES or clear
|
||||||
|
GLIBCXX_IS_NATIVE on Darwin crosses.
|
||||||
|
* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't skip configuring
|
||||||
|
the testsuite just because there's no symbol versioning.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
* acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Print
|
* acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Print
|
||||||
status messages.
|
status messages.
|
||||||
(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Likewise.
|
(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Likewise.
|
||||||
|
|
|
@ -554,24 +554,22 @@ dnl Substs:
|
||||||
dnl baseline_dir
|
dnl baseline_dir
|
||||||
dnl
|
dnl
|
||||||
AC_DEFUN([GLIBCXX_CONFIGURE_TESTSUITE], [
|
AC_DEFUN([GLIBCXX_CONFIGURE_TESTSUITE], [
|
||||||
if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
|
if $GLIBCXX_IS_NATIVE ; then
|
||||||
test $enable_symvers != no; then
|
|
||||||
# Do checks for resource limit functions.
|
# Do checks for resource limit functions.
|
||||||
GLIBCXX_CHECK_SETRLIMIT
|
GLIBCXX_CHECK_SETRLIMIT
|
||||||
|
|
||||||
# Look for setenv, so that extended locale tests can be performed.
|
# Look for setenv, so that extended locale tests can be performed.
|
||||||
GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3(setenv)
|
GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3(setenv)
|
||||||
|
fi
|
||||||
|
|
||||||
if test $enable_symvers = no; then
|
if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
|
||||||
enable_abi_check=no
|
test $enable_symvers != no; then
|
||||||
else
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-cygwin*)
|
*-*-cygwin*)
|
||||||
enable_abi_check=no ;;
|
enable_abi_check=no ;;
|
||||||
*)
|
*)
|
||||||
enable_abi_check=yes ;;
|
enable_abi_check=yes ;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
# Only build this as native, since automake does not understand
|
# Only build this as native, since automake does not understand
|
||||||
# CXX_FOR_BUILD.
|
# CXX_FOR_BUILD.
|
||||||
|
|
|
@ -1542,7 +1542,24 @@ target_alias=${target_alias-$host_alias}
|
||||||
if test "$build" != "$host"; then
|
if test "$build" != "$host"; then
|
||||||
# We are being configured with some form of cross compiler.
|
# We are being configured with some form of cross compiler.
|
||||||
GLIBCXX_IS_NATIVE=false
|
GLIBCXX_IS_NATIVE=false
|
||||||
|
case "$host","$target" in
|
||||||
|
# Darwin crosses can use the host system's libraries and headers,
|
||||||
|
# because of the fat library support. Of course, it must be the
|
||||||
|
# same version of Darwin on both sides. Allow the user to
|
||||||
|
# just say --target=foo-darwin without a version number to mean
|
||||||
|
# "the version on this system".
|
||||||
|
*-*-darwin*,*-*-darwin*)
|
||||||
|
hostos=`echo $host | sed 's/.*-darwin/darwin/'`
|
||||||
|
targetos=`echo $target | sed 's/.*-darwin/darwin/'`
|
||||||
|
if test $hostos = $targetos -o $targetos = darwin ; then
|
||||||
|
GLIBCXX_IS_NATIVE=true
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
GLIBCXX_IS_NATIVE=true
|
GLIBCXX_IS_NATIVE=true
|
||||||
fi
|
fi
|
||||||
|
@ -4439,7 +4456,7 @@ test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
||||||
case $host in
|
case $host in
|
||||||
*-*-irix6*)
|
*-*-irix6*)
|
||||||
# Find out which ABI we are using.
|
# Find out which ABI we are using.
|
||||||
echo '#line 4442 "configure"' > conftest.$ac_ext
|
echo '#line 4459 "configure"' > conftest.$ac_ext
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
(eval $ac_compile) 2>&5
|
(eval $ac_compile) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
|
@ -5059,7 +5076,7 @@ fi;
|
||||||
#
|
#
|
||||||
# Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
|
# Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
|
||||||
cat > conftest.$ac_ext << EOF
|
cat > conftest.$ac_ext << EOF
|
||||||
#line 5062 "configure"
|
#line 5079 "configure"
|
||||||
struct S { ~S(); };
|
struct S { ~S(); };
|
||||||
void bar();
|
void bar();
|
||||||
void foo()
|
void foo()
|
||||||
|
@ -87579,8 +87596,7 @@ echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
|
||||||
|
|
||||||
# This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
|
# This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
|
||||||
|
|
||||||
if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
|
if $GLIBCXX_IS_NATIVE ; then
|
||||||
test $enable_symvers != no; then
|
|
||||||
# Do checks for resource limit functions.
|
# Do checks for resource limit functions.
|
||||||
|
|
||||||
setrlimit_have_headers=yes
|
setrlimit_have_headers=yes
|
||||||
|
@ -88302,17 +88318,16 @@ done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
if test $enable_symvers = no; then
|
if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
|
||||||
enable_abi_check=no
|
test $enable_symvers != no; then
|
||||||
else
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-cygwin*)
|
*-*-cygwin*)
|
||||||
enable_abi_check=no ;;
|
enable_abi_check=no ;;
|
||||||
*)
|
*)
|
||||||
enable_abi_check=yes ;;
|
enable_abi_check=yes ;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
# Only build this as native, since automake does not understand
|
# Only build this as native, since automake does not understand
|
||||||
# CXX_FOR_BUILD.
|
# CXX_FOR_BUILD.
|
||||||
|
|
|
@ -41,7 +41,24 @@ target_alias=${target_alias-$host_alias}
|
||||||
if test "$build" != "$host"; then
|
if test "$build" != "$host"; then
|
||||||
# We are being configured with some form of cross compiler.
|
# We are being configured with some form of cross compiler.
|
||||||
GLIBCXX_IS_NATIVE=false
|
GLIBCXX_IS_NATIVE=false
|
||||||
|
case "$host","$target" in
|
||||||
|
# Darwin crosses can use the host system's libraries and headers,
|
||||||
|
# because of the fat library support. Of course, it must be the
|
||||||
|
# same version of Darwin on both sides. Allow the user to
|
||||||
|
# just say --target=foo-darwin without a version number to mean
|
||||||
|
# "the version on this system".
|
||||||
|
*-*-darwin*,*-*-darwin*)
|
||||||
|
hostos=`echo $host | sed 's/.*-darwin/darwin/'`
|
||||||
|
targetos=`echo $target | sed 's/.*-darwin/darwin/'`
|
||||||
|
if test $hostos = $targetos -o $targetos = darwin ; then
|
||||||
|
GLIBCXX_IS_NATIVE=true
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
GCC_NO_EXECUTABLES
|
GCC_NO_EXECUTABLES
|
||||||
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
GLIBCXX_IS_NATIVE=true
|
GLIBCXX_IS_NATIVE=true
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue