[multiple changes]

2001-05-25  Benjamin Kosnik  <bkoz@redhat.com>

	other/2931
	* acinclude.m4 (GLIBCPP_ENABLE_C99): Use AC_TRY_COMPILE.
	* aclocal.m4: Regenerate.
	* configure: Same.

2001-05-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
            Phil Edwards  <pme@sources.redhat.com>
	    Alexandre Oliva  <aoliva@redhat.com>

        * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
        in an amd-safe manner. Revert glibcpp_prefixdir.

From-SVN: r42596
This commit is contained in:
Benjamin Kosnik 2001-05-25 21:53:51 +00:00
parent 4e588ec90e
commit bd937d500d
4 changed files with 974 additions and 1196 deletions

View File

@ -1,3 +1,17 @@
2001-05-25 Benjamin Kosnik <bkoz@redhat.com>
other/2931
* acinclude.m4 (GLIBCPP_ENABLE_C99): Use AC_TRY_COMPILE.
* aclocal.m4: Regenerate.
* configure: Same.
2001-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Phil Edwards <pme@sources.redhat.com>
Alexandre Oliva <aoliva@redhat.com>
* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
in an amd-safe manner. Revert glibcpp_prefixdir.
2001-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
* include/c_std/bits/std_cmath.h: Tweak. #define away abs, cos,

View File

