From 89b803c845181037956fc80af628920096e8da89 Mon Sep 17 00:00:00 2001 From: tobi Date: Tue, 22 Sep 2009 10:23:06 +0000 Subject: 2009-09-19 Iain Sandoe * configure.ac: Check for GFORTRAN_C99_1.1 funcs in OS libm. * configure: Regenerate. * config.h.in: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151972 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/ChangeLog | 6 + libgfortran/config.h.in | 54 ++++ libgfortran/configure | 812 +++++++++++++++++++++++++++++++++++++++++++++++ libgfortran/configure.ac | 20 ++ 4 files changed, 892 insertions(+) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index af4cbfddcdb..ab6348b82fc 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2009-09-19 Iain Sandoe + + * configure.ac: Check for GFORTRAN_C99_1.1 funcs in OS libm. + * configure: Regenerate. + * config.h.in: Ditto. + 2009-09-18 Jerry DeLisle PR libgfortran/41328 diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in index 4873fd5d934..bdf3b4ac49f 100644 --- a/libgfortran/config.h.in +++ b/libgfortran/config.h.in @@ -108,6 +108,24 @@ /* libm includes cabsl */ #undef HAVE_CABSL +/* libm includes cacos */ +#undef HAVE_CACOS + +/* libm includes cacosf */ +#undef HAVE_CACOSF + +/* libm includes cacosh */ +#undef HAVE_CACOSH + +/* libm includes cacoshf */ +#undef HAVE_CACOSHF + +/* libm includes cacoshl */ +#undef HAVE_CACOSHL + +/* libm includes cacosl */ +#undef HAVE_CACOSL + /* libm includes carg */ #undef HAVE_CARG @@ -117,6 +135,42 @@ /* libm includes cargl */ #undef HAVE_CARGL +/* libm includes casin */ +#undef HAVE_CASIN + +/* libm includes casinf */ +#undef HAVE_CASINF + +/* libm includes casinh */ +#undef HAVE_CASINH + +/* libm includes casinhf */ +#undef HAVE_CASINHF + +/* libm includes casinhl */ +#undef HAVE_CASINHL + +/* libm includes casinl */ +#undef HAVE_CASINL + +/* libm includes catan */ +#undef HAVE_CATAN + +/* libm includes catanf */ +#undef HAVE_CATANF + +/* libm includes catanh */ +#undef HAVE_CATANH + +/* libm includes catanhf */ +#undef HAVE_CATANHF + +/* libm includes catanhl */ +#undef HAVE_CATANHL + +/* libm includes catanl */ +#undef HAVE_CATANL + /* libm includes ccos */ #undef HAVE_CCOS diff --git a/libgfortran/configure b/libgfortran/configure index 2738f51337d..5fcd8d23e07 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -23275,6 +23275,818 @@ $as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h fi +# Check for GFORTRAN_C99_1.1 funcs +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos in -lm" >&5 +$as_echo_n "checking for cacos in -lm... " >&6; } +if test "${ac_cv_lib_m_cacos+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cacos (); +int +main () +{ +return cacos (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cacos=yes +else + ac_cv_lib_m_cacos=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacos" >&5 +$as_echo "$ac_cv_lib_m_cacos" >&6; } +if test "x$ac_cv_lib_m_cacos" = x""yes; then : + +$as_echo "#define HAVE_CACOS 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf in -lm" >&5 +$as_echo_n "checking for cacosf in -lm... " >&6; } +if test "${ac_cv_lib_m_cacosf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cacosf (); +int +main () +{ +return cacosf (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cacosf=yes +else + ac_cv_lib_m_cacosf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosf" >&5 +$as_echo "$ac_cv_lib_m_cacosf" >&6; } +if test "x$ac_cv_lib_m_cacosf" = x""yes; then : + +$as_echo "#define HAVE_CACOSF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh in -lm" >&5 +$as_echo_n "checking for cacosh in -lm... " >&6; } +if test "${ac_cv_lib_m_cacosh+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cacosh (); +int +main () +{ +return cacosh (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cacosh=yes +else + ac_cv_lib_m_cacosh=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosh" >&5 +$as_echo "$ac_cv_lib_m_cacosh" >&6; } +if test "x$ac_cv_lib_m_cacosh" = x""yes; then : + +$as_echo "#define HAVE_CACOSH 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf in -lm" >&5 +$as_echo_n "checking for cacoshf in -lm... " >&6; } +if test "${ac_cv_lib_m_cacoshf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cacoshf (); +int +main () +{ +return cacoshf (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cacoshf=yes +else + ac_cv_lib_m_cacoshf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshf" >&5 +$as_echo "$ac_cv_lib_m_cacoshf" >&6; } +if test "x$ac_cv_lib_m_cacoshf" = x""yes; then : + +$as_echo "#define HAVE_CACOSHF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl in -lm" >&5 +$as_echo_n "checking for cacoshl in -lm... " >&6; } +if test "${ac_cv_lib_m_cacoshl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cacoshl (); +int +main () +{ +return cacoshl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cacoshl=yes +else + ac_cv_lib_m_cacoshl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshl" >&5 +$as_echo "$ac_cv_lib_m_cacoshl" >&6; } +if test "x$ac_cv_lib_m_cacoshl" = x""yes; then : + +$as_echo "#define HAVE_CACOSHL 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl in -lm" >&5 +$as_echo_n "checking for cacosl in -lm... " >&6; } +if test "${ac_cv_lib_m_cacosl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cacosl (); +int +main () +{ +return cacosl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cacosl=yes +else + ac_cv_lib_m_cacosl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosl" >&5 +$as_echo "$ac_cv_lib_m_cacosl" >&6; } +if test "x$ac_cv_lib_m_cacosl" = x""yes; then : + +$as_echo "#define HAVE_CACOSL 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin in -lm" >&5 +$as_echo_n "checking for casin in -lm... " >&6; } +if test "${ac_cv_lib_m_casin+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char casin (); +int +main () +{ +return casin (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_casin=yes +else + ac_cv_lib_m_casin=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casin" >&5 +$as_echo "$ac_cv_lib_m_casin" >&6; } +if test "x$ac_cv_lib_m_casin" = x""yes; then : + +$as_echo "#define HAVE_CASIN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf in -lm" >&5 +$as_echo_n "checking for casinf in -lm... " >&6; } +if test "${ac_cv_lib_m_casinf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char casinf (); +int +main () +{ +return casinf (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_casinf=yes +else + ac_cv_lib_m_casinf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinf" >&5 +$as_echo "$ac_cv_lib_m_casinf" >&6; } +if test "x$ac_cv_lib_m_casinf" = x""yes; then : + +$as_echo "#define HAVE_CASINF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh in -lm" >&5 +$as_echo_n "checking for casinh in -lm... " >&6; } +if test "${ac_cv_lib_m_casinh+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char casinh (); +int +main () +{ +return casinh (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_casinh=yes +else + ac_cv_lib_m_casinh=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinh" >&5 +$as_echo "$ac_cv_lib_m_casinh" >&6; } +if test "x$ac_cv_lib_m_casinh" = x""yes; then : + +$as_echo "#define HAVE_CASINH 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf in -lm" >&5 +$as_echo_n "checking for casinhf in -lm... " >&6; } +if test "${ac_cv_lib_m_casinhf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char casinhf (); +int +main () +{ +return casinhf (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_casinhf=yes +else + ac_cv_lib_m_casinhf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhf" >&5 +$as_echo "$ac_cv_lib_m_casinhf" >&6; } +if test "x$ac_cv_lib_m_casinhf" = x""yes; then : + +$as_echo "#define HAVE_CASINHF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl in -lm" >&5 +$as_echo_n "checking for casinhl in -lm... " >&6; } +if test "${ac_cv_lib_m_casinhl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char casinhl (); +int +main () +{ +return casinhl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_casinhl=yes +else + ac_cv_lib_m_casinhl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhl" >&5 +$as_echo "$ac_cv_lib_m_casinhl" >&6; } +if test "x$ac_cv_lib_m_casinhl" = x""yes; then : + +$as_echo "#define HAVE_CASINHL 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl in -lm" >&5 +$as_echo_n "checking for casinl in -lm... " >&6; } +if test "${ac_cv_lib_m_casinl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char casinl (); +int +main () +{ +return casinl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_casinl=yes +else + ac_cv_lib_m_casinl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinl" >&5 +$as_echo "$ac_cv_lib_m_casinl" >&6; } +if test "x$ac_cv_lib_m_casinl" = x""yes; then : + +$as_echo "#define HAVE_CASINL 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan in -lm" >&5 +$as_echo_n "checking for catan in -lm... " >&6; } +if test "${ac_cv_lib_m_catan+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char catan (); +int +main () +{ +return catan (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_catan=yes +else + ac_cv_lib_m_catan=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catan" >&5 +$as_echo "$ac_cv_lib_m_catan" >&6; } +if test "x$ac_cv_lib_m_catan" = x""yes; then : + +$as_echo "#define HAVE_CATAN 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf in -lm" >&5 +$as_echo_n "checking for catanf in -lm... " >&6; } +if test "${ac_cv_lib_m_catanf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char catanf (); +int +main () +{ +return catanf (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_catanf=yes +else + ac_cv_lib_m_catanf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanf" >&5 +$as_echo "$ac_cv_lib_m_catanf" >&6; } +if test "x$ac_cv_lib_m_catanf" = x""yes; then : + +$as_echo "#define HAVE_CATANF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh in -lm" >&5 +$as_echo_n "checking for catanh in -lm... " >&6; } +if test "${ac_cv_lib_m_catanh+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char catanh (); +int +main () +{ +return catanh (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_catanh=yes +else + ac_cv_lib_m_catanh=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanh" >&5 +$as_echo "$ac_cv_lib_m_catanh" >&6; } +if test "x$ac_cv_lib_m_catanh" = x""yes; then : + +$as_echo "#define HAVE_CATANH 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf in -lm" >&5 +$as_echo_n "checking for catanhf in -lm... " >&6; } +if test "${ac_cv_lib_m_catanhf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char catanhf (); +int +main () +{ +return catanhf (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_catanhf=yes +else + ac_cv_lib_m_catanhf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhf" >&5 +$as_echo "$ac_cv_lib_m_catanhf" >&6; } +if test "x$ac_cv_lib_m_catanhf" = x""yes; then : + +$as_echo "#define HAVE_CATANHF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl in -lm" >&5 +$as_echo_n "checking for catanhl in -lm... " >&6; } +if test "${ac_cv_lib_m_catanhl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char catanhl (); +int +main () +{ +return catanhl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_catanhl=yes +else + ac_cv_lib_m_catanhl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhl" >&5 +$as_echo "$ac_cv_lib_m_catanhl" >&6; } +if test "x$ac_cv_lib_m_catanhl" = x""yes; then : + +$as_echo "#define HAVE_CATANHL 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl in -lm" >&5 +$as_echo_n "checking for catanl in -lm... " >&6; } +if test "${ac_cv_lib_m_catanl+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char catanl (); +int +main () +{ +return catanl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_catanl=yes +else + ac_cv_lib_m_catanl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanl" >&5 +$as_echo "$ac_cv_lib_m_catanl" >&6; } +if test "x$ac_cv_lib_m_catanl" = x""yes; then : + +$as_echo "#define HAVE_CATANL 1" >>confdefs.h + +fi + + # On AIX, clog is present in libm as __clog { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 $as_echo_n "checking for __clog in -lm... " >&6; } diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index 28d5d0f5264..104f2c18d5a 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -409,6 +409,26 @@ AC_CHECK_LIB([m],[lgamma],[AC_DEFINE([HAVE_LGAMMA],[1],[libm includes lgamma])]) AC_CHECK_LIB([m],[lgammaf],[AC_DEFINE([HAVE_LGAMMAF],[1],[libm includes lgammaf])]) AC_CHECK_LIB([m],[lgammal],[AC_DEFINE([HAVE_LGAMMAL],[1],[libm includes lgammal])]) +# Check for GFORTRAN_C99_1.1 funcs +AC_CHECK_LIB([m],[cacos],[AC_DEFINE([HAVE_CACOS],[1],[libm includes cacos])]) +AC_CHECK_LIB([m],[cacosf],[AC_DEFINE([HAVE_CACOSF],[1],[libm includes cacosf])]) +AC_CHECK_LIB([m],[cacosh],[AC_DEFINE([HAVE_CACOSH],[1],[libm includes cacosh])]) +AC_CHECK_LIB([m],[cacoshf],[AC_DEFINE([HAVE_CACOSHF],[1],[libm includes cacoshf])]) +AC_CHECK_LIB([m],[cacoshl],[AC_DEFINE([HAVE_CACOSHL],[1],[libm includes cacoshl])]) +AC_CHECK_LIB([m],[cacosl],[AC_DEFINE([HAVE_CACOSL],[1],[libm includes cacosl])]) +AC_CHECK_LIB([m],[casin],[AC_DEFINE([HAVE_CASIN],[1],[libm includes casin])]) +AC_CHECK_LIB([m],[casinf],[AC_DEFINE([HAVE_CASINF],[1],[libm includes casinf])]) +AC_CHECK_LIB([m],[casinh],[AC_DEFINE([HAVE_CASINH],[1],[libm includes casinh])]) +AC_CHECK_LIB([m],[casinhf],[AC_DEFINE([HAVE_CASINHF],[1],[libm includes casinhf])]) +AC_CHECK_LIB([m],[casinhl],[AC_DEFINE([HAVE_CASINHL],[1],[libm includes casinhl])]) +AC_CHECK_LIB([m],[casinl],[AC_DEFINE([HAVE_CASINL],[1],[libm includes casinl])]) +AC_CHECK_LIB([m],[catan],[AC_DEFINE([HAVE_CATAN],[1],[libm includes catan])]) +AC_CHECK_LIB([m],[catanf],[AC_DEFINE([HAVE_CATANF],[1],[libm includes catanf])]) +AC_CHECK_LIB([m],[catanh],[AC_DEFINE([HAVE_CATANH],[1],[libm includes catanh])]) +AC_CHECK_LIB([m],[catanhf],[AC_DEFINE([HAVE_CATANHF],[1],[libm includes catanhf])]) +AC_CHECK_LIB([m],[catanhl],[AC_DEFINE([HAVE_CATANHL],[1],[libm includes catanhl])]) +AC_CHECK_LIB([m],[catanl],[AC_DEFINE([HAVE_CATANL],[1],[libm includes catanl])]) + # On AIX, clog is present in libm as __clog AC_CHECK_LIB([m],[__clog],[AC_DEFINE([HAVE_CLOG],[1],[libm includes clog])]) -- cgit v1.2.1