@ -1315,6 +1315,7 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
AC_LANG_CPLUSPLUS
# Check for the existence of <math.h> functions used if C99 is enabled.
ac_c99_math=yes;
AC_TRY_COMPILE([#include <math.h>],[fpclassify(0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isfinite(0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isinf(0.0);],, [ac_c99_math=no])
@ -1323,20 +1324,25 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
AC_TRY_COMPILE([#include <math.h>],[signbit(0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isgreater(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],
[isgreaterequal(0.0,0.0);], , [ac_c99_math=no])
[isgreaterequal(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isless(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[islessequal(0.0,0.0);],,[ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],
[islessgreater(0.0,0.0);], , [ac_c99_math=no])
[islessgreater(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],
[isunordered(0.0,0.0);], , [ac_c99_math=no])
[isunordered(0.0,0.0);],, [ac_c99_math=no])
AC_MSG_CHECKING([for ISO C99 support in <math.h>])
AC_MSG_RESULT($ac_c99_math)
# Check for the existence in <stdlib.h> of lldiv_t, et. al.
AC_CHECK_FUNC(strtoll,,ac_c99_stdlib=no)
AC_CHECK_FUNC(strtoull,,ac_c99_stdlib=no)
AC_CHECK_FUNC(llabs,,ac_c99_stdlib=no)
AC_CHECK_FUNC(lldiv,,ac_c99_stdlib=no)
AC_CHECK_FUNC(atoll,,ac_c99_stdlib=no)
ac_c99_stdlib=yes;
AC_TRY_COMPILE([#include <stdlib.h>],
[char* tmp; strtoll("gnu", &tmp, 10);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>],
[char* tmp; strtoull("gnu", &tmp, 10);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>], [llabs(10);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>], [lldiv(10,1);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>], [atoll("10");],, [ac_c99_stdlib=no])
AC_MSG_CHECKING([for lldiv_t declaration])
AC_CACHE_VAL(ac_c99_lldiv_t, [
@ -1348,11 +1354,19 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
if test x"$ac_c99_lldiv_t" = x"no"; then
ac_c99_stdlib=no;
fi;
AC_MSG_CHECKING([for ISO C99 support in <stdlib.h>])
AC_MSG_RESULT($ac_c99_stdlib)
# Check for the existence of <wchar.h> functions used if C99 is enabled.
AC_CHECK_FUNC(wcstold,,ac_c99_wchar=no)
AC_CHECK_FUNC(wcstoll,,ac_c99_wchar=no)
AC_CHECK_FUNC(wcstoull,,ac_c99_wchar=no)
ac_c99_wchar=yes;
AC_TRY_COMPILE([#include <wchar.h>],
[wcstold(L"10.0", NULL);],, [ac_c99_wchar=no])
AC_TRY_COMPILE([#include <wchar.h>],
[wcstoll(L"10", NULL, 10);],, [ac_c99_wchar=no])
AC_TRY_COMPILE([#include <wchar.h>],
[wcstoull(L"10", NULL, 10);],, [ac_c99_wchar=no])
AC_MSG_CHECKING([for ISO C99 support in <wchar.h>])
AC_MSG_RESULT($ac_c99_wchar)
AC_MSG_CHECKING([for enabled ISO C99 support])
if test x"$ac_c99_math" = x"no" || test x"$ac_c99_wchar" = x"no" \
@ -1580,10 +1594,15 @@ glibcpp_toolexecdir=no
glibcpp_toolexeclibdir=no
# Export build and source directories.
# These need to be absolute paths, thus the use of pwd.
# These need to be absolute paths, yet at the same time need to
# canonicalize only relative paths, because then amd will not unmount
# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
glibcpp_builddir=`pwd`
glibcpp_srcdir=`cd ${srcdir} && pwd`
glibcpp_prefixdir=`cd ${prefix} && pwd`
case $srcdir in
[\\/$]* | ?:[\\/]*) glibcpp_srcdir=${srcdir} ;;
*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
esac
glibcpp_prefixdir=${prefix}
AC_MSG_CHECKING([for interface version number])
libstdcxx_interface=$INTERFACE

View File

@ -1327,6 +1327,7 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
AC_LANG_CPLUSPLUS
# Check for the existence of <math.h> functions used if C99 is enabled.
ac_c99_math=yes;
AC_TRY_COMPILE([#include <math.h>],[fpclassify(0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isfinite(0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isinf(0.0);],, [ac_c99_math=no])
@ -1335,20 +1336,25 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
AC_TRY_COMPILE([#include <math.h>],[signbit(0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isgreater(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],
[isgreaterequal(0.0,0.0);], , [ac_c99_math=no])
[isgreaterequal(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[isless(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],[islessequal(0.0,0.0);],,[ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],
[islessgreater(0.0,0.0);], , [ac_c99_math=no])
[islessgreater(0.0,0.0);],, [ac_c99_math=no])
AC_TRY_COMPILE([#include <math.h>],
[isunordered(0.0,0.0);], , [ac_c99_math=no])
[isunordered(0.0,0.0);],, [ac_c99_math=no])
AC_MSG_CHECKING([for ISO C99 support in <math.h>])
AC_MSG_RESULT($ac_c99_math)
# Check for the existence in <stdlib.h> of lldiv_t, et. al.
AC_CHECK_FUNC(strtoll,,ac_c99_stdlib=no)
AC_CHECK_FUNC(strtoull,,ac_c99_stdlib=no)
AC_CHECK_FUNC(llabs,,ac_c99_stdlib=no)
AC_CHECK_FUNC(lldiv,,ac_c99_stdlib=no)
AC_CHECK_FUNC(atoll,,ac_c99_stdlib=no)
ac_c99_stdlib=yes;
AC_TRY_COMPILE([#include <stdlib.h>],
[char* tmp; strtoll("gnu", &tmp, 10);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>],
[char* tmp; strtoull("gnu", &tmp, 10);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>], [llabs(10);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>], [lldiv(10,1);],, [ac_c99_stdlib=no])
AC_TRY_COMPILE([#include <stdlib.h>], [atoll("10");],, [ac_c99_stdlib=no])
AC_MSG_CHECKING([for lldiv_t declaration])
AC_CACHE_VAL(ac_c99_lldiv_t, [
@ -1360,11 +1366,19 @@ AC_DEFUN(GLIBCPP_ENABLE_C99, [dnl
if test x"$ac_c99_lldiv_t" = x"no"; then
ac_c99_stdlib=no;
fi;
AC_MSG_CHECKING([for ISO C99 support in <stdlib.h>])
AC_MSG_RESULT($ac_c99_stdlib)
# Check for the existence of <wchar.h> functions used if C99 is enabled.
AC_CHECK_FUNC(wcstold,,ac_c99_wchar=no)
AC_CHECK_FUNC(wcstoll,,ac_c99_wchar=no)
AC_CHECK_FUNC(wcstoull,,ac_c99_wchar=no)
ac_c99_wchar=yes;
AC_TRY_COMPILE([#include <wchar.h>],
[wcstold(L"10.0", NULL);],, [ac_c99_wchar=no])
AC_TRY_COMPILE([#include <wchar.h>],
[wcstoll(L"10", NULL, 10);],, [ac_c99_wchar=no])
AC_TRY_COMPILE([#include <wchar.h>],
[wcstoull(L"10", NULL, 10);],, [ac_c99_wchar=no])
AC_MSG_CHECKING([for ISO C99 support in <wchar.h>])
AC_MSG_RESULT($ac_c99_wchar)
AC_MSG_CHECKING([for enabled ISO C99 support])
if test x"$ac_c99_math" = x"no" || test x"$ac_c99_wchar" = x"no" \
@ -1592,10 +1606,15 @@ glibcpp_toolexecdir=no
glibcpp_toolexeclibdir=no
# Export build and source directories.
# These need to be absolute paths, thus the use of pwd.
# These need to be absolute paths, yet at the same time need to
# canonicalize only relative paths, because then amd will not unmount
# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
glibcpp_builddir=`pwd`
glibcpp_srcdir=`cd ${srcdir} && pwd`
glibcpp_prefixdir=`cd ${prefix} && pwd`
case $srcdir in
[\\/$]* | ?:[\\/]*) glibcpp_srcdir=${srcdir} ;;
*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
esac
glibcpp_prefixdir=${prefix}
AC_MSG_CHECKING([for interface version number])
libstdcxx_interface=$INTERFACE

2062
libstdc++-v3/configure vendored

File diff suppressed because it is too large Load Diff